NeverOverwrite attribute missing from Registry elements


The ability to set NeverOverwrite in the same way as for a file is missing for registry. From the WiX schema definition for a component it says the following for the NeverOverwrite attribute.

If this attribute is set to 'yes', the installer does not install or reinstall the component if a key path file or a key path registry entry for the component already exists
Closed Dec 3, 2016 at 8:22 AM by oleg_s
Fixed in v1.1


oleg_s wrote Sep 27, 2016 at 6:51 AM

Thank you, I will see what is the best way to bring the feature in.

In a mean time you can use component attribute instead:
new RegValue(RegistryHive.LocalMachine, @"Software\MyCompany\MyProduct", "Message", "Hello")
    AttributesDefinition = "Component:NeverOverwrite=Yes"

oleg_s wrote Oct 26, 2016 at 2:19 AM

Fixed with commits#8e208993dbd3
Prepared for release