home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / os2 / mw62.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1992-10-02  |  3KB  |  117 lines

  1. echo off
  2. cls
  3. IF NOT EXIST COMCHECK.EXE GOTO WRONGDSK
  4. goto START
  5. :WRONGDSK
  6. echo  
  7. echo          The current drive/directory must be the mouse disk.
  8. echo  
  9. echo          Example:
  10. echo          -------
  11. echo  
  12. echo          To install your mouse software from the drive A, type
  13. echo  
  14. echo          A:        [┘]
  15. echo          INSTALL   [┘]
  16. goto ENDERROR
  17. :START
  18. echo  
  19. echo  
  20. echo        Running Mouse Installation Program
  21. echo  
  22. echo  
  23. echo        Searching for a mouse...... Please wait
  24. echo  
  25. echo  
  26. mouse cenhance ser lo nb > nul
  27. if errorlevel 128 goto LookForOther
  28. goto RunMWINST
  29. :LookForOther
  30. mouse cenhance lo nb > nul
  31. if errorlevel 141 goto BUSERR
  32. if errorlevel 128 goto PS2SERIAL
  33. :RunMWINST
  34. MWINST MSMMLDADDC > nul
  35. if errorlevel 3 GOTO RUNWINSTALL
  36. if errorlevel 2 GOTO TERMINATED
  37. if errorlevel 1 GOTO INITERROR
  38. cls
  39. echo  
  40. echo  
  41. echo          End of Mouse Installation.
  42. echo  
  43. echo          Please re-boot your machine now.
  44. echo  
  45. echo  
  46. goto THEEND
  47. :INITERROR
  48. echo  
  49. echo  
  50. echo          Installation program could not run.
  51. echo  
  52. echo          Make sure you have enough file handles in CONFIG.SYS.
  53. echo  
  54. echo          E.g.    FILES=20
  55. GOTO ENDERROR
  56. :TERMINATED
  57. echo  
  58. echo  
  59. echo          Installation terminated!
  60. echo  
  61. echo          Your mouse software has not been installed correctly.
  62. GOTO ENDERROR
  63. :RUNWINSTALL
  64. cls
  65. echo  
  66. echo  
  67. echo          End of Mouse Installation.
  68. echo  
  69. echo          To install your Windows Mouse Drivers and Utilities:
  70. echo            - reboot your machine;
  71. echo            - type WIN and press ENTER;
  72. echo            - choose Run from the File menu;
  73. echo            - type A:\WINSTALL and choose OK.
  74. echo  
  75. echo          Please re-boot your machine now.
  76. echo  
  77. GOTO THEEND
  78. :PS2SERIAL
  79. cls
  80. echo  
  81. echo          Your PS/2 or serial mouse is not responding......
  82. echo  
  83. echo          PS/2 mouse: 
  84. echo            - Turn your computer off.
  85. echo            - Re-check the mouse cable connection.
  86. echo            - Re-boot and try the installation once again.
  87. echo  
  88. echo          Serial mouse:
  89. echo            - Run the COMCHECK program (type A:\COMCHECK) to check
  90. echo              your serial port(s) interrupts and mouse connection.
  91. echo            - Turn your computer off.
  92. echo            - Re-check the mouse cable connection.
  93. echo            - Re-boot and try the installation once again.
  94. goto ENDERROR  
  95. :BUSERR
  96. cls
  97. echo  
  98. echo          Your Bus Version mouse is not responding...
  99. echo  
  100. echo          - Turn your computer off.
  101. echo          - Re-check the cable connection and your bus board 
  102. echo            installation.
  103. echo          - Make sure the interrupt jumper is set.
  104. echo          - Re-boot and try the installation once again.
  105. :ENDERROR
  106. echo  
  107. echo          
  108. echo          For more information, please refer to your documentation.
  109. echo  
  110. echo  
  111. echo  
  112. echo  
  113. echo  
  114. goto THEEND
  115. :THEEND
  116. echo on
  117.