I think you should be using HKCU\Environment\

Either way, I doubt if it would become available until Windows reads the registry entry again, which is usually at Logon.