27

When creating a Windows installer using the WiX (Windows Installer for XML) toolset, how do you make the install process write logging information to a log file?

Is there a command-line switch which triggers the output of the log file?

4

2 回答 2

31

The Bundle will automatically log to the %TEMP% location. A specific location for the log file can be set by passing a path to -l or -log such as: bundle.exe -l "path\to\your\log.txt"

More details are provided by FireGiant at the bottom of this article: https://support.firegiant.com/entries/24024218-Create-a-log-file-

于 2013-09-12T05:08:45.220 回答
6

You need to run your installation from the command line (preferably from an administrative command prompt) and use the -l switch as follows:

mySetup.exe -l "LogFileName.log"

于 2013-09-03T15:53:09.750 回答