RegWrite
Read that.
If you had REG_SZ as a third parameter you will be able to write strings.
My code isn't complex when you only are using the functions and not looking at the actual code. You should have been able to put the file in your script folder.