Someone told me that there is a way for CustomAction on WIX to display output in the console log. I include .exe called XmlPreprocess.exe to manipulate my web.config based on the parma in a file called SettingsFileGenerator.xml.
I run like this: msiexec / i bin \ Debug \ TFBIC.RCT.WCFWebServicesWIXSetup.msi / L * V "C: \ logs \ WixInstall01.log"
This is my WIX build file:
<CustomAction Id="**SAMPLE_CONFIG**" BinaryKey="XMLPREPROCESS" ExeCommand="/i:"[INSTALLLOCATION]web.config" /x:"[INSTALLLOCATION]SettingsFileGenerator.xml" /e:QA /d:ServiceLocation=[SERVICELOCATION]" Execute="deferred" />
<Binary Id="XMLPREPROCESS" SourceFile="../TFBIC.RCT.WCFWebServices/RequiredBins/XMLPreprocess.exe" />
<InstallExecuteSequence>
<Custom Action="SAMPLE_CONFIG" After="StartServices"><![CDATA[NOT Installed]]></Custom>
</InstallExecuteSequence>
The installation log shows this:
Action 15:22:27: StartServices. Starting services
Action start 15:22:27: StartServices.
MSI (s) (58:CC) [15:22:27:898]: Note: 1: 2205 2: 3: ServiceControl
MSI (s) (58:CC) [15:22:27:898]: Note: 1: 2228 2: 3: ServiceControl 4: SELECT `Name`,`Wait`,`Arguments`,`Event`, `Action` FROM `ServiceControl`, `Component` WHERE `Component_` = `Component` AND (`Action` = 0 OR `Action` = 1 OR `Action` = 2)
Action ended 15:22:27: StartServices. Return value 1.
MSI (s) (58:CC) [15:22:27:899]: Doing action: SAMPLE_CONFIG
Action 15:22:27: SAMPLE_CONFIG.
Action start 15:22:27: **SAMPLE_CONFIG**.
SAMPLE_CONFIG:
Action ended 15:22:27: **SAMPLE_CONFIG**. Return value 1.
This is my first attempt to make WIX, so please bear my ignorance.
thanks
UPDATE:
This is a quote from another forum - but it does not indicate how this works, and it does not seem to check often.
WiX , MSI, .
: http://xmlpreprocess.codeplex.com/Thread/View.aspx?ThreadId=79454
, ?
http://wix.sourceforge.net/manual-wix2/qtexec.htm
:
LGHT0103: 'wixca.dll'.
.dll .