One MSI for UI and silent Install - Advanced Installer Community
mathieu
Posts: 14
Joined: Thu Oct 23, 2014 9:06 am

One MSI for UI and silent Install

Hello,

We're planning to use AI to replace our current NSIS-based installer building system. One of the goals is to build MSIs so our clients can deploy them through GPO.
However this won't be the only installation use case. There will be a lot of 'GUI guided install' so my question is the following :

Can I build a single MSI file that could be deployed through GPOs and also be used for GUI installation?
Or do I need to make 2 builds? One for GPO installations and one for GUI installation?

I've read on some of the threads that the 'Limit to basic user interface' is sometimes involved in issues with GPO deployment.
Will I be able to make a installer with a nice look & feel but be able to deploy it through GPO also?

Thanks for you answers
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: One MSI for UI and silent Install

Hi Mathieu,

Yes, you can build an MSI with a beautiful GUI and UX that can also be deployed through Active Directory/GPO.

To make sure your MSI can be deployed successfully through GPO you must follow these rules:
  1. Do not include in the Wizard Dialogs Stage custom actions that change the system. Changing the system should be done only by deferred custom actions from Install Execution Stage.
  2. If your MSI contains custom dialogs for capturing input, like a license key for example, document this nicely with examples on your website, so that admins can find out how to deploy it. It will save you lots of time on customer support calls.
  3. Do not ask for unique user information during installation, eg. user account password or customer ID. This information should be requested upon launching the application, after it was installed. This is because admins deploy the packages over the network with a command line that must work on all machines, so if you are asking for a password, which is unique for every user, you are practically not allowing the admins to automatically deploy your application in their intranet.
  4. It is recommended to have the package install per-machine. This makes tracking/audit easier for the admins and also eases their jobs on deploying upgrades.
The following article I wrote about enterprise deployment for Windows applications contains more details. You should also take a closer look at the last section, about user data, I've seen a lot of applications incorrectly designed in this part.

Regarding what you can do in the GUI, basically anything that Advanced Installer allows you to, as long as you don't cross one of the above recommendations or try to add a custom dialog control
which requires you to activate our support for Enhanced User Interface from Themes page. This(the latter) means you will get a bootstrapper EXE, that bundles your MSI, to obtain the nicer GUI and you don't want that.

Of course, you need to have at least an Enterprise project, respectively license, to get access to our Dialogs Editor, for full editor capabilities(drag and drop controls, custom texts, trigger events, etc...).

When you will double click your MSI it will run by default with full UI (do not enable the option "Limit to basic UI"). When admins want to deploy it they will specify this command line in their consoles:

Code: Select all

msiexec /i <full_MSI_path> /qn
This will make the MSI run with silent UI, which is what they need. In that command line they can append additional parameters to customize the installation, depending on what you allow them to do. i.e. a custom install path, enter a serial number (that can be used on all machines), etc...

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mathieu
Posts: 14
Joined: Thu Oct 23, 2014 9:06 am

Re: One MSI for UI and silent Install

Thank you for this very technical answer.
All doubts are now gone.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: One MSI for UI and silent Install

As always, with pleasure Mathieu :).

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”