Installshield write a user defined property to the registry

973 Views Asked by At

I am making an installer where I have defined my own installer property. I want to store this property in the registry. As this property is only needed by the installer, I thought that the best location to store it would be:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{PRODUCT CODE}.

I use Installshield 2010 to make the installer.

What I want to know is: Is this possible and how can I do this?

1

There are 1 best solutions below

1
On

Yes, this is possible. The registry values are formatted, so you can use something like this:

[MY_PROPERTY]

The location you chose is not very good. That key is used by Windows and Windows Installer internally. You can try creating your own key under SOFTWARE, for example:

HKEY_LOCAL_MACHINE\SOFTWARE\My Company\My Application