web.config - Advanced Installer Community

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!

amalborn
Posts: 6
Joined: Fri Dec 05, 2008 8:03 pm

web.config

HI
I'm creating an ASP VB.NET application that uses a database.
During the installation the user enter some data to create a String connection. At the end of the installation I need to add this String Connection to my web.config file. How can I do this?

Thanks
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: web.config

Hi,

If your .config file is basically an XML, you can import it as an XML in your Advanced Installer project. After that, you can use the XML Editor to add the property which contains the string to the file. Another approach would be to use a custom action to write into the file. Please note that the User Guide contains the Write text into a file how-to which may help you.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
amalborn
Posts: 6
Joined: Fri Dec 05, 2008 8:03 pm

Re: web.config

Thnaks. I'm going to try to do this.

Return to “Common Problems”