wixtoolset / issues

WiX Toolset Issues Tracker
http://wixtoolset.org/
130 stars 24 forks source link

Temp env variable not respected in WIX 3.14.1 #8597

Open vkacharaya opened 5 months ago

vkacharaya commented 5 months ago

WiX Version

3.1.14.1

.NET or MSBuild or Visual Studio Version

.Net 3.5

HeatWave Version

N/A

Windows Version

Win 21H2

Repro Repo

No response

Repro Steps

  1. Update Global System Temp environment variable to path other than C:/Windows/Temp
  2. Execute any bundle/installer built with WIX 3.1.14.1.

Actual Result

Temporary folder is being used as C:/Windows/Temp

Expected Result

Temporary folder should be used as the newly set TEMP or TMP system env variable

Acknowledgements

bevanweiss commented 5 months ago

Have you tried this with Wix4+? I think even if it's a problem in Wix3.14 you'll be unlikely to get it changed at this stage. Wix development has moved past 3.14. You'd probably need to sponsor someone (i.e. Rob / Bob) to backport a fix if it's that important to you, and you wouldn't be submitting the fix yourself.

barnson commented 3 months ago

The current design is intentional for security reasons. It's possible the order chosen for temporary directories of elevated processes could be changed to allow more flexibility; someone would have to investigate that and discuss the security implications.