Quick Guide for Team Plan

A Quick Guide is dedicated to helping you quickly find the answers you need.
FAQic-arrowHow to

How to Deploy PDF Reader Pro via Command-line?

Command-line deployment is often used when automated or scripted installations are required, such as in large-scale or enterprise deployments, where manual installation through GUI may be time-consuming or impractical. 

 

 

MSI Switches

Check Microsoft documentation here.       

Command

Description

{ /?| /h}

Displays the Windows Installer version and copyright information.

/a

Applies the administrative installation option.

/f

For product repair. Enables one or more of the command-line options below:

  • p: Reinstalls only if file is missing.

  • o: Reinstalls if file is missing or if an older version is installed.

  • e: Reinstalls if file is missing or an equal or older version is installed.

  • d: Reinstalls if file is missing or a different version is installed.

  • c: Reinstalls if file is missing or the stored checksum does not match the calculated value.

  • a: Forces all files to be reinstalled.

  • u: Rewrite all required user-specific registry entries.

  • m: Rewrites all required computer-specific registry entries.

  • s: Overwrites all existing shortcuts.

  • v: Runs from source and re-caches the local package

/g

Identifies the language. Syntax: /g LanguageID

/i

Installs or configures a product.

/j

Advertises a product. If you want to install the application with elevated privileges, use /jm. Syntax:

  • msiexec /j [{u | m}] Package

  • msiexec {u | m} Package /t TransformList

  • msiexec {u | m} Package /g LanguageID

  • m: Advertises to all users of the computer.

  • u: Advertises to the current user.

/L

Specifies the path to the log file. To include the v option in a log file using the wildcard flag, type /L*v at the command prompt. The Windows Installer log file options can also be used with the uninstall and repair processes. For example, use /L*v to set verbose logging.

  • Syntax: msiexec /L [i][w][e][a][r][u][c][m][p][v][+][!]LogFile.txt

  • i: Logs status messages.

  • w: Logs nonfatal warnings.

  • e: Logs all error messages.

  • a: Logs startup of actions.

  • r: Logs action-specific records.

  • u: Logs user requests.

  • c: Logs initial user interface parameters.

  • m: Logs out-of-memory.

  • p: Logs terminal properties.

  • v: Logs verbose output. To use v, specify /L*v.

  • +: Appends to existing file.

  • !: Flushes each line to the log.

  • *: Logs all information except for the v option. This is a wildcard.

/p

Applies an update.

/q

Sets the user interface level. The modal box is not displayed if the user cancels the installation.

  • Syntax: msiexec /q{n | b | r | f | n+ | b+ | b-}

  • /qn: Displays no user interface.

  • /qb: Displays a basic user interface.

  • /qr: Displays a reduced user interface with a modal dialog box displayed at installation end.

  • /qf: Displays the full user interface with a modal dialog box displayed at the end.

  • /qn+: Displays no user interface, except for a modal dialog box displayed at the end.

  • /qb+-: Not supported.

  • /qb+!: Displays a basic user interface with a modal dialog box displayed at the end.

  • /qb-!: Displays a basic user interface with no modal dialog boxes.
    Both qb-! and qb!- provide a way to prevent users from canceling the install via a cancel button.

/t

Applies transform to advertised package. Syntax: /t TransformList

/x

Uninstalls a product.

/y

Calls the system API DllRegisterServer to self-register modules passed on the command line.

/z

Calls the system API DllUnRegisterServer to unregister modules passed on the command line.

Package Code

Specifies the globally unique identifier of the Windows Installer package. For Acrobat products, this is the GUID.

Package

Not supported. Specifies the name of the Windows Installer package file

/sAll

Run installer in silent mode.

/sPB

Silent mode with minimum UI: show the progress bar only.

/rs

Reboot Suppress. Setup.exe will not initiate reboot even if it is required.

/rps

Reboot Prompt Suppress. If reboot is required, the system restarts without warning.

/ini “PATH”

Relative or absolute path to an alternative (different) Bootstrapper INI file. The CmdLine of alternative INI will be ignored.

/sl “LANG_ID”

Set Language, where LANG_ID is the decimal code of the destination installation language. Use it only for the multilingual installer, and make sure that the corresponding language transform file exist in the setup directory. If /sl “LANG_ID” is not set and you are running the multilingual installer interactively (not silently), ‘Choose Setup Language’ dialog will be displayed.

/msi[Command line]

Identifies the portion of CmdLine for additional MSIEXEC command line parameters. Everything following /msi is passed to MSIEXEC without analyzing and without any changes.

 

 

Command-line Examples:

 

Command-line Examples:

msiexec /i "PDF Reader Pro.msi" TRANSFORMS="xxx.mst"

 

Create a log file:

msiexec /i "PDF Reader Pro.msi" /log c:\debug.txt

Note: the path to the logfile location must already exist (For example, output the debug.txt log file into C:\ drive while installation PDF Reader Pro)

 

Install the application in quiet mode (no user interaction):

msiexec /i "PDF Reader Pro.msi" /quiet INSTALLLOCATION="C:\Program Files"

 

Force an installation to overwrite the same or higher version of Foxit PDF Editor:

msiexec /i "PDF Reader Pro.msi" REMOVENEWVERSION="1"

 

Perform a Clean uninstall:

msiexec /x "PDF Reader Pro.msi" /quiet CLEAN="1"



Troubleshooting Msiexec

 

When using msiexec, if you receive an “Incorrect command line parameters” error message, verify that:

 

  • Your syntax is correct.

  • There is a space before the log file name if you use the syntax for writing a log file.

  • You have not placed a /qn switch between the /i switch and the name of the MSI file.

 

PDF Reader Pro does not troubleshoot "incorrect command line parameters" issues, please contact Microsoft directly.

 

Note: For more information about msiexec options, refer to https://technet.microsoft.com/en-us/library/cc759262(WS.10).aspx#BKMK_Install.

 

If you want to deploy PDF Reader Pro on your devices/platforms or have any questions, feel free to Contact Us and fill out the form.

 

Was this article helpful for you?
Yes
No
Get Started with PDF Reader Pro Today!