Change Registry During Uninstall
Hi, I am hoping someone can help me out. I know I could do the following by creating a custom action but was hoping for a neater solution.
I need to change registry settings during uninstall and they aren't necessarily the same settings that were there prior to install.
Here's what I tried to do:
Create new component, gave it a name.
Condition: REMOVE="ALL"
Key Path: Registry Key Path
Added registry values
Set Key to one of the registry values
That's it! Nothing seems to happen, the key values are deleted by the uninstall and a SetValue request is never run against any of the keys I've added to the component.
Any help would be greatly appreciated.
Thanks
I need to change registry settings during uninstall and they aren't necessarily the same settings that were there prior to install.
Here's what I tried to do:
Create new component, gave it a name.
Condition: REMOVE="ALL"
Key Path: Registry Key Path
Added registry values
Set Key to one of the registry values
That's it! Nothing seems to happen, the key values are deleted by the uninstall and a SetValue request is never run against any of the keys I've added to the component.
Any help would be greatly appreciated.
Thanks
0 Comments
[ + ] Show comments
Answers (5)
Please log in to answer
Posted by:
MSIPackager
14 years ago
On uninstall, the company I work for want the associations to be returned to the default Windows Media Player, however there may be other media players out there that have already changed the default association, hence why I can't just revert to this packages pre-install registry info.
Perfectly reasonable request - like the days of repackaging WinZip! Although perhaps even that comes as a decent MSI now?
Glad you've got it sorted.
Cheers,
Rob.
Posted by:
anonymous_9363
14 years ago
Posted by:
hingethunder
14 years ago
ORIGINAL: VBScab
Have you tried setting the component that sets the original registry settings to remain during an uninstall? Add '16' to whatever value is in the relevant Component Attribute cell
Unfortunately I have tried that, made no difference. I watched the registry using regmon and there was no SetValue request sent to the registry keys in question so my component isn't doing anything during uninstall.
Thanks for the suggestion though.
Posted by:
MSIPackager
14 years ago
Ian - I don't think he wants the original values made permenant, rather different (presumably the original?) values restored during uninstall.
I'd stick with a CA, I don't think it's possible in the way you are trying to achieve it - since it seems you want a component to be installed when it's the package is being removed...?!
Cheers,
Rob.
I'd stick with a CA, I don't think it's possible in the way you are trying to achieve it - since it seems you want a component to be installed when it's the package is being removed...?!
Cheers,
Rob.
Posted by:
hingethunder
14 years ago
I've gone with CA for now, maybe I was just trying to be fancy bit it just didn't work!
The install in question is for a media player which re-associates AVI, MPG etc...
On uninstall, the company I work for want the associations to be returned to the default Windows Media Player, however there may be other media players out there that have already changed the default association, hence why I can't just revert to this packages pre-install registry info.
Cheers.
The install in question is for a media player which re-associates AVI, MPG etc...
On uninstall, the company I work for want the associations to be returned to the default Windows Media Player, however there may be other media players out there that have already changed the default association, hence why I can't just revert to this packages pre-install registry info.
Cheers.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.