if ( existstruewhose ( iftruethen ( exists relay service ) elsefalse ) ) then ( if ( version of client >= "8.0" ) then ( version of relay service as string ) else ( version of file ( ( if ( character 0ofit="%22" ) then ( substring between "%22"ofit ) elseit ) of image path of relay service ) as string ) ) else"Not Installed"
if (existstruewhose(iftruethen(exists relay service)elsefalse)) then (if (version of client >= "8.0") then (version of relay service as string) else (version of file ((if (character 0ofit="%22") then (substring between "%22"ofit) elseit) of image path of relay service) as string)) else"Not Installed"
if ( existstruewhose ( iftruethen ( name of operating system startswith"Win"ANDexists regapp "BESConsole.exe" ) elsefalse ) ) then version of regapp "BESConsole.exe"as string else"Not Installed"
if (existstruewhose(iftruethen(name of operating system startswith"Win"ANDexists regapp "BESConsole.exe")elsefalse)) then version of regapp "BESConsole.exe"as string else"Not Installed"
if ( existstruewhose ( iftruethen ( exists main gather service ) elsefalse ) ) then ( if ( version of client >= "8.0" ) then ( version of main gather service as string ) else ( version of file ( ( if ( character 0ofit="%22" ) then ( substring between "%22"ofit ) elseit ) of image path of main gather service ) as string ) ) else"Not Installed"
if (existstruewhose(iftruethen(exists main gather service)elsefalse)) then (if (version of client >= "8.0") then (version of main gather service as string) else (version of file ((if (character 0ofit="%22") then (substring between "%22"ofit) elseit) of image path of main gather service) 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"
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 service "BESWebReportsServer" ) elsefalse ) ) then ( if ( version of client >= "8.0" ) then ( version of service "BESWebReportsServer"as string ) else ( version of file ( ( if ( character 0ofit="%22" ) then ( substring between "%22"ofit ) elseit ) of image path of service "BESWebReportsServer" ) as string ) ) else"Not Installed"
if (existstruewhose(iftruethen(exists service "BESWebReportsServer")elsefalse)) then (if (version of client >= "8.0") then (version of service "BESWebReportsServer"as string) else (version of file ((if (character 0ofit="%22") then (substring between "%22"ofit) elseit) of image path of service "BESWebReportsServer") as string)) else"Not Installed"