/build/static/layout/Breadcrumb_cap_w.png

Removing regkeys on uninstall

I have packaged an app that after uninstall leaves quite a few regkeys. What is the best way to remove these on uninstall? I think I could do this with a custom action, but was wandering if there was another method. e.g. "RemoveRegistry" table?

Cheers, Mike.

0 Comments   [ + ] Show comments

Answers (5)

Posted by: jonasm 17 years ago
Blue Belt
0
Hi Mike!

RemoveRegistry is supposed to work. I have never tried it myself tho, but in RemoveFile you can set files (with wildchar) that you want to delete on uninstall.

/Jonas
Posted by: AngelD 17 years ago
Red Belt
0
If the applications write registry that isn't added to the msi then they will be left alone.
Registry in the RemoveRegistry table will only be removed during installation and NOT on uninstall
Posted by: bheers 17 years ago
Second Degree Blue Belt
0
Under the regkey you want to be removed on uninstall, create a new key and change that to "Create Empty key and delete subkeys on uninstall", it would change the key to "*" after you click ok

and also

go to Registry table and replace "+" with "*".
Posted by: AngelD 17 years ago
Red Belt
0
OR add a custom action that executes "REG DELETE <KeyPath>" with condition REMOVE="ALL".
ex. "REG DELETE HKLM\Software\MyPackage\RegKey /f"
Posted by: Meic 17 years ago
Second Degree Blue Belt
0
Thanks for your replies - I went for bheers suggestion of creating new blank key with remove on uninstall option. Worked a treat...
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