cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Flexera beginner

How to edit web.config file run time using Install shield


Hi,

How to edit web.config file using Install shield
ie: I need to change Data Source/user name/password while running setup file created in Install shield
( need to get running pc IP and to be repalced in web.config file )


Below is web.config file entry


<?xml version="1.0"?>
<configuration>
<connectionStrings>

<add name="Sourcedb" providerName="System.Data.SqlClient" connectionString="User ID=sa;Password=test123;Data Source=192.168.1.51;Initial Catalog=TESTDB;Connection Reset=true;Enlist=true;Pooling=true;Max Pool Size=100;Min Pool Size=1;"/>

</connectionStrings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/>
</startup>
</configuration>

 

Also how to find server ip address and SQL Server instance within Install shield

Using Install shield Basic MSI Project

 

Thanks and Regards

Binu

Labels (1)
0 Kudos
1 Reply
Highlighted
Flexera
Flexera

Re: How to edit web.config file run time using Install shield

@BINUTB,
Try using xml file changes view for editing the web.config or you can configure your own custom action.
https://helpnet.flexerasoftware.com/installshield25helplib/helplibrary/XMLFileChangesView.htm
0 Kudos