PortableApps.com Platform and Suite 1.6 have been released.

Redirect TEMP using NSIS

Simeon's picture
Submitted by Simeon on August 2, 2007 - 11:56am

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.


( categories: )

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

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

I'm not sure, but I think it

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

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