How to set a registry condition in a setup project?

Posted by serhio on Stack Overflow See other posts from Stack Overflow or by serhio
Published on 2010-05-25T10:00:36Z Indexed on 2010/05/25 10:01 UTC
Read the original article Hit count: 175

I have a setup project and I add some registry keys. Say I have a key ..\MyApplication\ServerIp key. When installing the second time I'd like that the ancient value will not be overridden.

1) What kind of "Condition" should I set in the setup properties of ServerIp registry key.

2) Is it possible to recuperate the ancient value from registry and display it in the "ServerIp" textBox in the installer dialog box? In this case the override could be unconditional.

© Stack Overflow or respective owner

Related posts about .NET

Related posts about visual-studio-2005