BluesClues
Posts: 2
Joined: Fri Jul 25, 2008 2:23 pm

Modifying a Registry Key Value

I'd like to modify a system registry key value upon installation of a package and restore it back to it's previous value upon uninstall. Is there a way to do this?

I can set it up so that when I install a product, it modifies the registry key value but when I uninstall the product, the registry key is deleted. This is not what I want.

Being more specific, Let's say on install I want to set the following Key:

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Parport\Tag

From 1 (the value it's set to before I install my package), to 2 (the value I want it after I install my package).

Then when I uninstall, I want to set it back to 1 (the original value).

Any ideas?

Thanks,
Rich
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Modifying a Registry Key Value

Hi Rich,

There is another thread about this, please take a look:
http://www.advancedinstaller.com/forums ... 53&p=13292

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”