How do I create a log file for a WiX Installer?
I need to create a log file during installation of my installer created in WiX. Currently I only know the commandline option to run the MSI file and generate a log file.
But I need to create a log file by running only the MSI file normally (not in commandline), and log each process happening during installation.
Adding a WiX setup project In Visual Studio, open your solution, and add a WiX project to it: go to the Visual Studio main menu and click File -> Add -> New Project to open the Add New Project dialog. Choose the Setup Project item in the Windows Installer XML node, specify the project name and click OK.
If you're sure the machine on which your package will be installed will have MSI Installer 4.0 then you can set the MsiLogging property to your required logging options. See MsiLogging property.
Which will automatically dump a file in your $TEMP folder.
It's not ideal, but it works.
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