I followed Macrovision Q111515 on how to launch batch file using custom action but I'm getting error 1722 in the installer logs. My batch files is located in INSTALLDIR and simply calls cacls <dir> /t /e /g users:c. The custom action does "[SystemFolder]cmd.exe" /c "[INSTALLDIR]runcacls.cmd". Set InstallExecSeq to after CreateShortcuts and Installexeccondition to VersionNT. I'm getting the following errors in my log.


MSI (s) (24:5C) [11:31:09:984]: Note: 1: 1722 2: runcacls 3: C:\WINDOWS\system32\ 4: "C:\WINDOWS\system32\cmd.exe" /c "C:\Program Files\STIXW8\modperms.cmd"
Action start 11:31:09: runcacls.
MSI (s) (24:5C) [11:31:10:016]: Product: STIX Occupational Health and Safety System -- Error 1722.There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor. Action runcacls, location: C:\WINDOWS\system32\, command: "C:\WINDOWS\system32\cmd.exe" /c "C:\Program Files\STIXW8\modperms.cmd"

Error 1722.There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor. Action runcacls, location: C:\WINDOWS\system32\, command: "C:\WINDOWS\system32\cmd.exe" /c "C:\Program Files\STIXW8\modperms.cmd"

Any help would be appreciated!
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Does the command return any errorlevel except for 0? If so and the command executes successful then set the custom action to ignore any exit code or set the correct exit code in the batch file.
Answered 12/05/2006 by: AngelD
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity