Mark Line wrote:
What would be the best way to edit the config file? is it possible to edit
the file before install or should it be done after the installation? [The
config file is not XML, its plan text]
The only two standard file modification actions are XML files (via WiX's
XmlConfig and XmlFile) and .ini files (using the IniFile element). If
it's something else, you'll need a custom action.
I've been looking at CustomAction's, but as I'm extending the mondo wixUI I
don't seem to have a <installUISequence>, so I'm unsure how to add it to the
end of the installation
Any custom action that modifies the machine state needs to be deferred,
happening in InstallExecuteSequence.
I'm quite happy writing Vbscripts or c++? would a custom DLL or script be
the "correct" way to handle this
Definitely C++ is better. There are a bunch of problems with VBScript
custom actions.
<http://www.joyofsetup.com/2007/06/07/when-vbscript-and-jscript-custom-actions-are-even-more-evil/>
Simple file i/o is pretty easy. Deferred CAs are pretty tough so if you
can tweak something like IniFile to work for you, definitely take that
route.
--
sig://boB
http://joyofsetup.com/
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users