Is there a way to automatically retrieve the value of INSTALLDIR from the original setup in a consequent upgrade setup?
I need to run a batch in an upgrade setup and I would expect InstallScript to keep the value of INSTALLDIR for me but it doesn't.
I know I can store the value in the registry myself and read it in the upgrade but I'm wondering if there is another way...
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.
INSTALLDIR in upgrade setup.
Started by
joegilad
, Oct 29 2006 17:58
4 replies to this topic
Posted 29 October 2006 - 22:11
You could use the AppSearch feature to search for the signature of your main EXE, or Installshield MAY have stored the value in ARP:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{GUID}. Look for InstallLocation or similar.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{GUID}. Look for InstallLocation or similar.
Regards
-Stein Åsmul
-Stein Åsmul
Posted 30 October 2006 - 06:43
A configurable option in Installshield setups:
ARPINSTALLLOCATION This property stores the fully qualified path to the application's primary folder. You can set ARPINSTALLLOCATION to the value of INSTALLDIR with a custom action of type “Set a property”.
ARPINSTALLLOCATION This property stores the fully qualified path to the application's primary folder. You can set ARPINSTALLLOCATION to the value of INSTALLDIR with a custom action of type “Set a property”.
Regards
-Stein Åsmul
-Stein Åsmul
Posted 30 October 2006 - 09:15
@Stein: your reply applies to MSI projects, but joegilad is using an InstallScript project.
@joegilad: if I recall correctly the value is automatically restored, unless you override this behaviour in your script. As a try remove all your script code, or create a new test project using only the default code, and see if it works.
@joegilad: if I recall correctly the value is automatically restored, unless you override this behaviour in your script. As a try remove all your script code, or create a new test project using only the default code, and see if it works.
Stefan Krüger
InstallSite.org twitter facebook
Posted 30 October 2006 - 09:32
Sorry! :-). When I use the "recent posts" view these things happen.
Regards
-Stein Åsmul
-Stein Åsmul