home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a020 / 1.ddi / INSTALL.BAT < prev    next >
Encoding:
DOS Batch File  |  1990-01-29  |  5.4 KB  |  149 lines

  1. echo off
  2. :start
  3. cls
  4. echo Loading Installation Program, please wait...
  5.  
  6. :chkdsk1
  7. if exist \hb_data.exe goto inst_0
  8. if exist \hb_progs.exe goto er_miss
  9. if exist \hb_1 goto er_miss
  10. if exist \hb_2 goto er_miss
  11. if exist \menu_hb.exe goto er_miss
  12. goto er_inst
  13.  
  14. :inst_0
  15. if not exist \hb_data.exe goto er_miss
  16. if not exist \hb_progs.exe goto er_miss
  17. if not exist \hb_1 goto er_miss
  18. if not exist \hb_2 goto er_miss
  19. if not exist \menu_hb.exe goto er_miss
  20.  
  21. cls
  22. set HBDRV=A:
  23. \menu_hb.exe
  24. if errorlevel 255 goto esc
  25. if errorlevel 254 goto 111
  26. if errorlevel 240 goto vid_error
  27. goto theend
  28.  
  29. :esc
  30. cls
  31. echo Installation Aborted !
  32. set HBDRV=
  33. goto theend
  34.  
  35. :111
  36. cls
  37. type %HBDRV%\hb_1
  38. echo  
  39. echo To continue, press any key...
  40. pause > nul
  41. cls
  42. type %HBDRV%\hb_2
  43. echo  
  44. echo Press any key to resume with HELP/BUILD installation...
  45. pause > nul
  46. cls
  47. echo Installing HELP/BUILD onto your system, please wait...
  48. %HBDRV%\hb_data.exe -o \ufil > nul
  49. %HBDRV%\hb_progs.exe -o > nul
  50.  
  51. rem Test for the existence of all HELP/BUILD files
  52.  
  53. if not exist bld_cref.com goto er_full
  54. if not exist build.com goto er_full
  55. if not exist help.com goto er_full
  56. if not exist help_c.com goto er_full
  57. if not exist help_f.com goto er_full
  58. if not exist help_flp.com goto er_full
  59. if not exist help_l.com goto er_full
  60. if not exist help_o.com goto er_full
  61. if not exist help_s.com goto er_full
  62. if not exist init_hlp.exe goto er_full
  63. if not exist show_id.com goto er_full
  64. if not exist \ufil\bldhelp.hc goto er_full
  65. if not exist \ufil\demosys.hc goto er_full
  66. if not exist \ufil\demosys.hnc goto er_full
  67. if not exist \ufil\demosys.htb goto er_full
  68. if not exist \ufil\demosys.hxt goto er_full
  69. if not exist \ufil\doshelp.hc goto er_full
  70. if not exist \ufil\keydata.dat goto er_full
  71.  
  72. rem Initialize the necessary HELP/BUILD files with the company id.
  73. init_hlp.exe
  74.  
  75. cls
  76. help \ufil\doshelp -p
  77. echo UFIL HELP has now been loaded.
  78. echo Please do not remove HELP/BUILD disk from the drive!
  79. echo Strike any key to continue with installation!
  80. pause > nul
  81. cls
  82. help_f bldhelp 1
  83. set HBDRV=
  84. cls
  85. echo ┌────────────────────────────────────────────────────────────────────────┐
  86. echo │                                                                        │
  87. echo │                      HELP/BUILD is now installed.                      │
  88. echo │                                                                        │
  89. echo │         You can now remove the HELP/BUILD disk from the drive.         │
  90. echo │                                                                        │
  91. echo └────────────────────────────────────────────────────────────────────────┘
  92. echo  
  93. goto theend
  94.  
  95.  
  96. :er_miss
  97. cls
  98. echo ╔════════════════════════════════════════════════════════════════════════╗
  99. echo ║                                                                        ║
  100. echo ║   ERROR - you are missing one or more of the HELP/BUILD files.         ║
  101. echo ║           Please contact your dealer for a replacement package.        ║
  102. echo ║           Sorry for any inconvenience.                                 ║
  103. echo ║                                                                        ║
  104. echo ╚════════════════════════════════════════════════════════════════════════╝
  105. echo  
  106. goto theend
  107.  
  108. :er_full
  109. cls
  110. echo ╔════════════════════════════════════════════════════════════════════════╗
  111. echo ║                                                                        ║
  112. echo ║   ERROR - one or more of the HELP/BUILD data files was not copied      ║
  113. echo ║           onto your system.  Check to see that your system has         ║
  114. echo ║           enough room for these files and then try re-installing       ║
  115. echo ║           HELP/BUILD again.                                            ║
  116. echo ║                                                                        ║
  117. echo ╚════════════════════════════════════════════════════════════════════════╝
  118. echo  
  119. goto theend
  120.  
  121. :er_inst
  122. cls
  123. echo ╔════════════════════════════════════════════════════════════════════════╗
  124. echo ║                                                                        ║
  125. echo ║   ERROR - the install program was not able to install HELP/BUILD       ║
  126. echo ║           successfully.  Please be sure the HELP/BUILD disk is         ║
  127. echo ║           in the current/default drive before running the install      ║
  128. echo ║           program again.                                               ║
  129. echo ║                                                                        ║
  130. echo ║           If our package still does not install, please contact        ║
  131. echo ║           your HELP/BUILD sales representative for a replacement       ║
  132. echo ║           package.  We apologize for any inconvenience.                ║
  133. echo ║                                                                        ║
  134. echo ╚════════════════════════════════════════════════════════════════════════╝
  135. echo  
  136. goto theend
  137.  
  138. :vid_error
  139. cls
  140. echo ╔════════════════════════════════════════════════════════════════════════╗
  141. echo ║                                                                        ║
  142. echo ║  You are currently operating in a graphics mode.  Please configure     ║
  143. echo ║  your video system to a text mode before trying to install HELP/BUILD. ║
  144. echo ║                                                                        ║
  145. echo ╚════════════════════════════════════════════════════════════════════════╝
  146. echo  
  147. goto theend
  148.  
  149. :theend