home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer 14 / 1996-01_Disc_14.iso / install / install.scr < prev    next >
Text File  |  1995-08-30  |  2KB  |  110 lines

  1. clear
  2.  
  3. REM Sierra install script for Torin's Passage
  4.  
  5. REM %1 = dest drive
  6. REM %2 = src  dir
  7. REM %3 = Chosen drivers
  8. REM %4 = dest dir
  9.  
  10. :Choose
  11. godir %1:%4 cantcreate
  12.  
  13. cls
  14.  
  15. space %1: 4000 nospace
  16.  
  17. REM The install program is running from 
  18. REM the install directory on the CD
  19. copy %2:..\sierrah.exe                    %1:
  20. copy %2:..\sierra.err                    %1:
  21. copy %2:bootdisk.exe        %1:
  22. copy %2:install.*            %1:
  23. copy %2:*.drv                %1:
  24. copy %2:checkcd.bat        %1:
  25. copy %2:readme.*            %1:
  26. copy %2:cpuid.exe            %1:
  27. copy %2:dos4gw.exe        %1:
  28. copy %2:hddtec.exe        %1:
  29. copy %2:frog.bmp            %1:
  30. copy %2:resource.cfg        %1:
  31.  
  32. echo
  33. echo Do you want to test hardware? (y/n)
  34. echo
  35. pick yn TEST SKIPTEST
  36.  
  37. :TEST
  38. clear
  39. echo 
  40. echo Be sure you have a CD loaded in the CD drive.
  41. echo
  42. pause
  43.  
  44. cpuid
  45. hddtec
  46.  
  47. :SKIPTEST
  48. clear
  49. echo 
  50. echo Do you want to install Torin's Passage? (y/n)
  51. echo
  52. pick yn INSTALL QUIT
  53.  
  54. :INSTALL
  55.  
  56. REM Batch file to run game from SIERRA directory
  57. echo @echo off                               >..\tordemo.bat
  58. echo %1:                                    >>..\tordemo.bat
  59. echo cd %4                                  >>..\tordemo.bat
  60. echo call CheckCD %2                        >>..\tordemo.bat
  61. echo @if exist vesa.bat call vesa.bat       >>..\tordemo.bat
  62. echo sierrah resource.cfg                   >>..\tordemo.bat
  63.  
  64. REM Batch file to run game from SIERRA\TORIN directory
  65. copy ..\tordemo.bat tordemo.bat
  66.  
  67. REM Making vesadrv.bat
  68. echo %2:                                     >vesadrv.bat
  69. echo cd \install\vesa                       >>vesadrv.bat
  70. echo vesainst /Vvesa /B%1:%4 /Tsierra.dib   >>vesadrv.bat
  71.  
  72. REM add the chosen drivers and our paths to the resource file
  73. echo %3                                 >resource.cfg
  74. echo resSfx= %2:\                      >>resource.cfg
  75. echo resAud= %2:\                      >>resource.cfg
  76. echo resMap= %2:\                      >>resource.cfg
  77. echo patchDir= %1:%4;%2:\patches;%2:\  >>resource.cfg
  78.  
  79. goto done
  80.  
  81. :done
  82. rem cd ..>NUL
  83. cls
  84. echo
  85. echo  To play Torin's Passage later:
  86. echo     From the directory of %1:%4,
  87. echo     Type TORDEMO and press [ENTER].
  88. echo
  89. pause
  90. goto quit
  91.  
  92. :cantcreate
  93. alert Unable to create directory %1:%4
  94. pause
  95. goto quit
  96.  
  97. :nospace
  98. cls
  99. echo
  100. echo There is not enough space on %1: to install. 
  101. echo 4 Megabytes of disk space is necessary for
  102. echo the install.
  103. echo
  104. pause
  105. goto quit
  106.  
  107. :quit
  108. end
  109.  
  110.