cancel
Showing results for 
Search instead for 
Did you mean: 
ragava28
Flexera beginner

Suite/Advanced UI 2014 : setup not waiting for bat file execution to complete

Hi All,

We have a complex  installer architecture .Any suggestions on this would be helpful.

We have 4 Installers from 4 different Teams. I have to create unified installer.with some prerequisites.

below are the brief details about 4 installers

1. Created Using Installsheild. 

2.Create using Microsoft Msi project.

3. An self extract and running exe , on click of exe it Unzips all the files and runs bat file (as bootstrap) after unzipping, and bat file runs powershell  script to install 4 sub(child) installers and executes some custom scripts after each sub installer.

4. An self extract and running exe , on click of exe, it Unzips all the files and runs bat file (as bootstrap) after unzipping, and bat file runs powershell  script to install 3 sub(child) installers and executes some custom scripts after each sub installer.

I started with Suite/Advanced UI Project. thinking  of creating a new setup file which would simply initiate the Child installer & rest would be taken care the child installer.  and which worked-fine for 1 & 2nd .

But for 3rd and 4th  installer , after extracting the Zip file when ever bat is initiated. Set up shows a error saying "Looks like installer failed . do still want to continue." and setup finises . but bat file continues calling Powershell script and  installing   child installers. i.e setup is not waiting for bat to complete.

do we have to change any settings so that installers waits for bat file completion? 

 Any suggestions on this would be helpful.

Thanks 

Raghu 

 

 

0 Kudos
1 Reply
Flexera banna_k
Flexera

Re: Suite/Advanced UI 2014 : setup not waiting for bat file execution to complete

@ragava28  : 

Suite/Advanced UI Project do not know about the functionality of your configured executable package, whether it executes batch file or powershell script. 

As per the information you have updated here, it looks like your executable package extracts the files and trigger the batch file, then immediately it returns (non zero value) without waiting for the batch file to complete.

So, here you have to modify your executable to wait for the batch file/powershell script execution completion. Inherently, Installshield Suite/Advanced UI Project also wait for the execution of your executable package configured in your 3rd and 4th steps.

And you have mentioned your setup ends the execution without completing all the packages ("Set up shows a error saying "Looks like installer failed . do still want to continue." and setup finises").  This behavior you can control by changing the values in the Package  Properties under the "Common" tab-> Operation->Install->Exit Behavior.  And see whether you can make the exe to wait by passing command line parameter, then you can configure the command line parameter at "Common" tab-> Operation->Install->EXE Command Line.

So, ensure your executable wait for batch/script execution.

 

 

 

 

 

 

 

  

   

0 Kudos