Tried this again using xcopy instead of robocopy for the second test and still 
failing in both CAQuietExec cases even though running them on the target system 
after install completes works just fine.   I've also noted that if I just issue 
the commands w/o any parameters then the CAQuietExec action succeeds w/o 
errors.   So it would appear how I'm specifying parameters for the command is 
what is causing issues.

<CustomAction Id="QtExecCmdLineTestCmdLineSet" Property="QtExecCmdLine" 
Value="&quot;[WindowsFolder]system32\cmd.exe&quot; /c copy /y 
&quot;[INSTALLDIR]ReadMe.txt&quot; &quot;d:\temp\[ProductName].txt&quot;" />
<CustomAction Id="QtExecCmdLineTestCmdLineGet" Property="QtExecCmdLineDetails" 
Value="[QtExecCmdLine]" />
<CustomAction Id="QtExecCmdLineTest" BinaryKey="WixCA" DllEntry="CAQuietExec" 
Return="ignore" />

<!--<CustomAction Id="QtExecCmdLineTestCmdLineSet1" Property="QtExecCmdLine" 
Value="&quot;[WindowsFolder]system32\robocopy.exe&quot; 
&quot;[INSTALLDIR]&quot; &quot;d:\temp&quot; ReadMe.txt /z" />-->
<CustomAction Id="QtExecCmdLineTestCmdLineSet1" Property="QtExecCmdLine" 
Value="&quot;[WindowsFolder]system32\xcopy.exe&quot; /i /y 
&quot;[INSTALLDIR]ReadMe.txt&quot; &quot;d:\temp&quot;" />
<CustomAction Id="QtExecCmdLineTestCmdLineGet1" 
Property="QtExecCmdLineDetails1" Value="[QtExecCmdLine]" />
<CustomAction Id="QtExecCmdLineTest1" BinaryKey="WixCA" DllEntry="CAQuietExec" 
Return="ignore" />

Property(S): QtExecCmdLineDetails = "C:\WINDOWS\system32\cmd.exe" /c copy /y 
"D:\My Service Deliverable\ReadMe.txt" "d:\temp\My Service Deliverable.txt"
Property(S): QtExecCmdLineDetails1 = "C:\WINDOWS\system32\xcopy.exe" /i /y 
"D:\My Service Deliverable\ReadMe.txt" "d:\temp"

From: Robert O'Brien
Sent: Tuesday, April 08, 2008 8:40 AM
To: 'wix-users@lists.sourceforge.net'
Subject: CAQuietExec: Error 0x80070002: Command failed to execute.

Any insights as to what I'm doing wrong in declaring my QtExecCmdLine used by 
my two CAQuietExec in the source excerpts below?    When I review the log file 
for the property values where I store a copy of the runtime generated 
QtExecCmdLine values I see what I was expecting and I can execute these same 
commands on the target host after install completes and they work as expected..

<CustomAction Id="QtExecCmdLineTestCmdLineSet" Property="QtExecCmdLine" 
Value="&quot;[WindowsFolder]system32\cmd.exe&quot; /c copy /y 
&quot;[INSTALLDIR]ReadMe.txt&quot; &quot;d:\temp\[ProductName].txt&quot;" />
<CustomAction Id="QtExecCmdLineTestCmdLineGet" Property="QtExecCmdLineDetails" 
Value="[QtExecCmdLine]" />
<CustomAction Id="QtExecCmdLineTest" BinaryKey="WixCA" DllEntry="CAQuietExec" 
Return="ignore" />

<CustomAction Id="QtExecCmdLineTestCmdLineSet1" Property="QtExecCmdLine" 
Value="&quot; [WindowsFolder]system32\robocopy.exe&quot; 
&quot;[INSTALLDIR]&quot; &quot;d:\temp&quot; ReadMe.txt /z" />
<CustomAction Id="QtExecCmdLineTestCmdLineGet1" 
Property="QtExecCmdLineDetails1" Value="[QtExecCmdLine]" />
<CustomAction Id="QtExecCmdLineTest1" BinaryKey="WixCA" DllEntry="CAQuietExec" 
Return="ignore" />

Property(S): QtExecCmdLineDetails = "C:\WINDOWS\system32\cmd.exe" /c copy /y 
"D:\My Service Deliverable\ReadMe.txt" "d:\temp\My Service Deliverable.txt"
Property(S): QtExecCmdLineDetails1 = " C:\WINDOWS\system32\robocopy.exe" "D:\My 
Service Deliverable\" "d:\temp" ReadMe.txt /z





-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to