Hi Michael,
Write Registry Key HKLM\\Software\\Company\\Version\\Product, Something
creates the correct reg key + value. However, when I uninstall the key + value is removed (ie. Product) but the super-keys remain (ie. HKLM\\Company\\Version).
I thought IA takes care of this and removes all keys for me?
If not ... how do I force IA to purge the registry of all keys and values it wrote?
TIA,
James
RegKeys Not Deleted On Uninstall?
-
MichaelNesmith
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
-
MichaelNesmith
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
Hi James,
It certainly seems abnormal to me - but Windows Installer takes care of all that internally, so it might be a good idea to run the install and uninstall with logging enabled first, before we jump to conclusions.
It certainly seems abnormal to me - but Windows Installer takes care of all that internally, so it might be a good idea to run the install and uninstall with logging enabled first, before we jump to conclusions.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
It would appear the installer is creating it's own registry keys and the creation of these keys is not even logged (!!!) ... it looks like the installer is grabbing something out of the project settings.
So here on install it's creating (I don't know where this is happening):
SOFTWARE\\FireDaemon Technologies Limited\\FireDaemon\\1.9
and then in the MSI code I create keys under here (which is where I want them):
SOFTWARE\\FireDaemon Technologies\\FireDaemon\\1.9
When the uninstall happens the former is being orphaned. Here's the logs (install then uninstall for all RegAdd and RegDelete events):
MSI (s) (B4:7C) [18:59:42:702]: Executing op: RegOpenKey(Root=-2147483646,Key=SOFTWARE\\FireDaemon Technologies\\FireDaemon\\1.9,,BinaryType=0)
MSI (s) (B4:7C) [18:59:42:718]: Executing op: RegAddValue(Name=Product,Value=Pro,)
MSI (s) (B4:7C) [18:59:42:718]: Executing op: RegAddValue(Name=InstallationDir,Value=C:\\Program Files\\FireDaemon,)
MSI (s) (B4:7C) [18:59:42:718]: Executing op: RegAddValue(Name=Control,Value=#0,)
MSI (s) (B4:7C) [18:59:42:718]: Executing op: RegAddValue(Name=VersionCheck,Value=#0,)
MSI (s) (B4:7C) [18:59:42:733]: Executing op: RegOpenKey(Root=-2147483646,Key=SYSTEM\\CurrentControlSet\\Services\\Eventlog\\Application\\FireDaemon,,BinaryType=0)
MSI (s) (B4:7C) [18:59:42:733]: Executing op: RegAddValue(Name=EventMessageFile,Value=C:\\Program Files\\FireDaemon\\Core.dll,)
MSI (s) (B4:7C) [18:59:42:733]: Executing op: RegAddValue(Name=TypesSupported,Value=#7,)
----------------------------------------------------
MSI (s) (B4:D4) [19:01:48:389]: Executing op: ActionStart(Name=RemoveRegistryValues,Description=Removing system registry values,Template=Key: [1], Name: [2])
MSI (s) (B4:D4) [19:01:48:389]: Executing op: ProgressTotal(Total=6,Type=1,ByteEquivalent=13200)
MSI (s) (B4:D4) [19:01:48:389]: Executing op: RegOpenKey(Root=-2147483646,Key=SOFTWARE\\FireDaemon Technologies\\FireDaemon\\1.9,,BinaryType=0)
MSI (s) (B4:D4) [19:01:48:389]: Executing op: RegRemoveValue(Name=Product,Value=[PWRSFARIEEMTCOLISREEON9PODCTROF0_3],)
MSI (s) (B4:D4) [19:01:48:389]: Executing op: RegRemoveValue(Name=InstallationDir,Value=[PWRFAIEEMTCOLISREEO9ITLTIDRRGDR0_3],)
MSI (s) (B4:D4) [19:01:48:389]: Executing op: RegRemoveValue(Name=Control,Value=#[PWRSFARIEEMTCOLISREAEON9CNTOLFT0_3],)
MSI (s) (B4:D4) [19:01:48:405]: Executing op: RegRemoveValue(Name=VersionCheck,Value=#[PWRSFARIEEMTCOLISREEO9VSONHEK0T0_3],)
MSI (s) (B4:D4) [19:01:48:421]: Executing op: RegOpenKey(Root=-2147483646,Key=SYSTEM\\CurrentControlSet\\Services\\Eventlog\\Application\\FireDaemon,,BinaryType=0)
MSI (s) (B4:D4) [19:01:48:436]: Executing op: RegRemoveValue(Name=EventMessageFile,Value=[PWRSMRNNOSEEVLGLAFIENNMAFARIOLT0_3],)
MSI (s) (B4:D4) [19:01:48:436]: Executing op: RegRemoveValue(Name=TypesSupported,Value=#[PWRSMRNNOSEEVLGPLAIFIDENTESPOE70_3],)
MSI (s) (B4:D4) [19:01:48:452]: Executing op: ActionStart(Name=RemoveShortcuts,Description=Removing shortcuts,Template=Shortcut: [1])
MSI (s) (B4:D4) [19:01:48:468]: Executing op: SetTargetFolder(Folder=23\\FireDaemon Pro\\)
So here on install it's creating (I don't know where this is happening):
SOFTWARE\\FireDaemon Technologies Limited\\FireDaemon\\1.9
and then in the MSI code I create keys under here (which is where I want them):
SOFTWARE\\FireDaemon Technologies\\FireDaemon\\1.9
When the uninstall happens the former is being orphaned. Here's the logs (install then uninstall for all RegAdd and RegDelete events):
MSI (s) (B4:7C) [18:59:42:702]: Executing op: RegOpenKey(Root=-2147483646,Key=SOFTWARE\\FireDaemon Technologies\\FireDaemon\\1.9,,BinaryType=0)
MSI (s) (B4:7C) [18:59:42:718]: Executing op: RegAddValue(Name=Product,Value=Pro,)
MSI (s) (B4:7C) [18:59:42:718]: Executing op: RegAddValue(Name=InstallationDir,Value=C:\\Program Files\\FireDaemon,)
MSI (s) (B4:7C) [18:59:42:718]: Executing op: RegAddValue(Name=Control,Value=#0,)
MSI (s) (B4:7C) [18:59:42:718]: Executing op: RegAddValue(Name=VersionCheck,Value=#0,)
MSI (s) (B4:7C) [18:59:42:733]: Executing op: RegOpenKey(Root=-2147483646,Key=SYSTEM\\CurrentControlSet\\Services\\Eventlog\\Application\\FireDaemon,,BinaryType=0)
MSI (s) (B4:7C) [18:59:42:733]: Executing op: RegAddValue(Name=EventMessageFile,Value=C:\\Program Files\\FireDaemon\\Core.dll,)
MSI (s) (B4:7C) [18:59:42:733]: Executing op: RegAddValue(Name=TypesSupported,Value=#7,)
----------------------------------------------------
MSI (s) (B4:D4) [19:01:48:389]: Executing op: ActionStart(Name=RemoveRegistryValues,Description=Removing system registry values,Template=Key: [1], Name: [2])
MSI (s) (B4:D4) [19:01:48:389]: Executing op: ProgressTotal(Total=6,Type=1,ByteEquivalent=13200)
MSI (s) (B4:D4) [19:01:48:389]: Executing op: RegOpenKey(Root=-2147483646,Key=SOFTWARE\\FireDaemon Technologies\\FireDaemon\\1.9,,BinaryType=0)
MSI (s) (B4:D4) [19:01:48:389]: Executing op: RegRemoveValue(Name=Product,Value=[PWRSFARIEEMTCOLISREEON9PODCTROF0_3],)
MSI (s) (B4:D4) [19:01:48:389]: Executing op: RegRemoveValue(Name=InstallationDir,Value=[PWRFAIEEMTCOLISREEO9ITLTIDRRGDR0_3],)
MSI (s) (B4:D4) [19:01:48:389]: Executing op: RegRemoveValue(Name=Control,Value=#[PWRSFARIEEMTCOLISREAEON9CNTOLFT0_3],)
MSI (s) (B4:D4) [19:01:48:405]: Executing op: RegRemoveValue(Name=VersionCheck,Value=#[PWRSFARIEEMTCOLISREEO9VSONHEK0T0_3],)
MSI (s) (B4:D4) [19:01:48:421]: Executing op: RegOpenKey(Root=-2147483646,Key=SYSTEM\\CurrentControlSet\\Services\\Eventlog\\Application\\FireDaemon,,BinaryType=0)
MSI (s) (B4:D4) [19:01:48:436]: Executing op: RegRemoveValue(Name=EventMessageFile,Value=[PWRSMRNNOSEEVLGLAFIENNMAFARIOLT0_3],)
MSI (s) (B4:D4) [19:01:48:436]: Executing op: RegRemoveValue(Name=TypesSupported,Value=#[PWRSMRNNOSEEVLGPLAIFIDENTESPOE70_3],)
MSI (s) (B4:D4) [19:01:48:452]: Executing op: ActionStart(Name=RemoveShortcuts,Description=Removing shortcuts,Template=Shortcut: [1])
MSI (s) (B4:D4) [19:01:48:468]: Executing op: SetTargetFolder(Folder=23\\FireDaemon Pro\\)
-
MichaelNesmith
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:

