Oct 11, 2015 at 8:36 PM
Hi Oleg,

Thanks for Wix#, which we've found to be stunningly useful in our team.

We've recently had a problem where installers have deleted registry keys and destroyed important configuration for another product of ours during uninstall. One of our products keeps quite a lot of important configuration at a particular key. I was just recording the install location of the product I'm working on in the same key. During uninstall, removing the whole key rendered the first product completely inoperable. It stems from the way the ForceDeleteOnUninstall property of the RegValue class defaults to true in the version of Wix# we are using, 1.0.24.

With this property implicitly set to true, the uninstall will by default delete not just the value that was installed, but also the whole key, including any other values that might have been there.

What is the rationale for doing uninstalls this way? Can you change this default to false?

Thanks very much,
Joshua Lawrence
Oct 12, 2015 at 11:58 AM
Thank you Joshua, it is clearly a mistake.

The field default value supposed to be identical to the WiX attribute default (which is false).
The fix is committed and it will be available with the next release (in a day or two).

I sincerely hope the mistake didn't cause too much damage.

Oct 12, 2015 at 8:55 PM
Cool; thanks very much.

The problem was found in testing. It was in our source code repository for two weeks before it was noticed, but nothing was released to a customer during that time. So that worked out OK.