home *** CD-ROM | disk | FTP | other *** search
/ Windows Shareware GOLD / NuclearComputingVol3No1.cdr / _bbs1 / f1270.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1991-09-26  |  4KB  |  135 lines

  1. @ECHO OFF
  2. REM:This batch file and TBW.exe are (C)1990-Steve Shubitz-All rights reserved
  3. REM:ToolBook developers may license this install for a reasonable fee
  4. REM:Please call (619) 546-9309 for a quote
  5. REM:Version 1.2 for ONE 5.25 DISK install
  6. break on
  7. verify on
  8. IF "%1" == "" GOTO UsageExit
  9. IF "%2" == "" GOTO UsageExit
  10. if not exist %2\win.ini goto NoWin
  11.  
  12. CLS
  13. echo 
  14. echo 
  15. echo                  ** ToolBook and ClipBook Installation **
  16. echo                   Copyright (c) 1990, Published Perfection!
  17. echo                      Install ToolBook at %1              
  18. echo 
  19. echo    The complete runtime version of ToolBook and ClipBook will be installed
  20. echo    This install DOES NOT modify your config.sys or autoexec.bat files.
  21. echo    If ToolBook is already properly installed your win.ini is NOT modified
  22. echo    About 1.6 MB of free disk space is required for this install.
  23. echo    ----------------------- CTRL-BREAK TO CANCEL -------------------------
  24. echo 
  25. echo 
  26. PAUSE
  27.  
  28. IF EXIST %1\*.* GOTO Warn1
  29. md %1
  30. GOTO Setup1
  31.  
  32. :Warn1
  33. CLS
  34. ECHO                  ** ToolBook and ClipBook Installation **
  35. ECHO                   Copyright (c) 1990,  Published Perfection!
  36. ECHO               You requested installation of the software into %1 .
  37. echo 
  38. ECHO        This directory EXISTS !
  39. echo 
  40. ECHO You will be asked to confirm any overwrites.
  41. echo 
  42. echo 
  43. echo 
  44. PAUSE
  45. GOTO Setup1
  46.  
  47. :Setup1
  48. CLS
  49. ECHO                  ** ToolBook and ClipBook Installation **
  50. ECHO                   Copyright (c) 1990,  Published Perfection!
  51. echo 
  52. ECHO Creating a backup copy of %2\WIN.INI (%2\win.pp)
  53. ECHO    COPY %2\WIN.INI to  %2\WIN.PP
  54. echo 
  55. copy %2\win.ini %2\win.pp
  56. IF EXIST %2\win.pp GOTO CopyOk
  57. GOTO CopyError
  58.  
  59. :CopyOk
  60. ECHO  
  61. ECHO Updating %2\WIN.INI 
  62. ECHO  
  63. tbw %2\win.pp %2\win.ini
  64. if ERRORLEVEL 0 goto OKDone
  65.  
  66. ECHO  
  67. ECHO Unable to modify win.ini
  68. ECHO Original %2\win.ini is saved as %2\win.pp
  69. copy %2\win.pp %2\win.ini
  70. ECHO  
  71. GOTO PromptExit
  72.  
  73. :OKDone
  74. echo 
  75. ECHO  Unpacking files and verifying archive...
  76. pkunzip *.zip %1
  77.  
  78. REM add the following group for each additional disk
  79.  
  80. echo 
  81.  
  82. echo 
  83. PAUSE
  84.  
  85.  
  86.  
  87. echo 
  88. ECHO Installation completed!
  89. ECHO Your software has been copied to %1
  90. ECHO Launch WINDOWS and double click on CLIPBOOK.tbk to start!
  91. GOTO PromptExit
  92.  
  93. :NoWin
  94. CLS
  95. ECHO                          
  96. ECHO ** Windows initialization file, %2\win.ini, NOT FOUND !!!
  97. ECHO                                        
  98. GOTO Usage
  99.  
  100. :CopyError
  101. CLS
  102. ECHO                          
  103. ECHO ** Could not copy Windows initialization file, %2\win.ini !!!
  104. ECHO ** Check disk space in %2
  105. ECHO                                        
  106. GOTO Usage
  107.  
  108. :UsageExit
  109. CLS
  110. ECHO          ToolBook and ClipBook Installation
  111. :Usage
  112. ECHO Usage:   INSTALL TBOOKDIR WINDIR
  113. ECHO  
  114. ECHO Where:   TBOOKDIR is the directory where this
  115. ECHO          software is to be installed.                (eg: C:\TBOOK)
  116. ECHO  
  117. ECHO          WINDIR specifies the full pathname where
  118. ECHO          you installed Microsoft Windows 3.0         (eg: C:\WINDOWS)
  119. ECHO          The WIN.INI initialization file must exist
  120. ECHO          in this directory.
  121. ECHO  
  122. ECHO Example: INSTALL C:\TBOOK C:\WINDOWS
  123. ECHO  
  124. ECHO Notes:   A space is required between TBOOKDIR and WINDIR.
  125. ECHO          You need about 1.6 MB of free disk space in your TBOOK directory.
  126. ECHO          You must modify your path statement ONLY if you decide to store
  127. ECHO          CLIPBOOK in another directory after this installation. Your
  128. ECHO          path statement must point to the directory where TBOOK.EXE and
  129. ECHO          the associated .DLL files are stored on your system. Your
  130. ECHO          autoexec.bat and config.sys are NOT modified. This install will
  131. ECHO          NOT modify your win.ini if ToolBook is properly installed. A
  132. ECHO          backup copy of your win.ini called win.pp will be made before
  133. ECHO          any modifications are performed. CTRL-BREAK TO CANCEL.
  134. :PromptExit
  135.