I had to modify a service dependency, which is a multistring registry type.
did a simple:
 Code:
if not instr(readvalue("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\BITS","dependonservice"),"wohoo")
 $=writevalue("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\BITS","dependonservice",readvalue("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\BITS","dependonservice")+"|wohoo","REG_MULTI_SZ")
endif

after applying this to "few" computers, I was suprised to find that the resulting string was:
RpcSs
EventSystem|wohoo

instead of:
RpcSs
EventSystem
wohoo

to note, no, I didn't use wohoo and no I didn't modify BITS.
First I thought my syntax was wrong but then the manual even has an example:
 Code:
WriteValue("EZReg\Test", "A MultiString variable", "Line 1|Line 2|Line 3 with a || in it|", "REG_MULTI_SZ")

If @ERROR = 0

   ? "Value written to the registry"

Endif

so, this a bug or what???
_________________________
!

download KiXnet