' This script will add a value to the system registry.
' We do this by creating a .reg file and then executing "regedit
' an external process so it will access the system registry instead
' virtual registry.
Function OnFirstParentStart ' We
need to create the .reg file in a place which has IsolationMode set
' Merged, so we can access it easily from both the virtual
' script) and the system environment (regedit /s). One directory
' a Merged IsolationMode by default is the %Personal% directory, so
' create the reg file there
RegFileName = ExpandPath("%Personal%\thin.reg")
Set fso = CreateObject("Scripting.FileSystemObject")
Set RegFile = fso.CreateTextFile(RegFileName, true)