home *** CD-ROM | disk | FTP | other *** search
/ Kids Cube / 5_Logic.iso / toons / install.scr < prev    next >
Text File  |  1993-11-18  |  2KB  |  92 lines

  1. clear
  2.  
  3. rem %1 is destination drive with no :
  4. rem %2 is installation source drive
  5. rem %3 is new contents of RESOURCE.CFG
  6. rem %4 is destination directory
  7.  
  8. rem echo The install program will now copy 
  9. rem echo Incredible Toons to your hard drive.
  10. rem echo Approximate hard drive space required:  2 Meg
  11. rem echo
  12. rem echo Do you wish to (C)ontinue or (E)xit?
  13. rem pick ce Continue Exit
  14.  
  15. :Continue
  16. clear
  17. godir %1:%4 CantCreate
  18.  
  19. exists %2:RESOURCE.000 Please insert the disk labeled "Disk 1" in drive %2:.
  20. echo Copying Game files...
  21. copy %2:*.*
  22. echo %3 >resource.cfg
  23.  
  24. echo Processing %2:resource.000 ...
  25. ren resource.000 unchunk.000 >nul
  26. unchunk unchunk.000 . >nul
  27. if ERRORLEVEL 1 goto BadChunk
  28. del unchunk.000
  29. goto Done
  30.  
  31. exists %2:RESOURCE.001 Please insert the disk labeled "Disk 2" in drive %2:.
  32. echo Copying Game files...
  33. copy %2:resource.001 unchunk.001
  34. echo Processing %2:resource.001 ...
  35. unchunk unchunk.001 . >nul
  36. if ERRORLEVEL 1 goto BadChunk
  37. del unchunk.001
  38.  
  39. :Done
  40. del UNCHUNK.EXE
  41.  
  42. clear
  43. echo
  44. echo  To play NOW:
  45. echo     Type TOONS and press [ENTER].
  46. echo
  47. echo  To play LATER:
  48. echo     Type CD %4 and press [ENTER]
  49. echo     Then type TOONS and press [ENTER].
  50. echo
  51. pause
  52. end
  53.  
  54. :CantCreate
  55. clear
  56. echo
  57. alert Unable to create directory %1:%4
  58. end
  59.  
  60. :BadChunk
  61. if ERRORLEVEL 6 goto ERR6
  62. if ERRORLEVEL 5 goto ERR5
  63. if ERRORLEVEL 4 goto ERR4
  64. if ERRORLEVEL 3 goto ERR3
  65. if ERRORLEVEL 2 goto ERR2
  66. if ERRORLEVEL 1 goto ERR1
  67. alert Unable to extract resource file.  Please run install again.
  68. end
  69.  
  70. :ERR1
  71. alert Unable to read resource file.  Make sure the drive door is shut and run install again.
  72. end
  73. :ERR2
  74. 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.
  75. end
  76. :ERR3
  77. alert Not enough memory to run extraction program.  The extraction program needs a minimum of 550k to operate.
  78. end
  79. :ERR4
  80. alert The resource file is bad.  Run install again.  If you get this message again, you probably received a bad disk.
  81. end
  82. :ERR5
  83. 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.
  84. end
  85. :ERR6
  86. 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.
  87. end
  88.  
  89. :exit
  90. end
  91. 
  92.