home *** CD-ROM | disk | FTP | other *** search
/ CYBERdelic Screensavers / QuantumAxcess-CyberdelicScreenSaversForWindows-Win31.iso / scr / bmpsa1 / install.bat < prev    next >
DOS Batch File  |  1994-01-01  |  8KB  |  192 lines

  1. @Echo OFF
  2. CLS
  3. Echo Installing Windows Bitmaps Screen Saver Ver 2.5
  4. Echo  
  5. Echo The 2 Programs Bitmaps.SCR & Bitmaps.EXE are Copyright 1993, 1994 by
  6. Echo Dave Charbonnet Jan 1994 all right reserved.
  7. Echo  
  8. Echo Use these Programs at your own risk!  Although I thoroughly tested it
  9. Echo and scanned it for all Viruses I knew of, and did not put any harmful
  10. Echo or risky code in it on purpose, I am not willing to be liable in ANY
  11. Echo Way for Problems you may incur and assume to be caused by this program.
  12. Echo Thus by continuing to install this program you are agreeing to
  13. Echo relinquish any legal actions against Me, Dave Charbonnet or the
  14. Echo company I work with DCI Computers.
  15. Echo  
  16. Echo If you do not agree to the above then ABORT this installation NOW by
  17. Echo Hitting Ctrl Break or Turning off or Resetting this computer Now!
  18. Pause
  19. Echo  
  20. Echo This Program Requires Windows, and requires Windows to be setup to run
  21. Echo in 256 or more Colors, ie a Super VGA Mode.  If you are not running
  22. Echo Windows at 256 on more colors there is NO reason to use this program
  23. Echo and you may as well abort this installation now by hitting Ctrl Break
  24. Echo or Ctrl C. and Answering Y for Yes to Abort BAT File.
  25. Pause
  26. CLS
  27. Echo Searching for Windows Directory ... Please wait a few Seconds!
  28. Echo  
  29. IF NOT EXIST Bitmaps.scr GOTO ERR1
  30. IF EXIST WIN.COM GOTO ERR5
  31. SET WD=
  32. IF EXIST C:\WINNT\NUL SET WD=C:\WINNT
  33. IF EXIST E:\WIN\WIN.COM SET WD=E:\WIN
  34. IF EXIST E:\WINDOWS\WIN.COM SET WD=E:\WINDOWS
  35. IF EXIST D:\WIN\WIN.COM SET WD=D:\WIN
  36. IF EXIST D:\WINDOWS\WIN.COM SET WD=D:\WINDOWS
  37. IF EXIST C:\WIN\WIN.COM SET WD=C:\WIN
  38. IF EXIST C:\WINDOWS\WIN.COM SET WD=C:\WINDOWS
  39. IF NOT EXIST %WD%\WIN.COM IF NOT EXIST C:\WINNT\NUL GOTO ERR2
  40. IF NOT EXIST %WD%\SYSTEM\SYSTEM.DRV GOTO ERR2
  41. Echo  
  42. CLS
  43. Echo Starting Installation Now!
  44. Echo I will now copy 4 Files (Bitmaps.*) to %WD%
  45. Pause
  46. Echo Copying Bitmaps SCReen Blanker to %WD%
  47. COPY Bitmaps.SCR %WD%
  48. Echo  
  49. Echo Copying Bitmaps Executable File Too so you can Start it at will.
  50. Echo If YOU Add its Icon to your Menu/Program Manager Utitlites Menu.
  51. Echo  
  52. COPY BITMAPS.EXE %WD%
  53. Echo Copying Documentation & Registration File to %WD%
  54. Copy Bitmaps.Txt %WD%
  55. Echo  
  56. DEL Bitmaps.SCR > nul
  57. DEL BITMAPS.TXT > nul
  58. DEL BITMAPS.EXE > nul
  59. IF EXIST %WD%\BITMAPS.INI DEL %WD%\BITMAPS.INI
  60.  
  61.  
  62. REM NOW TRY TO COPY VB Runtime
  63. IF EXIST %WD%\SYSTEM\VBRun300.DLL GOTO SKIPVBRUN
  64. IF EXIST %WD%\VBRun300.DLL GOTO SKIPVBRUN
  65. IF NOT EXIST VBRun300.DLL GOTO TRYZIP
  66. Echo Copying VBRun300.DLL to System Dir
  67. COPY VBRUN300.DLL %WD%\SYSTEM
  68. GOTO SKIPVBRUN
  69. :TRYZIP
  70. IF NOT EXIST BMPSAV2.EXE GOTO SKIPVBRUN
  71. IF EXIST BMPSAV2.EXE BMPSAV2 *.DLL -o %WD%\SYSTEM
  72. IF EXIST %WD%\SYSTEM\VBRun300.DLL GOTO SKIPVBRUN
  73. IF EXIST BMPSAV2.ZIP PKUNZIP -o BMPSAV2
  74. IF NOT EXIST VBRun300.DLL GOTO SKIPVBRUN
  75. Echo Copying VBRun300.DLL to System Dir
  76. COPY VBRUN300.DLL %WD%\SYSTEM
  77. :SKIPVBRUN
  78. IF EXIST VBRUN300.DLL DEL VBRUN300.DLL >nul
  79. IF EXIST INSTALL2.BAT DEL INSTALL2.BAT >nul
  80.  
  81.  
  82.  
  83. REM Now Try to Move Sample Bitmaps if Downloaded
  84. IF NOT EXIST BMPSAV3.* GOTO NOBMPS
  85. IF EXIST BMPSAV3.EXE BMPSAV3 *.BMP -o %WD%
  86. IF EXIST BMPSAV3.EXE IF EXIST %WD%\1*.BMP GOTO NOBMPS
  87. IF EXIST BMPSAV3.ZIP PKUNZIP BMPSAV3 -o
  88. IF NOT EXIST 1*.BMP GOTO NOBMPS
  89. Echo  
  90. Echo Copying Sample Quality Bitmaps to your windows directory
  91. COPY 1*.BMP %WD%
  92. :NOBMPS
  93. IF NOT EXIST WIN.COM IF EXIST 1*.BMP DEL 1*.BMP > nul
  94. IF EXIST INSTALL3.BAT DEL INSTALL3.BAT >nul
  95.  
  96. REM FINAL Checks
  97. IF NOT EXIST %WD%\Bitmaps.SCR GOTO Err3
  98. IF NOT EXIST %WD%\Bitmaps.TXT GOTO Err3
  99. IF NOT EXIST %WD%\Bitmaps.EXE GOTO Err3
  100. IF NOT EXIST %WD%\SYSTEM\VBRun300.DLL IF NOT EXIST %WD%\VBRun300.DLL GOTO Err4
  101. CLS
  102. Echo To complete the installation you need to tell Windows to USE this
  103. Echo Screen Saver.  Restart Windows and Start the Control panel Program.
  104. Echo Within Control Panel Run the Desktop Utility. Within Desktop Set the
  105. Echo Screen Saver Section to Bitmaps by DCI and set the Delay Interval
  106. Echo as you desire.  You can run this program separately (without waiting
  107. Echo for the delay time to pass by setting up a separate application in
  108. Echo a program manager group of your choice to execute the program
  109. Echo Bitmaps.EXE located in your windows directory.
  110. Echo  
  111. Echo When the Screen Saver is running Remember the Special Key Stroke
  112. Echo combination of   SHIFT H   for Help with the other Special Keyboard
  113. Echo commands and to view the complete documentation (in the file
  114. Echo Bitmaps.TXT in your Windows Directory).
  115. Echo  
  116. Echo The 1st Time you run this screen saver it will be looking for Bitmaps
  117. Echo that start with a 1 as their file name in you windows directory. If
  118. Echo you do not have any such Bitmaps their you will just get an error
  119. Echo message!  Part 3 of this 3 part Package contains about 7 Quality
  120. Echo 256 Color Bitmaps that start with a 1.  If you have no such files
  121. Echo you can run this programs Setup Routine (which edits the ASCII
  122. Echo bitmaps.ini file in your windows directory) by executing Setup in
  123. Echo Control Panels Desktop Screen Saver Section or at any time this
  124. Pause
  125. Echo saver is running by hitting  SHIFT S,  Also Setup gets run
  126. Echo automatically if the program encounters most errors.  Within
  127. Echo Setup can specify Bitmaps Patterns other than 1*.BMP (BMPs that
  128. Echo start with a 1) as well as bitmaps locations other than your windows
  129. Echo directory.  We set it up by default to show 1*.BMP files so that
  130. Echo it will skip the BMPs that come with windows as they are not 256
  131. Echo color bitmaps and do not fill the screen.
  132. Echo  
  133. Echo  
  134. Echo You can Delete any left over files in the Temp Directory you ran this
  135. Echo install from.  Or give the ones you downloaded to a friend!
  136. GOTO END
  137.  
  138. :ERR1
  139. Echo  
  140. Echo ERROR!
  141. Echo To Install This you must in the directory with the unZipped files
  142. Echo from BMPSav you downloaded... Install Aborted.  Try Again.
  143. GOTO END2
  144. :ERR2
  145. Echo  
  146. Echo ERROR!
  147. Echo I Could Not Find your Windows Directory!  You will have to Install this
  148. Echo Manually. Or Try Running the Setup Routine from Windows Program Manager.
  149. Echo Displaying Documention that includes Manual Installation Instructions
  150. Pause
  151. Type %WD%\Bitmaps.TXT | more
  152. GOTO END2
  153. :ERR3
  154. Echo  
  155. Echo ERROR!
  156. Echo Installation did NOT Seem to Complete Suscessfully!
  157. Echo Could Not Find the 3 Files Bitmaps.SCR & Bitmaps.INI & Bitmaps.TXT
  158. Echo in your Windows Directory!
  159. Echo Check your Free Disk Space and Try the Manual Installation.
  160. Echo Showing Documentation Now which contains Manual Installation Instructions.
  161. Pause
  162. Type %WD%\Bitmaps.TXT | more
  163. GOTO END
  164. :ERR4
  165. IF EXIST %WD%\VBRun300.DLL GOTO END
  166. Echo  
  167. Echo Problem!  You will need the free utility VBRun300.DLL to be in your
  168. Echo windows or Windows System Directory before you can use this program!
  169. Echo It is available on many Bulletin Boards or from Us and is a common
  170. Echo routine you would need to run any Visual Basic Ver 3 Application
  171. Echo like this one.  It is on Compuserve the 2nd File of this Package
  172. Echo in the Win Fun Directory with Screen Savers in a File called
  173. Echo BMPSAV2.ZIP
  174. Echo  
  175. Echo Install Incomplete you need VB Runtime!
  176. pause
  177. GOTO END2
  178. :ERR5
  179. Echo Error! You seem to be in your windows Directory
  180. Echo You were supposed to install from a Temporary Directory
  181. Echo NOT your Windows Directory
  182. GOTO END2
  183. :END
  184. Echo  
  185. Echo Installation Completed!...SUCESSFULLY...Hit a key to Exit Install
  186. Pause>nul
  187. Echo  
  188. Echo Ignore the next message...BAT file Missing
  189. DIR README.DOC
  190. DEL INSTALL.BAT >nul
  191. :END2
  192.