Just out of curiosity, if I create an installer, how can I decide which directory "Program Files" to install? On 32-bit systems, the environmental variable "% programfiles%" is good enough. However, on 64-bit systems, 32-bit programs should not be installed in this folder, but instead on "% programfiles (x86)%", which, as I understand it, points to "C: \ Program Files (x86)". My question is: how should the installer decide which environment variable to use? Will the value "% programfiles%" be changed for a 32-bit application, or should I first check if "% programfiles (x86)%" exists before using "% programfiles%", or should I do something completely different?
Thank! This is just out of my own curiosity as I try to get used to 64-bit operating systems.
source
share