We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

deatiit86
Posts: 13
Joined: Sat Nov 10, 2012 3:13 am

Installing web.config if not present and edit

I have the following requirements:

- On install, copy web.config from the installer to the filesystem.
- If the web.config file already exists do not copy the file from the installer
- search for connection strings (there are 3) and update them using XML edit

I did this by adding the web.config as a normal file but to not overwrite if it already exists.

Then I added the web.config file again as an XML file.

However, the existing file never gets updated.
deatiit86
Posts: 13
Joined: Sat Nov 10, 2012 3:13 am

Re: Installing web.config if not present and edit

Any help with what I could try next to properly update (or retain) and then edit the web.config file will be appreciated.

Thanks.
-Arun
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Installing web.config if not present and edit

Hello Arun,

In order to achieve what you want you can try a similar approach like the one explained in our "alter XML file content based on radiobox in dialog" thread.

Let us know if this helps, otherwise please give us more details about your scenario.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”