Maintain keys in the register at deinstallation (WiX Toolset)



  • I'm making installer. Changes are made in some keys when the programme is installed in the register (they are rewritten with new values). How do you keep these keys when you deinstall the program?



  • The installer has entered the keys into a separate component and has the properties Permanent="yes"♪ Example:

    <Component Id="PermanentRegValues" Permanent="yes">
        <RegistryValue Root="HKLM" 
                       Key='REG_PATH' 
                       Name='Value' Type='string' 
                       Value='Это значение останется навсегда'/>
    </Component>
    

    In this case, the component will not be removed when the programme is removed and the keys will not be removed accordingly.


Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2