PDA

View Full Version : What should INSTALLDIR be when performing a major upgrade?



Jennifer
07-26-2002, 01:03 PM
I thought that during a major upgrade, INSTALLDIR would default to the same directory as the previous installation.
For example, if I install product A to c:\myproduct, then later install product A.5 as a major upgrade of product A then shouldn't INSTALLDIR automatically be set to c:\myproduct also?
Or will INSTALLDIR always default to what is set in the IDE?
Is it by design that INSTALLDIR will always default to what is set in the IDE even if a major upgrade is being performed on the product?

RobertDickau
07-26-2002, 01:44 PM
By default, a major upgrade behaves as a first-time installation, and so it uses the default INSTALLDIR defined in the package.

This thread might be of interest if you want to use the previous version's INSTALLDIR value: http://community.installshield.com/showthread.php?s=&threadid=98943.

Jennifer
07-26-2002, 02:10 PM
Thank you Robert!

rowbot
12-12-2003, 07:38 AM
Robert, the way you suggest in http://community.installshield.com/showthread.php?s=&threadid=98943
... is that the best (if not the only) way to pick up the existing INSTALLDIR on a Major Upgrade?