Web.Config Change ConnectionString Value

Oct 15, 2009 at 9:27 PM

Hello, I need a help to configure wxs file,   I Set property RequireSQLDatabase to 1, but I need that web.config and the connectionstring change according the Server, User, Password parameters typed in the Database setup window.

Any help would be greatly appreciated.


Oct 16, 2009 at 11:38 AM

Hi mauricioP,

take a look at the documentation starting at section "XML Example (e.g.: web.config)":

"...This is an example of how to use WIX to set a connection string in a web.config file during setup..."

it is about editing the .wxs file adding an application setup step to modify a web.config file at a specific section (to be found by an qpath query) like e.g. the connection string and update it with values taken from the setup.

If you encounter problems let me know.