If your installer is marked x64
, you can use the ProgramFilesFolder installer property:
"[ProgramFilesFolder]MyApp\MyApp.exe" "%1"
In x64
mode, this property will point to the x86
Program Files folder, and ProgramFiles64Folder will point to the x64
Program Files folder.
EDIT: If you import a reg
file into the registry instead of having the installer generate the keys and values, you can use an environment variable instead:
"%ProgramFiles(x86)%\MyApp\MyApp.exe" "%1"