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")}"
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.