home *** CD-ROM | disk | FTP | other *** search
/ Interactive Entertainment 12 / EPISODE_12_APR_1995.iso / patch / t7g_130.exe / INSTALL.BAT < prev    next >
DOS Batch File  |  1993-08-11  |  3KB  |  133 lines

  1. Rem /  Batch File Installer for
  2. Rem /      The 7th Guest
  3. Rem /      version 1.30
  4. Rem /  (c) 1993 Virgin Games
  5. Rem /  MG8.11
  6.  
  7. @echo off
  8. cls
  9. if exist t7g-130.exe goto NOERR
  10. goto ERR3
  11.  
  12. :NOERR
  13. if %1x==x goto TryDefault
  14. if exist %1\V.EXE goto DO_IT
  15. goto ERR
  16.  
  17. :TryDefault
  18. if exist c:\id\t7g\v.exe goto CONTINUE
  19. goto usage
  20.  
  21. :CONTINUE
  22. echo Detected default install directory. 
  23. echo.
  24. set T7GPTH=C:\ID\T7G
  25. if %T7GPTH%==C:\ID\T7G goto DO_IT2
  26. goto ERR2
  27.  
  28. :DO_IT
  29. set T7GPTH=%1
  30. if %T7GPTH%==%1 goto DO_IT2 
  31. goto ERR2
  32.  
  33. :DO_IT2
  34. echo One moment please...
  35. echo.
  36. for %%A in (V.EXE INSTALL.EXE) do del %T7GPTH%\%%A
  37. for %%A in (ADLIB ADLIBG ALGDIG MT32MPU PASDIG PASFM) do del %T7GPTH%\%%A.ADV
  38. for %%A in (PASOPL SBDIG SBPDIG SBP1FM SBP2FM SBFM) do del %T7GPTH%\%%A.ADV
  39. echo Loading update information...
  40. copy \t7g-130.exe %T7GPTH% > NUL
  41. echo Updating old files... 
  42. echo.
  43. %T7GPTH%\t7g-130 %T7GPTH% 
  44. del %T7GPTH%\t7g-130.exe
  45. pause
  46. if exist %T7GPTH%\t7g130.TXT goto SUCCESS
  47. goto ERROR
  48.  
  49. :ERR3
  50. echo.
  51. echo           ────────  T7G-130.EXE file not found  ─────────
  52. echo.
  53. echo           Please ensure that the install is run from the 
  54. echo           floppy disk drive.
  55. echo.
  56. echo           For example, you should be typing:
  57. echo           A:
  58. echo           INSTALL
  59. echo.
  60. echo.
  61. goto ERROR
  62.  
  63. :ERR2
  64. echo.
  65. echo           ───────  Not enough environment space   ───────
  66. echo                  to finish installation of update.
  67. echo.
  68. echo            Please increase the environment space before 
  69. echo            running the install. 
  70. echo.
  71. echo            For example, add: 
  72. echo            SHELL=C:\DOS\COMMAND.COM C:\DOS\ /p /e:256
  73. echo            to you CONFIG.SYS file.
  74. echo.
  75. echo            Do NOT run the install from Windows.
  76. echo.
  77. echo.
  78. goto ERROR
  79.  
  80. :ERR
  81. echo. 
  82. echo      *** Could not find The 7th Guest files in: 
  83. echo          %1 
  84. echo          please check path.
  85.  
  86. :USAGE
  87. echo. 
  88. echo      To update your installation of The 7th Guest, type "INSTALL"
  89. echo      followed by a space and the name of the directory where the
  90. echo      T7G files were originally installed.
  91. echo. 
  92. echo      For example, if the update files are located on a disk in
  93. echo      drive A:, and T7G were originally installed to D:\GUEST, the 
  94. echo      commands would look like this:
  95. echo. 
  96. echo      A:
  97. echo      INSTALL D:\GUEST
  98. echo. 
  99. goto end
  100.  
  101. :ERROR
  102. echo           ─── Failed attempt to update The 7th Guest ────
  103. echo.
  104. echo                  For assistance, please contact 
  105. echo                  Virgin Games Technical Support
  106. echo                         (714) 833-1999
  107. goto end
  108.  
  109. :SUCCESS
  110. cls
  111. echo      ───────── Updated "The 7th Guest" to version 1.30 ─────────
  112. echo.
  113. echo      Do NOT re-install The 7th Guest from the CD-ROM disc or else
  114. echo      the updated files will be overwritten.  You MAY however run
  115. echo      the INSTALL program from the hard drive to reconfigure your
  116. echo      hardware setup.
  117. echo.
  118. echo.
  119. echo.
  120. echo.
  121. echo.
  122. echo.
  123. echo.
  124. echo.
  125. echo.
  126. echo.
  127. echo.
  128.  
  129. :END
  130. set T7GPTH=
  131. echo. 
  132.  
  133.