1

Closed

NeverOverwrite attribute missing from Registry elements

description

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 9:22 AM by oleg_s
Fixed in v1.1

comments

oleg_s wrote Sep 27, 2016 at 7: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 3:19 AM

Fixed with commits#8e208993dbd3
Prepared for release