home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 8 Other
/
08-Other.zip
/
RMVMMV.ZIP
/
REMOVE.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-01-20
|
2KB
|
82 lines
@echo off
: remove Multimedia Viewer Product
echo NOTE: This removal program is temporary, and only provided to test
echo during the early Gopher and Web Beta Program.
echo Its function is being added to MINSTALL.
echo .
echo Multiple re-boots will not be necessary when MINSTALL
echo is completed.
echo .
echo Questions, comments, and problems should be directed to
echo Stewart Tate, TATES@BCRVM1, 8-443-6971.
echo .
echo This program removes the Multimedia Viewer Product from your
echo computer system. If you do not want to do this, press CTRL-C now.
pause
: Check if Viewer has been installed
echo Looking for Viewer Product *%WORKPLAC%*.
if not exist %WORKPLAC%\README.DOC goto CkPhaseII
: Information
echo The Multimedia Viewer product was installed at %WORKPLAC%.
goto RmClass
:CkPhaseII
: Phase Two - Erase class DLL's and Directories
if not exist %WORKPLAC%\DLL\UTLTMAIN.DLL goto NotInstalled
goto RmDLLs
:RmClass
: Remove class replacement
echo Removing Class replacements.
%WORKPLAC%\INSTALL\repl WPDataFile WPDataFile -undo
: De-register object class
echo Deregistering object classes
%WORKPLAC%\INSTALL\reg -d LTFolder
%WORKPLAC%\INSTALL\reg -d LTReference
%WORKPLAC%\INSTALL\reg -d LTDataFile
echo Removing product files
if exist %WORKPLAC%\README.DOC del %WORKPLAC%\README.DOC
if exist %WORKPLAC%\CONFIG.NEW del %WORKPLAC%\CONFIG.NEW
goto PhaseIComplete
:RmDLLs
: Delete Viewer Directories
echo Removing locked product files
if exist %WORKPLAC%\DLL\*.* del %WORKPLAC%\DLL\*.*
if exist %WORKPLAC%\HELP\*.* del %WORKPLAC%\HELP\*.*
if exist %WORKPLAC%\BIN\*.* del %WORKPLAC%\BIN\*.*
if exist %WORKPLAC%\DATA\*.* del %WORKPLAC%\DATA\*.*
if exist %WORKPLAC%\INSTALL\*.* del %WORKPLAC%\INSTALL\*.*
echo Removing product directories
CD \
rd %WORKPLAC%\BIN
rd %WORKPLAC%\DATA
rd %WORKPLAC%\DLL
rd %WORKPLAC%\INSTALL
rd %WORKPLAC%\HELP
rd %WORKPLAC%
goto End
:PhaseIComplete
echo Phase I has been completed.
echo Re-boot your computer system and do %0 again (after re-booting)
echo to complete the removal process.
goto Done
:NotInstalled
echo The Multimedia Viewer is not installed on your system.
goto Done
:End
echo Viewer De-Install Completed.
:Done