Prerequisite silent install - Advanced Installer Community
precisiondi
Posts: 1
Joined: Wed Aug 01, 2012 6:53 pm

Prerequisite silent install

I’m trying to create a package with a Post-Install prerequisite MSI package perform a silent install using the command line. If I build that package with the "Limit to basic user interface" option unchecked it will install the Prerequisite. If check this option so that the install runs silently the prerequisite doesn’t get installed. I have tried the verbose option to see what is going on but nothing get written to the log file.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Prerequisite silent install

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

I've tested your scenario, but I cannot reproduce the behavior. Can you please give us more details about your scenario (maybe exemplify)? Also, can you tell us what version of Advanced Installer you are using?

Please keep in mind that on Windows Vista and above, in order to silently install the prerequisites packages the main installation package should run elevated. So, from "Install Parameters" page you should check "Run as administrator" option.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ferje05
Posts: 4
Joined: Tue Aug 21, 2012 11:16 pm

Re: Prerequisite silent install

Hi Daniel - wanted to ask further about this question. I am using AI 9.4 and I have a prerequisite MSI package (set in pre-install). In the Setup Files tab, I have the Silent (No UI) Install field set to /qn. The main installer package is an exe package and the UI Level is set to Full. If I execute the exe package in silent install mode from the dos command line (myInstall.exe /qn), it launches the bootstrapper UI (click next) and subsequently the prerequisite msi install diaglogs, so I cannot do a silent install of the exe package. Is Silent install not supported if the prerequisite msi is a pre-install package? Silent install (/qn)only seems to work if I switch the prerequisite msi to be a feature based package. Appreciate your response on this. Thanks.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Prerequisite silent install

Hello,

Please keep in mind that a command line received by the EXE bootstrapper will be passed to MSIEXEC when launching the main MSI. Therefore, when you run your EXE package from command line with /qn parameters, then only the bundled MSI file will run in silent mode. The EXE bootstrapper will run using the UI level set in "Dialogs" -> "Bootstrapper UI" -> "UI Level" field (in your case Full UI). So, in order to achieve what you want you should set the "Full UI" field, from "Prerequisites" -> "Setup Files" tab, to /qn, when your MSI prerequisite is added as a pre-install prerequisite.

Also, on Windows Vista and above, in order to silently install the prerequisites packages the main installation package should run elevated. So, from "Install Parameters" page you should check "Run as administrator" option.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ferje05
Posts: 4
Joined: Tue Aug 21, 2012 11:16 pm

Re: Prerequisite silent install

Thanks Daniel for your reply, that was helpful.
I was playing around with the settings some more and found that if I have my original settings, i.e prerequisite MSI (set in pre-install) + Silent (No UI) Install field set to /qn with EXE Bootstrapper UI->UI Level field set to Full UI, and run "myinstallpackage.exe /exenoui" from the command line then I get the desired result where the bootstrapper ui dialogs and prerequisite msi dialogs don't display and get executed silently (which is what I was trying to achieve). However the main exe dialogs get displayed after the msi prerequisite finishes installing, so I'm trying to figure out how to get that to run in silent mode as well. Any tips will be appreciated. Thanks in advance.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Prerequisite silent install

Hello,
However the main exe dialogs get displayed after the msi prerequisite finishes installing
Please keep in mind that after MSI prerequisite finishes the displayed dialogs are dialogs of the MSI bundled by the EXE bootstrapper.

However, in order to achieve what you want you can run your EXE package from command line like this:

Code: Select all

myinstallpackage.exe /exenoui /qn
or, from "Media" -> "Configuration" tab set the "MSI Command Line" field like this:

Code: Select all

/qn
All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ferje05
Posts: 4
Joined: Tue Aug 21, 2012 11:16 pm

Re: Prerequisite silent install

Thanks! That worked great. Appreciate your help.
AnneTheAgile
Posts: 61
Joined: Wed Jun 08, 2011 9:53 pm

Re: Prerequisite silent install; Clarification

thank you both for helping me too! I just found this post today.
The GUI confused me at first, Daniel is referring to;
"Media" -> YourExeWrapperBuildName -> "Configuration" tab -> Bootstrapper-Options -> "MSI Command Line" field.
saidit
Posts: 1
Joined: Fri Dec 21, 2012 11:49 am

Re: Prerequisite silent install

Hi,
i am new with advanced installer and i need some help,
i am using advanced installer 9.4 and i wana know how to set the prerequiste sql server express r2 to be silent
i find in one webiste this code to use on advanced installer but i dont konw how to use if, code: /QS /ACTION="Install" /IACCEPTSQLSERVERLICENSETERMS=true /FEATURES=SQLENGINE /INSTANCENAME=SQLEXPRESS /SECURITYMODE=SQL /SAPWD=password /ADDCURRENTUSERASSQLADMIN=true /SQLSVCACCOUNT="NT AUTHORITY\NETWORK SERVICE"
kind regards
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Prerequisite silent install

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

You should set the related command line in the "Install Command Lines" fields from "Prerequisites -> Setup Files" tab. Also, you can take a look on our "SQL Prereq Install similar to ClickOnce" thread which may be helpful for you.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
thierryba
Posts: 3
Joined: Tue Apr 23, 2013 9:30 am

Re: Prerequisite silent install

Hello I know this post is old but I was trying to do the same. I'm using advanced installer 9.3.
Basically I have my main application as an MSI and I have a prerequisite that installs Visual c++ runtime. If I use msiexec /quiet /i my.msi, then the prerequisite is not installed.
Is that expected?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Prerequisite silent install

Hello,

To achieve what you want just make sure you add the MSI file in the "URL" or "File path" field from "Setup Files" tab and only the /quiet command in the "Install Command Lines" fields. The msiexec /i will be automatically used by the main setup package when launching the prerequisite.

If this is still of no help, then please send us the AIP (project file) to support at advancedinstaller dot com so we can investigate its settings.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”