home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Final Windows Shareware CD
/
_.img
/
winshare
/
winutil
/
winbench
/
uninstal.ba_
/
uninstal.ba
Wrap
Text File
|
1993-10-25
|
3KB
|
122 lines
@ECHO OFF
GOTO SETVARS
:START
IF "%WBDRIVE%" == "" GOTO NOENV
IF "%WBDIR%" == "" GOTO NOENV
IF "%SYSDIR%" == "" GOTO NOENV
IF "%WINDIR%" == "" GOTO NOENV
IF "%1" == "copied" GOTO OK
IF EXIST %WBDRIVE%:\~WBUNINS.BAT DEL %WBDRIVE%:\~WBUNINS.BAT
COPY %WBDIR%\UNINSTAL.BAT %WBDRIVE%:\~WBUNINS.BAT > NUL
%WBDRIVE%:\~WBUNINS.BAT copied
:OK
ECHO WinBench 4.0 Uninstall
ECHO.
ECHO This script will attempt to delete the WinBench directory.
ECHO All files installed by WinBench Setup will be deleted.
ECHO If you have added other files to the WinBench directory
ECHO (except for custom suites and results files) those files
ECHO and the WinBench directory may not be deleted.
ECHO.
ECHO Press CTRL/BREAK to abort this script, or any other key to
ECHO uninstall WinBench.
ECHO.
PAUSE
ECHO.
ECHO Removing the WINBENCH.INI file ....
IF EXIST %WINDIR%\WINBENCH.INI DEL %WINDIR%\WINBENCH.INI
ECHO.
ECHO Removing the WinBench directory ...
%WBDRIVE%:
CD %WBDIR%
IF EXIST UNINSTALL.BAT DEL UNINSTALL.BAT
IF EXIST UNINSTAL.PIF DEL UNINSTALL.PIF
IF EXIST WINBENCH.EXE DEL WINBENCH.EXE
IF EXIST WINBENCH.HLP DEL WINBENCH.HLP
IF EXIST WBQCWD.DLL DEL WBQCWD.DLL
IF EXIST RUNWB.INI DEL RUNWB.INI
IF EXIST WBLAB.DLL DEL WBLAB.DLL
IF EXIST WINBENCH.RPT DEL WINBENCH.RPT
IF EXIST README.WRI DEL README.WRI
CD DOC
IF EXIST WINBENCH.DOC DEL WINBENCH.DOC
IF EXIST WBDOC.EXE DEL WBDOC.EXE
CD ..\SUITES
IF EXIST *.WBS DEL *.WBS
CD ..\RESULTS
IF EXIST *.XLS DEL *.XLS
IF EXIST *.TXT DEL *.TXT
IF EXIST *.CSV DEL *.CSV
CD ..
IF NOT EXIST DOC\*.* RMDIR DOC
IF NOT EXIST SUITES\*.* RMDIR SUITES
IF NOT EXIST RESULTS\*.* RMDIR RESULTS
IF EXIST DOC\*.* GOTO FAILED
IF EXIST SUITES\*.* GOTO FAILED
IF EXIST RESULTS\*.* GOTO FAILED
IF EXIST *.* GOTO FAILED
CD ..
RMDIR %WBDIR%
GOTO SUCCESS
:FAILED
ECHO.
ECHO This script did not completely remove the WinBench
ECHO directory because extra non-WinBench files exist in
ECHO the directory. You should manually delete the extra
ECHO files.
GOTO COMMON
:SUCCESS
ECHO.
ECHO WinBench has been removed from your system.
GOTO COMMON
:COMMON
ECHO.
ECHO This script did not remove the BWCC.DLL and CTL3D.DLL
ECHO libraries from the Windows system directory. (You should
ECHO not remove these files, as applications installed before
ECHO or after WinBench may also be using them.)
ECHO.
ECHO You should manually delete the WinBench icon in the
ECHO Ziff-Davis Benchmarks Program Manager group.
ECHO.
ECHO You should also delete this script using the command:
ECHO DEL %WBDRIVE%:\~WBUNINS.BAT
ECHO.
GOTO DONE
:NOENV
ECHO.
ECHO You must increase the amount of available environment
ECHO variable space before you can run this program.
ECHO.
ECHO Edit the config.sys file so that it contains the line:
ECHO.
ECHO Shell=C:\COMMAND.COM /E:512 /P
ECHO.
ECHO or increase the /E: value if it already exists.
ECHO.
ECHO If you are running UNINSTAL.BAT from within Windows,
ECHO run the UNINSTAL.PIF file instead. It may provide
ECHO more environment space.
ECHO.
GOTO DONE
:SETVARS