benjy
Posts: 35
Joined: Mon Nov 02, 2009 12:25 pm

Default installation folder on upgrade

Hi,

We are in the process of converting our existing .NET products from separate 32- and 64-bit applications to single "Any CPU" applications. Part of this work is to update the installers to use mixed 32/64 so that the default installation location is the "Program Files" folder irrespective of the operating system. This works fine :) However...

If the (old) 32-bit version of the application is installed on to a 64-bit operating system, it correctly (by default) installs to "Program Files (x86)". If you then try to upgrade using the new mixed installer, the default installation folder is also "Program Files (x86)". I presume that this is because it is an upgrade, it is preserving the current installation folder?

Is there anyway to change this behaviour such that the default installation path is "Program Files" in this scenario?

Many thanks,

Ben
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: Default installation folder on upgrade

Hello Ben,

The behaviour you encounter is indeed due to the previous installation's APPDIR being set for 32 bit systems. You should go to you update project, to Upgrades page and uncheck "Use original installation path when upgrading" option.

Hope this helps!

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”