home *** CD-ROM | disk | FTP | other *** search
/ Inside Multimedia 1995 July / IMM0795.ISO / share / os2 / docsboot / os2fixup.bat < prev    next >
DOS Batch File  |  1994-11-01  |  8KB  |  195 lines

  1. @echo off
  2. set os2src=Z:\12345678.9AB\
  3. if "%os2src%"=="Z:\12345678.9AB\" goto OkayToRun
  4. echo.
  5. echo [Error : Environment space too small.  Increasing size.]
  6. echo [If you see this message more than once, abort and try to run this batch
  7. echo from a clean system boot disc.]
  8. echo.
  9. %comspec% /c %0 %1 %2 %3 %4 %5 %6 %7 %8 %9
  10. goto QuitNow
  11. :OkayToRun
  12. cls
  13. echo DocsBoot+ Installability fixup for OS/2 v2.0, v2.1, v3.0; version 1.10
  14. echo Copyright 1994 Zac Schroff, all rights reserved.
  15. echo.
  16. if "%1"=="" goto Help
  17. if "%1"=="F" goto Floppy
  18. if "%1"=="f" goto Floppy
  19. if "%1"=="C" goto CDROM
  20. if "%1"=="c" goto CDROM
  21. goto Help
  22. :Floppy
  23. if not exist .\FDISK.EXE goto FailFile
  24. if "%2"=="" goto Help
  25. echo.
  26. :FChk
  27. echo Please insert your OS/2 Disc #1 into the %2 floppy drive and
  28. pause
  29. if exist %2\FDISK1.COM goto Already
  30. if not exist %2\FDISK.COM goto FChk
  31. echo.
  32. echo Renaming.
  33. ren %2\FDISK.COM FDISK1.COM >nul
  34. if not exist %2\FDISK1.COM goto Fail
  35. echo Copying.
  36. if not exist FDISK.EXE goto FailFile
  37. copy .\FDISK.EXE %2\FDISK.COM >nul
  38. if errorlevel 1 goto Fail
  39. if not exist %2\FDISK.COM goto Fail
  40. echo Finished.
  41. goto Finish
  42. :CDROM
  43. if not exist .\FDISK.EXE goto FailFile
  44. if "%2"=="" goto Help
  45. if "%3"=="" goto Help
  46. :CChk
  47. echo Please make sure the OS/2 installation CD-ROM is in the %3 CD-ROM drive and
  48. pause
  49. if not exist %3\os2se20.src goto CChk
  50. if exist %3\os2se20\disk_0\*.*  set os2src=\os2se20\
  51. if exist %3\os2se21\disk_0\*.*  set os2src=\os2se21\
  52. if exist %3\os2image\disk_0\*.* set os2src=\os2image\
  53. echo.
  54. echo [Copying files from %3%os2src%]
  55. echo.
  56. echo This will take a while.  Please wait...
  57. if exist %2\os2se20.src del %2\os2se20.src > nul
  58. if not exist %3\os2se20.src goto FailFile
  59. if not exist %3%os2src%disk_0\*.* goto FailVers
  60. xcopy %3\os2se20.src %2\ > nul
  61. if errorlevel 1 goto Fail
  62. if not exist %2\os2se20.src goto FailWrite
  63. xcopy /s %3%os2src%*.* %2%os2src% > nul
  64. if errorlevel 1 goto Fail
  65. if not exist %2%os2src%disk_1\fdisk.com goto Fail
  66. if exist %2%os2src%disk_1\fdisk1.com del %2%os2src%disk_1\fdisk1.com > nul
  67. ren %2%os2src%disk_1\fdisk.com fdisk1.com > nul
  68. if not exist %2%os2src%disk_1\fdisk1.com goto Fail
  69. copy .\fdisk.exe %2%os2src%disk_1\fdisk.com > nul
  70. if errorlevel 1 goto Fail
  71. if not exist %2%os2src%disk_1\fdisk.com goto Fail
  72. goto Finish
  73. :Already
  74. echo.
  75. echo This disc appears to already be modified.  You should already be able to
  76. echo install from it.
  77. goto Finish
  78. :FailVers
  79. echo.
  80. echo The installation failed.  The OS/2 installation discs were not in the expected
  81. echo directory.  Please contact the author of this program (see the DocsBoot+
  82. echo documentation) for an update, and mention which version of OS/2 you are trying
  83. echo to install.  Sorry for the inconvenience.
  84. goto End
  85. :FailFile
  86. echo.
  87. echo The installation failed.  A required file was not found on the source disc.
  88. goto End
  89. :Fail
  90. :FailWrite
  91. echo.
  92. echo The installation failed.  There may not be enough room on the target disc, or
  93. echo some error may have occurred.
  94. goto End
  95. :Finish
  96. echo.
  97. echo READ THIS BEFORE CONTINUING!!!!   THIS IS VERY IMPORTANT!!!!
  98. echo.
  99. echo When you install OS/2, things will work more or less normally.  When asked
  100. echo if you want to install to C:, select no (you will be placed in FDISK).  If
  101. echo you need to do any partitioning, do so now.  If not, exit FDISK now.  You will
  102. echo be placed at a blank screen.  Type the letter ONLY of the desired install drive
  103. echo and press [Enter].  The install process will resume.
  104. echo.
  105. echo There may be problems with the places in the installation when the installer
  106. echo needs to reboot the system.  If it says press [Enter] to reboot and you have
  107. echo done so a couple of times, just press [Ctrl-Alt-Delete].  It's okay, really.
  108. echo The install process will continue after the reboot, as it usually does.
  109. echo.
  110. echo If you are running multiple physical drives (I usually suggest this), OS/2
  111. echo should be installed on the primary partition on the secondary drive.  This
  112. echo allows DOS, *ix, et cetera the primary partition on the primary drive, which
  113. echo many other operating systems require.  If you install OS/2 on an extended
  114. echo partition then decide to add another drive later, you might need to reinstall.
  115. echo.
  116. echo Sorry about the blank screen instead of a a real prompt for the install drive.
  117. echo I am working on resolving this (it may be partly because of my compiler).
  118. echo.
  119. set os2src=
  120. goto QuitNow
  121. :Help
  122. echo.
  123. echo This program patches the OS/2 installation process so you can install to drives
  124. echo other than C: without having to install the BootManager.  Note that DocsBoot+
  125. echo or some similar package must be installed on your system or else installing to
  126. echo some drive other than C: will fail.
  127. echo.
  128. echo OS/2 normally assumes that there is no way to boot anything other than the
  129. echo primary partition on the primary drive, unless IBM's BootManager is present.
  130. echo While this is USUALLY true, I think it is a weakness, and it should display a
  131. echo warning instead of simply refusing to install.
  132. echo.
  133. echo This installs a program which gets around this by emulating the functionality
  134. echo of the FDISK utility, but which allows OS/2 to install to drives other than C:.
  135. echo.
  136. pause
  137. echo.
  138. echo If you are installing from floppies, you need to use this syntax :
  139. echo.
  140. echo    OS2Fixup F InstallSourceDrive:
  141. echo.
  142. echo      for example, OS2Fixup F A: will modify the install disc in drive A:
  143. echo.
  144. echo This modifies the installation discs, so you should only run this on a
  145. echo non-write-protected BACKUP COPY of the installation discs. It only modifies the
  146. echo second disc (disc 1), so that is the only one you really need, if you are
  147. echo really short on floppies (though you REALLY should install from a copy).
  148. echo.
  149. pause
  150. echo.
  151. echo If you are installing from CD-ROM, you may have some problems. This procedure
  152. echo modifies the installation discs so that an intercept can be installed around
  153. echo the FDISK utility.  On CD-ROM, this is impossible.  In order to still allow
  154. echo convenient install, there is an alternative.  If you have a partition other
  155. echo than the one being installed to with about 30MB free, this program can make
  156. echo if look enough like the CD-ROM that OS/2 will install from it. This is slightly
  157. echo slower than installing from the CD-ROM (since the data must be read twice and
  158. echo written twice), but it is nearly as convenient, and you can install from the
  159. echo same drive again later.  You can also add MMPM/2 or other options from the
  160. echo CD-ROM later, if you wish.
  161. echo.
  162. echo If you do not have a partition with at least 30MB free (other than the one
  163. echo you want to install to), you will need to install from floppies instead.
  164. echo Note the floppy documentation here and see your OS/2 manuals for information
  165. echo on making the install discs.
  166. echo.
  167. pause
  168. echo.
  169. echo To set up this sort of arrangement you need to use this syntax :
  170. echo.
  171. echo    OS2Fixup C HardDisc: CDROM:
  172. echo.
  173. echo      for example, OS2Fixup C J: M: will copy the important files from the
  174. echo      CD-ROM in drive M: to hard disc J:, and modify them there, so the
  175. echo      installation can be performed from the hard disc.  The CD-ROM should then
  176. echo      be removed from the CD-ROM drive, until the installation process is
  177. echo      complete.
  178. echo.
  179. echo Note that you probably will not be allowed to install to the same partition as
  180. echo you specified here for the CD-ROM files.
  181. echo.
  182. :Summary
  183. pause
  184. echo.
  185. echo Summary :
  186. echo.
  187. echo To modify a floppy installer : OS2Fixup F BootFloppy:
  188. echo.
  189. echo To modify a CD-ROM installer : OS2Fixup C HardDisc: CDROM:
  190. :End
  191. echo.
  192. echo.
  193. set os2src=
  194. :QuitNow
  195.