[wix-users] Getting the logs of the current user when the Installer is ran as different user

Gerhard Matzen gmatzen at osisoft.com
Wed Apr 5 09:37:29 PDT 2017


I also believe that the log folder will be configurable in a future version of wix.  I believe that I saw a bug filed in this regard.  

I would still be wary of permissions issues.  My log file copy is always best effort.

-----Original Message-----
From: Gerhard Matzen 
Sent: Wednesday, April 5, 2017 9:36 AM
To: 'erwin john publico' <erwinjohnpublico at yahoo.com>; wix-users at lists.wixtoolset.org
Subject: RE: [wix-users] Getting the logs of the current user when the Installer is ran as different user

Before setup exits, I always copy our log files to a user-neutral location.  We put them in a sub-folder under %programdata%.

I believe the user's %temp% is used by default because the user is guaranteed to be able to write to their own temp folder.

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of erwin john publico
Sent: Wednesday, April 5, 2017 6:04 AM
To: wix-users at lists.wixtoolset.org
Subject: [wix-users] Getting the logs of the current user when the Installer is ran as different user

Hi All,
Assume I have User1 and Admin1 accounts. I am logged in as User1 but my standard bootstrapper requires admin priviledges, so I ran the installer as different user Admin1. The problem is, instead of getting the C:\Users\User1\AppData\Local\Temp as the [TempFolder], I get C:\Users\Admin1\AppData\Local\Temp 

How can I get the TempFolder of the currently logged user where the logs are actually saved?
I asked previously on the thread "Burn variable is set to Temp when using reference windows folder" and the answer is that there is no support for the standard bootstrapper to change where it logs to.
Thanks,Erwin

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/



More information about the wix-users mailing list