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
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Shell Script: Suspend installation until process completes - not working
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 18, 2009
09:43 AM
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?
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?
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 19, 2009
01:40 AM
Maybe making the installer sleep a while until your script is really finished... or translate your script in Custom Code?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 21, 2009
12:00 AM
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.
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.
![](/skins/images/A5EADE085F77DE82FB3B14D6B307AE6A/responsive_peak/images/icon_anonymous_message.png)