[wix-users] Preserve registry values on Major Upgrade

Luca Bacci luca.bacci982 at gmail.com
Mon Jul 2 09:00:06 PDT 2018


Thank you very much!

Aside from the property solution, what do you think of the method described
here on Stack Overflow? https://stackoverflow.com/a/25363029

2018-07-02 17:32 GMT+02:00 Hoover, Jacob <Jacob.Hoover at greenheck.com>:

> Property drive the values, and use RegistrySearch's to give them the user
> customized values or a logical default.
>
> Another option, if this is a per machine install, would be to directly
> control the defaults in HKLM, and have the app be aware of the default
> location but have the HKCU be written and controlled by the app.
>
> -----Original Message-----
> From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf
> Of Luca Bacci via wix-users
> Sent: Monday, July 2, 2018 10:17 AM
> To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> Cc: Luca Bacci <luca.bacci982 at gmail.com>
> Subject: [wix-users] Preserve registry values on Major Upgrade
>
> Hello, I have many registry values that I create on install and are values
> for user preferences / customization. In my wix project I have a component
> with many registryvalue elements
>
> <Component Id="cmpRegSettings" Directory="TARGETDIR" Guid="*">
>   <RegistryKey Key="Software\My\App\Settings" Root="HKCU">
>     <RegistryValue Name="A" Value="120" Type="integer" />
>     <RegistryValue Name="B" Value="80" Type="integer" />
>     ...
>   </RegistryKey>
> </Component>
>
> Their value are set to the default when installing for the first time. I'm
> now implementing major upgrade and I need to leave existing preferences as
> set by the user. What's the best way to do it?
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>


More information about the wix-users mailing list