home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer 4 / 1995-03_Disc_4.iso / tim2 / install.scr < prev    next >
Text File  |  1994-10-27  |  3KB  |  96 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:*.*
  13. echo %3 >resource.cfg
  14. echo Processing %2:compress.000 ...
  15. unchunk compress.000 . >nul
  16. if ERRORLEVEL 1 goto BadChunk
  17. del compress.000
  18. goto done
  19.  
  20. :disk2
  21. exists %2:COMPRESS.001 Please insert the disk labeled "Disk 2" in drive %2:.
  22. echo Copying Game files...
  23. if not exist compress.001 copy %2:*.*
  24. echo Processing %2:compress.001 ...
  25. unchunk compress.001 . >nul
  26. if ERRORLEVEL 1 goto BadChunk
  27. del compress.001
  28. goto done
  29.  
  30. exists %2:COMPRESS.002 Please insert the disk labeled "Disk 3" in drive %2:.
  31. echo Copying Game files...
  32. if not exist compress.002 copy %2:*.*
  33. echo Processing %2:compress.002 ...
  34. unchunk compress.002 . >nul
  35. if ERRORLEVEL 1 goto BadChunk
  36. del compress.002
  37. goto done
  38.  
  39. :disk4
  40. :Done
  41. del UNCHUNK.EXE
  42.  
  43. clear
  44. echo
  45. echo  To play NOW:
  46. echo     Type TIM2 and press [ENTER].
  47. echo
  48. echo  To play LATER:
  49. echo     Type CD %4 and press [ENTER]
  50. echo     Then type TIM2 and press [ENTER].
  51. echo
  52. echo  OR Place Easy Start disk in the
  53. echo     drive and type CTRL+ALT_DEL.
  54. echo
  55. pause
  56. end
  57.  
  58. :CantCreate
  59. clear
  60. echo
  61. alert Unable to create directory %1:%4
  62. end
  63.  
  64. :BadChunk
  65. if ERRORLEVEL 6 goto ERR6
  66. if ERRORLEVEL 5 goto ERR5
  67. if ERRORLEVEL 4 goto ERR4
  68. if ERRORLEVEL 3 goto ERR3
  69. if ERRORLEVEL 2 goto ERR2
  70. if ERRORLEVEL 1 goto ERR1
  71. alert Unable to extract resource file.  Please run install again.
  72. end
  73.  
  74. :ERR1
  75. alert Unable to read resource file.  Make sure the drive door is shut and run install again.
  76. end
  77. :ERR2
  78. 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.
  79. end
  80. :ERR3
  81. alert Not enough memory to run extraction program.  The extraction program needs a minimum of 550k to operate.
  82. end
  83. :ERR4
  84. alert The resource file is bad.  Run install again.  If you get this message again, you probably received a bad disk.
  85. end
  86. :ERR5
  87. 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.
  88. end
  89. :ERR6
  90. 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.
  91. end
  92.  
  93. :exit
  94. end
  95. 
  96.