mmmmm indeed...
The only way to set an env variable is using under cmd.exe
set variable=blabla

Typing under cmd.exe echo %variable% returns blabla
Nothing found in the registry about "blabla".