Hi all,
my program uses the following registry value to get its location:
HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\{PRODUCTCODE} -> InstallLocation (REG_SZ).
After a fresh install, it has the correct value.
After a patch (minor upgrade) is applied, this value becomes empty.
What should I do to make this persistent ?
I'm already writing the INSTALLDIR property somewhere else, but I thought everything under that key was taken care of automatically...?
Thank you,
Sophie
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.
InstallLocation is lost after applying a patch
Started by
dtieuf
, May 05 2006 15:06
4 replies to this topic
Posted 09 May 2006 - 12:39
You should pick up the path in that value using AppSearch/RegLocator and store it in INSTALLDIR.
Stefan Krüger
InstallSite.org twitter facebook
Posted 09 May 2006 - 21:50
INSTALLDIR is fine, but why is the value cleared in the registry after a patch is applied ? That's what I don't understand...
Posted 10 May 2006 - 08:23
The patch is re-writing the registry entry (because a patch is a special form of reinstall). In this case the property is blank and therefore the registry entry is wiped out.
Stefan Krüger
InstallSite.org twitter facebook
Posted 10 May 2006 - 21:07
(I'm using IS X) found out that there was a condition on the SetARPINSTALLLOCATION CA. The condition was "Not Installed".
I removed the condition and the registry entry was kept after the patch/minor upgrade.
Thanks for your help
Sophie
I removed the condition and the registry entry was kept after the patch/minor upgrade.
Thanks for your help
Sophie