rodc
Posts: 2
Joined: Mon Jul 11, 2005 2:31 pm

Web.config key edits

In our .NET environment, we would like to update key values in our web.config file. Do you have a method to search and replace key variables in this type of file (similar to the .ini edit), or any text file for that matter?

Here is an example of the file. In the example, I would like to change the value of the DevErrors key to ON.

<?xml version="1.0" encoding="utf-8" ?>
<appSettings>
<add key="DevErrors" value="Off"/>
Mike
Posts: 292
Joined: Wed Jun 01, 2005 10:50 am
Location: Craiova, Romania
Contact: Website

Hi,

I'm afraid currently Advanced Installer does not support this feature. The support for editing INI files is provided by the Windows Installer technology.

We will consider adding support for .CONFIG files but for that please provide more details them. It would be good if you could give us more details about their structure or point us to some documentation.

At this time the only way to edit your file is using a custom action with an EXE file that would get the job done.

Regards,
Mihai
Mihai Bobaru
Advanced Installer Team
http://www.advancedinstaller.com
rodc
Posts: 2
Joined: Mon Jul 11, 2005 2:31 pm

The .NET framework uses an XML based configuration file that is formatted much like a .INI file.

Schema for .NET config files can be found at http://msdn2.microsoft.com/en-us/library/ms134238

Another article can be found at http://builder.com.com/5100-6371_14-5808512.html
Mike
Posts: 292
Joined: Wed Jun 01, 2005 10:50 am
Location: Craiova, Romania
Contact: Website

Hi,

Thank you for the additional information.

Regards,
Mihai
Mihai Bobaru
Advanced Installer Team
http://www.advancedinstaller.com
dbalsbaugh
Posts: 27
Joined: Mon Dec 11, 2006 10:41 pm

Mike wrote:We will consider adding support for .CONFIG files but for that please provide more details them.
I am currently evaluating AI 4.5 and am curious if this feature was added in this version. If not, I would be curious to know how others are solving this problem. I am aware of custom actions and would be interested to see anyone's sample vbs or dll code to replace keys/values in web.config files.

Thanks,

Dan
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Dan,

This feature is not currently implemented. We have it on our TODO list (I increase it's priority) and will be available in a future version of Advanced Installer.

Kind Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
dbalsbaugh
Posts: 27
Joined: Mon Dec 11, 2006 10:41 pm

Thanks for the response.
greenstone90
Posts: 1
Joined: Thu Nov 01, 2007 10:26 pm

Does the current build support editing the web.config file?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Currently this feature is not supported by Advanced Installer, but the next release which is scheduled in the near future will include a XML editor feature.

The editing of web.config files will not be supported directly by a User Interface, but it can be done through the XML editor.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
tnomore
Posts: 16
Joined: Wed Oct 31, 2007 5:14 pm

cosmin wrote:Hi,

Currently this feature is not supported by Advanced Installer, but the next release which is scheduled in the near future will include a XML editor feature.

The editing of web.config files will not be supported directly by a User Interface, but it can be done through the XML editor.

Regards,
Cosmin
Hi.

Is there a release date for this feature?

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

Hi,

I'm afraid that we haven't established a date, but the next version of Advanced Installer will be released this week.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Feature Requests”