home *** CD-ROM | disk | FTP | other *** search
/ Interactive Entertainment 10 / EPISODE_10_FEB_1995.iso / patch / hofpatch.exe / INSTALL.BAT next >
DOS Batch File  |  1994-03-15  |  3KB  |  132 lines

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