home *** CD-ROM | disk | FTP | other *** search
/ Gambler 32 B / GAMBLERCD32B.BIN / INSTALL.BAT < prev    next >
DOS Batch File  |  1996-05-23  |  3KB  |  162 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. if exist %2\deus\save.dat goto nosave0
  57. copy save.dat %2\deus >nul
  58. :nosave0
  59. copy s.tst %2\deus >nul
  60. copy *.io %2\deus >nul
  61. copy *.to %2\deus >nul
  62. copy *.flc %2\deus >nul
  63.  
  64. @%2
  65. @cd %2\deus
  66. goto ok
  67.  
  68. rem --------------------------------------------------------------------------
  69. rem Standard
  70. rem --------------------------------------------------------------------------
  71.  
  72. :choix2
  73. Cls
  74. if exist %2\deus\start.exe goto dinst1
  75. md %2\deus >nul
  76. goto iok1
  77.  
  78. :dinst1
  79. echo 
  80. echo Deus already installed,
  81. choice /CYN /N "continue installation (Y/N) : "
  82.  
  83. IF ERRORLEVEL 2 GOTO fin
  84. :iok1
  85.  
  86. echo 
  87. echo please wait, installation in progress...
  88.  
  89. copy start.exe %2\deus >nul
  90. if exist %2\deus\save.dat goto nosave1
  91. copy save.dat %2\deus >nul
  92. :nosave1
  93. copy *.io %2\deus >nul
  94. copy *.to %2\deus >nul
  95. copy oklogdeu.flc %2\deus >nul
  96. copy oklogosi.flc %2\deus >nul
  97.  
  98. @%2
  99. @cd %2\deus
  100. goto ok
  101.  
  102. rem --------------------------------------------------------------------------
  103. rem Minimum
  104. rem --------------------------------------------------------------------------
  105.  
  106. :choix1
  107. Cls
  108. if exist %2\deus\start.exe goto dinst2
  109. md %2\deus >nul
  110. goto iok2
  111.  
  112. :dinst2
  113. echo 
  114. echo Deus already installed,
  115. choice /CYN /N "continue installation (Y/N) : "
  116.  
  117. IF ERRORLEVEL 2 GOTO fin
  118. :iok2
  119.  
  120. echo 
  121. echo please wait, installation in progress...
  122.  
  123. copy start.exe %2\deus >nul
  124. if exist %2\deus\save.dat goto nosave2
  125. copy save.dat %2\deus >nul
  126. :nosave2
  127. copy main.io %2\deus >nul
  128. copy a_arc.io %2\deus >nul
  129. copy a_cout.io %2\deus >nul
  130. copy a_gun.io %2\deus >nul
  131. copy a_hach.io %2\deus >nul
  132. copy a_lance.io %2\deus >nul
  133. copy a_laser.io %2\deus >nul
  134. copy a_mitr.io %2\deus >nul
  135. copy a_plasm.io %2\deus >nul
  136. copy a_poing.io %2\deus >nul
  137. copy b_gun.io %2\deus >nul
  138. copy b_hach.io %2\deus >nul
  139. copy b_mitr.io %2\deus >nul
  140. copy c_gun.io %2\deus >nul
  141. copy c_hach.io %2\deus >nul
  142. copy c_mitr.io %2\deus >nul
  143.  
  144. @%2
  145. @cd %2\deus
  146. goto ok
  147.  
  148. :Erreur
  149. echo 
  150. echo *** Procedure Interrupted - Installation Failed ***
  151. echo Install Source_Drive Destination_Drive
  152. echo ex: INSTALL D: C:
  153. goto fin
  154.  
  155. :ok
  156. echo 
  157. echo *** Installation finished ***
  158. echo To play, type START from your Hard drive
  159.  
  160. :fin
  161. echo 
  162.