I am using python script to execute in custom action in wix project.
binary Id="python_script" SourceFile="myscript.py"
Custom action as:
CustomAction Id="CA_python_script" BinaryKey="python_script" Execute="immediate" Impersonate="yes" Return="check" ExeCommand=""[COMMANDPROMPT]" /c "C:\Python26\python.exe myscript.py""
I have also tried as:
CustomAction Id="CA_python_script" BinaryKey="python_script" Execute="immediate" Impersonate="yes" Return="check" ExeCommand=""[COMMANDPROMPT]" /c "C:\Python26\python.exe python_script""
failed with errors:
MSI (s) (40:14) [15:18:47:204]: Note: 1: 1721 2: CA_python_script 3: C:\Windows\Installer\MSI33F9.tmp 4: "C:\Windows\system32\cmd.exe" /c "C:\Python26\python.exe myscript.py" Error 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: CA_python_script, location: C:\Windows\Installer\MSI33F9.tmp, command: "C:\Windows\system32\cmd.exe" /c "C:\Python26\python.exe myscript.py" MSI (s) (40:14) [15:18:51:782]: Product: MY software -- Error 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: backup_Registry_Cmd, location: C:\Windows\Installer\MSI33F9.tmp, command: "C:\Windows\system32\cmd.exe" /c "C:\Python26\python.exe myscript.py"
Action ended 15:18:51: backup_Registry_Cmd. Return value 3.
what is the problem in this?