Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to log an installation made from a WiX bundle

Tags:

logging

wix

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?

like image 789
Ken Richards Avatar asked Sep 03 '13 15:09

Ken Richards


People also ask

How does WiX Installer work?

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.

What is a bootstrapper in WiX?

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.

How do I download WiX Installer?

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.


2 Answers

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-

like image 163
Rob Mensching Avatar answered Oct 17 '22 22:10

Rob Mensching


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"

like image 45
Ken Richards Avatar answered Oct 17 '22 22:10

Ken Richards