home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 15 / CD_ASCQ_15_070894.iso / maj / 2033 / install.bat < prev    next >
DOS Batch File  |  1994-06-01  |  3KB  |  112 lines

  1. echo off
  2. cls
  3. if not "%1"=="" goto ok
  4. echo.
  5. echo  PocketD installation.
  6. echo.
  7. echo  USAGE:    INSTALL pathname
  8. echo  where "pathname" is the drive or directory to install PocketD (can be shared)
  9. echo.
  10. echo  e.g. INSTALL C:
  11. echo       INSTALL C:\POCKETD\
  12. echo       INSTALL \UTILS\        (Sharing with other utilities)
  13. echo.
  14. echo  or   INSTALL C:\POCKETD\ /u    (To un-install PocketD from directory)
  15. echo.
  16. echo  Choose where you want to install PocketD and re-run INSTALL
  17. echo.
  18. goto exit2
  19.  
  20. :ok
  21. cls
  22.  
  23. if exist install.bat goto start
  24. echo ERROR! The INSTALL program must be run from the installation drive
  25. goto exit
  26.  
  27. :start
  28. if NOT "%2"=="/u" goto inst
  29. D    /Yny/ /'//&W PocketD can be uninstalled from a directory shared with other software.// Proceed with Uninstall ?&w'
  30. if not errorlevel 2 goto exit2
  31. d    %1/:=.%1d.exe/zzh
  32. if not errorlevel 1 echo  Nothing to do...
  33. goto exit
  34.  
  35. :inst
  36. d    /FK:=.d.exe[The complete installation requires $S$B$B$Bk (only D.EXE (31k) is essential).]?
  37. d    /Yny /'/&WPocketD Installation&w//Install (31k) &WD.EXE&w executable program ? (Y@/N)'
  38. if not errorlevel 1 goto abort
  39. if not errorlevel 2 goto help1
  40. d    d.exe /ccfq %1
  41. :help1
  42. d    /Yny /'/Install (34k) &WDL.EXE&w executable program ? (Y@/N)'
  43. if not errorlevel 1 goto abort
  44. if not errorlevel 2 goto help1d
  45. d    dl.exe /ccfq %1
  46. :help1d
  47. if not exist menud.exe goto help1b
  48. d    /Yny /'/Install (37k) &WMENUD.EXE&w executable program ? (Y@/N)'
  49. if not errorlevel 1 goto abort
  50. if not errorlevel 2 goto help1b
  51. d    menud.exe /ccfq %1
  52. :help1b
  53. d    /Yny /'/Install ( 7k) &WSETCOL.EXE&w color config program ? (Y@/N)'
  54. if not errorlevel 1 goto abort
  55. if not errorlevel 2 goto help1c
  56. d    setcol.exe /ccfq %1
  57. :help1c
  58. d    /Yny /'/Install ( 2k) &WD.HLP&w on-line one-page help ? (Y@/N)'
  59. if not errorlevel 1 goto abort
  60. if not errorlevel 2 goto help2
  61. d    d.hlp /ccfq %1
  62. :help2
  63. d    /Yny /'/Install (56k) &WD.MAN&w on-line reference manual ? (Y@/N)'
  64. if not errorlevel 1 goto abort
  65. if not errorlevel 2 goto help3
  66. d    d.man /ccfq %1
  67. :help3
  68. d    /Yny /'/Install (50k) &WD.GDE&w on-line guide ? (Y@/N)'
  69. if not errorlevel 1 goto abort
  70. if not errorlevel 2 goto help4
  71. d    d.gde /ccfq %1
  72. :help4
  73. d    /Yny /'/Install ( 9k) D.EXE pre-prepared &WBAT&w Utilities ? (Y@/N)'
  74. if not errorlevel 1 goto abort
  75. if not errorlevel 2 goto help5
  76. d    .bat /- demo.bat /ccfql %1
  77. :help5
  78. d    /Yny /'/Install (12k) &WDEMO.BAT&w ? (Y@/N)'
  79. if not errorlevel 1 goto abort
  80. if not errorlevel 2 goto help5b
  81. d    demo.bat /ccfq %1
  82. :help5b
  83. if not exist toolbox.doc goto help5c
  84. d    /Yny /'/Install (46k) Toolbox ? (Y@/N)'
  85. if not errorlevel 1 goto abort
  86. if not errorlevel 2 goto help5c
  87. d    graf.exe getch.exe attr.exe c.exe chset.exe toolbox.doc /ccfql %1
  88. :help5c
  89. d    /Yny /'/Install (30k) &WREADME&w files ? (Y@/N)'
  90. if not errorlevel 1 goto abort
  91. if not errorlevel 2 goto exit
  92. d    .NEW .REG .DOC .DIZ .LST .1ST .D .FRM /- tool*/:=.d.exe /ccfql %1
  93. goto exit
  94.  
  95. :abort
  96. echo.
  97. echo Installation Aborted...
  98. echo.
  99. :exit
  100. d    %1/:=.d.exe [// Installation: $F files, size $S bytes, using $U bytes////][// Nothing Installed////]KJ
  101. if not errorlevel 1 goto exit2
  102. d    %1 [$l//cd $w]xRv~
  103. d    :path + d.exe /:=.d.exe/n~@
  104. if errorlevel 1 goto exit
  105. echo  You must change "PATH" inside AUTOEXEC.BAT from its current value of:        
  106. echo PATH=%PATH%
  107. echo.
  108. echo  To:
  109. echo.
  110. d    %1 /I[PATH=$l$r$B;%PATH%////]~
  111. :exit2
  112.