Silent MSI installer (from EXE file) - Advanced Installer Community
IceMan
Posts: 2
Joined: Fri Oct 11, 2013 9:18 pm

Silent MSI installer (from EXE file)

Hello everyone. I have a small problem and I need your help. I have downloaded the trial version of Advanced Installer. I selected the option to convert EXE file to MSI, entered my application name, pointed to the .exe file, at package option I have selected "Silent installation (simple progress and error handling)" and then clicked finish. The MSI package is succesfully created. What I want to do is to install this newly converted msi package silently. So I opened cmd as Admin and entered "msiexec /i name_of_program /qn /quiet". The installer starts, but it shows GUI (buttons next,...).

What am I doing wrong? How to make a MSI from EXE to install silently? I have followed this guide (http://www.advancedinstaller.com/user-g ... o-msi.html), but it didn't resolve my issue. Also this guide didn't help (http://www.advancedinstaller.com/user-g ... stall.html), as I am already using these switches (/qn, /quiet). Do I have to enter something at "Install command lines (Full UI, Basic UI, Silent UI)"?
IceMan
Posts: 2
Joined: Fri Oct 11, 2013 9:18 pm

Re: Silent MSI installer (from EXE file)

Anyone, please?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Silent MSI installer (from EXE file)

Hi and welcome to Advanced Installer forums,

The "Silent installation (simple progress and error handling)" option you selected in the wizard directs Windows Installer to display only a dialog with a progress bar showing the evolution of the installation and the message boxes that display error messages. This means that the main .MSI is set to run with basic UI but the problem is that .EXE you included in the .MSI is not.
The solution is to set the silent command line for the .EXE in the Prerequisites page -> YourEXE -> Setup Files tab -> Basic UI field. Be sure to check with the author of the .EXE package for the silent command line.

The correct .MSI silent command line is something like :

Code: Select all

msiexec.exe /i "C:\Example.msi" /qn
(don't use both argument options like you did)

Please keep in mind that by running the above silent command line, the basic UI behavior you set from the wizard and described in my first paragraph will be overridden. My recommendation is to keep the basic UI setting and loose the /qn switch. Basic UI is used especially for unassisted or automated installs (e.g deployment through Group Policy).

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”