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
- :
- Custom action does not wait for completion
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
‎Jun 24, 2010
10:53 PM
Custom action does not wait for completion
I am running a custom action which executes a batch file.
cmd.exe /C "[INSTALLDIR]batch.bat" [INSTALLDIR]
The commands does run which takes awhile (30-50 seconds). ISE continues with the installation without waiting for this custom action to finish. This results in the other custom actions exectued before this one completes. These subsequent actions depend on the first batch file to complete.
Wait for Action is "Yes". Does anyone know a workaround?
cmd.exe /C "[INSTALLDIR]batch.bat" [INSTALLDIR]
The commands does run which takes awhile (30-50 seconds). ISE continues with the installation without waiting for this custom action to finish. This results in the other custom actions exectued before this one completes. These subsequent actions depend on the first batch file to complete.
Wait for Action is "Yes". Does anyone know a workaround?
(2) Replies
‎Jun 30, 2010
11:54 AM
I am not sure why the custom action is not waiting for your command to finish executing. You may need to tweak your batch file so that it only finishes execution when all commands in it are finished. Try to put in a Pause statement in the batch file to see if the custom action at least waits for the duration of the Pause statement as a test.