ProgramFiles Variable

(imported topic written by nberger91)

The following action fails on european (German) operating systems where the path is “C:\Programme” or “C:\Programme (86)”, however if i run the relevance - (value of variable “ProgramFiles” of environment) on these machines, it returns “C:\Program Files” or "C:\Program Files (x86) when infact the 32 application in question (SEP) are installed to “C:\Programme (x86)” etc …

Whats the best way to code round this ?

if {exists folder (value of variable “ProgramFiles” of environment &"\Symantec\LiveUpdate")}

waithidden cmd.exe /C rmdir /Q /S “{(value of variable “ProgramFiles” of environment &”\Symantec\LiveUpdate")}"

endif

if {exists folder (value of variable “ProgramFiles” of environment &"\Symantec\Symantec Endpoint Protection")}

waithidden cmd.exe /C rmdir /Q /S “{(value of variable “ProgramFiles” of environment &”\Symantec\Symantec Endpoint Protection")}"

endif

(imported comment written by BenKus)

Does this help?

http://forum.bigfix.com/viewtopic.php?id=3972

Ben

(imported comment written by nberger91)

According to Msft article - http://msdn.microsoft.com/en-us/library/ff553598.aspx I should be using values 16425 or 16426, both dont work in relevance ?

(imported comment written by jgstew)

Here is an option that requires localization:

http://bigfix.me/relevance/details/2999163

(folders whose(name of it as lowercase starts with “program files”) of root folder of drive of system folder)

Here are some options for v9+ clients:

http://bigfix.me/relevance/details/2999162

(if (x64 of operating system) then (program files x64 folder ; program files folder) else (program files folders))

http://bigfix.me/relevance/details/2999161

(program files x64 folder | program files folder)

All of these items return “folder” objects so that you can do further relevance upon them, but if you just need the path, just add "pathname of " to the beginning of each.