Unattended (silent) installation - Advanced Installer Community
Smadash
Posts: 16
Joined: Thu Aug 06, 2009 9:44 pm

Unattended (silent) installation

Hi,

I am using the Advanced Installer 8.0.2 enterprise edition, and creates my installation packag as a single executable.
Is there a way, like running the executable with command line parameters, to run the installation unattended using the default settings ? That means
without the user need to go through the wizard dialogs.

Thanks

Asher
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Unattended (silent) installation

Hi Asher,

Of course you can run the installer silently, here are more details.

Regarding the MSI file included in the EXE setup file, you wil also need to specify its UI level. This article explains more.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Smadash
Posts: 16
Joined: Thu Aug 06, 2009 9:44 pm

Re: Unattended (silent) installation

Thank you Bogdan,

For some reason, I tried to use the 'Mypackage.exe /exenoui' but the installation runs with full UI.
The MSIEXEC command line switches worked, i used 'Mypackage.exe /qn', and it was installed silently, the
problem I have with that is that my installation package launches my application after the installation finishes,
and when I used the MSIEXEC command line switches it never did.
My first questions is what did I do wrong that caused the advanced installer proprietary command line switches to
be ignored, and the second one, is there a way to tell the MSIEXEC to launch an installed executable when the installations
finishes successfully?

Thank you

Asher
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Unattended (silent) installation

Hello Asher,
My first questions is what did I do wrong that caused the advanced installer proprietary command line switches to be ignored
The proprietary command line switches affect only the language selection dialog and the dialogs in the prerequisite wizard. In order to also affect the MSI package please use the standard MSIEXEC command line parameters. Note that the MSI parameters must come after the bootstrapper parameters.
is there a way to tell the MSIEXEC to launch an installed executable when the installations finishes successfully?
If you need to launch a file after the silent installation has completed you can use the steps from "The user cannot decide if the file will be launched" section of this how to from our user guide.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
henrik.g.j.eriksson
Posts: 6
Joined: Tue May 14, 2019 1:14 pm

Re: Unattended (silent) installation

Hi,
I cannot run the installer with /exenoui command, it will install the .exe with UI.
Extracting the msi and executing it with msiexec.exe /i <target> starts the UI with the message "this package can only be run from a bootstrapper"

What are the settings to be used?

FYI
Am in need to make a silent installations using chocolatey packages.
The installer has custom action, to execute additional file after "Finish execution". During quiet installation, will this still work?
henrik.g.j.eriksson
Posts: 6
Joined: Tue May 14, 2019 1:14 pm

Re: Unattended (silent) installation

Solved it. Adding on the msi command.
"myapp.exe /exenoui /qn"

And the custom action is executed
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Unattended (silent) installation

Hello Henrik,

I am really glad you got this working.

Please keep in mind that the "/exenoui" parameter will launch the EXE with no UI. However, our EXE is just a boostrapper for the MSI. If you do not pass the silent parameter (/qn) for the MSI as well, it will be launched will full UI.

For instance, the pre-install UI (the case when you have pre-install prerequisites in your project) is handled by the EXE bootstrapper and it requires the Enhanced User Interface option. If the /exenoui parameter will be passed, the EXE UI will not be displayed.

You can try the following sample in order to see the changes:

- create a new project

- add a new pre-install prerequisite (make sure the prerequisite is not already installed on the machine)

- run the package --> the pre-install UI is displayed

- run the package again with /exenoui parameter --> the pre-install UI is no longer displayed

Hope things are more clear now.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”