Issue
- ESET Secure Authentication fails to install or upgrade
-
The following error appears in ESET Secure Authentication install or upgrade logs:
System.IO.FileNotFoundException: Could not find file 'C:\Windows\SystemTemp'
Solution
Use one of the following methods (locally or remotely) to resolve the error:
Apply the system variable using the Windows Settings app
-
Press the Windows key + R, type
sysdm.cpl, and click OK.
Figure 1-1 -
Click the Advanced tab and click Environment Variables.
Figure 1-2 -
In the System variables section, click New to add a new system variable.
Figure 1-3 -
In the Variable name field, type
COMPlus_Disable_GetTempPath2andin the Variable value field, typetrue. Click OK.
Figure 1-4 -
Click OK → OK to save the changes and try to install or upgrade ESET Secure Authentication again.
- When the ESET Secure Authentication installs or upgrades successfully, you can delete the system variable you created in step 4.
Apply the system variable using PowerShell (before installation)
-
To apply the system variable to machines remotely and then run the ESA installation:
Set-ItemProperty -Path
"HKLM:SYSTEM\CurrentControlSet\Control\Session Manager\Environment"-Name"COMPlus_Disable_GetTempPath2"-Value"true"You can also run the PowerShell command, by proxy, from the CMD:
powershell.exe Set-ItemProperty
"-Path 'HKLM:SYSTEM\CurrentControlSet\Control\Session Manager\Environment'-Name'COMPlus_Disable_GetTempPath2'-Value'true'"