This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Dynamically updating web.config
Subscribe
- 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
‎Sep 16, 2008
07:18 AM
Dynamically updating web.config
Hi,
I have to change the value of the tags in the web.config, according to the environment selected during the installation. The values should be taken from Values.xml based on environment selected.
I'm a newbie to installshield. I tried with XML file changes but not much of a luck. Have checked out the help document comes with Installation but not much of a help.
If anyone has worked on something similar, please let me know how to proceed on this......
Values.XML
=========
Web.config
=========
catalog="ServerName" username="1234" password="1234"/>
catalog="Password" username="1234" password="1234"/>
catalog="Country" username="1234" password="1234"/>
Thanks! 🙂
I have to change the value of the tags in the web.config, according to the environment selected during the installation. The values should be taken from Values.xml based on environment selected.
I'm a newbie to installshield. I tried with XML file changes but not much of a luck. Have checked out the help document comes with Installation but not much of a help.
If anyone has worked on something similar, please let me know how to proceed on this......
Values.XML
=========
Web.config
=========
catalog="ServerName" username="1234" password="1234"/>
catalog="Password" username="1234" password="1234"/>
catalog="Country" username="1234" password="1234"/>
Thanks! 🙂
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 16, 2008
11:45 AM
If you are using Install Shield Script, there is a way. Here is a link.
I use this code to modify an existing web.config file. I'm sure you can modify it to suit your needs.
I use this code to modify an existing web.config file. I'm sure you can modify it to suit your needs.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 17, 2008
07:35 AM
TheTraveler,
I tried with the scripts that u have posted. However, my xmls are too big it takes a long time to compare two xmls, because it has to take the value from values.xml and replace the value in web.config file according to the variable name.
Is there any dynamic xml to xml mapping in-build feature available in installshield 2009 or anyother way to do it?
I tried with the scripts that u have posted. However, my xmls are too big it takes a long time to compare two xmls, because it has to take the value from values.xml and replace the value in web.config file according to the variable name.
Is there any dynamic xml to xml mapping in-build feature available in installshield 2009 or anyother way to do it?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 17, 2008
07:49 AM
Depending on your project type, you might find the InstallShield help topic "Using Windows Installer Properties to Dynamically Modify XML Files" or "Using InstallScript Text Substitution to Dynamically Modify XML Files" to be of use...
![](/skins/images/3B39CE851FDD5528C393F146EB70A2D0/responsive_peak/images/icon_anonymous_message.png)