By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,289 Members | 1,486 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,289 IT Pros & Developers. It's quick & easy.

Windows Installer Registry Setting Properties

P: n/a
Hi,

How exactly do you use the condition property to tell the installer not to
overwrite changed registry values?

Initially, I want certain registry values within a given key set to the
value contained within the registry view (right click the install project
and navigate to View->Registry). However, if the user runs the setup.exe
again, I don't want the registry values to be overwritten if they have been
changed. Thus, I am trying to figure out how to use the condition property
to prevent this from happening.

For example, I want the following registry key value created if it does not
exist when the setup.exe is run:
Registry key: HKEY_LOCAL_MACHINE\SOFTWARE\MyCompany\
Value: SocketIP = "127.0.0.1"

However, if the user changes the value of SocketIP to "192.168.1.102", I do
not want the value overwritten if the user needs to rerun the setup.exe to
repair the installation.

This doesn't work:
SocketIP=""
SocketIP="127.0.0.1"
=""
="127.0.0.1"

Any help will be appreciated....

Thanks,
Dave

Nov 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.