Wix registry key changing -


I am using a YX installer file to edit registry entry, but when it is uninstalled So I want to set the value of 0.

Here is the code that I am using to set it to 1.

  & lt; DirectoryRef Id = "TARGETDIR" & gt; & Lt; Component id = "registry entries" guide = "put-GUID-HERE" & gt; & Lt; Registry root = "HKCU" key = "software \ Microsoft \ Windows CurrentVersion \ Policies \ System" action = "create and removeOnUninstall" & gt; & Lt; RegistryValue type = "integer" name = "DisableTaskMgr" value = "1" keypath = "yes" /> & Lt; / RegistryKey & gt; & Lt; / Component & gt;  

I want it to be uninstalled when it does not remove the key, but it sets it to 0 because I'm sure the task manager What might be the behavior of the key that has been removed?

I also agree that action = "make and remove on uninstall" should be something else?

"Action" has been deprecated and instead you have "ForceCreateOn install" and / or "Force" Delitone Uninstall ".

You can also use the "Never overwrite" component, to make sure that the registry value is not deleted.

You can use a custom action to set a price that is only scheduled to run during the uninstallation

For custom action under the product and package < / P>

  & lt; InstallExecuteSequence & gt; Do not use UPGRADINGPRODUCTCODE as a condition for custom action. & Lt; After custom action = "YourCustomAction" = "InstallInitialize" & gt; & Lt ;! [CDATA [[UPGRADINGPRODUCTCODE NO]]] & gt; & Lt; / Custom & gt; & Lt; / InstallExecuteSequence & gt;  

Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -