Sagi1981
Sagi1981

Reputation: 345

How do I modify a registry value during uninstall (Basic MSI project)

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.

Upvotes: 3

Views: 917

Answers (2)

Christopher Painter
Christopher Painter

Reputation: 55600

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.

Upvotes: 2

Ciprian
Ciprian

Reputation: 3565

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

Upvotes: 4

Related Questions