home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer 3.3 / 1997-06_Disc_3.3.iso / krondor / krondorz.exe / Install.scr < prev    next >
Text File  |  1993-06-16  |  4KB  |  133 lines

  1. clear
  2. space %1: 15000 NoSpace
  3.  
  4. echo The install program will now copy 
  5. echo Betrayal At Krondor to your hard drive.
  6. echo Approximate hard drive space required:  15 Megs
  7. echo
  8. echo Do you wish to (C)ontinue or (E)xit?
  9. pick ce Continue Exit
  10.  
  11. :Continue
  12. clear
  13. %1:
  14. godir %4 CantCreate
  15.  
  16. echo Copying Game files...
  17.  
  18. exists %2:RESOURCE.000 Please insert the disk labeled "Disk 1" in drive %2:.
  19. copy %2:*.*           
  20. echo %3 >resource.cfg
  21.  
  22. exists %2:RESOURCE.001 Please insert the disk labeled "Disk 2" in drive %2:.
  23. copy %2:RESOURCE.001 
  24.  
  25. exists %2:RESOURCE.002 Please insert the disk labeled "Disk 3" in drive %2:.
  26. copy %2:RESOURCE.002 
  27.  
  28. exists %2:RESOURCE.003 Please insert the disk labeled "Disk 4" in drive %2:.
  29. copy %2:RESOURCE.003 
  30.  
  31. exists %2:RESOURCE.004 Please insert the disk labeled "Disk 5" in drive %2:.
  32. copy %2:RESOURCE.004 
  33.  
  34. exists %2:RESOURCE.005 Please insert the disk labeled "Disk 6" in drive %2:.
  35. copy %2:RESOURCE.005 
  36.  
  37. exists %2:RESOURCE.006 Please insert the disk labeled "Disk 7" in drive %2:.
  38. copy %2:RESOURCE.006 
  39.  
  40. echo Processing resource.000 ...
  41. unchunk RESOURCE.000 . > nul
  42. if ERRORLEVEL 1 goto BadChunk
  43. del RESOURCE.000
  44.  
  45. echo Processing resource.001 ...
  46. unchunk RESOURCE.001 . > nul
  47. if ERRORLEVEL 1 goto BadChunk
  48. del RESOURCE.001
  49.  
  50. echo Processing resource.002 ...
  51. unchunk RESOURCE.002 . > nul
  52. if ERRORLEVEL 1 goto BadChunk
  53. del RESOURCE.002
  54.  
  55. echo Processing resource.003 ...
  56. unchunk RESOURCE.003 . > nul
  57. if ERRORLEVEL 1 goto BadChunk
  58. del RESOURCE.003
  59.  
  60. echo Processing resource.004 ...
  61. unchunk RESOURCE.004 . > nul
  62. if ERRORLEVEL 1 goto BadChunk
  63. del RESOURCE.004
  64.  
  65. echo Processing resource.005 ...
  66. unchunk RESOURCE.005 . > nul
  67. if ERRORLEVEL 1 goto BadChunk
  68. del RESOURCE.005
  69.  
  70. echo Processing resource.006 ...
  71. unchunk RESOURCE.006 . > nul
  72. if ERRORLEVEL 1 goto BadChunk
  73. del RESOURCE.006
  74.  
  75. del UNCHUNK.EXE
  76.  
  77. clear
  78. echo
  79. echo  To play NOW:
  80. echo     Type KRONDOR and press [ENTER].
  81. echo
  82. echo  To play LATER:
  83. echo     From the root directory of %1:
  84. echo     Type CD %4 and press [ENTER], then
  85. echo     Type KRONDOR and press [ENTER].
  86. echo
  87. pause
  88. end
  89.  
  90. :NoSpace
  91. clear
  92. echo
  93. alert There is not enough space on %1: to install Betrayal At Krondor on your hard drive.  15 Megabytes of disk space are necessary.
  94. end
  95.  
  96. :CantCreate
  97. clear
  98. echo
  99. alert Unable to create directory %4
  100. end
  101.  
  102. :BadChunk
  103. if ERRORLEVEL 6 goto ERR6
  104. if ERRORLEVEL 5 goto ERR5
  105. if ERRORLEVEL 4 goto ERR4
  106. if ERRORLEVEL 3 goto ERR3
  107. if ERRORLEVEL 2 goto ERR2
  108. if ERRORLEVEL 1 goto ERR1
  109. alert Unable to extract resource file.  Please run install again.
  110. end
  111.  
  112. :ERR1
  113. alert Unable to read resource file.  Make sure the drive door is shut and run install again.
  114. end
  115. :ERR2
  116. alert Unable to write resource file to hard drive.  This program only installs games on hard drives.  Run install again.  If you get this message again you may have a problem with your hard drive.
  117. end
  118. :ERR3
  119. alert Not enough memory to run extraction program.  The extraction program needs a minimum of 550k to operate.
  120. end
  121. :ERR4
  122. alert The resource file is bad.  Run install again.  If you get this message again, you probably received a bad disk.
  123. end
  124. :ERR5
  125. alert Unable to open the resource file for reading.  A possible solution might be to increase the value of the FILES setting in your CONFIG.SYS file.
  126. end
  127. :ERR6
  128. alert Unable to open the target file for writing.  A possible solution might be to increase the value of the FILES setting in your CONFIG.SYS file.
  129. end
  130.  
  131. :exit
  132. end
  133.