home *** CD-ROM | disk | FTP | other *** search
/ Jason Aller Floppy Collection / 405.img / MONKINC1.ZIP / INSTALL.BAT < prev    next >
DOS Batch File  |  1990-09-02  |  3KB  |  116 lines

  1. echo off
  2. REM Multi-Disk install, part 1.
  3. cls
  4.  
  5. if %0==a:install goto adrive
  6. if %0==A:install goto adrive
  7. if %0==A:INSTALL goto adrive
  8. if %0==b:install goto bdrive
  9. if %0==B:install goto bdrive
  10. if %0==B:INSTALL goto bdrive
  11. if %0==install goto doinstall
  12. if %0==INSTALL goto doinstall
  13. echo Please switch to the drive you wish to install from before
  14. echo starting install.  For example, to install from the B: drive,
  15. echo Enter         B:
  16. echo Then enter    INSTALL %1
  17. goto End
  18.  
  19. :adrive
  20. a:
  21. goto doinstall
  22.  
  23. :bdrive
  24. b:
  25. goto doinstall
  26.  
  27. :doinstall
  28.  
  29. if "%1"=="" goto DriveNeeded
  30. if %1==c: goto MakeDir
  31. if %1==C: goto MakeDir
  32. if %1==d: goto MakeDir
  33. if %1==D: goto MakeDir
  34. if %1==e: goto MakeDir
  35. if %1==E: goto MakeDir
  36. if %1==f: goto MakeDir
  37. if %1==F: goto MakeDir
  38. if %1==g: goto MakeDir
  39. if %1==G: goto MakeDir
  40. if %1==h: goto MakeDir
  41. if %1==H: goto MakeDir
  42. if %1==i: goto MakeDir
  43. if %1==I: goto MakeDir
  44. if %1==j: goto MakeDir
  45. if %1==J: goto MakeDir
  46. if %1==k: goto MakeDir
  47. if %1==K: goto MakeDir
  48. if %1==l: goto MakeDir
  49. if %1==L: goto MakeDir
  50. if %1==m: goto MakeDir
  51. if %1==M: goto MakeDir
  52. if %1==n: goto MakeDir
  53. if %1==N: goto MakeDir
  54. if %1==o: goto MakeDir
  55. if %1==O: goto MakeDir
  56. if %1==p: goto MakeDir
  57. if %1==P: goto MakeDir
  58.  
  59. :InvalidDrive
  60. echo "%1" is an invalid drive name.  Please use the drive's letter
  61. echo followed by a colon:
  62. goto Example
  63.  
  64. :DriveNeeded
  65. echo Please specify which drive to install "Monkey Island" on, for example:
  66. :Example
  67. echo 
  68. echo         install c:
  69. goto End
  70.  
  71. :MakeDir
  72. echo ╔═══════════════════════════════════════════════════════════════╗
  73. echo ║                                                               ║
  74. echo ║                         MONKEY ISLAND                         ║
  75. echo ║                                                               ║
  76. echo ║                   Hard Disk Install Utility                   ║
  77. echo ║                                                               ║
  78. echo ║                                                               ║
  79. echo ║ This program will install all files into a directory          ║
  80. echo ║ called "MONKEY" on drive %1.  If you do not wish to do this,  ║
  81. echo ║ then press Ctrl-C now.                                        ║
  82. echo ║                                                               ║
  83. echo ╚═══════════════════════════════════════════════════════════════╝
  84. echo 
  85. pause
  86. echo 
  87.  
  88. if exist %1\MONKEY\*.* goto DirExists
  89. mkdir %1\MONKEY
  90. goto CopyFiles
  91.  
  92. :DirExists
  93. echo WARNING:  The directory %1\MONKEY already exists. Press Ctrl-C now if
  94. echo           you don't want to overwrite the contents of that directory.
  95. echo 
  96. pause
  97. echo 
  98.  
  99. :CopyFiles
  100. echo Copying "Disk 1" files to %1\MONKEY...
  101. copy *.* %1\MONKEY > NUL
  102.  
  103. if not exist %1\MONKEY\monkey.exe goto InstallError
  104. if not exist %1\MONKEY\_install.bat goto InstallError
  105.  
  106. %1\MONKEY\_install %1
  107.  
  108. goto End
  109.  
  110. :InstallError
  111. echo ERROR:  Installation of "Monkey Island" into %1\MONKEY was unsuccessful.  This might
  112. echo         be because your hard disk is full.  "Monkey Island" needs at least 2,880K of
  113. echo         free disk space.
  114. :End
  115. echo 
  116.