Hi,
It's all there in the code sample in my earlier post, root can use the class constant CL_GUI_FRONTEND_SERVICES=>HKEY_LOCAL_MACHINE, key and value I use text literals for the repository path and the value.
reg_value needs to be a variable of type string.
Regards,
Nick