[wix-users] Changing the log file location

Vanniekerk, Tyrel (GE Healthcare) tyrel.vanniekerk at ge.com
Fri Aug 19 09:37:18 PDT 2016


That's what it's starting to look like.  Even though some people are convinced you can change it, I am thinking that you can only change it from a bootstrapper or by calling your installer via msiexec.  Which means you cannot control the uninstall log, repair log or modify log.  We used InstallShield for all our installers, until they wanted a little over $48,000 to renew our license for software that had basically the same UI, even down to the same bugs as it had with IS 7 back in 2000'ish.  Regardless, with InstallShield we could set the log file given the requirements we have.  They don't want the log files to ever overwrite each other and be in a known location with known filenames.  I am getting a bad feeling about this... :-(

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Phill Hogland
Sent: Friday, August 19, 2016 11:23 AM
To: wix-users at lists.wixtoolset.org
Subject: EXT: Re: [wix-users] Changing the log file location

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 https://urldefense.proofpoint.com/v2/url?u=http-3A__www.firegiant.com_&d=CwICAg&c=IV_clAzoPDE253xZdHuilRgztyh_RiV3wUrLrDQYWSI&r=oAJIeMTNC3Z6LlnozAjna4bWEZCGLInzcwB6EkZAFeU&m=igz5gTbyc-qOpuXky_HqqQf3MR1yFNbXYt1oJ-ZMjXY&s=gSlaO4VYjKc0npGImnFUmir3nbPpQtfJi7Onc9oyY5E&e= 

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant https://urldefense.proofpoint.com/v2/url?u=http-3A__www.firegiant.com_&d=CwICAg&c=IV_clAzoPDE253xZdHuilRgztyh_RiV3wUrLrDQYWSI&r=oAJIeMTNC3Z6LlnozAjna4bWEZCGLInzcwB6EkZAFeU&m=igz5gTbyc-qOpuXky_HqqQf3MR1yFNbXYt1oJ-ZMjXY&s=gSlaO4VYjKc0npGImnFUmir3nbPpQtfJi7Onc9oyY5E&e= 



More information about the wix-users mailing list