Jump to content

Need help, Confused by Variables


Recommended Posts

I make a new unattendet Xp (Sp3) cd and want to set all users Temp directory to \Windows\Temp so Admin simply can delete all users Temp files.

I have try, in the Environment settings, to use variable settings because i dont want to lock the install Cd to install on C: drive, maybee i later want to install Xp on a D: drive . . .

I have try this settings in my RegTweak:

[HKEY_CURRENT_USER\Environment]

"TEMP"="%systemroot%\\Temp"

"TMP"="%systemroot%\\Temp"

And

[HKEY_CURRENT_USER\Environment]

"TEMP"="%Temp%"

"TMP"="%Temp%"

When i use the First one it's work fine, but Windows Update hang when install the first AxtivX it needed to continue the update process.

When i use the Second one, Windows Update work fine, but some of my software, like Regshot, get confused and Crash. And maybe other software to, who know's . .

Someone know what's the right choise ?

Is it my software there is outdatet ?

Best Regards

Edited by Christine_ts
Link to comment
Share on other sites


I make a new unattendet Xp (Sp3) cd and want to set all users Temp directory to \Windows\Temp so Admin simply can delete all users Temp files.

I have try, in the Environment settings, to use variable settings because i dont want to lock the install Cd to install on C: drive, maybee i later want to install Xp on a D: drive . . .

I have try this settings in my RegTweak:

[HKEY_CURRENT_USER\Environment]

"TEMP"="%systemroot%\\Temp"

"TMP"="%systemroot%\\Temp"

And

[HKEY_CURRENT_USER\Environment]

"TEMP"="%Temp%"

"TMP"="%Temp%"

When i use the First one it's work fine, but Windows Update hang when install the first AxtivX it needed to continue the update process.

When i use the Second one, Windows Update work fine, but some of my software, like Regshot, get confused and Crash. And maybe other software to, who know's . .

Someone know what's the right choise ?

Is it my software there is outdatet ?

Best Regards

You need to specify a REG_EXPAND_SZ data string instead of REG_SZ.

Use the following:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Environment]
"TEMP"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
00,25,00,5c,00,54,00,65,00,6d,00,70,00,00,00
"TMP"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,\
25,00,5c,00,54,00,65,00,6d,00,70,00,00,00

Link to comment
Share on other sites

I make a new unattendet Xp (Sp3) cd and want to set all users Temp directory to \Windows\Temp so Admin simply can delete all users Temp files.

I have try, in the Environment settings, to use variable settings because i dont want to lock the install Cd to install on C: drive, maybee i later want to install Xp on a D: drive . . .

I have try this settings in my RegTweak:

[HKEY_CURRENT_USER\Environment]

"TEMP"="%systemroot%\\Temp"

"TMP"="%systemroot%\\Temp"

And

[HKEY_CURRENT_USER\Environment]

"TEMP"="%Temp%"

"TMP"="%Temp%"

When i use the First one it's work fine, but Windows Update hang when install the first AxtivX it needed to continue the update process.

When i use the Second one, Windows Update work fine, but some of my software, like Regshot, get confused and Crash. And maybe other software to, who know's . .

Someone know what's the right choise ?

Is it my software there is outdatet ?

Best Regards

You need to specify a REG_EXPAND_SZ data string instead of REG_SZ.

Use the following:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Environment]
"TEMP"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
00,25,00,5c,00,54,00,65,00,6d,00,70,00,00,00
"TMP"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,\
25,00,5c,00,54,00,65,00,6d,00,70,00,00,00

Thank you, that's it !

Ten Point's to Mongo66

:thumbup

Edited by Christine_ts
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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