Problems after changing environment variables/the location of temp files

DaxG

Reputable
Jan 25, 2016
3
0
4,510
So i changed the location of my temporary files to my hdd and now when i try install something i get this error : "C:\Users\User\Downloads\TMP=C:\Windows\Temp\RarSFX0" folder is not accessible. As you can see from the error i've changed the lcoation back to my default drive but the error is still showing up and i think its because that is not the default location.I have no idea how to find the default location or get this to work so please help thx.
 
Solution
The error you are getting is because you have TMP=C:\Users\User\Downloads\TMP=C:\Windows\Temp\RarSFX0
instead of just TMP=C:\Windows\Temp\RarSFX0
you have joined your old path to the new one.

Make sure you have a folder C:\Windows\Temp (I just use C:\TEMP, but that is what it looks like you were going for)
Then edit your environ by going to system, environment variables, and double click on both TEMP and TMP
for the value, just put C:\Windows\Temp
Under "system variables" look for the same two values and replace them too.

iXeon

Honorable
Jul 6, 2015
410
0
11,160
this way may solve your problem:
1-Goto search box
2-type environment variable
3-select Edit environment variables for your account
4-You have system variables and User variables for /Name of your account/
5-form the user variables select TEMP and click on Edit
6-in the variable value type this -- %USERPROFILE%\AppData\Local\Temp
7-do the same for the TMP
8-from the system variables find Path and select Edit
9-in the variable value type -- %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\

this should solve the problem.
 

iXeon

Honorable
Jul 6, 2015
410
0
11,160
did you restart the system after you changed the system variables?
if that doesn't work out try the way bellow
1-goto search box
2-search for CMD and run it as Administrator
3-type chkdsk C: /F and let it finish
4-restart and try installing the program again
 

jasonkaler

Distinguished
The error you are getting is because you have TMP=C:\Users\User\Downloads\TMP=C:\Windows\Temp\RarSFX0
instead of just TMP=C:\Windows\Temp\RarSFX0
you have joined your old path to the new one.

Make sure you have a folder C:\Windows\Temp (I just use C:\TEMP, but that is what it looks like you were going for)
Then edit your environ by going to system, environment variables, and double click on both TEMP and TMP
for the value, just put C:\Windows\Temp
Under "system variables" look for the same two values and replace them too.
 
Solution