Metropoli BBS
VIEWER: landr9.ips MODE: TEXT (ASCII)
; ***************************************************************
;
; This script has been developed to install NetWare ODI Drivers.
; Date: 07/31/96
;
; ***************************************************************
; @SyntaxVersion 1.00
; "CoPyRiGhT=(c) 1996 Novell, Inc.  All Rights Reserved."
; VeRsIoN=1.03


  CopyToServer SYSTEM\NWUPDATE, PI_ICMD.NLM, '', ''
  CopyToServer SYSTEM\NWUPDATE, PI_INIT.NLM, '', ''
  Command NWUPDATE\PI_ICMD

  NLMExec 1, NWUPDATE\PI_INIT, ccode

  ValueSet Install33SPEC, 0
  ValueSet Install32SPEC, 0


; ***************************************************************
@FileSet

        Description: "NetWare v4.10 LAN Driver 3.30 Spec. Update Kit LANDR9." 
        Name: LANDR9_33Spec
        CLASS: OPTIONAL
        ATTRIBUTE:0, 1
        HELP: " Help discription for LANDR9.

   Select one NetWare v4.10 LAN Driver Specification only (3.30 spec. or 
3.20 spec.).

   Before installing LANDR9 make sure that the patch kit 410PTx.EXE is 
installed, where x is 6 or greater (410PT6 or greater).

   LANDR9 contains Novell LAN Drivers and Support Modules written to the 
v3.30 ODI Assembly Specification.  It also contains a set of Novell LAN 
Drivers and Support Modules written to the v3.20 ODI Assembly Specification.
LAN Drivers written to the v3.30 ODI Specification will not run with the 
Support Modules written to the 3.20 ODI Specification.  In general, the v3.30
Support Modules should work with LAN Drivers written to the 3.20 ODI 
Specification.  However, some LAN Drivers written to the 3.20 ODI 
Specification may have problems with the support modules written to the v3.30
ODI Specification.  In those cases the support modules written to the v3.20 
Specification will need to be used.

"

  ValueSet Install33SPEC, 1

; Get the source paths.
  GetPath SourceDrive, 1, '%{NWSRC}\\33spec\\41X', '', NWSRC
  GetPath SourceRootDrive, 1, '%{NWSRC}\\33spec', '', NWSRC

@EndFileSet
; ***************************************************************
@FileSet

        Description: "NetWare v4.10 LAN Driver 3.20 Spec. Update Kit LANDR9." 
        Name: LANDR9_32Spec
        CLASS: OPTIONAL_OFF
        ATTRIBUTE:0, 1
        HELP: " Help discription for LANDR9.

   Select one NetWare v4.10 LAN Driver Specification only (3.30 spec. or 
3.20 spec.).

   Before installing LANDR9 make sure that the patch kit 410PTx.EXE is 
installed, where x is 6 or greater (410PT6 or greater).

   LANDR9 contains Novell LAN Drivers and Support Modules written to the 
v3.30 ODI Assembly Specification.  It also contains a set of Novell LAN 
Drivers and Support Modules written to the v3.20 ODI Assembly Specification.
LAN Drivers written to the v3.30 ODI Specification will not run with the 
Support Modules written to the 3.20 ODI Specification.  In general, the v3.30
Support Modules should work with LAN Drivers written to the 3.20 ODI 
Specification.  However, some LAN Drivers written to the 3.20 ODI 
Specification may have problems with the support modules written to the v3.30
ODI Specification.  In those cases the support modules written to the v3.20 
Specification will need to be used.

"

  ValueSet Install32SPEC, 1

; Get the source paths.
  GetPath SourceDrive, 1, '%{NWSRC}\\32spec\\410', '', NWSRC
  GetPath SourceRootDrive, 1, '%{NWSRC}\\32spec', '', NWSRC

@EndFileSet
; ***************************************************************


