cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Sameer_
Level 3

calling bat scripts as part of installation

Hi,

I'm trying to call a batch script as part of my package, for this i have created a custom action. Below are the properties of my custom action:

Working Directory: System
Filename & CommandLine: cmd.exe "[InstallDir]\Deploy_UI_bat"
Return processing: Synchronous [Check exit code]
In-Script execution: Deferred Execution
Install UI Sequence :
Install execute sequence: After InstallFiles
Install execute condition:

When I have executed the installer, the command prompt is opening during the installation but the above command is not showing up & is not getting executed. I have to manually close the command prompt and immediatly after that I'm getting below error:

Error:1722.There is a problem with this installer package.A program run as part of installation did not finish as expected.
ActionDeployUIbat,location: "C:\windows\...\Deploy_UI_bat"

Please provide some inputs!!
Labels (1)
0 Kudos
(2) Replies
bobmcm461
Level 6

Try using the /c command line option. This will automatically close your command windows when the script completes.

cmd.exe /c

Hope this helps,
Robert McMahan
0 Kudos
Sameer_
Level 3

It seems to be working, thanks for your help!!
0 Kudos