home *** CD-ROM | disk | FTP | other *** search
/ Current Shareware 1994 January / SHAR194.ISO / games / gmblmt93.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1993-08-17  |  4KB  |  100 lines

  1. echo off 
  2. cls
  3. break on
  4. if %0==a:install goto adrive
  5. if %0==A:install goto adrive
  6. if %0==A:INSTALL goto adrive
  7. if %0==b:install goto bdrive
  8. if %0==B:install goto bdrive
  9. if %0==B:INSTALL goto bdrive
  10. if %0==install goto doinstall
  11. if %0==INSTALL goto doinstall
  12. echo Please switch to the drive you wish to install from before
  13. echo starting install.  For example, to install from the B: drive,
  14. echo Enter         B:
  15. echo Then enter    INSTALL %1
  16. goto End
  17. :adrive
  18. a:
  19. goto doinstall
  20. :bdrive
  21. b:
  22. goto doinstall
  23. :doinstall
  24. if "%1"=="" goto DriveNeeded
  25. if exist %1\*.* goto makedir
  26. :InvalidDrive
  27. echo "%1" is an invalid drive name.  Please use the correct drive letter
  28. echo followed by a colon:
  29. :DriveNeeded
  30. echo Please specify which drive to install Football Edition 1993 to,
  31. echo for example:
  32. :Example
  33. echo.
  34. echo         install c:
  35. goto End
  36. :MakeDir
  37. echo ╔══════════════════════════════════════════════════════════════════╗
  38. echo ║                                                                  ║
  39. echo ║                        GAMBLER'S MATE                            ║
  40. echo ║                    Football Edition  1993                        ║
  41. echo ║                      Copyright (c) 1993                          ║
  42. echo ║                      All Rights Reserved                         ║
  43. echo ║                                                                  ║
  44. echo ║                       By Mark E. Savey                           ║
  45. echo ║                     Disk Install Utility                         ║
  46. echo ║                                                                  ║
  47. echo ║                                                                  ║
  48. echo ║  This program will install all files into a directory called     ║
  49. echo ║  "\GM\GM93" on drive %1.  A BACKUP directory, "\GM\GM93\BACKUP"  ║
  50. echo ║  for data files will also be created as a safety measure.  If    ║
  51. echo ║  you do NOT wish to do this, then press Ctrl-C then "Y" now.     ║
  52. echo ║                                                                  ║
  53. echo ╚══════════════════════════════════════════════════════════════════╝
  54. echo.
  55. pause
  56. echo.
  57. echo Checking for existence of %1\GM\GM93...
  58. if exist %1\GM\GM93\*.* goto DirExists
  59. if not exist %1\GM\*.* goto makeit
  60. goto carryon
  61. :makeit
  62. md %1\GM > NUL
  63. :carryon
  64. echo.
  65. echo Making appropriate Football Edition 1993 directories...
  66. md %1\GM\GM93 > NUL
  67. md %1\GM\GM93\BACKUP > NUL
  68. echo Everything is OK.  %1\GM\GM93 and %1\GM\GM93\BACKUP have been made!
  69. goto CopyFiles
  70. :DirExists
  71. echo WARNING:  The directory %1\GM\GM93 already exists.  Press Ctrl-C then
  72. echo           "Y" now if you don't want to overwrite the contents of that
  73. echo           directory.
  74. echo.
  75. pause
  76. echo.
  77. :CopyFiles
  78. echo.
  79. echo Extracting and copying "Football Edition 1993" files to %1\GM\GM93...
  80. GM93REG -o %1\GM\GM93
  81. if not exist %1\GM\GM93\RECORD.S3 goto InstallError
  82. cls
  83. echo ╔══════════════════════════════════════════════════════════════════════╗
  84. echo ║                                                                      ║
  85. echo ║  Football Ed. 1993 has been successfully installed to your %1 drive. ║
  86. echo ║                                                                      ║
  87. echo ║      To run Football Edition 1993  type  GM93  and press ENTER.      ║
  88. echo ║                                                                      ║
  89. echo ╚══════════════════════════════════════════════════════════════════════╝
  90. %1
  91. cd %1\GM\GM93
  92. goto End
  93. :InstallError
  94. echo ERROR:  Installation of Football Edition 1993 into %1\GM\GM93 was unsuccessful.
  95. echo         This could be caused because your %1 drive is full or unaccessible.
  96. echo         Football Edition 1993 needs about 360K of free disk space.
  97. echo.
  98. :End
  99. echo.
  100.