home *** CD-ROM | disk | FTP | other *** search
/ 3D Action & Classic Games / NEW.iso / logic / incr_m2 / disk1 / install.scr < prev    next >
Encoding:
Text File  |  1994-12-19  |  2.4 KB  |  89 lines

  1.  
  2. rem %1 is destination drive with no :
  3. rem %2 is installation source drive
  4. rem %3 is new contents of RESOURCE.CFG
  5. rem %4 is destination directory
  6.  
  7. clear
  8. godir %1:%4 CantCreate
  9.  
  10. exists %2:COMPRESS.000 Please insert the disk labeled "Disk 1" in drive %2:.
  11. echo Copying Game files...
  12. copy %2:~~~inst.exe install.exe
  13. copy %2:install.hlp
  14. copy %2:install.txt
  15. copy %2:*.drv
  16. echo %3 >resource.cfg
  17. copy %2:compress.000
  18. echo Processing %2:compress.000 ...
  19. %2:unchunk compress.000 . >nul
  20. if ERRORLEVEL 1 goto BadChunk
  21. del compress.000
  22.  
  23. exists %2:COMPRESS.001 Please insert the disk labeled "Disk 2" in drive %2:.
  24. echo Copying Game files...
  25. if not exist compress.001 copy %2:*.*
  26.  
  27. exists %2:COMPRESS.000 Please insert the disk labeled "Disk 1" in drive %2:.
  28. echo Processing %2:compress.001 ...
  29. %2:unchunk compress.001 . >nul
  30. if ERRORLEVEL 1 goto BadChunk
  31. del compress.001
  32.  
  33. :Done
  34. echo Language = English >>resource.cfg
  35.  
  36. clear
  37. echo
  38. echo  To play NOW:
  39. echo     Type TIM2 and press [ENTER].
  40. echo
  41. echo  To play LATER:
  42. echo     Type CD %4 and press [ENTER]
  43. echo     Then type TIM2 and press [ENTER].
  44. echo
  45. echo  OR Place Easy Start disk in the
  46. echo     drive and type CTRL+ALT_DEL.
  47. echo
  48. pause
  49. end
  50.  
  51. :CantCreate
  52. clear
  53. echo
  54. alert Unable to create directory %1:%4
  55. end
  56.  
  57. :BadChunk
  58. if ERRORLEVEL 6 goto ERR6
  59. if ERRORLEVEL 5 goto ERR5
  60. if ERRORLEVEL 4 goto ERR4
  61. if ERRORLEVEL 3 goto ERR3
  62. if ERRORLEVEL 2 goto ERR2
  63. if ERRORLEVEL 1 goto ERR1
  64. alert Unable to extract resource file.  Please run install again.
  65. end
  66.  
  67. :ERR1
  68. alert Unable to read resource file.  Make sure the drive door is shut and run install again.
  69. end
  70. :ERR2
  71. 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.
  72. end
  73. :ERR3
  74. alert Not enough memory to run extraction program.  The extraction program needs a minimum of 550k to operate.
  75. end
  76. :ERR4
  77. alert The resource file is bad.  Run install again.  If you get this message again, you probably received a bad disk.
  78. end
  79. :ERR5
  80. 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.
  81. end
  82. :ERR6
  83. 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.
  84. end
  85.  
  86. :exit
  87. end
  88. 
  89.