home *** CD-ROM | disk | FTP | other *** search
/ Interactive Entertainment 12 / EPISODE_12_APR_1995.iso / patch / lolcdpch.exe / INSTALL.BAT next >
DOS Batch File  |  1994-03-21  |  3KB  |  131 lines

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