home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / s / sbt25sm1.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1993-01-14  |  4KB  |  131 lines

  1. ECHO OFF
  2.  
  3. REM -------------------------------------------------------------------------
  4. REM  File Name..: INSTALL.BAT
  5. REM  Version....: Professional 2.50
  6. REM  Last Update: 01/14/93
  7. REM ------------------------------------------------------------------------
  8. REM  Notice.....: (c) Copyright 1990, Revisions 90 - 93 by SBT Corporation
  9. REM               All Rights Reserved by SBT Corporation
  10. REM -------------------------------------------------------------------------
  11. REM  App ID.....: SY
  12. REM  App Name...: System Services Module
  13. REM -------------------------------------------------------------------------
  14. REM  Description: Installation boot strap loader batch file
  15. REM -------------------------------------------------------------------------
  16. REM  $Header:   $
  17. REM -------------------------------------------------------------------------
  18. REM Clear screen and display loading message
  19. CLS
  20.  
  21. REM Setup requirement variable
  22. SET MEMREQ=450
  23.  
  24. :CHK_FILE
  25.  
  26. REM Test for starting from default drive
  27. IF NOT EXIST INSTALL.BAT GOTO CHDRV
  28.  
  29. REM Test for required files
  30. IF NOT EXIST RUNTIME.EXE GOTO MISSING
  31. IF NOT EXIST SBTMEM.EXE  GOTO MISSING
  32. IF NOT EXIST PROINST.EXE GOTO MISSING
  33.  
  34. :CHK_MEM
  35. REM Check free memory
  36. SBTMEM %MEMREQ% > NUL
  37. IF ERRORLEVEL 2 GOTO NO_MEM
  38.  
  39. :START
  40. ECHO Starting SBT Professional Installation...
  41.  
  42. :RUN THE SETUP BOOTSTRAP
  43. PROINST
  44. CLS
  45. IF NOT ERRORLEVEL 1 GOTO CANCEL
  46. SBTINST
  47. GOTO END
  48.  
  49. REM -------------------------------------------------------------------------
  50. REM Error messages
  51. REM -------------------------------------------------------------------------
  52.  
  53.  
  54. :BAD_ZIP
  55. REM Bad zip file expansion error message
  56. ECHO 
  57. ECHO 
  58. ECHO ERROR: Problem encountered during ZIP file expansion.
  59. ECHO 
  60. ECHO Installation can not proceed because an error occurred during
  61. ECHO extraction from the file RUNTIME.EXE.
  62. ECHO 
  63. ECHO Please retry installation with another copy of the SBT
  64. ECHO Installation Disk.
  65. GOTO CANCEL
  66.  
  67. :CHDRV
  68. REM Wrong Drive error message
  69. ECHO 
  70. ECHO 
  71. ECHO ERROR: You are running the install program from the wrong drive.
  72. ECHO 
  73. ECHO Installation can only proceed when you type "INSTALL" at the prompt
  74. ECHO of the drive in which you have inserted the install disk.
  75. ECHO 
  76. ECHO For example, if you are installing from your A: drive, first switch to
  77. ECHO that drive by typing "A: {Enter}".  Then type "INSTALL".
  78. ECHO 
  79. GOTO CANCEL
  80.  
  81. :MISSING
  82. REM Missing files error message
  83. ECHO 
  84. ECHO 
  85. ECHO ERROR: Files are missing from installation disk.
  86. ECHO 
  87. ECHO Installation can not proceed because one of the following files
  88. ECHO is missing from the current drive:
  89. ECHO 
  90. IF NOT EXIST RUNTIME.EXE ECHO      RUNTIME.EXE
  91. IF NOT EXIST SBTMEM.EXE  ECHO      SBTMEM.EXE
  92. IF NOT EXIST PROINST.EXE ECHO      PROINST.EXE
  93. ECHO 
  94. ECHO Please rerun INSTALL.BAT from SBT Installation Disk Number 1.
  95. GOTO CANCEL
  96.  
  97. :NO_MEM
  98. REM Insufficient memory error message
  99. ECHO 
  100. ECHO 
  101. ECHO ERROR: Insufficient free memory.
  102. ECHO 
  103. SBTMEM %MEMREQ%
  104. ECHO 
  105. ECHO Installation can not proceed because your computer has
  106. ECHO insufficient free memory.  You must have at least %MEMREQ% K
  107. ECHO of free memory.  To correct this problem, please unload
  108. ECHO TSRs or other memory resident programs by editing your
  109. ECHO AUTOEXEC.BAT files, then reboot your computer before
  110. ECHO rerunning INSTALL.
  111. GOTO CANCEL
  112.  
  113.  
  114. REM -------------------------------------------------------------------------
  115. REM Exit messages
  116. REM -------------------------------------------------------------------------
  117.  
  118. :CANCEL
  119. REM Installation cancelled message
  120. ECHO SBT Professional Installation cancelled...
  121. ECHO 
  122. ECHO 
  123. ECHO 
  124. GOTO END
  125.  
  126. :END
  127. SET MEMREQ=
  128. REM -------------------------------------------------------------------------
  129. REM File Name..: INSTALL.BAT
  130. REM Total Lines: 130
  131.