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

  1. ECHO OFF
  2.  
  3. REM -------------------------------------------------------------------------
  4. REM  File Name..: ALTINST.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 batch file for OS problems with PROINST.EXE
  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 ALTINST.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. IF %1! == ! GOTO NODEST
  40.  
  41. :START
  42. ECHO Starting SBT Professional Installation...
  43.  
  44. RUNTIME -o %1
  45. CLS
  46. REM Request next disk
  47. ECHO 
  48. ECHO Please insert second install disk in drive.
  49. PAUSE
  50. ZIPINST -o %1
  51. CLS
  52. REM Close sucessful run
  53. ECHO 
  54. ECHO Please switch to %1 and type SBTINST and press Enter
  55. GOTO END
  56.  
  57. REM -------------------------------------------------------------------------
  58. REM Error messages
  59. REM -------------------------------------------------------------------------
  60.  
  61.  
  62. :CHDRV
  63. REM Wrong Drive error message
  64. ECHO 
  65. ECHO 
  66. ECHO ERROR: You are running the install program from the wrong drive.
  67. ECHO 
  68. ECHO Installation can only proceed when you type "INSTALL" at the prompt
  69. ECHO of the drive in which you have inserted the install disk.
  70. ECHO 
  71. ECHO For example, if you are installing from your A: drive, first switch to
  72. ECHO that drive by typing "A: {Enter}".  Then type "INSTALL".
  73. ECHO 
  74. GOTO CANCEL
  75.  
  76. :MISSING
  77. REM Missing files error message
  78. ECHO 
  79. ECHO 
  80. ECHO ERROR: Files are missing from installation disk.
  81. ECHO 
  82. ECHO Installation can not proceed because one of the following files
  83. ECHO is missing from the current drive:
  84. ECHO 
  85. IF NOT EXIST RUNTIME.EXE ECHO      RUNTIME.EXE
  86. IF NOT EXIST SBTMEM.EXE  ECHO      SBTMEM.EXE
  87. IF NOT EXIST PROINST.EXE ECHO      PROINST.EXE
  88. ECHO 
  89. ECHO Please rerun INSTALL.BAT from SBT Installation Disk Number 1.
  90. GOTO CANCEL
  91.  
  92. :NO_MEM
  93. REM Insufficient memory error message
  94. ECHO 
  95. ECHO 
  96. ECHO ERROR: Insufficient free memory.
  97. ECHO 
  98. SBTMEM %MEMREQ%
  99. ECHO 
  100. ECHO Installation can not proceed because your computer has
  101. ECHO insufficient free memory.  You must have at least %MEMREQ% K
  102. ECHO of free memory.  To correct this problem, please unload
  103. ECHO TSRs or other memory resident programs by editing your
  104. ECHO AUTOEXEC.BAT files, then reboot your computer before
  105. ECHO rerunning INSTALL.
  106. GOTO CANCEL
  107.  
  108.  
  109. REM -------------------------------------------------------------------------
  110. REM Exit messages
  111. REM -------------------------------------------------------------------------
  112.  
  113. :CANCEL
  114. REM Installation cancelled message
  115. ECHO SBT Professional Installation cancelled...
  116. ECHO 
  117. ECHO 
  118. ECHO 
  119. GOTO END
  120.  
  121. :NODEST
  122. REM No path provided
  123. ECHO 
  124. ECHO     This batch file requires one parameter, a drive/path.
  125. ECHO     The normal format for your destination could be "C:\SBT\"
  126. GOTO END
  127.  
  128.  
  129. :END
  130. SET MEMREQ=
  131. REM -------------------------------------------------------------------------
  132. REM File Name..: ALTINST.BAT
  133. REM Total Lines: 133
  134.