perfect thanks, i am pretty sure i have been bit by this one before o_OFrom: 
[EMAIL PROTECTED]: [EMAIL PROTECTED]; [EMAIL PROTECTED]: Tue, 10 Jul 2007 
11:58:42 -0700Subject: RE: [WiX-users] CAQuietExec in merge module path problem














In order to set the property to include another property you
have to use a CustomAction

 

Try <CustomAction Id="PropertyCA" Property="QtExecDeferred" 
Value="&quot;[TOOLS]/mytool.exe&quot;”
/>

 

 

 





From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of steve
baker
Sent: Tuesday, July 10, 2007 11:22 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] CAQuietExec in merge module path problem





 


i have a merge module that needs to fire off a CAQuietExec custom action:

<Property Id="QtExecDeferred" Value='"Tools\mytool.exe"'
/>
<CustomAction Id="QtExecDeferred" BinaryKey="WixCA"
DllEntry="CAQuietExec" Execute="deferred"
Return="check"/>

<InstallExecuteSequence>
   <Custom Action="QtExecDeferred"
Before="InstallFinalize"/>
</InstallExecuteSequence>

my installation fails and rolls back with this error in the log:

CAQuietExec:  Error 0x80070002: Command failed to execute.
CAQuietExec:  Error 0x80070002: CAQuietExec Failed

i am thinking it is a path problem and it cant find the exe because if i
comment out the custom action and run the same commandline after the install
everything is fine, the exe to run is specified in the merge module in a tools
subdirectory like this:

<Directory Id="TARGETDIR" Name="SourceDir">
   <Directory Id="MergeRedirectFolder">
      <Directory Id="TOOLS"
Name="Tools">
         <Component
Id="mytool.exe" Guid="{SOME-GUID}">
            <File
Id="mytool.exe" Name="mytool.exe" KeyPath="yes"
Source="mytool.exe" />       
         </Component>

...

i would like to use a fully qualified path but haven't been able to figure out
how to get the QtExecDeferred property to be fully qualified (properties like
INSTALLDIR dont seem to be accessible? i tried a few different things like
this:

<Property Id="QtExecDeferred"
Value='"[MergeRedirectFolder]\Tools\mytool.exe"' />
or
<Property Id="QtExecDeferred"
Value='"[TARGETDIR]\Tools\PerformanceCounterCreator.exe"' />


and got the following results in my log:

QtExecDeferred.THE_MODULE_GUID =
"[MergeRedirectFolder]\Tools\mytool.exe"
and
QtExecDeferred.THE_MODULE_GUID = "[TARGETDIR]\Tools\mytool.exe"


please help...

TIA








-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to