bjk68
Posts: 55
Joined: Tue Dec 01, 2009 12:45 pm

Re: How to upgrade to a new folder

cosmin wrote: ... the APPDIR property was modified, but it was not set as the target installation path. Therefore, Windows Installer considers the old path as the target.
GabrielBarbu wrote: The Property set with Formatted must be added to both sequences and be set as a shared custom action.
Hi Gabriel,

Your suggestion does not match with that of Cosmin. You are missing my point that "SetTargetPath" or "Directory Set with Formatted" must be used to effectively set APPDIR to a new value. I only wanted to share my working solution, so I don't understand why you give me new suggestions :?

Best regards,
Bart
ericw
Posts: 3
Joined: Thu Jan 05, 2017 7:09 pm

Re: How to upgrade to a new folder

I know this thread is very old but since I found it while searching for a solution i wanted to add an update.
Current versions of AdvancedInstaller have an option on the Upgrades page named "Use Original installation path when upgrading". It is checked by default. If you uncheck this option it will use the new folder path. You can see it in the user guide here: http://www.advancedinstaller.com/user-g ... rades.html

I haven't tested if it works for quiet installs. Maybe someone from AdvancedInstaller can confirm it works for quiet installs also?
drivard
Posts: 50
Joined: Wed Dec 05, 2007 10:14 pm

Re: How to upgrade to a new folder

That's great, thanks!
I've actually been requested to do something similar for an upcoming release.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: How to upgrade to a new folder

Hello,
I haven't tested if it works for quiet installs. Maybe someone from AdvancedInstaller can confirm it works for quiet installs also?
Yes, the new path will be used in silent installation too, when the "Use Original installation path when upgrading" option is unchecked.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”