We have an IS 6.12 project that installs quarterly updates for clients. On the initial installation, some clients installed the application to one directory, and have subsequently moved these files to a different directory. Now, when they get the quarterly update, the update is installed into the original installation location. How can I change where IS thinks the application was originally installed to without having to uninstall/reinstall the application?
Thanks,
Wayne
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
How do you change installation directory
Started by
Wayne
, Apr 24 2002 22:25
5 replies to this topic
Posted 25 April 2002 - 11:59
In your script (in OnBegin) detect where the application is actually installed, and set TARGETDIR to this directory.
Note: I'm not sure, but I don't think that this will fix the uninstaller as well. That will still point to the 'old' directory.
Note: I'm not sure, but I don't think that this will fix the uninstaller as well. That will still point to the 'old' directory.
Posted 25 April 2002 - 12:38
I'm using ComponentReinstall() to install all of the updates - should I be doing this differently? ComponentReinstall puts the updated files into the original directory.
Thanks,
Wayne
Thanks,
Wayne
Posted 25 April 2002 - 12:57
If the user has manually moved the files afterwards, God only knows where it may reside today.
In such a scenario, you therefore have basically two options:
1. Default to the location of the last install, and if the files are gone, force the user to pick the correct new location. You can check for key files to verify the new path.
2. As a last resort, you _could_ do a complete search on the hard drive for those same key files, but keep in mind this may take forever and cause for a bad end-user experience.
In such a scenario, you therefore have basically two options:
1. Default to the location of the last install, and if the files are gone, force the user to pick the correct new location. You can check for key files to verify the new path.
2. As a last resort, you _could_ do a complete search on the hard drive for those same key files, but keep in mind this may take forever and cause for a bad end-user experience.
Posted 15 May 2002 - 07:27
Quote (TacoBell00 @ April 25 2002,11:57) |
1. Default to the location of the last install, and if the files are gone, force the user to pick the correct new location. You can check for key files to verify the new path. |
I like your option 1. However, I've been doing the update via ComponentReinstall. Any thoughts on how I should proceed with doing the update? Should I just go through the initial installation routine again?
Thanks,
Wayne
Posted 15 May 2002 - 16:03
In such a case, you would better off making the user go back through the installation routine. That way everything is correctly updated including the uninstall.