Feedback

  • Contents
 

Logging and silent flag

It is recommended that logging be added to the basic command line with the preferred flag for logging (/l*vx). The "no UI" flag (/qn) will also be added so that the install is silent:

msiexec /i <PathToMSI> /l*vx <PathToLogFile> /qn

Where <PathToLogFile> is the full path to the desired log file. Again, this path should be quoted if it contains spaces.

Examples

msiexec /i "\\SoftwarePC\IC client installs\ICUserApps_32bit_2015_R1.msi" /l*vx "C:\temp\ICUserApps_32bit_2015_R1.log" /qn

msiexec /i "\\SoftwarePC\ICapps\ICuserapps\ICUserApps_32bit_2015_R1.msi" /l*vx "%temp%\ICUserApps_32bit_2015_R1.log" /qn

In the second example, the TEMP variable is used to direct the log file to the user's temp directory. In the case of a startup script (a machine script) this would be the Windows\temp directory.

Note:
If the /qn flag is added, and the install runs under a user account with UAC enabled, Windows Installer disallows the install. The reason is that when run silently, the UAC prompt cannot be popped and the user cannot allow the install. The work-around for a site with UAC enabled and running under the user account is to use /qb (reduced UI) instead of /qn. This allows the UAC prompt to be seen by the user.