Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

edit XML file during installation process


1 reply to this topic

mcs

mcs
  • Members
  • 1 posts

Posted 04 May 2005 - 08:37

Hello
I have an application in .NET that have an XML configuration file
The task is how to make an installation package that read command line params and edit XML configuration file
ex:

setup.exe /first_key=value_for_first_key /second_key=value_for_second_key

configuration file of application:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<add key="first_key" value="VALUE" />
<add key="second_key" value="VALUE" />
</appSettings>
</configuration>

Thank you

_nick_

_nick_
  • Members
  • 34 posts

Posted 04 May 2005 - 14:01

You could install the xml file, have your custom action run after the file is installed and then update the xml file. Alternatively you could just generate the entire thing in a custom action (assumes the xml file isn't overly large)