home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 16 / 16.iso / t / t270 / 1.img / INSTALL.BAT < prev    next >
Encoding:
DOS Batch File  |  1993-08-25  |  3.2 KB  |  121 lines

  1. @echo off
  2. echo off
  3. cls
  4. echo.
  5. echo.
  6. echo        --- Thunderbyte Fence installation batch program ---
  7. echo.
  8.  
  9. rem     * Make sure that we can find the software in the current directory
  10. if not exist TBFENCE.EXE goto error1
  11.  
  12. rem     * Make sure that the user specified a destination path
  13. if %1X==X goto error2
  14.  
  15. rem     * Make sure the target path exists or can be created
  16. if exist %1\nul goto pathexists
  17. md %1
  18. if not exist %1\nul goto error3
  19. :pathexists
  20.  
  21. rem     * Make sure user did not type something like 'C:' :-)
  22. if exist %1\CONFIG.SYS goto error5
  23.  
  24. echo Please read the License.Doc file. By using the TbFence package you
  25. echo agree with our license agreement. You can print the License.Doc
  26. echo file by typing the following command on the DOS command line:
  27. echo.
  28. echo    Copy License.Doc Lpt1
  29. echo.
  30. echo Press Ctrl-C to abort this installation batch file, or
  31. pause
  32. cls
  33. rem     * Copy the TbFence software if necessary
  34. if exist dummy.tst del dummy.tst >nul
  35. if exist %1\dummy.tst del %1\dummy.tst >nul
  36. echo TEST >%1\dummy.tst
  37. if exist dummy.tst goto filesexist
  38. if not exist %1\dummy.tst goto error4
  39. echo.
  40. echo.
  41. echo.
  42. echo Copying files. Please wait...
  43. echo.
  44. copy *.* %1
  45. :filesexist
  46. del %1\dummy.tst >nul
  47. if not exist %1\docs.exe goto nopack
  48. %1\docs -o %1
  49. del %1\docs.exe >nul
  50. :nopack
  51. cls
  52. echo.
  53. echo The TbFence software have been copied to the destination directory.
  54. echo It is highly recommended to print the TbFence user manual.
  55. echo You can do this with the following DOS command:
  56. echo.
  57. echo    Copy TBFENCE.DOC Lpt1
  58. echo.
  59. echo.
  60. pause
  61. cls
  62. echo.
  63. echo.
  64. echo Select from within the TbFence main menu 'Install TbFence'.
  65. echo It is recommended to setup a gateway station first, so select 'GATEWAY'
  66. echo in the installation menu. Enter a password when TbFence prompts you
  67. echo to do so. Make sure you don't forget this password as you will need
  68. echo it again when you want to remove TbFence from your system.
  69. echo.
  70. echo To enter the TbFence main menu,
  71. pause
  72. %1\tbfence
  73. goto end
  74.  
  75. :error1
  76. echo Error: Invalid program invocation!
  77. echo.
  78. echo Make sure that you invoke INSTALL.BAT in the directory where the
  79. echo TbFence software can be found!
  80. echo.
  81. echo Example: if the TbFence software can be found on drive A:, you should type:
  82. echo A: [enter]
  83. echo INSTALL [path] [enter]
  84. goto end
  85.  
  86. :error2
  87. echo Error: No destination path specified!
  88. echo.
  89. echo You have to specify the destination path for the TbFence software!
  90. echo Even if the software is already in the destination path.
  91. echo.
  92. echo Example:
  93. echo If the TbFence software is or should be copied to C:\TBFENCE, please type:
  94. echo INSTALL C:\TBFENCE
  95. goto end
  96.  
  97. :error3
  98. echo Error: Unable to creat destination directory %1
  99. echo.
  100. echo Make sure you enter an existing destination path or a path that can be created!
  101. goto end
  102.  
  103. :error4
  104. echo Error: Unable to copy files in directory %1
  105. echo.
  106. echo Disk full? Access denied?
  107. goto end
  108.  
  109. :error5
  110. echo Error: No target directory specified!
  111. echo.
  112. echo Make sure you enter a full destination path!
  113. echo %1 is not sufficient!
  114. echo.
  115. echo Example:
  116. echo If the TbFence software is or should be copied to C:\TBFENCE, please type:
  117. echo INSTALL C:\TBFENCE
  118. goto end
  119.  
  120. :end
  121.