You are here

Redirect TEMP using NSIS

4 posts / 0 new
Last post
Simeon
Simeon's picture
Offline
Last seen: 9 years 8 months ago
DeveloperTranslator
Joined: 2006-09-25 15:15
Redirect TEMP using NSIS

Does anyone know how to redirect the TEMP variable to a different folder so the host PC's folder doesnt get filled with "portable" files?
I am trying Griffith and it would be a great help.
Thanks.

m2
Offline
Last seen: 13 years 4 months ago
Joined: 2006-12-12 12:00
It seems like a lot of work

It seems like a lot of work with the registry.
For sure you have to change:
HKEY_CURRENT_USER\Environment\TEMP
HKEY_CURRENT_USER\Environment\TMP
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Cache
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\Cache
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Cache\Paths\(...I have 4 keys here)

It may not be enough, I'd try to redefine also HKEY_LOCAL_MACHINE\SYSTEM\ControlSetxxx\Control\Session Manager\Environment\TEMP and
HKEY_LOCAL_MACHINE\SYSTEM\ControlSetxxx\Control\Session Manager\Environment\TMP , which needs administrative rights.

"Those people who think they know everything are a great annoyance to those of us who do." Asimov

Simeon
Simeon's picture
Offline
Last seen: 9 years 8 months ago
DeveloperTranslator
Joined: 2006-09-25 15:15
thanks

Isnt it enough to change the system variable TEMP/TMP?
“I can live with doubt and uncertainty and not knowing. I think it is much more interesting to live not knowing than to have answers that might be wrong.” - Richard P. Feynman

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

m2
Offline
Last seen: 13 years 4 months ago
Joined: 2006-12-12 12:00
I'm not sure, but I think it

I'm not sure, but I think it isn't. Try and you'll know Smile

"Those people who think they know everything are a great annoyance to those of us who do." Asimov

Log in or register to post comments