How to prevent Windows Installer (Mobile) from being installed from the Registry key values ​​registry

I terminate a Windows Mobile (6.1) application I wrote and everything is going well and dandy, but I have one annoying problem: my application needs multiple registry keys for settings, and I can create them by the installer (using the registry editor) in ok, but my problem is that every time I run the installer to update to a new version of the software, it overwrites these registry values.

Is it possible to create a .cab installer that creates the specified registry keys if they don't exist, but leaves them alone if they do.

Also, can I fix if I assume that the setup project automatically deletes all uninstall registry keys that it created during setup?

Thanks for a bunch in advance!

+1


a source to share


2 answers


I'm not sure if you have that kind of control over the regsitry setting in the INF installer.



What you need to do is create a setup dll that will give you all the control you need to do what you want. The problem is that you need to write it in C or C ++, but that should be easy enough since all you want to do is set the registry keys.

+2


a source


No custom DLL required. Use FLG_ADDREG_NOCLOBBER (0x00000002) in the INF entry for your reg key.



+2


a source







All Articles