home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CSETDEMO / INSTALL / INSTALL.BAT < prev    next >
Encoding:
DOS Batch File  |  1993-10-27  |  3.5 KB  |  122 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 type INSTALL from the DOS prompt of the drive
  14. echo -     that contains the IBM C Set ++ Demo CD, (e.g. D: or E:)
  15. echo -
  16. echo -   Please correct and try again.
  17. echo ----------------------------------------------------------------
  18. echo.
  19. goto exit
  20.  
  21.  
  22. :AUTO
  23. echo.
  24. echo .........................................................................
  25. echo :                                                                  :
  26. echo :  IBM C Set ++ Demo DOS Installation                                      :
  27. echo :                                                                  :
  28. echo :  This demo requires 2.9 MB of free space on your hard disk.              :
  29. echo :                                                                  :
  30. echo :  To install the Demo on C:\CSETDEMO, press any key now.          :
  31. echo :                                                                  :
  32. echo :  To install on a drive other than C:                                     :
  33. echo :     1. Press [CTRL] [C] and answer Y to "Terminate batch file?"  :
  34. echo :     2. Type INSTALL X then press [ENTER]                         :
  35. echo :           where: X is the letter of the desired drive                    :
  36. echo :                  DO NOT add a colon (:) to the drive letter.             :
  37. echo :                  A \CSETDEMO directory is created automatically. :
  38. echo :                                                                  :
  39. echo :           example: INSTALL E - installs onto E:\CSETDEMO         :
  40. echo :                                                                  :
  41. echo :.......................................................................:
  42. echo.
  43. echo To install on C:\CSETDEMO,
  44. echo.
  45. pause
  46. cls
  47. echo.
  48. echo Now installing the IBM C Set ++ Demo on C:\CSETDEMO...
  49. echo.
  50. md c:\CSETDEMO
  51. echo on
  52. DEMOINST /eC:\CSETDEMO
  53. echo off
  54. if errorlevel 1 goto space
  55. cls
  56. c:
  57. cd\CSETDEMO
  58. goto end
  59.  
  60. :MANUAL
  61. echo MANUAL YET
  62. echo %1
  63. if exist %1:\*.* goto ok
  64.  
  65. :DRIVE
  66. echo.
  67. echo ------------------------------------------------------------
  68. echo -  ERROR
  69. echo -
  70. echo -     You have specified an invalid drive parameter (%1:).
  71. echo -
  72. echo -        If you see two colons here (%1:), please
  73. echo -        type INSTALL X without adding a colon.
  74. echo -
  75. echo -        X is the letter of the desired drive
  76. echo -
  77. echo -  Please correct and try again.
  78. echo ------------------------------------------------------------
  79. echo.
  80. goto exit
  81.  
  82. :SPACE
  83. echo.
  84. echo --------------------------------------------------------------
  85. echo -  ERROR
  86. echo -
  87. echo -    There is insufficient space on the specified drive (%1:)
  88. echo -
  89. echo -    -or-  You have specified an invalid drive parameter.
  90. echo -
  91. echo -        If you see two colons here (%1:), please
  92. echo -        type INSTALL X without adding a colon.
  93. echo -
  94. echo -        X is the letter of the desired drive
  95. echo -
  96. echo -  Please correct and try again.
  97. echo --------------------------------------------------------------
  98. echo.
  99. goto exit
  100.  
  101. :OK
  102. echo IN OFK O K OKO OK OK
  103. echo IN OK
  104. echo Now installing the IBM C Set ++ Demo on %1:\CSETDEMO
  105. md %1:\CSETDEMO
  106. echo on
  107. DEMOINST /e%1:\CSETDEMO
  108. echo off
  109. if errorlevel 1 goto space
  110. cls
  111. %1:
  112. cd\CSETDEMO
  113.  
  114. :END
  115. cls
  116. echo.
  117. echo  Installation is complete.
  118. echo.
  119. echo  Type DEMO and press [ENTER] to view the IBM C Set ++ Demo
  120.  
  121. :EXIT
  122.