/build/static/layout/Breadcrumb_cap_w.png

preserving registry key after uninstall

my understanding from the windows installer sdk is that in order to keep an application registry key from being removed on uninstall, one should put a + for the name and some dummy value for the value as a name value pair under that key. i'm doing this thru the registry table in my msi file and the key i'm doing it for is still getting deleted on uninstall. I'm stumped by this and would appreciate info on it. Thanks.

0 Comments   [ + ] Show comments

Answers (3)

Posted by: yageroy 20 years ago
Yellow Belt
0
i see what the problem is. the key has to be added in some way other then thru the registry table of the installer, when i add that key manually, after installing without it, on uninstall, the key i want preserved is preserved. so now i have to figure out how i want to add the key since i can't use the registry table as i was doing.
Posted by: Fishy 20 years ago
Senior Yellow Belt
0
One way to preserve a key after uninstall is to add the key in question into a seperate component and then set that component to be left behind on uninstall.
Posted by: yageroy 20 years ago
Yellow Belt
0
thanks, i was doing it for a while with a custom action calling a vbscript to write the key, i've taken that out though because i think the natural installer behavior will actually be ok for me.
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