- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- How to edit web.config file run time using Install shield
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
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
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)