; Get the destination paths.
  Getpath DestinationDrive_System, 1, 'SYS:\\SYSTEM', ''
  GetPath InstallDrive, 1, 'SYS:\\SYSTEM\\NWUPDATE', ''

  GotoIfEqual %{Install33SPEC}, %{Install32SPEC}, ERROR_MustSelectOneOption


  GotoIfEqual 0, '%{PI_OSType}', NativeFiles
  GotoIfEqual 1, '%{PI_OSType}', NWOS2
  GotoIfEqual 2, '%{PI_OSType}', SFT3Files
  Goto CleanUp

; ***************************************************************
Label NativeFiles
Label NWOS2

  GotoIfEqual 1, %{Install32SPEC}, SkipNBIJump1
  CopyFile 0, 0, 0, 1, 0, DestinationDrive_System, 'NBI.NLM', '', '', DestinationDrive_System, 'OLDLAN', '', '', 0
  CopyFile 0, 0, 1, 2, 00060081, SourceDrive, 'NBI.NLM', '', '', DestinationDrive_System, '', '', '', 0
  CopyFile 0, 0, 0, 1, 0, NWBOOT, 'NBI.NLM', '', '', NWBOOT, 'OLDLAN', '', '', 0
  CopyFile 0, 0, 1, 2, 00060081, SourceRootDrive, '*.LDI', '', '', DestinationDrive_System, '', '', '', 0
  CopyFile 0, 0, 1, 1, 0, SourceRootDrive, '*.LDI', '', '', NWBOOT, '', '', '', 5

Label SkipNBIJump1

  Display 2, "NetWare v4.10 ODI Driver Update is being installed on NetWare v4.10"
  CopyFile 0, 0, 0, 1, 0, DestinationDrive_System, 'MSM.NLM', '', '', DestinationDrive_System, 'OLDLAN', '', '', 0
  CopyFile 0, 0, 0, 1, 0, DestinationDrive_System, 'ETHERTSM.NLM', '', '', DestinationDrive_System, 'OLDLAN', '', '', 0
  CopyFile 0, 0, 0, 1, 0, DestinationDrive_System, 'TOKENTSM.NLM', '', '', DestinationDrive_System, 'OLDLAN', '', '', 0
  CopyFile 0, 0, 0, 1, 0, DestinationDrive_System, 'FDDITSM.NLM', '', '', DestinationDrive_System, 'OLDLAN', '', '', 0
  CopyFile 0, 0, 1, 2, 00060081, SourceDrive, 'MSM.NLM', '', '', DestinationDrive_System, '', '', '', 0
  CopyFile 0, 0, 1, 2, 00060081, SourceRootDrive, 'ETHERTSM.NLM', '', '', DestinationDrive_System, '', '', '', 0
  CopyFile 0, 0, 1, 2, 00060081, SourceRootDrive, 'TOKENTSM.NLM', '', '', DestinationDrive_System, '', '', '', 0
  CopyFile 0, 0, 1, 2, 00060081, SourceRootDrive, 'FDDITSM.NLM', '', '', DestinationDrive_System, '', '', '', 0
  CopyFile 0, 0, 1, 2, 00060081, SourceRootDrive, '*.LAN', '', '', DestinationDrive_System, '', '', '', 0
  CopyFile 0, 0, 0, 1, 0, NWBOOT, 'MSM.NLM', '', '', NWBOOT, 'OLDLAN', '', '', 0
  CopyFile 0, 0, 0, 1, 0, NWBOOT, 'ETHERTSM.NLM', '', '', NWBOOT, 'OLDLAN', '', '', 0
  CopyFile 0, 0, 0, 1, 0, NWBOOT, 'TOKENTSM.NLM', '', '', NWBOOT, 'OLDLAN', '', '', 0
  CopyFile 0, 0, 0, 1, 0, NWBOOT, 'FDDITSM.NLM', '', '', NWBOOT, 'OLDLAN', '', '', 0
  CopyFile 0, 0, 1, 1, 0, SourceDrive, '*.*', '', '', NWBOOT, '', '', '', 0
  CopyFile 0, 0, 1, 1, 0, SourceRootDrive, 'ETHERTSM.NLM', '', '', NWBOOT, '', '', '', 0
  CopyFile 0, 0, 1, 1, 0, SourceRootDrive, 'TOKENTSM.NLM', '', '', NWBOOT, '', '', '', 0
  CopyFile 0, 0, 1, 1, 0, SourceRootDrive, 'FDDITSM.NLM', '', '', NWBOOT, '', '', '', 0
  CopyFile 0, 0, 1, 1, 0, SourceRootDrive, '*.LAN', '', '', NWBOOT, '', '', '', 5

  Display 2, "Done copying files."

  Display 0, "NetWare v4.10 ODI Driver Update is complete!"

  Goto Done

