PDA

View Full Version : Custom Action Problem



scripto
12-05-2006, 12:20 PM
I followed 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!

TsungH
12-05-2006, 08:37 PM
If your custom action is scheduled for immediate execution, you may want to change it to deferred.

scripto
12-06-2006, 11:21 AM
Yeah, that worked. Thanks for the help.