As another option, you could try creating a .reg file (that's a registry script file) and run it to update the registry. You can see the format of such a file by exporting data from the registry, but if I remember correctly, the format changes between different windows versions, so you should watch out for that.
___________________
Try to take over the world!