Program Files\Common Files can't be used with 32-bit mode?

Got a problem you cannot solve? Try here.
khalprin
Posts: 46
Joined: Fri Aug 25, 2006 2:02 pm

Program Files\Common Files can't be used with 32-bit mode?

Postby khalprin » 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?

FrancescoT
Site Admin
Posts: 5360
Joined: Sun Aug 22, 2010 4:28 am

Re: Program Files\Common Files can't be used with 32-bit mode?

Postby FrancescoT » Wed Apr 27, 2022 4:06 am

The setup runs in 32 bit mode by default. Due of this any task which targets to a native x64 system folder, it gets redirected by the OS to respective x86 location of the same path.

Please have a look at the following thread.
https://www.installaware.com/forums/viewtopic.php?f=2&t=11453&p=43654

Hope this helps you.
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 56 guests