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 >
Text File  |  1996-01-31  |  6KB  |  162 lines

  1. ; ***************************************************************
  2. ; ***************************************************************
  3. ; ***************************************************************
  4. ;
  5. ; This script has been developed to install NetWare OS Patches.
  6. ; Date: 1/05/96
  7. ;
  8. ; ***************************************************************
  9. ; ***************************************************************
  10. ; ***************************************************************
  11.  
  12. @Version 1.01
  13. ProductRecord 410PT3, 1, "NetWare v4.10 Patch Kit 410PT3.EXE"
  14. ;PatchKitType "I" = 410ITx, "P" = 410PTx
  15. ;SetVar PatchKitType, "P"
  16. CopyToServer SYSTEM\INSTALL, ICMD.NLM, '', ''
  17. CopyToServer SYSTEM\INSTALL, SETVARS.NLM, '', ''
  18. CopyToServer SYSTEM\INSTALL, PATCHIN.NLM, '', ''
  19. Command install\icmd
  20.  
  21. nlmexec 1, install\setvars
  22.  
  23. GotoIfEqual, 0, '%{OSType}', NativeFiles
  24. GotoIfEqual, 1, '%{OSType}', OS2Files
  25. GotoIfEqual, 2, '%{OSType}', SFT3Files
  26. Goto Done
  27.  
  28. ; ***************************************************************
  29.  
  30. Label NativeFiles
  31.      Display 1, "Patch kit for Native NetWare v4.10 is about to be installed.\n\n\ PRESS
  32. ESCAPE TO ABORT.\n"
  33.  
  34. ; WARN the user
  35. Display 1, "WARNING:\n\nIt is suggested that the installation of patches be done during
  36. NON-PRODUCTION hours, to not affect performance of the File Server and to ensure
  37. completion of installation.\n\n
  38. If you choose to quit, press ENTER, then <ALT><F10> to abort install.\n\n 
  39. This installation will create a backup of your current STARTUP.NCF named
  40. STARTUP.PT.\n\n
  41. This installation process will load PM410 & use the PMLOAD console command to load the
  42. patches included in this kit if not already loaded.\n\n
  43. This installation will also update SERVER.EXE with the most current version of
  44. LOADER.EXE."
  45.  
  46. ; Get the source and destination paths
  47. GetPath src, 1, '%{NWSRC}', '', NWSRC
  48. GetPath dst, 1, '%{NWBOOT}\\PATCHES', 'Default path to copy to: %s'
  49. GetPath src1, 1, '%{src}\\NATIVE', '', NWSRC
  50. GetPath dst1, 1, '%{dst}\\NATIVE', ''
  51.  
  52. ; check for enough space on dst
  53. ValueSet val, 0
  54. ValueAdd val, 2097152
  55. SpaceCheck dst, %{val}
  56.  
  57. ; if ok, copy the file 
  58. CopyFile 0, 0, 1, 1, 0, src, '*.TXT', '', '',dst, '', '', '', 0
  59. CopyFile 1, 1, 1, 1, 0, src1, '', '', '',dst1, '', '', '', 0
  60.  
  61. Display 0, "Done copying files."
  62.  
  63. Display 0, "This installation will now load PM410 & patches.. If PM410 is already loaded an error
  64. will be returned. If the current version of PM410 does not support PMLOAD, the new patches
  65. will not load until the server is rebooted.."
  66.  
  67. ; have the patch install process load PM410 & the patches..
  68. NLMExec 0, '%{dst1}\\START\\PM410'
  69. Display 2, "Executing Console Command.\n\nPMLOAD %{dst1}\\START\n\n PLEASE WAIT !!!"
  70. Console 'PMLOAD %{dst1}\\START', 10
  71.  
  72. ;edit the startup.ncf file
  73. Display 0, "The following lines will be added to the beginning of the STARTUP.NCF.\n\n
  74. LOAD %{dst1}\\START\\PM410\n
  75. PMLOAD %{dst1}\\START\\\n\n"
  76. NLMExec 1, 'INSTALL\\PATCHIN %{dst1}\\START %{NWBOOT} P'
  77.  
  78. ;update SERVER.EXE
  79. Display 0, "SERVER.EXE will now be updated with a new version of LOADER.EXE."
  80. NLMExec 1, '%{dst1}\\LOADER\\LSWAP %{dst1}\\LOADER\\LOADER.EXE %{NWBOOT}\\SERVER.EXE'
  81. Display 0, "INSTALLATION IS COMPLETE!!\n\n
  82. You may switch to the console prompt to view the results of SERVER.EXE update.\n\n
  83. After which the server will need to be Rebooted to load this update kit properly."
  84.  
  85. ; if ok, update the ncf
  86. Goto Done
  87.  
  88. ; ***************************************************************
  89.  
  90. Label OS2Files
  91. Display 1, "Patch kit for NetWare for OS/2 v4.10 is about to be installed.\n\n PRESS ESCAPE
  92. TO ABORT.\n"
  93.  
  94. ; WARN the user
  95. Display 1, "WARNING:\n\nIt is suggested that the installation of patches be done during
  96. NON-PRODUCTION hours, to not affect performance of the File Server and to ensure
  97. completion of installation.\n\n
  98. If you choose to quit, press ENTER, then <ALT><F10> to abort install.\n\n 
  99. This installation will create a backup of your current STARTUP.NCF named
  100. STARTUP.PAT.\n\n
  101. This installation process will load PM410 & use the PMLOAD console command to load the
  102. patches included in this kit if not already loaded.\n\n"
  103.  
  104. ; Get the source and destination paths
  105. GetPath src, 1, '%{NWSRC}', '', NWSRC
  106. GetPath dst, 1, '%{NWBOOT}\\PATCHES', 'Default path to copy to: %s'
  107. GetPath src1, 1, '%{src}\\NWOS2', '', NWSRC
  108. GetPath dst1, 1, '%{dst}\\NWOS2', ''
  109.  
  110. ; check for enough space on dst
  111. ValueSet val, 0
  112. ValueAdd val, 2097152
  113. SpaceCheck dst, %{val}
  114.  
  115. ; if ok, copy the file 
  116. CopyFile 0, 0, 1, 1, 0, src, '*.TXT', '', '',dst, '', '', '', 0
  117. CopyFile 1, 1, 1, 1, 0, src1, '', '', '',dst1, '', '', '', 0
  118.  
  119. Display 0, "Done copying files."
  120.  
  121. Display 0, "This installation will now load PM410 & patches.. If PM410 is already loaded an error
  122. will be returned.  If the current version of PM410 does not support PMLOAD, the new patches
  123. will not load until the server is rebooted.."
  124.  
  125. ; have the patch install process load PM410 & the patches..
  126. NLMExec 0, '%{dst1}\\START\\PM410'
  127. Display 2, "Executing Console Command.\n\n PMLOAD %{dst1}\\START\n\n  PLEASE WAIT !!!"
  128. Console 'PMLOAD %{dst1}\\START', 10
  129.  
  130. ;edit the startup.ncf file
  131. Display 0, "The following lines will be added to the beginning of the STARTUP.NCF.\n\n
  132. LOAD %{dst1}\\START\\PM410\n
  133. PMLOAD %{dst1}\\START\\\n\n"
  134. NLMExec 1, 'INSTALL\\PATCHIN %{dst1}\\START\\PTSTRT.NCF %{NWBOOT} P'
  135.  
  136. Display 0, "INSTALLATION IS COMPLETE!!\n\n
  137. After which the server will need to be Rebooted to load this update kit properly."
  138.  
  139.  
  140. ; if ok, update the ncf
  141. Goto Done
  142. ; ***************************************************************
  143.  
  144. Label SFT3Files
  145. Display 1, "Patch kit for NetWare v4.10 SFTIII\n\nTHIS INSTALLATION PROCESS WILL
  146. NOT WORK ON THIS VERSION OF NETWARE.  SEE INSTALL.TXT FOR
  147. INSTRUCTIONS."
  148.  
  149.  
  150. ; if ok, update the ncf
  151. Goto Done
  152.  
  153. ; ***************************************************************
  154.  
  155. Label Done
  156. Label NWError
  157. Label NWCancel
  158.  
  159. ; ***************************************************************
  160. ; ***************************************************************
  161. ; ***************************************************************
  162.