PDA

View Full Version : Installation leaves back registry entries



Gaurav
03-08-2006, 12:35 PM
We install a product through our setup that creates registry entries which are later being read by our application. Also, there are some registry entries which are being created by the installer, but are being updated by the application too. The latter are not being uninstalled. Where are we going wrong? :confused:

rkrishnan
03-09-2006, 01:15 AM
hi!
Are u creating the registry entries using Registy View??

Gaurav
03-09-2006, 02:15 AM
Thanks for the reply, yes the reg entries are being created using the registry view itself.

puneet404
03-09-2006, 04:18 AM
We install a product through our setup that creates registry entries which are later being read by our application. Also, there are some registry entries which are being created by the installer, but are being updated by the application too. The latter are not being uninstalled. Where are we going wrong? :confused:

The registry entry which are updated by Application will not get removed by the uninstaller, so for thta you have to write custom code in InstallScript.

You need to use following code:

//To delete a Key
if (RegDBKeyExist(REG_DEFINE_SWIN) = 1) then
RegDBDeleteKey (REG_DEFINE_SWIN);
endif;

//To delete a value
if (RegDBKeyExist(REG_DEFINE_DUMPKEYPATH) = 1) then
RegDBDeleteValue(REG_DEFINE_DUMPKEYPATH,"CrashOnCtrlScroll");
endif;

Gaurav
03-10-2006, 01:58 AM
Thanks Puneet, I guess you are right there, since there are only a few reg entries that remain, we could delete them through code.