Major Upgrade - Install Path
Posted 05 March 2004 - 03:41
1. Is there a way to set the Install Directory to the previous install location ?
Ex : The user as installed App version 1.0.3 onto C:\Program Files\Main App\
When user trys to install 1.0.4 (which is a Major upgrade), we don't want to give him an option to change the install location, instead we want to set to the previously installed location ie., C:\Program Files\Main App\
2. Is there a way to say not to overwrite some files, even when performing Major upgrade.
Cheers !!!
Posted 05 March 2004 - 05:57
If you dont want to give the use an option to chagne the path, make sure the user can't get to the dialog that changes the path on an upgrade
Posted 05 March 2004 - 14:16
Currently I have a condition NOT INSTALLED. Can I check for both conditions ?
Cheers !!!
Posted 08 April 2004 - 17:31
So I need help here. Thanks for any suggestions.
Posted 09 April 2004 - 13:30
Hope this helps
Synergy Software Engineer
ProfitStars, a Jack Henry Company
kmorey@profitstars.com
Posted 10 April 2004 - 17:58
QUOTE |
To never over write a file, you need to set the component attributes to never overwrite in the first install. |
Not quite correct: it is sufficient to set Nevr Overwrite in the new version. You need to make sure your RemoveExistingProducts action is scheduled late in the sequence, otherwise a complete uninstall of the old version is performed.
QUOTE |
What condition I need to check for not displaying the dialog when doing a Major upgrade ? |
You can check for the property you have specified in the Upgarde settings. "Not Installed" is True for both - first time install and major upgrade - so it won't help you.
If you have written your INSTALLDIR to registry then you can read it from there using AppSearch. Ususally it gets written automatically to the InstallLocation value in
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall
You can also use [$componentkey] to get the install directory of an installed component (for details see help topic about the Formatted data type)
You can then use a custom action type 35 to set a directory table entry to that value.
Stefan Krüger
InstallSite.org twitter facebook
Posted 20 April 2004 - 17:43
Please suggest.
Posted 20 April 2004 - 18:30
Stefan Krüger
InstallSite.org twitter facebook
Posted 20 April 2004 - 20:29
Edited by cherukus, 20 April 2004 - 20:31.
Posted 20 April 2004 - 20:39
Stefan Krüger
InstallSite.org twitter facebook
Posted 20 April 2004 - 20:53
Posted 20 April 2004 - 23:34
Posted 21 April 2004 - 14:58
Posted 22 April 2004 - 10:16
Stefan Krüger
InstallSite.org twitter facebook