[wix-users] Getting the logs of the current user when the Installer is ran as different user
gmatzen at osisoft.com
Wed Apr 5 09:35:42 PDT 2017
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.
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
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.
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
More information about the wix-users