; ***************************************************************

Label SFT3Files

  Display 2, "NetWare v4.10 ODI Driver Update is being installed on NetWare SFTIII v4.10"
  CopyToServer SYSTEM, PI_IOCON.NLM, '', ''
  CopyToServer SYSTEM, PI_IOMKD.NLM, '', ''

  GotoIfEqual 1, %{Install32SPEC}, SkipNBIJump2
  CopyFile 0, 0, 0, 1, 0, DestinationDrive_System, 'NBI.NLM', '', '', DestinationDrive_System, 'OLDLAN', '', '', 0
  CopyFile 0, 0, 1, 2, 00060081, SourceDrive, 'NBI.NLM', '', '', DestinationDrive_System, '', '', '', 0
  CopyFile 0, 0, 1, 2, 00060081, SourceRootDrive, '*.LDI', '', '', DestinationDrive_System, '', '', '', 0

Label SkipNBIJump2


  Display 2, "Saving old files in system directory."
  CopyFile 0, 0, 0, 1, 0, DestinationDrive_System, 'MSM.NLM', '', '', DestinationDrive_System, 'OLDLAN', '', '', 0
  CopyFile 0, 0, 0, 1, 0, DestinationDrive_System, 'ETHERTSM.NLM', '', '', DestinationDrive_System, 'OLDLAN', '', '', 0
  CopyFile 0, 0, 0, 1, 0, DestinationDrive_System, 'TOKENTSM.NLM', '', '', DestinationDrive_System, 'OLDLAN', '', '', 0
  CopyFile 0, 0, 0, 1, 0, DestinationDrive_System, 'FDDITSM.NLM', '', '', DestinationDrive_System, 'OLDLAN', '', '', 0
  Display 2, "Copying new files to the system directory."
  CopyFile 0, 0, 1, 2, 00060081, SourceDrive, 'MSM.NLM', '', '', DestinationDrive_System, '', '', '', 0
  CopyFile 0, 0, 1, 2, 00060081, SourceRootDrive, 'ETHERTSM.NLM', '', '', DestinationDrive_System, '', '', '', 0
  CopyFile 0, 0, 1, 2, 00060081, SourceRootDrive, 'TOKENTSM.NLM', '', '', DestinationDrive_System, '', '', '', 0
  CopyFile 0, 0, 1, 2, 00060081, SourceRootDrive, 'FDDITSM.NLM', '', '', DestinationDrive_System, '', '', '', 0
  CopyFile 0, 0, 1, 2, 00060081, SourceRootDrive, '*.LAN', '', '', DestinationDrive_System, '', '', '', 0

  GetDOSServer saveEngineNum
  SetVar engineNum, 0

  Label SFT3_DoOtherEngine

    SetDOSServer %{engineNum}, ccode
    GotoIfNEqual 0, %{ccode}, SFT3_IOEngineNotPresent

    GotoIfEqual 1, %{Install32SPEC}, SkipNBIJump3
    CopyFile 0, 0, 0, 1, 0, NWBOOT, 'NBI.NLM', '', '', NWBOOT, 'OLDLAN', '', '', 0
    CopyFile 0, 0, 1, 1, 0, SourceRootDrive, '*.LDI', '', '', NWBOOT, '', '', '', 5

