AirWatch Headless Installers

Overview

In order to aid installing AirWatch, some of the AirWatch installers can be run in a headless/silent mode. This is accomplished by running the installers via command line with specific arguments passed to the installer over the command line. These arguments take place of the prompts that you'd normally work through when running an installer.

Installers Which Support Headless Mode

  • AirWatch application installer (8.2+)
  • AirWatch database installer (8.2+)

Known Limitations

  • In headless mode, required prerequisites (like IIS and Java) cannot be installed. These need to be installed prior to attempting to run the installers in headless mode.
  • The database installer will default to registry values over command line values. If the DB connection details change between installations, these values should be deleted out of the registry first.

Running In Headless Mode

Msiexec Specific Arguments

There are a few flags that need to be passed to an installer to tell Msiexec that you wish to run the installer headless. Additionally, these flags determine log level. All of the installers need the same flags passed to it when running via command line. Examples for how to run these installers are provided specific to each installer, however the table below explains Msiexec-specific flags requiired.

Value Explanation Example Value
/s
This flag specifies that Msiexec should expect arguments to be passed to it.  
/V
This flag specifies verbose logging for Msiexec.  
/qn
This flag tells the installer to run in headless mode.  
/lie
This flag sets the logging level for the installer. Directly preceding this needs to be the log path.
/lie C:\path\to\log.file

 

AirWatch Application Installer

Arguments

Value Explanation Example Value
TARGETDIR
This is the directory where AirWatch should be installed to.
TARGETDIR=E:\AirWatch
INSTALLDIR
This is the directory where AirWatch should be installed to.
INSTALLDIR=E:\AirWatch
AWSETUPCONFIGFILE
Path to the configuration file.
AWSETUPCONFIGFILE=C:\path\to\config.xml

 

Configuration XML

The application installer requires too many properties to pass via command line, so to simplify configuration, the installer will accept an XML file with the majority of the properties set in said file. Below are a few example XMLs attached for review. Detailed configuration of these XML files is outside of the scope of this document at this time.

 

Example Command

AirWatch_Application_8.4_Full_Install.exe /s /V"/qn /lie D:\Installs\AppInstall.log TARGETDIR=E:\AirWatch INSTALLDIR=E:\AirWatch AWSETUPCONFIGFILE=C:\path\to\config.xml"

 

Note: If you're running these commands via PowerShell, you need to provide escape characters around the quotes (' for PowerShell). Also, there is no space between /V"/qn because Msiexe expects arguments to begin directly after the quote. Placing a space here would result in an error.

 

AirWatch Database Installer

Arguments

The database installer requires the following arguments passed to it via command line. 

Value Explanation Example Value
TARGETDIR
This is the directory where AirWatch should be installed to.
TARGETDIR=E:\AirWatch
INSTALLDIR
This is the directory where AirWatch should be installed to.
INSTALLDIR=E:\AirWatch
IS_SQLSERVER_AUTHENTICATION

Authentication type used to connect to the database server.

0 = Windows Auth

1 = Basic Auth

IS_SQLSERVER_AUTHENTICATION=1
IS_SQLSERVER_SERVER
Path to the database.
IS_SQLSERVER_SERVER=ATLP-DB01.COMPANY.ORG\2008R2
IS_SQLSERVER_USERNAME
Username to connect to the database.
IS_SQLSERVER_USERNAME=username
IS_SQLSERVER_PASSWORD
Password to connect to the database.
IS_SQLSERVER_PASSWORD=password
IS_SQLSERVER_DATABASE
Name of database.
IS_SQLSERVER_DATABASE=awdb

 

Example Command

AirWatch_DB_8.4_Setup.exe /s /V"/qn /lie D:\Installs\DBInstall.log TARGETDIR=E:\AirWatch INSTALLDIR=E:\AirWatch IS_SQLSERVER_AUTHENTICATION=1 IS_SQLSERVER_SERVER=ATLP-DB01.COMPANY.ORG\2008R2 IS_SQLSERVER_USERNAME=DBUSER IS_SQLSERVER_PASSWORD=DBPASSWORD IS_SQLSERVER_DATABASE=AIRWATCHDB"

 

Note: If you're running these commands via PowerShell, you need to provide escape characters around the quotes (` for PowerShell). Also, there is no space between /V"/qn because Msiexe expects arguments to begin directly after the quote. Placing a space here would result in an error.

Have more questions? Submit a request

0 Comments

Article is closed for comments.