Problem with registry...

thiya

Newcomer
Joined
Apr 22, 2005
Messages
7
Hi all:

Im using the visual studio.net 2002 to create the msi package.I am facing problem with the windows registry:

My Installtion package created the "Mysoftware" folder under the "HKCU\SOFTWARE\" in registry.After my installation finished,installed program get the username and password from user and stored
under the path "HKCU\SOFTWARE\"Mysoftware" in the registry

keys are:
Username JOhn
password @#$%^

During the next version installation i need to include the new key "Insallationpath:c:\programfiles\Mysoftware.exe" in same location in registry as created in previous installtion.

Thanks in advance
But whenever installed the new upgraded version to the target machine, deleted the username and password and only the instalationpath will be exist on user machine.

The new key should be created without deleting previous keys in the path "HKCU\SOFTWARE\"Mysoftware"


How can i add a new key without deleting the previous key during upgraded version installation


Thanks in advance :confused:
 
Does the upgrade uninstall the old version? If so, check the DeleteAtUninstall property of the key in the Registry Editor.

Check also the AlwaysCreate property. It should be set to false.
 
Back
Top