Label SkipNBIJump3

    Display 2, "Saving old files on IOEngine[%{engineNum}]."
    CopyFile 0, 0, 0, 1, 0, NWBOOT, 'MSM.NLM', '', '', NWBOOT, 'OLDLAN', '', '', 0
    CopyFile 0, 0, 0, 1, 0, NWBOOT, 'ETHERTSM.NLM', '', '', NWBOOT, 'OLDLAN', '', '', 0
    CopyFile 0, 0, 0, 1, 0, NWBOOT, 'TOKENTSM.NLM', '', '', NWBOOT, 'OLDLAN', '', '', 0
    CopyFile 0, 0, 0, 1, 0, NWBOOT, 'FDDITSM.NLM', '', '', NWBOOT, 'OLDLAN', '', '', 0
    Display 2, "Copying new files to IOEngine[%{engineNum}]."
    CopyFile 0, 0, 1, 1, 0, SourceDrive, '*.*', '', '', NWBOOT, '', '', '', 0
    CopyFile 0, 0, 1, 1, 0, SourceRootDrive, 'ETHERTSM.NLM', '', '', NWBOOT, '', '', '', 0
    CopyFile 0, 0, 1, 1, 0, SourceRootDrive, 'TOKENTSM.NLM', '', '', NWBOOT, '', '', '', 0
    CopyFile 0, 0, 1, 1, 0, SourceRootDrive, 'FDDITSM.NLM', '', '', NWBOOT, '', '', '', 0
    CopyFile 0, 0, 1, 1, 0, SourceRootDrive, '*.LAN', '', '', NWBOOT, '', '', '', 5

  Label SFT3_IOEngineNotPresent_continue

    ValueAdd engineNum, 1
    GotoIfEqual 1, '%{engineNum}', SFT3_DoOtherEngine
    SetDOSServer %{saveEngineNum}, ccode
    Display 2, "Done copying files."
    Display 0, "NetWare v4.10 ODI Driver Update is complete!"
    Goto Done
    

  Label SFT3_IOEngineNotPresent
    
    Display 0, 'IOEngine[%{engineNum}] not present, this IOEngine will be skipped.'
    Goto SFT3_IOEngineNotPresent_continue

; ***************************************************************

Label ERROR_MustSelectOneOption

	display 0, 'ERROR: Must select ONE of the two ODI Specification groups only.'
	Goto CleanUp	; Skip to the CLEANUP stuff (we never copied anything)

; ***************************************************************

Label Done

  GotoIfEqual 1, %{Install32SPEC}, Record32Spec
  ;NetWare for OS/2 will page fault for some customers adding the ProductRecord.
  GotoIfEqual 1, '%{PI_OSType}', SkipProductRecord_ForNWOS2
     ProductRecord LANKIT, 1, "NetWare v4.10 LAN Kit LANDR9 (3.30 Spec.)"
  Label SkipProductRecord_ForNWOS2
  Goto CleanUp

Label Record32Spec

  ;NetWare for OS/2 will page fault for some customers adding the ProductRecord.
  GotoIfEqual 1, '%{PI_OSType}', SkipProductRecord_ForNWOS2
     ProductRecord LANKIT, 1, "NetWare v4.10 LAN Kit LANDR9 (3.20 Spec.)"
  Label SkipProductRecord_ForNWOS2
  Goto CleanUp

Label CleanUp
	
  EraseFile 1, InstallDrive, '','',''
  EraseFile 0, DestinationDrive_System, 'PI_IOMKD.NLM','',''
  EraseFile 0, DestinationDrive_System, 'PI_IOCON.NLM','',''

Label NWError
Label NWCancel


; ***************************************************************
; ***************************************************************


[ RETURN TO DIRECTORY ]