Click here to return to the KiXtart HelpDesk main page...

KiXtart Script Depot

What do you do with Laptops and Dialups

; Author: Kevin Murphy
; Email: kmurphy@paymentech.com
; What do you do with Laptops and Dialups

; ** section for detecting lmscript version and copying kix32.exe (along with dll's to
; ** lmscript.exe(95), and copying kix locally(NT) if in the "Slm-Laptop Users" group

if INGROUP("Slm-Laptop Users")
  if @INWIN=2

    $filever=GetFileVersion("c:\windows\system\lmscript.exe")
    if $filever <> "3, 47, 0, 0"
      copy "g:\installs\util\kix\kix32.exe" "c:\kix32.exe"
      copy "g:\installs\util\kix\kx16.dll" "c:\kx16.dll"
      copy "g:\installs\util\kix\kx32.dll" "c:\kx32.dll"
      copy "g:\installs\util\kix\kx95.dll" "c:\kx95.dll"

      $temp=WriteValue("HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\WINDOWS\CurrentVersion\RunOnce","UpdateKix","%COMSPEC% /c COPY c:\KIX32.EXE c:\windows\SYSTEM\lmscript.exe /y","REG_SZ")
      $temp=WriteValue("HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\WINDOWS\CurrentVersion\RunOnce","CopyKixdlls","%COMSPEC% /c COPY c:\K*.dll c:\windows\SYSTEM /y","REG_SZ")
    endif
  else
    if exist ("c:\kix32\kix32.exe")
    else
      md "c:\kix32"
      copy "g:\installs\util\kix\kix32.exe" "c:\kix32\kix32.exe"
      copy "g:\installs\util\kix\kx16.dll" "c:\kix32\kx16.dll"
      copy "g:\installs\util\kix\kx32.dll" "c:\kix32\kx32.dll"
      copy "g:\installs\util\kix\kx95.dll" "c:\kix32\kx95.dll"
    endif
  endif
endif


; ** If connecting via dialup, users get skipped past the SKIP section
IF @RAS >= 1
  GOTO SKIP
endif