Hi,
I need to run a custom action on install failure. I've added a ControlEvent for
this:
<Publish Dialog="FatalError"
Control="Finish"
Event="DoAction"
Value="CopyLogFile">
1
</Publish>
And then later...
<CustomAction Id="CopyLogFile" Property="MsiLogFileLocation"
ExeCommand="xcopy.exe /h /r /y "[MsiLogFileLocation]" c:\logs\"
Impersonate="yes" Return="ignore" />
The custom action fires when a launch condition fails. The custom action
returns an error:
MSI (c) (B4:6C) [14:24:54:088]: Doing action: FatalError
Action 14:24:54: FatalError.
Action start 14:24:54: FatalError.
Action 14:24:54: FatalError. Dialog created
MSI (c) (B4:10) [14:24:54:134]: Note: 1: 2731 2: 0
MSI (c) (B4:C0) [14:24:54:320]: Doing action: CopyLogFile
Action 14:24:54: CopyLogFile.
Action start 14:24:54: CopyLogFile.
MSI (c) (B4:C0) [14:24:54:322]: Note: 1: 1721 2: CopyLogFile 3:
C:\dev\install.log 4: "xcopy.exe" /h /r /y "C:\dev\install.log" "c:\logs\"
Info 1721.There is a problem with this Windows Installer package. A program
required for this install to complete could not be run. Contact your support
personnel or package vendor. Action: CopyLogFile, location:
C:\dev\\install.log, command: "xcopy.exe" /h /r /y "C:\dev\install.log"
"c:\logs\"
I've tried running simpler commands ("c:\windows\system32\cmd.exe /c echo
works") , checked directory permissions, etc. Still see the same failure.
What's going wrong?
Thanks,
Amit
------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users