home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CSETDEMO / INSTALL / OS2INST.CMD < prev    next >
Encoding:
Text File  |  1993-10-27  |  2.9 KB  |  135 lines

  1. echo off
  2. cls
  3. if not exist DEMOINST.EXE goto error
  4. if !==%1! goto auto
  5. goto manual
  6.  
  7. :ERROR
  8. cls
  9. echo.
  10. echo --------------------------------------------------
  11. echo   ERROR
  12. echo. 
  13. echo   You must launch OS2INST from the prompt of
  14. echo   the drive that contains the IBM C Set ++ Demo
  15. echo   installation program.
  16. echo.
  17. echo   Please correct and try again.
  18. echo --------------------------------------------------
  19. echo.
  20. goto exit
  21.  
  22.  
  23. :AUTO
  24. echo.
  25. echo.
  26. echo IBM C Set ++ Demo --- OS/2 Installation
  27. echo.
  28. echo Requires 2.9 MB of free space on your hard disk.
  29. echo.
  30. echo To install on C:\CSETDEMO, press any key now...
  31. echo.
  32. echo To install on a drive other than C: ...
  33. echo.
  34. echo   1. Press [CTRL] [C] to exit this batch file
  35. echo   2. Open an OS/2 Window (The OS/2 Window icon
  36. echo        is found in the Command Prompts folder)
  37. echo   3. Make the CD drive the current drive.
  38. echo        For example, type E: [ENTER] if the demo
  39. echo        CD is in drive E:)
  40. echo   4. Change to the directory containing the install
  41. echo        program:  CD\CSETDEMO\INSTALL
  42. echo   5. Type OS2INST X 
  43. echo        where: X is the letter of the desired drive
  44. echo               DO NOT add a colon (:) to the letter
  45. echo.
  46. echo        example: OS2INST D installs onto D:\CSETDEMO
  47. echo.
  48. pause
  49. cls
  50. echo.
  51. echo Now installing the IBM C Set ++ Demo on C:\CSETDEMO...
  52. echo.
  53. md c:\CSETDEMO
  54. echo on
  55. DEMOINST /eC:\CSETDEMO
  56. echo off
  57. if errorlevel 1 goto space
  58. cls
  59. c:
  60. cd\CSETDEMO
  61. goto end
  62.  
  63. :MANUAL
  64. if exist %1:\*.* goto OK
  65.  
  66. :DRIVE
  67. cls
  68. echo.
  69. echo --------------------------------------------------
  70. echo   ERROR
  71. echo.
  72. echo   You have specified an invalid drive parameter
  73. echo.
  74. echo   (%1:) if you see two colons here, please
  75. echo         retype OS2INST X without adding a colon
  76. echo.
  77. echo         X = the letter of the desired hard drive
  78. echo.
  79. echo   Please correct and try again.
  80. echo --------------------------------------------------
  81. echo.
  82. goto exit
  83.  
  84. :SPACE
  85. cls
  86. echo.
  87. echo --------------------------------------------------
  88. echo   ERROR
  89. echo.
  90. echo   There is insufficient space on your hard drive
  91. echo.
  92. echo   Please free at least 2,970,000 bytes and retry
  93. echo.
  94. echo   - OR -
  95. echo.
  96. echo   You have specified an invalid drive parameter
  97. echo.
  98. echo   (%1:) if you see two colons here, please
  99. echo         retype OS2INST X without adding a colon
  100. echo.
  101. echo         X = the letter of the desired hard drive
  102. echo.
  103. echo   Please correct and try again.
  104. echo --------------------------------------------------
  105. echo.
  106. goto exit
  107.  
  108. :OK
  109. echo.
  110. echo Now installing the IBM C Set ++ demo on %1:\CSETDEMO...
  111. echo.
  112. md %1:\CSETDEMO
  113. echo on
  114. DEMOINST /e%1:\CSETDEMO
  115. echo off
  116. if errorlevel 1 goto space
  117. cls
  118. %1:
  119. cd\CSETDEMO
  120.  
  121. :END
  122. demoobj
  123.  
  124. cls
  125. echo.
  126. echo  Installation is complete.
  127. echo.
  128. echo  To view the C Set ++ demo,
  129. echo  double-click the icon on your
  130. echo  desktop labeled The Magic of C Set ++.
  131. echo.
  132. pause
  133.  
  134. :EXIT
  135.