cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

Uncontrolled silent installation on Windows?

Hi,

when running installer (with AI2013 but it was the case with 2012 at least) in silent mode on Windows, the command immediately returns unlike on Unix where the command only returns when the installation is finished.
Is there a way to workaround this bug?

Thanks,

Xavier.
Labels (1)
0 Kudos
6 Replies
pv7721
Flexera beginner

Re: Uncontrolled silent installation on Windows?

For me silent installation always worked on Windows platform as well. Have you logging enabled? Checking the installation log might be helpful in debugging the issue.
0 Kudos

Re: Uncontrolled silent installation on Windows?

pv7721 wrote:
For me silent installation always worked on Windows platform as well. Have you logging enabled? Checking the installation log might be helpful in debugging the issue.

Hi Vlad,

it works but not the same way as on Unix. On Unix when launching silent mode, the command doesn't return immediately by starting in the background a process. It only returns when the installation finishes that is what you would expect. So it's possible to retrieve the exit code and work with it. On Windows, it returns immediately and start a process in the background. How to get rid of this behavior that is not coherent between Unix and Windows?

Thanks,

Xavier.
0 Kudos

Re: Uncontrolled silent installation on Windows?

Hi,

It’s windows behaviour, that when you run a GUI Application from command prompt it will launch the process and directly give back the control to the console. In order to achieve what you are looking for do the following configuration.
1. Open the project file in IDE
2. Navigate to Build > Build Installers > Build Targets > Windows(applicable for both win32 and win64 installers) and expand the Windows platform
3. Under the JVM Search Settings there are two radio buttons “Graphical Launcher” and “Console Launcher”
4. Select the “Console Launcher” radio button.
5. Build the installer
Now run the installer from command prompt(windows).

Let me know whether this helps what you are looking for.

Regards,
Utsab Karmakar
0 Kudos

Re: Uncontrolled silent installation on Windows?

UtsabKarmakar wrote:
Hi,

It’s windows behaviour, that when you run a GUI Application from command prompt it will launch the process and directly give back the control to the console. In order to achieve what you are looking for do the following configuration.
1. Open the project file in IDE
2. Navigate to Build > Build Installers > Build Targets > Windows(applicable for both win32 and win64 installers) and expand the Windows platform
3. Under the JVM Search Settings there are two radio buttons “Graphical Launcher” and “Console Launcher”
4. Select the “Console Launcher” radio button.
5. Build the installer
Now run the installer from command prompt(windows).

Let me know whether this helps what you are looking for.

Regards,
Utsab Karmakar


Hi,

this is the solution. :)

Actually, I've found it documented since IA 2012 in the User Guide in chapter Console Installers as a note:
"If the installer is built with a console launcher and is launched from the command prompt, the prompt will wait
until the launched process is complete before opening a new prompt."

It works even when using ANT task with this parameter: OverrideAllPlatformSettings="true"
Is there an option in the ANT task to set it even if not set in the iap_xml?
The EDI is not used for building in my project and all the build targets have been completely removed.

Thanks,

Xavier.
0 Kudos
jerome_IA
Flexera beginner

Re: Uncontrolled silent installation on Windows?

Hi,

If your issue is only retrieving installer return code in testing silent mode, you can simply call your executable from inside a batch file ... that way, the script will only exits after the installer exits.

Regards

Jerome
0 Kudos

Re: Uncontrolled silent installation on Windows?

jerome_IA wrote:
Hi,

If your issue is only retrieving installer return code in testing silent mode, you can simply call your executable from inside a batch file ... that way, the script will only exits after the installer exits.

Regards

Jerome

Hi,

This also works.

Thanks,

Xavier.
0 Kudos