( free space of drive ( first 2of ( value "value"of key "HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\EnterpriseClient\Settings\Client\_BESRelay_HTTPServer_ServerRootPath"of x32 registry as string ) ) + ( sum of ( sizes of files of folders of folder ( ( if ( value of setting "_BESRelay_HTTPServer_ServerRootPath"of client ) ends with"\"then ( ( value of setting "_BESRelay_HTTPServer_ServerRootPath"of client ) & "bfmirror\downloads" ) else ( ( value of setting "_BESRelay_HTTPServer_ServerRootPath"of client ) & "\bfmirror\downloads" ) ) ) ) ) ) <free space of drive whose ( type ofit="DRIVE_FIXED"AND free space ofit= maximum of ( free spaces of drives whose ( type ofit="DRIVE_FIXED" ) ) )
(free space of drive (first 2of (value "value"of key "HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\EnterpriseClient\Settings\Client\_BESRelay_HTTPServer_ServerRootPath"of x32 registry as string)) + (sum of (sizes of files of folders of folder ((if(value of setting "_BESRelay_HTTPServer_ServerRootPath"of client) ends with"\"then ((value of setting "_BESRelay_HTTPServer_ServerRootPath"of client) & "bfmirror\downloads") else ((value of setting "_BESRelay_HTTPServer_ServerRootPath"of client) & "\bfmirror\downloads")))))) <free space of drive whose (type ofit="DRIVE_FIXED"AND free space ofit= maximum of (free spaces of drives whose (type ofit="DRIVE_FIXED")))
exists key whose ( ( value "DisplayName"ofit="BES Relay"OR value "DisplayName"ofit="BigFix Enterprise Relay" ) AND value "DisplayVersion"ofitas string as version < "6.0.5.13"AND value "DisplayVersion"ofitas string as version >= "6.0" ) of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"of registry
exists key whose ((value "DisplayName"ofit="BES Relay"OR value "DisplayName"ofit="BigFix Enterprise Relay") AND value "DisplayVersion"ofitas string as version < "6.0.5.13"AND value "DisplayVersion"ofitas string as version >= "6.0") of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"of registry
if ( name of operating system startswith"Win" ) then ( ( exists key "HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\EnterpriseClient\BESPendingRestart"ofitANDexists value "BESPendingRestart"of key "HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\EnterpriseClient\BESPendingRestart"ofit ) of registry OR ( exists key "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce"ofitANDexists value "BESPendingRestart"of key "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce"ofit ) of registry ) else ( true )
if(name of operating system startswith"Win") then((exists key "HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\EnterpriseClient\BESPendingRestart"ofitANDexists value "BESPendingRestart"of key "HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\EnterpriseClient\BESPendingRestart"ofit) of registry OR (exists key "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce"ofitANDexists value "BESPendingRestart"of key "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce"ofit) of registry) else (true)
NOT ( exists key "HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\EnterpriseClient\BESPendingRestart"ofitANDexists value "BESPendingRestart"of key "HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\EnterpriseClient\BESPendingRestart"ofit ) of registry ANDNOT ( exists key "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce"ofitANDexists value "BESPendingRestart"of key "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce"ofit ) of registry
NOT (exists key "HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\EnterpriseClient\BESPendingRestart"ofitANDexists value "BESPendingRestart"of key "HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\EnterpriseClient\BESPendingRestart"ofit) of registry ANDNOT (exists key "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce"ofitANDexists value "BESPendingRestart"of key "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce"ofit) of registry
exists key whose ( value "DisplayName"ofitas string contains"BigFix Enterprise Suite Installation Generator"AND value "DisplayVersion"ofitas string as version < "6.0.8.5"AND value "DisplayVersion"ofitas string as version >= "6.0" ) of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"of registry
exists key whose (value "DisplayName"ofitas string contains"BigFix Enterprise Suite Installation Generator"AND value "DisplayVersion"ofitas string as version < "6.0.8.5"AND value "DisplayVersion"ofitas string as version >= "6.0") of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"of registry
exists key whose ( ( value "DisplayName"ofit="BES Relay"OR value "DisplayName"ofit="BigFix Enterprise Relay" ) AND value "DisplayVersion"ofitas string as version < "6.0.8.5"AND value "DisplayVersion"ofitas string as version >= "6.0" ) of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"of registry
exists key whose ((value "DisplayName"ofit="BES Relay"OR value "DisplayName"ofit="BigFix Enterprise Relay") AND value "DisplayVersion"ofitas string as version < "6.0.8.5"AND value "DisplayVersion"ofitas string as version >= "6.0") of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"of registry
( exists key "HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\Enterprise Server"whose ( ( value "Version"ofit ) as string as version < "6.0.8.5"AND ( value "Version"ofit ) as string as version >= "6.0"ANDexists value "BESInstalled"ofitAND value "BESInstalled"ofit =1 ) of registry )
(exists key "HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\Enterprise Server"whose ((value "Version"ofit) as string as version < "6.0.8.5"AND (value "Version"ofit) as string as version >= "6.0"ANDexists value "BESInstalled"ofitAND value "BESInstalled"ofit =1) of registry)
exists key whose ( ( value "DisplayName"ofit="BES Relay"OR value "DisplayName"ofit="BigFix Enterprise Relay" ) AND value "DisplayVersion"ofitas string as version >= "6.0.5.13"AND value "DisplayVersion"ofitas string as version < "6.0.28.4"AND value "DisplayVersion"ofitas string as version !="6.0.8.5" ) of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"of registry
exists key whose ((value "DisplayName"ofit="BES Relay"OR value "DisplayName"ofit="BigFix Enterprise Relay") AND value "DisplayVersion"ofitas string as version >= "6.0.5.13"AND value "DisplayVersion"ofitas string as version < "6.0.28.4"AND value "DisplayVersion"ofitas string as version !="6.0.8.5") of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"of registry
( exists key "HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\Enterprise Server"whose ( ( value "Version"ofit ) as string as version >= "6.0"AND ( value "Version"ofit ) as string as version < "6.0.28.4"AND ( value "Version"ofit ) as string as version !="6.0.8.5"ANDexists value "BESInstalled"ofitAND value "BESInstalled"ofit =1 ) of registry )
(exists key "HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\Enterprise Server"whose ((value "Version"ofit) as string as version >= "6.0"AND (value "Version"ofit) as string as version < "6.0.28.4"AND (value "Version"ofit) as string as version !="6.0.8.5"ANDexists value "BESInstalled"ofitAND value "BESInstalled"ofit =1) of registry)
if ( existstruewhose ( iftruethen ( exists key "HKLM\SOFTWARE\BigFix\BESAPI\Paths"of registry ) elsefalse ) ) then version of file ( value "base"of key "HKLM\SOFTWARE\BigFix\BESAPI\Paths"of registry as string & "BESAPI.dll" ) as string else"Not Installed"
if (existstruewhose(iftruethen(exists key "HKLM\SOFTWARE\BigFix\BESAPI\Paths"of registry)elsefalse)) then version of file (value "base"of key "HKLM\SOFTWARE\BigFix\BESAPI\Paths"of registry as string & "BESAPI.dll") as string else"Not Installed"