How to add c:\program file x86 in registry?
Answers
Answered by
0
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 x64Program 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
"[ProgramFilesFolder]MyApp\MyApp.exe" "%1"
In x64 mode, this property will point to the x86 Program Files folder, and ProgramFiles64Folder will point to the x64Program 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
Answered by
0
Explanation:
When you create program/application in C or C++, an exe file is created in the bin directory( actually it depends on the path which you give in the options/directories in the turbo C editor).
One should keep in mind that an exe file is created only after successful compilation.
Once the .exe file is created of the C or C++ program, you can place the file anywhere, in any directory or drive, i.e., it is portable.
Then .exe file will behave as an application.
Similar questions