XiaoFaye
Posts: 11
Joined: Mon Jun 16, 2014 9:22 pm

Fixed install path doesn't work

Hi

For some reason, my application needs to be installed in C:\Program Files\Product name regarding 32bit or 64bit OS. I have tried to input the path directly, but it didn't work, still go to Program Files(x86) folder in 64bit machine. Can you help with this? thanks!
Untitled.png
Untitled.png (3.94 KiB) Viewed 3640 times
Best regards,
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Fixed install path doesn't work

Hello,

Please keep in mind that a 32-bit installation package, on 64-bit machines, cannot install resources into 64-bit locations (i.e. "Program Files" folder).

Although 32-bit package can be installed on 64-bit platforms, the ProgramFiles64Folder, CommonFiles64Folder and System64Folder are resolved to the redirected locations, that is why you need a 64-bit package in order to access the real system paths on a 64-bit platform.
Their 32-bit counterparts are resolved to redirected locations as follows:
  • ProgramFilesFolder - C:\Program Files (x86)\
  • CommonFilesFolder - C:\Program Files (x86)\Common Files\
  • SystemFolder - C:\Windows\SysWOW64\
This is the default behavior for Windows Installer.

In order to implement your scenario, you can select the Mixed 32/64-bit matching the platform option for the package type.
This package runs as a 32-bit package on 32-bit systems and as a 64-bit package on x64 systems. It allows you to have a single installation package that will install on both platform types (32-bit and 64-bit platforms) and can install files or registry in the real system paths regardless of the platform.

When the "Mixed 32/64-bit matching the platform" package type is selected in the Install Parameters page, then the wizard will launch and will guide you step by step through every stage required to organize your “Mixed 32/64-bit matching the platform” package, as it can be seen in the below image:

Here is an article which may be useful to you: How do I create a package that will be installed like a 64-bit package on 64-bit platforms and as 32-bit package on 32-bit platforms ?.
This easy approach is to use the Mixed 32/64-bit matching the platform wizard.

If you have other questions, please let us know.

Kind regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
XiaoFaye
Posts: 11
Joined: Mon Jun 16, 2014 9:22 pm

Re: Fixed install path doesn't work

It's Working!!! Thanks a lot! :D
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Fixed install path doesn't work

You're welcome,

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”