In RhinoScript I am having trouble writing to a REG_MULTI_SZ ( ClosedRuiFileList )
I have followed the example from here: https://msdn.microsoft.com/en-us/library/windows/desktop/aa393465(v=vs.85).aspx
Dim strKeyPath,MultValueName,strComputer,oReg,iValues
Const HKEY_LOCAL_MACHINE = &H80000002
strKeyPath = "SOFTWARE\McNeel\Rhinoceros\5.0x64\Scheme: Default\Window Positions\Docking Toolbars"
MultValueName = "ClosedRuiFileList"
iValues = Array(“string1”, “string2”)
strComputer = "."
Set oReg = GetObject(“winmgmts:{impersonationLevel=impersonate}!\” & strComputer & “\root\default:StdRegProv”)
oReg.CreateKey HKEY_LOCAL_MACHINE, strKeyPath
oReg.SetMultiStringValue HKEY_LOCAL_MACHINE, strKeyPath, MultValueName, iValues
Any help much appreciated,
Keith