cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
nnjcsc
Level 6

Shell Script: Suspend installation until process completes - not working

My installation is not waiting for my shell script to finish.

I am calling a shell script from the Excecute Script/Batch file action.
I have enabled "Suspend installation until process completes".
The installation screen shows the action is starting but it is not waiting for the script to finish.

I'm calling the shell script with this syntax.
sh MyPath/MyShellScript.sh

I executed my script manually successfully to make sure it was correctly.
I tested a dummy script in IA that just writes output, it it runs successfully.

My problem may be my shell script is calling other shell scripts and once the first script is launched, it does not wait for the subsequent scripts to finish. I know this is has been an issue in InstallShield.

Is there another way to call my shell script so IA will wait for all the scripts to finish before continuing the installation?
Labels (1)
0 Kudos
(2) Replies
pv7721
Level 20

Maybe making the installer sleep a while until your script is really finished... or translate your script in Custom Code?
0 Kudos
brightspectrum
Level 2

I was having the same exact problem while launching the Oracle installer. When I ran the setup command it was launching the installer in another process. This caused my script to exit immediately and carry on with the next steps.

In my case I got around the problem by using a -waitforcompletion argument that cased the setup to run in the same process. Maybe whatever you are trying to run has a similar option.
0 Kudos