Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I create a log file for a WiX Installer?

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.

like image 279
furanzu Avatar asked Apr 18 '11 07:04

furanzu


People also ask

How do I create a WiX setup File?

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.


1 Answers

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.

like image 190
Damien Ryan Avatar answered Oct 18 '22 15:10

Damien Ryan