We're having problems with a Registry Key cleanup on uninstall.. We have a key and values that are created by our application; we tried to set up the Advanced Installer project to delete that key (and all values within) on uninstall, but that does not appear to be working..
I've attached a sample AI project (v8.3) to this message that shows the problem. On the Registry tab, we create our key; and go thru the "Uninstall Cleanup" wizard, setting "Remove registry key with all its sub-keys and values", and force removal without asking for permission.. For test purposes, I also added a default value inside that key to the string "foo". Inside the zip there is also a .reg file that simulates our application creating other values within that key..
To test, first build and install the MSI; should create the key and the default value in HKCU.. Merge the "testregdel.reg" file into the registry; will add the other values in that key.. Then uninstall the application; the uninstall will only remove the default value (set by AI) but not any of the other registry values that were merged..
Test environment was Windows 7 Professional (x86) SP1.. The Windows Installer logfile, on removing the regkey, gives a returncode value of "1" when removing the key; not sure what that means..
Are we setting something wrong, or is this a bug with AI, or even Windows Installer?? If it is a bug with AI, is there an older version that doesn't have this bug??