So I have this CustomAction that performs a database synchronization and
I would like to take the output and put it in a log file:

    <CustomAction Id="DeployDatabase"
        FileKey="VSDBCMD.EXE"
        ExeCommand=' /a:Deploy [DEPLOYFLAG] /cs:"Data
Source=localhost;Initial Catalog=[TARGETDB];Integrated Security=True"
/dsp:Sql /model:"[APPPATH][DBPROJECT]\[DBPROJECT].dbschema"
/p:TargetDatabase="[TARGETDB]" /Script:"[APPPATH]Output\[TARGETDB].sql"'
        Execute="deferred"
        Return="ignore"
        HideTarget="no"
        Impersonate="no" />

I tried adding the following, but it does not seem to like ">>". Am I
missing something simple?

    <CustomAction Id="DeployDatabase"
        FileKey="VSDBCMD.EXE"
        ExeCommand=' /a:Deploy [DEPLOYFLAG] /cs:"Data
Source=localhost;Initial Catalog=[TARGETDB];Integrated Security=True"
/dsp:Sql /model:"[APPPATH][DBPROJECT]\[DBPROJECT].dbschema"
/p:TargetDatabase="[TARGETDB]" /Script:"[APPPATH]Output\[TARGETDB].sql"
>> "[APPPATH]Output\[TARGETDB].log"'
        Execute="deferred"
        Return="ignore"
        HideTarget="no"
        Impersonate="no" />

Of course if I execute the resultant command manually it works fine.

-       Phil
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to