home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1997 March
/
VPR9703B.ISO
/
driver
/
novell
/
nwpatch
/
server
/
nw41j
/
core.os
/
410pt3j.exe
/
410PT3.IPS
next >
Wrap
Text File
|
1996-01-31
|
6KB
|
162 lines
; ***************************************************************
; ***************************************************************
; ***************************************************************
;
; This script has been developed to install NetWare OS Patches.
; Date: 1/05/96
;
; ***************************************************************
; ***************************************************************
; ***************************************************************
@Version 1.01
ProductRecord 410PT3, 1, "NetWare v4.10 Patch Kit 410PT3.EXE"
;PatchKitType "I" = 410ITx, "P" = 410PTx
;SetVar PatchKitType, "P"
CopyToServer SYSTEM\INSTALL, ICMD.NLM, '', ''
CopyToServer SYSTEM\INSTALL, SETVARS.NLM, '', ''
CopyToServer SYSTEM\INSTALL, PATCHIN.NLM, '', ''
Command install\icmd
nlmexec 1, install\setvars
GotoIfEqual, 0, '%{OSType}', NativeFiles
GotoIfEqual, 1, '%{OSType}', OS2Files
GotoIfEqual, 2, '%{OSType}', SFT3Files
Goto Done
; ***************************************************************
Label NativeFiles
Display 1, "Patch kit for Native NetWare v4.10 is about to be installed.\n\n\ PRESS
ESCAPE TO ABORT.\n"
; WARN the user
Display 1, "WARNING:\n\nIt is suggested that the installation of patches be done during
NON-PRODUCTION hours, to not affect performance of the File Server and to ensure
completion of installation.\n\n
If you choose to quit, press ENTER, then <ALT><F10> to abort install.\n\n
This installation will create a backup of your current STARTUP.NCF named
STARTUP.PT.\n\n
This installation process will load PM410 & use the PMLOAD console command to load the
patches included in this kit if not already loaded.\n\n
This installation will also update SERVER.EXE with the most current version of
LOADER.EXE."
; Get the source and destination paths
GetPath src, 1, '%{NWSRC}', '', NWSRC
GetPath dst, 1, '%{NWBOOT}\\PATCHES', 'Default path to copy to: %s'
GetPath src1, 1, '%{src}\\NATIVE', '', NWSRC
GetPath dst1, 1, '%{dst}\\NATIVE', ''
; check for enough space on dst
ValueSet val, 0
ValueAdd val, 2097152
SpaceCheck dst, %{val}
; if ok, copy the file
CopyFile 0, 0, 1, 1, 0, src, '*.TXT', '', '',dst, '', '', '', 0
CopyFile 1, 1, 1, 1, 0, src1, '', '', '',dst1, '', '', '', 0
Display 0, "Done copying files."
Display 0, "This installation will now load PM410 & patches.. If PM410 is already loaded an error
will be returned. If the current version of PM410 does not support PMLOAD, the new patches
will not load until the server is rebooted.."
; have the patch install process load PM410 & the patches..
NLMExec 0, '%{dst1}\\START\\PM410'
Display 2, "Executing Console Command.\n\nPMLOAD %{dst1}\\START\n\n PLEASE WAIT !!!"
Console 'PMLOAD %{dst1}\\START', 10
;edit the startup.ncf file
Display 0, "The following lines will be added to the beginning of the STARTUP.NCF.\n\n
LOAD %{dst1}\\START\\PM410\n
PMLOAD %{dst1}\\START\\\n\n"
NLMExec 1, 'INSTALL\\PATCHIN %{dst1}\\START %{NWBOOT} P'
;update SERVER.EXE
Display 0, "SERVER.EXE will now be updated with a new version of LOADER.EXE."
NLMExec 1, '%{dst1}\\LOADER\\LSWAP %{dst1}\\LOADER\\LOADER.EXE %{NWBOOT}\\SERVER.EXE'
Display 0, "INSTALLATION IS COMPLETE!!\n\n
You may switch to the console prompt to view the results of SERVER.EXE update.\n\n
After which the server will need to be Rebooted to load this update kit properly."
; if ok, update the ncf
Goto Done
; ***************************************************************
Label OS2Files
Display 1, "Patch kit for NetWare for OS/2 v4.10 is about to be installed.\n\n PRESS ESCAPE
TO ABORT.\n"
; WARN the user
Display 1, "WARNING:\n\nIt is suggested that the installation of patches be done during
NON-PRODUCTION hours, to not affect performance of the File Server and to ensure
completion of installation.\n\n
If you choose to quit, press ENTER, then <ALT><F10> to abort install.\n\n
This installation will create a backup of your current STARTUP.NCF named
STARTUP.PAT.\n\n
This installation process will load PM410 & use the PMLOAD console command to load the
patches included in this kit if not already loaded.\n\n"
; Get the source and destination paths
GetPath src, 1, '%{NWSRC}', '', NWSRC
GetPath dst, 1, '%{NWBOOT}\\PATCHES', 'Default path to copy to: %s'
GetPath src1, 1, '%{src}\\NWOS2', '', NWSRC
GetPath dst1, 1, '%{dst}\\NWOS2', ''
; check for enough space on dst
ValueSet val, 0
ValueAdd val, 2097152
SpaceCheck dst, %{val}
; if ok, copy the file
CopyFile 0, 0, 1, 1, 0, src, '*.TXT', '', '',dst, '', '', '', 0
CopyFile 1, 1, 1, 1, 0, src1, '', '', '',dst1, '', '', '', 0
Display 0, "Done copying files."
Display 0, "This installation will now load PM410 & patches.. If PM410 is already loaded an error
will be returned. If the current version of PM410 does not support PMLOAD, the new patches
will not load until the server is rebooted.."
; have the patch install process load PM410 & the patches..
NLMExec 0, '%{dst1}\\START\\PM410'
Display 2, "Executing Console Command.\n\n PMLOAD %{dst1}\\START\n\n PLEASE WAIT !!!"
Console 'PMLOAD %{dst1}\\START', 10
;edit the startup.ncf file
Display 0, "The following lines will be added to the beginning of the STARTUP.NCF.\n\n
LOAD %{dst1}\\START\\PM410\n
PMLOAD %{dst1}\\START\\\n\n"
NLMExec 1, 'INSTALL\\PATCHIN %{dst1}\\START\\PTSTRT.NCF %{NWBOOT} P'
Display 0, "INSTALLATION IS COMPLETE!!\n\n
After which the server will need to be Rebooted to load this update kit properly."
; if ok, update the ncf
Goto Done
; ***************************************************************
Label SFT3Files
Display 1, "Patch kit for NetWare v4.10 SFTIII\n\nTHIS INSTALLATION PROCESS WILL
NOT WORK ON THIS VERSION OF NETWARE. SEE INSTALL.TXT FOR
INSTRUCTIONS."
; if ok, update the ncf
Goto Done
; ***************************************************************
Label Done
Label NWError
Label NWCancel
; ***************************************************************
; ***************************************************************
; ***************************************************************