This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Currently Installed Directory - Upgrade
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 28, 2011
02:48 PM
Currently Installed Directory - Upgrade
Doing an upgrade I need to determine the directory that the software is currently installed at (selected by the user during initial install). Is there a variable/property in Installshield that contains this value, or how do I access it in the registry?
(9) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 28, 2011
03:23 PM
our applications have a Path variable in the registry that points to the location they are installed to.
Anyway, during an update, doesn't InstallShield already know where to put the updated files?
Anyway, during an update, doesn't InstallShield already know where to put the updated files?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 29, 2011
06:00 AM
In an installscript setup TARGETDIR contains the path.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 29, 2011
08:00 AM
This is InstallScript MSI project.
During upgrade, the INSTALLDIR and TARGETDIR (in OnBegin and OnEnd) are both the same and are the default install location (specified in the project General info). However these are NOT the location where the application was originally installed (user had manually selected another location). Obviously Installshield knows where the application is installed (since I have done upgrades and new/updated files are placed in the appropriate location). But how does Installshield know this directory. I assume it is in the registry - if so, how do I determine where to get it in the registry. Or is there another variable in Installshield (other than INSTALLDIR and TARGETDIR) that already has this directory where it should be doing the upgrade?
I assume that InstallShield does know where to put upgrades, so how can I get this from InstallShield. Earthshine, can you expand on what you know about getting this info from the registry.
During upgrade, the INSTALLDIR and TARGETDIR (in OnBegin and OnEnd) are both the same and are the default install location (specified in the project General info). However these are NOT the location where the application was originally installed (user had manually selected another location). Obviously Installshield knows where the application is installed (since I have done upgrades and new/updated files are placed in the appropriate location). But how does Installshield know this directory. I assume it is in the registry - if so, how do I determine where to get it in the registry. Or is there another variable in Installshield (other than INSTALLDIR and TARGETDIR) that already has this directory where it should be doing the upgrade?
I assume that InstallShield does know where to put upgrades, so how can I get this from InstallShield. Earthshine, can you expand on what you know about getting this info from the registry.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 29, 2011
08:12 AM
dekwas, you could try looking in the registry in
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\InstallShield_{your-GUID}
HTH
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\InstallShield_{your-GUID}
HTH
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 29, 2011
10:50 AM
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\InstallShield_{your-GUID}\InstallLocation is empty.
How can this be set in InstallScript MSI project. I see references to ARPINSTALLLOCATION.
How can this be set in InstallScript MSI project. I see references to ARPINSTALLLOCATION.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 29, 2011
11:12 AM
Oops - that location is for InstallShield 2011 I think. Try this one:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{your-GUID}
HTH
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{your-GUID}
HTH
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 29, 2011
01:39 PM
Thanks ch_eng. That seems to be the one.
However, it appears that the SetARPINSTALLLOCATION needs to execute for install and upgrade (ours had a condition 'Not Installed', not sure where this is from).
So it appears that now SetARPINSTALLLOCATION sets the ARPINSTALLLOCATION property, which in turn sets the InstallLocation registry value (on install and upgrade).
The other confusing thing is that it appears that SetARPINSTALLLOCATION sets ARPINSTALLLOCATION to the value of INSTALLDIR, which I (hopefully properly) determined prior was NOT the correct location.
However, it appears that the SetARPINSTALLLOCATION needs to execute for install and upgrade (ours had a condition 'Not Installed', not sure where this is from).
So it appears that now SetARPINSTALLLOCATION sets the ARPINSTALLLOCATION property, which in turn sets the InstallLocation registry value (on install and upgrade).
The other confusing thing is that it appears that SetARPINSTALLLOCATION sets ARPINSTALLLOCATION to the value of INSTALLDIR, which I (hopefully properly) determined prior was NOT the correct location.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 29, 2011
02:28 PM
Does this apply to your upgrade scenario?
http ://kb.flexerasoftware.com/doc/Helpnet/installshield16helplib_sp1/UpgrdngToIS2009.htm#wp1111773
HTH
http ://kb.flexerasoftware.com/doc/Helpnet/installshield16helplib_sp1/UpgrdngToIS2009.htm#wp1111773
HTH
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 30, 2011
10:03 AM
That very well may be the case. Thanks for the feedback.