cmd - Wix installer failing when trying to run a console command -
i'm trying add custom action wix installer, 1 runs console command. fragment looks this:
<customaction id="adddbcleanuptask" property="cmd" execommand= "[systemfolder]cmd.exe /c "schtasks /create /sc daily /tn "foo\databasecleanup" /tr abc.exe /f"" execute="deferred" return="check" impersonate="no" /> </fragment>
and how call it:
<installexecutesequence> <custom action="adddbcleanuptask" after="installfiles"/> </installexecutesequence>
i run installer console line
msiexec /i mypackage.msi /l*v log.txt
so log file. when run installer, runs fine until encounters task, error message , installation rolls back. relevant lines in log file not helpful:
action 13:38:56: adddbcleanuptask. msi (s) (7c:80) [13:38:56:158]: executing op: customactionschedule(action=adddbcleanuptask,actiontype=3122,,target=c:\windows\syswow64\cmd.exe /c "schtasks /create /sc daily /tn "foo\databasecleanup" /tr abc.exe /f",) msi (s) (7c:80) [13:38:56:158]: note: 1: 1721 2: adddbcleanuptask 3: 4: c:\windows\syswow64\cmd.exe /c "schtasks /create /sc daily /tn "foo\databasecleanup" /tr abc.exe /f" error 1721. there problem windows installer package. program required install complete not run. contact support personnel or package vendor. action: adddbcleanuptask, location: , command: c:\windows\syswow64\cmd.exe /c "schtasks /create /sc daily /tn "foo\databasecleanup" /tr abc.exe /f" msi (s) (7c:80) [13:39:04:675]: product: foobar -- error 1721. there problem windows installer package. program required install complete not run. contact support personnel or package vendor. action: adddbcleanuptask, location: , command: c:\windows\syswow64\cmd.exe /c "schtasks /create /sc daily /tn "foo\databasecleanup" /tr abc.exe /f"
action ended 13:39:04: installfinalize. return value 3.
i have tried running command that's in execommand property run dialog, worked. ideas what's going on?
Comments
Post a Comment