home *** CD-ROM | disk | FTP | other *** search
/ HomeWare 14 / HOMEWARE14.bin / music / jammer20.arj / INSTALL.BAT < prev    next >
DOS Batch File  |  1993-07-16  |  4KB  |  121 lines

  1. echo off
  2. cls
  3. rem --- make sure the user specified valid drive letter (we allow A thru H)
  4. rem     for both the source and dest drives.
  5. if %1a == a goto noDriveSpecified
  6. if %1 == a: goto checkDest
  7. if %1 == A: goto checkDest
  8. if %1 == b: goto checkDest
  9. if %1 == B: goto checkDest
  10. goto notOnThatDrive
  11. :checkDest
  12. if %2a == a goto noDriveSpecified
  13. if %2 == c: goto begin
  14. if %2 == C: goto begin
  15. if %2 == d: goto begin
  16. if %2 == D: goto begin
  17. if %2 == e: goto begin
  18. if %2 == E: goto begin
  19. if %2 == f: goto begin
  20. if %2 == F: goto begin
  21. if %2 == g: goto begin
  22. if %2 == G: goto begin
  23. if %2 == h: goto begin
  24. if %2 == H: goto begin
  25. goto noDriveSpecified
  26. :begin
  27. echo ╔═══════════════════════════════════════════════════════════════════════╗
  28. echo ║                 The Jammer Pro 2.0 Demo Installation                  ║
  29. echo ║                 From SoundTrek via Sound Management MIDI BBS          ║
  30. echo ║                     708-949-MIDI 6 gigs of MIDI online!               ║
  31. echo ║ This will create a directory called %2\JAM20 on your destination      ║
  32. echo ║ disk, and will install The Jammer Demo in that directory.             ║
  33. echo ║                                                                       ║
  34. echo ║ If you don't want to install The Jammer Demo now, press Ctrl-Break.   ║
  35. echo ║                                                                       ║
  36. echo ╚═══════════════════════════════════════════════════════════════════════╝
  37. pause
  38.  
  39. rem --- create \JAM20 on the current drive.
  40. echo 
  41. echo Creating directory %2\JAM20...
  42. if not exist %2\JAM20\*.* goto go_on
  43. rem --- \JAM20 dir already exists.
  44. :directoryExists
  45. echo 
  46. echo There is already a \JAM20 directory on drive %2.  If you don't want to
  47. echo install The Jammer Demo into that directory, press Ctrl-Break.
  48. echo Otherwise, press any key to install The Jammer Demo into %2\JAM20.
  49. pause
  50. goto go_on2
  51. :go_on
  52. md %2\JAM20
  53. :go_on2
  54.  
  55. rem --- make sure source drive contains Disk 1
  56. :1a
  57. if exist %1\instdmo.exe goto 1b
  58. echo 
  59. echo Insert The Jammer Demo Disk in drive %1 or press Ctrl-Break to exit.
  60. pause
  61. goto 1a
  62. :1b
  63.  
  64. rem --- unarc instdmo.exe
  65. echo 
  66. echo Installing The Jammer Pro 2.0 Demo
  67. %2
  68. cd \jam20
  69. %1\instdmo.exe -o
  70. if not exist %2\JAM20\jammer.exe goto error
  71.  
  72. rem --- installation was successful!
  73. :installDone
  74. cd %2\JAM20
  75. echo 
  76. echo The Jammer Demo is now installed on your destination disk.
  77. echo To run it, type "JAMMER".
  78. echo 
  79. %2
  80. goto done
  81.  
  82. rem --- user didn't specify a drive letter followed by a colon.
  83. :noDriveSpecified
  84. echo 
  85. echo                Jammer Installation Instructions:
  86. echo ───────────────────────────────────────────────────────────────────────
  87. echo  
  88. echo To install The Jammer Demo enter the following command
  89. echo at the DOS prompt:
  90. echo  
  91. echo       INSTALL   source_drive   destination_drive
  92. echo  
  93. echo For example, if you are installing from floppy drive A:
  94. echo to hard drive C:, type the following command:
  95. echo  
  96. echo       INSTALL A: C:
  97. echo  
  98. goto errorDone
  99.  
  100. rem --- user specified invalid drive letter.
  101. :notOnThatDrive
  102. echo 
  103. echo Installation Error: Each drive letter must be a letter from A to H,
  104. echo and must be followed by a colon.  For example, "INSTALL A: C:" will
  105. echo install The Jammer Demo from drive A: to hard drive C:.
  106. goto errorDone
  107.  
  108. rem --- general installation error.
  109. :error
  110. echo 
  111. echo Installation Error:  Perhaps there isn't enough space on your destination
  112. echo disk.  The Jammer Demo requires about 2 megabytes of free space.
  113. goto errorDone
  114.  
  115. rem --- goto here after an error is detected, to print a message and exit.
  116. :errorDone
  117. echo 
  118. echo The Jammer Demo was not installed.
  119. echo  
  120. :done
  121.