I'm logged in via Remote Desktop Connection as a domain user on a Windows Server 2019 (OS Build 17763.1432).
I tried to install an .exe file but directly getting the error: "0x8007010b - GetTempFileNameW: The directory name is invalid."
Running the .exe as administrator doesn't help. The .exe is also not blocked (file properties).
In cmd I typed echo %TMP%
and the output was:
C:\Users\.<removed>.\AppData\Local\Temp\2
when browsing to that folder, I saw that only ..Local\Temp\
exists but not the subdirectory \2
(= the session id).
(see: https://devblogs.microsoft.com/oldnewthing/20110125-00/?p=11673 )
QUESTION:
Why does echo %TMP%
show my temporary folder + session id, but the folder itself doesn't exist. Is this on purpose?
(trying to figure out how to get the .exe installer working without having to manually adding folders with the current correct session id number...)