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!

robert.bell
Posts: 1
Joined: Wed Oct 02, 2013 2:32 pm

Can't write into XML file

I have a config file Program.exe.config located in the Program Files folder along with the executable. I am trying to update a value that the user enters into the value for the hostURI as shown below. The file is not touched during run time. However, during test the file is updated by adding a new attribute into same node as shown at the bottom.

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
<appSettings>
<add key="rootURI" value=""/>
</appSettings>
</configuration>

...after test...

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
<appSettings>
<add key="rootURI" value="" rootURI=""/>
<add key="rootURI" value="" />
</appSettings>
</configuration>
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Can't write into XML file

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

Can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them? 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 “Building Installers”