[wix-users] Changing the log file location
Phill Hogland
phill.hogland at rimage.com
Fri Aug 19 09:22:34 PDT 2016
I think MsiLogFileLocation is a read-only property that is set by the engine to allow you to point a user to the log's location.
________________________________
From: wix-users <wix-users-bounces at lists.wixtoolset.org> on behalf of Vanniekerk, Tyrel (GE Healthcare) <tyrel.vanniekerk at ge.com>
Sent: Friday, August 19, 2016 10:57:05 AM
To: wix-users at lists.wixtoolset.org
Subject: [wix-users] Changing the log file location
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
____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
More information about the wix-users
mailing list