home *** CD-ROM | disk | FTP | other *** search
/ CD Action 9 A / cdactioncoverdisc / deus / install.bat < prev    next >
DOS Batch File  |  1996-05-23  |  3KB  |  156 lines

  1. @echo off
  2. if "%1"=="" goto Erreur
  3. if "%2"=="" goto Erreur
  4.  
  5. @%1
  6. @cd %1\
  7. @cd %2\
  8.  
  9. :deb
  10. Cls
  11. echo 
  12. echo ╔════════╗
  13. echo ║  DEUS  ║
  14. echo ╚════════╝
  15. echo 
  16. echo  (C) Copyright Silmarils 1996
  17. echo 
  18. echo  Select the configuration to install
  19. echo 
  20. echo  (1) Minimum  (  5 Mb)
  21. echo  (2) Standard ( 54 Mb)
  22. echo  (3) Maximum  (212 Mb)
  23. echo 
  24. echo  (X) Exit
  25. echo 
  26. choice /C123X /N " Your Choice : "
  27. @cls
  28. IF ERRORLEVEL 4 GOTO fin
  29. IF ERRORLEVEL 3 GOTO choix3
  30. IF ERRORLEVEL 2 GOTO choix2
  31. IF ERRORLEVEL 1 GOTO choix1
  32. goto deb
  33.  
  34. rem --------------------------------------------------------------------------
  35. rem Maximun
  36. rem --------------------------------------------------------------------------
  37.  
  38. :choix3
  39. Cls
  40. if exist %2\deus\start.exe goto dinst0
  41. md %2\deus >nul
  42. goto iok0
  43.  
  44. :dinst0
  45. echo 
  46. echo Deus already installed,
  47. choice /CYN /N "continue installation (Y/N) : "
  48.  
  49. IF ERRORLEVEL 2 GOTO fin
  50. :iok0
  51.  
  52. echo 
  53. echo please wait, installation in progress...
  54.  
  55. copy start.exe %2\deus >nul
  56. copy save.dat %2\deus >nul
  57. copy s.tst %2\deus >nul
  58. copy *.io %2\deus >nul
  59. copy *.to %2\deus >nul
  60. copy *.flc %2\deus >nul
  61.  
  62. @%2
  63. @cd %2\deus
  64. goto ok
  65.  
  66. rem --------------------------------------------------------------------------
  67. rem Standard
  68. rem --------------------------------------------------------------------------
  69.  
  70. :choix2
  71. Cls
  72. if exist %2\deus\start.exe goto dinst1
  73. md %2\deus >nul
  74. goto iok1
  75.  
  76. :dinst1
  77. echo 
  78. echo Deus already installed,
  79. choice /CYN /N "continue installation (Y/N) : "
  80.  
  81. IF ERRORLEVEL 2 GOTO fin
  82. :iok1
  83.  
  84. echo 
  85. echo please wait, installation in progress...
  86.  
  87. copy start.exe %2\deus >nul
  88. copy save.dat %2\deus >nul
  89. copy *.io %2\deus >nul
  90. copy *.to %2\deus >nul
  91. copy oklogdeu.flc %2\deus >nul
  92. copy oklogosi.flc %2\deus >nul
  93.  
  94. @%2
  95. @cd %2\deus
  96. goto ok
  97.  
  98. rem --------------------------------------------------------------------------
  99. rem Minimum
  100. rem --------------------------------------------------------------------------
  101.  
  102. :choix1
  103. Cls
  104. if exist %2\deus\start.exe goto dinst2
  105. md %2\deus >nul
  106. goto iok2
  107.  
  108. :dinst2
  109. echo 
  110. echo Deus already installed,
  111. choice /CYN /N "continue installation (Y/N) : "
  112.  
  113. IF ERRORLEVEL 2 GOTO fin
  114. :iok2
  115.  
  116. echo 
  117. echo please wait, installation in progress...
  118.  
  119. copy start.exe %2\deus >nul
  120. copy save.dat %2\deus >nul
  121. copy main.io %2\deus >nul
  122. copy a_arc.io %2\deus >nul
  123. copy a_cout.io %2\deus >nul
  124. copy a_gun.io %2\deus >nul
  125. copy a_hach.io %2\deus >nul
  126. copy a_lance.io %2\deus >nul
  127. copy a_laser.io %2\deus >nul
  128. copy a_mitr.io %2\deus >nul
  129. copy a_plasm.io %2\deus >nul
  130. copy a_poing.io %2\deus >nul
  131. copy b_gun.io %2\deus >nul
  132. copy b_hach.io %2\deus >nul
  133. copy b_mitr.io %2\deus >nul
  134. copy c_gun.io %2\deus >nul
  135. copy c_hach.io %2\deus >nul
  136. copy c_mitr.io %2\deus >nul
  137.  
  138. @%2
  139. @cd %2\deus
  140. goto ok
  141.  
  142. :Erreur
  143. echo 
  144. echo *** Procedure Interrupted - Installation Failed ***
  145. echo Install Source_Drive Destination_Drive
  146. echo ex: INSTALL D: C:
  147. goto fin
  148.  
  149. :ok
  150. echo 
  151. echo *** Installation finished ***
  152. echo To play, type START from your Hard drive
  153.  
  154. :fin
  155. echo 
  156.