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
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
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
Answered 02/17/2010 by: VBScab
Red Belt

Please log in to comment
0
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.
Answered 02/17/2010 by: hingethunder
Senior Yellow Belt

Please log in to comment
0
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.
Answered 02/17/2010 by: MSIPackager
Third Degree Black Belt

Please log in to comment
0
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.
Answered 02/17/2010 by: hingethunder
Senior Yellow Belt

Please log in to comment
0
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.
Answered 02/17/2010 by: MSIPackager
Third Degree Black Belt

Please log in to comment
Answer this question or Comment on this question for clarity