Uninstalling Binary registry values
Uninstalling Binary registry values
When testing our uninstall, I noticed that a number of registry entries were not being uninstalled. Many of them were ones that the program created after install, so that's to be expected. I then performed an install followed immediately by an uninstall, and noticed that all of the REG_BINARY values remained. Am I doing something wrong?
Ken,
Windows Installer will only remove the keys created during install.
If keys already exits they will not be removed on uninstall.
If the keys are created later on they will not be removed on uninstall.
You may want to create these binary keys during install with default values
- or -
use the Delete Registry command which is not based on Windows Installer.
Look for "Delete Registry" in the help for more information.
Windows Installer will only remove the keys created during install.
If keys already exits they will not be removed on uninstall.
If the keys are created later on they will not be removed on uninstall.
You may want to create these binary keys during install with default values
- or -
use the Delete Registry command which is not based on Windows Installer.
Look for "Delete Registry" in the help for more information.
These particular keys are created at install. For historical reasons, our program uses about 250 registry entries. Of these entries, 9 of them are binary. After the uninstall, all of the binary entries are intact, while the rest of the entries are removed. I did not run any programs between the install and uninstall, so nothing should be modified. I'm currently trying to create a test case in order to see if I can reproduce this outside of the main installer.
-
MichaelNesmith
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
I created a test setup with all types of registry values. All were correctly uninstalled, except the binary value. I then inspected the MSI created by InstallAware, and the MSI has correct flags for all the installed components (none of them are permanent). In fact the flags are all identical for the MSI components. So I'm not quite sure why MSI is not uninstalling the binary value!
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/
-
Justin Pava
- Posts: 13
- Joined: Thu Jul 26, 2007 9:22 pm
-
ortwin.tischler
- Posts: 1
- Joined: Wed May 14, 2008 7:56 am
Bug fix for uninstall binary values in registry?
I´ve the same problem with the actual version InstallAware7 (the bug ist old). Is there a bug fix or workaround for this issue.MichaelNesmith wrote:I created a test setup with all types of registry values. All were correctly uninstalled, except the binary value. I then inspected the MSI created by InstallAware, and the MSI has correct flags for all the installed components (none of them are permanent). In fact the flags are all identical for the MSI components. So I'm not quite sure why MSI is not uninstalling the binary value!

