home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / m / m028 / tetra.ddi / INSTALL.BAT next >
Encoding:
DOS Batch File  |  1992-08-22  |  3.1 KB  |  120 lines

  1. echo off
  2. cls
  3.  
  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.  
  18. :adrive
  19. a:
  20. goto doinstall
  21.  
  22. :bdrive
  23. b:
  24. goto doinstall
  25.  
  26. :doinstall
  27.  
  28. if "%1"=="" goto DriveNeeded
  29. if %1==c: goto MakeDir
  30. if %1==C: goto MakeDir
  31. if %1==d: goto MakeDir
  32. if %1==D: goto MakeDir
  33. if %1==e: goto MakeDir
  34. if %1==E: goto MakeDir
  35. if %1==f: goto MakeDir
  36. if %1==F: goto MakeDir
  37. if %1==g: goto MakeDir
  38. if %1==G: goto MakeDir
  39. if %1==h: goto MakeDir
  40. if %1==H: goto MakeDir
  41. if %1==i: goto MakeDir
  42. if %1==I: goto MakeDir
  43. if %1==j: goto MakeDir
  44. if %1==J: goto MakeDir
  45. if %1==k: goto MakeDir
  46. if %1==K: goto MakeDir
  47. if %1==l: goto MakeDir
  48. if %1==L: goto MakeDir
  49. if %1==m: goto MakeDir
  50. if %1==M: goto MakeDir
  51. if %1==n: goto MakeDir
  52. if %1==N: goto MakeDir
  53. if %1==o: goto MakeDir
  54. if %1==O: goto MakeDir
  55. if %1==p: goto MakeDir
  56. if %1==P: goto MakeDir
  57.  
  58. :InvalidDrive
  59. echo "%1" is an invalid drive name.  Please use the drive's letter
  60. echo followed by a colon:
  61. goto Example
  62.  
  63. :DriveNeeded
  64. echo Please specify which drive to install on, for example:
  65. :Example
  66. echo 
  67. echo         install c:
  68. goto End
  69.  
  70. :MakeDir
  71. echo ╔═══════════════════════════════════════════════════════════════╗
  72. echo ║                                                               ║
  73. echo ║                         TETRA COMPOSER                        ║
  74. echo ║                                                               ║
  75. echo ║                   Hard Disk Install Utility                   ║
  76. echo ║                                                               ║
  77. echo ║                                                               ║
  78. echo ║ This program will install all files into a directory          ║
  79. echo ║ called "TETRA" on drive %1.  If you do not wish to do this,   ║
  80. echo ║ then press Ctrl-C now.                                        ║
  81. echo ║                                                               ║
  82. echo ╚═══════════════════════════════════════════════════════════════╝
  83. echo 
  84. pause
  85. echo 
  86.  
  87. if exist %1\TETRA\*.* goto DirExists
  88. mkdir %1\TETRA
  89. goto CopyFiles
  90.  
  91. :DirExists
  92. echo WARNING:  The directory %1\TETRA already exists. Press Ctrl-C now if
  93. echo           you don't want to overwrite the contents of that directory.
  94. echo 
  95. pause
  96. echo 
  97. GOTO CopyFiles
  98.  
  99. :CopyFiles
  100. if not exist tetra_1.exe goto DISK1
  101. echo Copying Disk 1 to %1\TETRA...
  102. TETRA_1 %1\TETRA
  103. if not exist tetra_2.exe goto DISK2
  104. echo Copying Disk 2 to %1\TETRA...
  105. TETRA_2 %1\TETRA
  106. if not exist tetra_3.exe goto DISK3
  107. echo Copying Disk 3 to %1\TETRA...
  108. TETRA_3 %1\TETRA
  109. if not exist tetra_4.exe goto DISK4
  110. echo Copying Disk 4 to %1\TETRA...
  111. TETRA_4 %1\TETRA
  112.  
  113. goto End
  114.  
  115. :InstallError
  116. echo ERROR:  Installation into %1\TETRA was unsuccessful.  This might be
  117. echo         because your hard disk is full.
  118. :End
  119. echo 
  120.