I have a registry entry in the Run key as follows:
type = REG_SZ, value = test, data = %temp%\test.exe
When I reboot my machine test.exe does not run, but if I do the full path of the temp folder (something like "C:\Documents and Settings\XPMUser\Local Settings\Temp") then it does run it upon reboot.
What's up with this?
I also tried type of REG_EXPAND_SZ but it still didn't work.

REG_EXPAND_SZshould work for the Run key. Try opening a command-prompt and running the commandset temp. Does it show the variable expanded? Try opening an elevated command-prompt and repeat. Does it expand the variable now? – Synetech Mar 11 '11 at 20:18