Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not Remove RegistryKeys on an upgrade #1654

Open
Aaswin1996 opened this issue Oct 8, 2024 · 2 comments
Open

Do not Remove RegistryKeys on an upgrade #1654

Aaswin1996 opened this issue Oct 8, 2024 · 2 comments

Comments

@Aaswin1996
Copy link

Current installer whenever upgrades it uninstalls the component and then installs it again .While uninstalling it also removes the registry keys . Is there some sort of a workaround using which I can ensure that during upgrades none of my registry keys are removed .

@Torchok19081986
Copy link

morning, according to stackoverflow, regkey element has property set it as "Permanent". BUT Attention on Permanent. This set regkey as System , cant be remove from installer .

Regkey("<your Defitiion>").SetPermanent(true);

something like that.
Works with Wixtoolset 3.X, for 4.X and better , dont know.

@oleg-shilo
Copy link
Owner

To me more accurate:

new RegValue("Count", 777).SetComponentPermanent(true),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants