Specifying the bmAppPath for a 32 bit process should use the “Program Files (x86)” folder if the script is to be run on 64 bit versions of windows.
At runtime the bmAppPath will be changed to use the “Program Files” folder rather than the “(x86)” one if the agent detects that it is running on a 32 bit version of windows.
See also the %ProgramFiles% environment variable.
The bmAppArgument and bmAppPath fields support expansion of windows environment variables.
E.g. if an app is installed under the user’s roaming profile in a folder called “App\app.exe” then the following path will locate it:
%AppData%\App\app.exe
Variable | Meaning | Typical Value |
|---|---|---|
%AppData% | User’s roaming profile folder. | C:\Users\<username>\AppData\Roaming |
%LocalAppData% | User’s local profile folder. | C:\Users\<username>\AppData\Local |
%ProgramData% | System folder for common app data. | C:\ProgramData |
%ProgramFiles% | Target app sepcific folder. Varies for 32 or 64 bit apps | 64 bit: C:\Program Files |
A full list of environment variables may be found at https://en.wikipedia.org/wiki/Environment_variable#Windows