Q104807: HOWTO: Logging an MSI Installation | ||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||
![]() | ||||||||||||||||||||||||||||||||
AdminStudio 7.5, AdminStudio 7.x, AdminStudio 8.5x, AdminStudio 8.6x, AdminStudio 8.x, AdminStudio 9.x, InstallShield 11.5 Express, InstallShield 11.5 Premier, InstallShield 11.5 Professional, InstallShield 11 Express, InstallShield 11 Premier, InstallShield 11 Professional, InstallShield 12 Express, InstallShield 12 Premier, InstallShield 12 Professional, InstallShield 2008 Premier, InstallShield 2008 Professional, InstallShield 2009 Express, InstallShield 2009 Premier, InstallShield 2009 Professional | ||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||
![]() | ||||||||||||||||||||||||||||||||
Basic MSI, InstallScript MSI | ||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||
![]() | ||||||||||||||||||||||||||||||||
All Windows | ||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||
![]() | ||||||||||||||||||||||||||||||||
To create a log file that records the progress of the installation, you need to execute your MSI package at the command line using the | ||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||
![]() | ||||||||||||||||||||||||||||||||
To log the execution of an MSI package you need to include /l along with one or more of the flags from the following table, in addition to any other command-line parameters you may be using. A path that indicates where the log file should go is also necessary. Here is an example of a command line that logs everything verbosely. This provides the maximum amount of information obtainable via logging.
Other modifiers can be used in conjunction with the /l switch. They are listed in the following table.
Other Examples Here are a few more examples of command lines that log installations. Keep track of the sequence in which actions start and stop during uninstallation:
Log just the errors:
Log events that are more minute in scope than the actions and keep track of out of memory and disk space errors:
Get a list of all of the properties and their values at the end of the installation, but append it to package.log instead of overwriting it:
Logging through setup.exe If you have built a single compressed setup.exe and do not have direct access to the MSI file, you can use setup.exe's Pass the logging-specific switches and parameters as an argument to Keep the following in mind when doing this:
To duplicate the functionality of the example above using setup.exe, the following command line can be used:
Logging in Windows Installer 4.0 and Windows Vista Windows Installer 4.0 allows MSI logging to occur on a project-wide basis without having to use the command line or configure log parameters through the registry. To learn more about this option, review the InstallShield Help article entitled Specifying Whether Windows Installer Installations Should Be Logged. | ||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||
![]() | ||||||||||||||||||||||||||||||||
Instructions for using msiexec command-line parameters with setup.exe can be found in the article Setup.exe and Update.exe Command-Line Parameters. For more information on logging, see Knowledge Base article Q105237 HOWTO: Logging an InstallScript MSI Project. For more information on logging, see these Microsoft articles:
|