PDA

View Full Version : Uncontrolled silent installation on Windows?



Xavier Outhier
12-10-2013, 08:15 AM
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.

pv7721
12-11-2013, 05:34 AM
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.

Xavier Outhier
12-12-2013, 01:45 AM
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.

UtsabKarmakar
12-12-2013, 02:08 AM
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

Xavier Outhier
12-13-2013, 07:38 AM
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.

jerome_IA
12-13-2013, 11:07 AM
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

Xavier Outhier
12-16-2013, 03:06 AM
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.