this line is missing a comma before "reg_sz" (if it isn't a typo)
WriteValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Runonce", "A MultiString variable", "Line 1" "REG_SZ")

the second example will not work if the keys are not there.

_________________________
How to ask questions the smart way <-----------> Before you ask