[wix-users] WiX Bundle: How to Write to Log from ExePackage?

Sean Hall r.sean.hall at gmail.com
Mon Mar 28 15:24:00 PDT 2022

There is a feature request for this at

The way to do it in v3 is to use the ExePackage/@LogPathVariable attribute
to provide a Variable name. Then pass that Variable in the InstallCommand
attribute, for example " -log [MyExeLogPath]". And make your .exe parse
that command line argument and log everything to that file.

On Mon, Mar 28, 2022 at 4:13 PM Bryan Dam via wix-users <
wix-users at lists.wixtoolset.org> wrote:

> We have an ASP.NET Core site that we want to install.  It requires the
> .Net Core Hosting bundle which itself requires that IIS be installed and,
> as experience has taught us, the app pool restarted after the .Net Core
> install.   I've solved this by creating a WiX bundle and writing custom
> EXEs to install IIS and restart the app pool in the right sequence.  It
> works, so that's good.
> What I'd like to be able to do though write from my custom EXEs into the
> log files that get automatically generated by the bundle execution. Our
> site's MSI installer and the .Net Core installer generate logs but my own
> EXEs do not.  I have tested them interactively and they output to the
> console (Console.Writeline()) but that doesn't seem to be the trick.
> Any suggestion for how to output from my custom EXEs so that it gets
> picked up by the install logs?
>        Thanks,
>            Bryan
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/

More information about the wix-users mailing list