3
votes

I have a registry value that I set to 1 during installation. What I want to achieve is that during uninstall this value should be set to 0 instead of being removed.

How do I get about doing this?

I am using Installshield 2011 and the project is a Basic MSI.

2

2 Answers

4
votes

Windows Installer doesn't support this directly. You will have to use a custom action.

2
votes

It is true that Windows Installer doesn't support creating/setting registry values during an uninstall. Strange, isn't it?

I don't know what registry value you are setting, but the install could be made simpler ( no custom action ) if you are able to modify the application to accept the lack of the registry value as equivilant to 0.