views:

17

answers:

0

I've a setup project in Visual Studio 2005 that writes a couple dozen registry entries. These entries store user configuration data which the user populates through use of the installed application.

I've now released an updated version of the application, and generated a new setup package accordingly. Unfortunately, when I run this to upgrade a users computer, the registry entries are re-written by the setup package (back to the install defaults) and the user looses all their configuration settings.

I understand that a condition can be created for each of the registry entries in the VS setup deployment tool, however I'm not sure of the syntax to use to make the registry entry assert only if said registry entry doesn't already exist on the target machine.

Apologies if this is a little rudimentary, I've just opened this project back up after several years of not having to touch it!

Thanks, Duncan