/build/static/layout/Breadcrumb_cap_w.png

Custom Action Problem

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

Answers (1)

Posted by: AngelD 17 years ago
Red Belt
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.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