[wix-users] Changing the log file location

Vanniekerk, Tyrel (GE Healthcare) tyrel.vanniekerk at ge.com
Fri Aug 19 08:57:05 PDT 2016


Hi,

In a previous email someone said that you can in fact change the log level and log filename in a WiX MSI (not indirectly via a bootstrapper).  So I have tried everything, but nothing affects the log file location other than the -l option for misexec.

I can see the MsiLogFileLocation property being changed, but it never really takes effect.  The same type of message is shown when the property is changed via the command line option.

This is where it gets set by the command line option:
MSI (c) (C4:F4) [10:43:32:450]: PROPERTY CHANGE: Adding MsiLogFileLocation property. Its value is 'D:\log.txt'.

This is where my custom action changes it:
MSI (c) (C4!F4) [10:43:32:747]: PROPERTY CHANGE: Modifying MsiLogFileLocation property. Its current value is 'D:\ log.txt'. Its new value: 'C:\Users\MyUser\AppData\Local\Temp\MyLog-160819104332.log'.

The log file is still created in the D:\log.txt, the second value is ignored.  I keep reading it's possible to change the log filename (Windows Installer 4+) and they say to change that property, but changing it in the XML does not seem to have any effect other than logging it.

I also tried just setting it directly with a property, no go.

Thanks,
Tyrel


More information about the wix-users mailing list