Here's the code I use to register KixGUI. I have included and install for the VB5 runtime just in case my Win 9x users don't have it installed yet:
code:
$root=createobject("KiXGUI.Desktop")
if len($root)=0
if @inwin = "1"
shell "%COMSPEC% /c Regsvr32 /s %WINDIR%\KiXGUI.dll"
else
shell "%COMSPEC% /c %WINDIR%\System\Regsvr32 /s %WINDIR%\KiXGUI.dll"
endif
$root=createobject("KixGUI.Desktop")
if len($root)=0
$GUI=ReadValue("HKEY_CURRENT_USER\Relizon","GUI")
if $GUI<>0
$Selection=MessageBox("This logon script supports a graphical user interface, however you do not have the needed files."+@CRLF+@CRLF+"Click YES to install the files, NO to choose to NEVER run the files, CANCEL to install the files later.","Relizon Logon Script",3,30)
SetConsole("Show")
cls ?
if $Selection = 6
$msvbvm50=@SCRIPTDIR+"\msvbvm50.exe"
? "Installing the needed files...please wait"
shell "$msvbvm50 /s"
?? "Files installed...thank you" ?
?? "Graphical Logon will be seen during your next logon." ?
sleep 2
endif
if $Selection = 7
if KEYEXIST("HKEY_CURRENT_USER\Relizon")=0
ADDKEY("HKEY_CURRENT_USER\Relizon")
endif
WriteValue("HKEY_CURRENT_USER\Relizon","GUI","0","REG_SZ")
endif
endif
endif
endif