Minor upgrade installs in C: instead of INSTALLDIR
Posted 10 May 2004 - 21:30
In my install, if installed clean (new install, no previous version installed), files are installed into the correct locations. (INSTALLDIR is set to Program Files\Our Product Name).
If a previous version is installed, however, a minor upgrade takes place, and while all the files are installed, files that should be installed into INSTALLDIR (aka Program Files\Our Product Name) are installed into the root of the C drive.
The Windows Installer log file indicates that INSTALLDIR is set to C:\, but I cannot see what is setting INSTALL dir to C:\.
I tried adding a custom action to set INSTALLDIR, but the files are still installed into C:\ in an upgrade situation.
What am I missing here?
Thanks in advance,
Posted 11 May 2004 - 03:00
What does your install log say? It should say what the previous folder settings were.
Posted 11 May 2004 - 15:07
Posted 11 May 2004 - 23:35
Have you changed your component guids between installs?
Could you post the second install log??
Posted 13 May 2004 - 15:11
You may be able to query the location where the application was installed previously by reading a property called ARPINSTALLLOCATION http://msdn.microsof...on_property.asp it is written to the registry in the same location as the other Add/Remove program info is written. I think Installshield 8 and upwards writes this key for you automatically.
Posted 14 May 2004 - 10:44
As a result, the directory became the system drive in normal installs, and the first network drive in admin installs.
Hope this helps