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 &quot;schtasks /create /sc daily /tn &quot;foo\databasecleanup&quot; /tr abc.exe /f&quot;"      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

Popular posts from this blog

How to get the arclen between two curve points in Maya? -

git svn - Unignore directories in git-svn (adding directories to a sparse checkout) -

C++ Linked List -