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