title: How to modify the registry key value on uninstall without removing the key from registry in wix?
body: <p>I added a registry key value into the registry on install.And I want to modify that registry key value on uninstall but I don't want to removing that from registry.</p>
  
  <p>1)I tried with custom actions execution on uninstall to modify the registry value. But the registry values are removing  from the registry on uninstall. </p>
  
  <p>2)If I make the component to permenent then it is not modifying the key value at the time of uninstall.</p>
  
  <pre><code>  &lt;Component Id="SampleRegComp"
         Guid="3865FE52-F8EE-4E29-B321-BDF0FD6D3F58"
               Permanent="yes"&gt;
      &lt;RegistryKey Action="create"
        Key="SOFTWARE\Microsoft\Notepad"
        Root="HKCU"&gt;
        &lt;RegistryValue Name="StatusBar" Type="integer" Value="1" /&gt;
      &lt;/RegistryKey&gt;
  
    &lt;/Component&gt;
  
  &lt;CustomAction
  Id="ModifyOutlookRegInitSign_12"
  Return="ignore"
  Directory="TARGETDIR"
  ExeCommand= "&amp;quot;[SystemFolder]reg.exe&amp;quot; ADD &amp;quot;HKCU\SOFTWARE\Microsoft\Notepad&amp;quot; /v StatusBar /t integer /d 0 /f" &gt;
  &lt;/CustomAction&gt;
  </code></pre>
  
  <p>
        Installed
  </p>