Program Files\Common Files can't be used with 32-bit mode?
Posted: Mon Apr 25, 2022 5:00 pm
I'm using InstallAware X10 and I've got one project that can install the 32 or 64 bit version of my product based on a compiler variable.
I've got a group of files that should always go to: C:\Program Files\Common Files\<companyname>\Bridge
The 64-bit version does this just fine and puts the group of files in that location.
The 32-bit version always puts the files in: C:\Program Files (x86)\Common Files\<companyname>\Bridge
I build the destination path and store it in a variable to use in the "Install Files" statements. The destination path is created with logic like this:
"Set x64..."
Get Common Folder Location System->Program Files Directory (for 'all users') into COMMONFILES_64
Set Variable BRIDGEDIR to $COMMONFILES_64$<companyname>\Bridge
"Set Win32..."
The path is captured correctly...I show it in a message box for debugging (before the "Install Files" statements) and I write it to the registry at the end of the installation. In both places, the path is shown without "(x86)" in the string...but the files are always put into the (x86) folder.
What could be the issue?
I've got a group of files that should always go to: C:\Program Files\Common Files\<companyname>\Bridge
The 64-bit version does this just fine and puts the group of files in that location.
The 32-bit version always puts the files in: C:\Program Files (x86)\Common Files\<companyname>\Bridge
I build the destination path and store it in a variable to use in the "Install Files" statements. The destination path is created with logic like this:
"Set x64..."
Get Common Folder Location System->Program Files Directory (for 'all users') into COMMONFILES_64
Set Variable BRIDGEDIR to $COMMONFILES_64$<companyname>\Bridge
"Set Win32..."
The path is captured correctly...I show it in a message box for debugging (before the "Install Files" statements) and I write it to the registry at the end of the installation. In both places, the path is shown without "(x86)" in the string...but the files are always put into the (x86) folder.
What could be the issue?