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?
The WiX tools follow the traditional compile and link model used to create executables from source code. At build time, the WiX source files are validated against the core WiX schema, then processed by a preprocessor, compiler, and linker to create the final result.
The bootstrapper application DLL is responsible for displaying UI to the end-user and directs the Burn engine when to carry out download, install, repair and uninstall actions.
Steps to Install WiX on Windows 11.1 and click on the download button. Step 2: You will be redirected to the source code present in the version control system GIT, and we need to choose the appropriate .exe file and click on download. Here we have chosen wix311.exe and click on it, and then it will be downloaded.
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-
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"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With