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.

edit XML file during installation process

1 reply to this topic


  • Members
  • 1 posts

Posted 04 May 2005 - 08:37

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

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"?>
<add key="first_key" value="VALUE" />
<add key="second_key" value="VALUE" />

Thank you


  • 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)