Hi,
it would be nice to have the ability to add a registry key or value item to the uninstall configuration file. In that case it would be possible to delete a registry entry without using UNINDATA_SCRIPTS.
There could be a new ItemType for the UninstallData.AddItem named UNINDATA_REGISTRY, that would work like a Registry.DeleteKey or Registry.DeleteValue.
Suggestion for ItemType:
CONSTANT : UNINDATA_REGISTRY
VALUE : 7
DESCRIPTION : A registry key or value to be uninstalled
ItemData UNINDATA_REGISTRY
KEY : MainKey
TYPE : number
DESCRIPTION : The main or "root" key where you want to delete the key. Choose from
KEY : SubKey
TYPE : string
DESCRIPTION : The sub key to delete, in case Value is an empty string "" or nil, otherwise the sub key that contains the value.
KEY : Value
TYPE : string
DESCRIPTION : The value to delete. To specify the "(Default)" value, use an empty string "" as the value name. Deleting the "(Default)" value results in the removal of the key and all of its values.
Code:-- Deletes the value "InstallPath" from the sub key HKEY_LOCAL_MACHINE\Software\My Application. UninstallData.AddItem(UNINDATA_REGISTRY, {MainKey=KEY_LOCAL_MACHINE,SubKey="Software\\My Application",Value="InstallPath"}); -- Deletes the sub key "My Application" from HKEY_LOCAL_MACHINE\Software. UninstallData.AddItem(UNINDATA_REGISTRY, {MainKey=KEY_LOCAL_MACHINE,SubKey="Software\\My Application"});
Best regards,
Udo

