title: Wix registry key changing
body: <p>I'm using a WiX installer file to edit a registry entry however when it's uninstalled I want it to be set do a default value of 0.</p>
  
  <p>Here is the code I'm using to set it to 1.</p>
  
  <pre><code>  &lt;DirectoryRef Id="TARGETDIR"&gt;
  &lt;Component Id="RegistryEntries" Guid="PUT-GUID-HERE"&gt;
    &lt;RegistryKey Root="HKCU"
                 Key="Software\Microsoft\Windows\CurrentVersion\Policies\System"
          Action="createAndRemoveOnUninstall"&gt;
      &lt;RegistryValue Type="integer" Name="DisableTaskMgr" Value="1" KeyPath="yes"/&gt;
    &lt;/RegistryKey&gt;
  &lt;/Component&gt;
  </code></pre>
  
  <p></p>
  
  <p>I want it so that when it uninstalls that it does not delete the key but just sets it to 0 as I am unsure what the behaviour of the taskmanager would be if the key was deleted.</p>
  
  <p>I'm also assuming Action="createAndRemoveOnUninstall" should be something else?</p>