Jump to content

Setting TEMP variable


Recommended Posts

Posted

Does anyone know how do I set system TEMP variable in nLite? It looks like the available setting only affects the variable for users.


Posted

Well I could go with specific command to be executed, too.

Posted

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment

TEMP and TMP

Posted

Yeah I found that too, eventually, but how do I change that in nLite?

Posted

Under Unattended, RunOnce add something like this....

REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v TEMP /t REG_EXPAND_SZ /d D:\TEMP /f

REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v TMP /t REG_EXPAND_SZ /d D:\TEMP /f

Change D:\TEMP to whatever you like.

Posted

Thank you!

You actually made me look at the syntax as well, and I finally started to understand it a bit :)

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...