Save all user inputs from SQLConnectionDLG into a web.config - Advanced Installer Community
osherk
Posts: 41
Joined: Mon Apr 20, 2015 11:55 am

Save all user inputs from SQLConnectionDLG into a web.config

Hi,

I wonder what is the best way to save all user inputs from SQLConnectionDLG into a web.config file which is located under [APPDIR].

Thanks!
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Save all user inputs from SQLConnectionDLG into a web.co

Hello,

In order to create the config file, you can use the XML Editor feature. Please take a look on the How do I import and edit an XML file? article with related information for hints and guidance.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
osherk
Posts: 41
Joined: Mon Apr 20, 2015 11:55 am

Re: Save all user inputs from SQLConnectionDLG into a web.co

Hi,

I opened web.config file which is in 'Application Folder' and edited it as the attached screenshot.
Before running the advanced installer, the web config has only the following tag: <connectionStrings/ >

After running the AI I expected to see in the file the following:
<connectionStrings >
<add name="MyConnString" connectionString="Data Source="localhost";Initial Catalog="Billing";Persist Security Info=True;User ID="sa";Password="*****"" providerName="System.Data.SqlClient"/>
</connectionStrings >

But the file has no changes at all after running the AI. Did I expect something wrong? Did I set something wrong? What did I miss here?

******** Important Remark: if I use the 'Test' for the xml file, it is updated OK! *****************

Many thanks!
Attachments
SQL.png
SQL.png (30.99 KiB) Viewed 3476 times
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Save all user inputs from SQLConnectionDLG into a web.co

Hello,

In order to have a better view about this, can you please send us the .AIP (project file) and a verbose log of the installation process to support at advancedinstaller dot com so we can investigate it? If it contains confidential information you can send us a small test project which reproduce this behavior.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”