[wix-users] WiX Bundle: How to Write to Log from ExePackage?
bryand at recastsoftware.com
Mon Mar 28 14:13:31 PDT 2022
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?
More information about the wix-users