This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- calling bat scripts as part of installation
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 21, 2010
10:25 AM
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!!
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!!
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 21, 2010
11:22 AM
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
cmd.exe /c
Hope this helps,
Robert McMahan
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 21, 2010
12:32 PM
It seems to be working, thanks for your help!!