changing config file after installation

igorananda

New member
Joined
Jun 5, 2009
Messages
2
Programming Experience
1-3
I'm using app.config to store database connection strings.
My question is. Is it possible to manual change configuration file on the user's computer after installing msi file. for example if I decide to change to the dev database vs live.

Thank you.
 
You can simply edit the XML file by hand if desired, but you can write code to do it.

[ame=http://www.vbforums.com/showthread.php?t=532768]Protected Configuration (Encrypting Config Files)[/ame]


You can just ignore the encryption part if you want and concentrate on the editing part. If you do want to encrypt the connection string, which may be a good idea if it contains a password, then obviously editing by hand wouldn't be possible so you'd have to do it in code.
 
Back
Top