home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 8 Other
/
08-Other.zip
/
RMVMMV.ZIP
/
DINSTMMV.CMD
next >
Wrap
OS/2 REXX Batch file
|
1995-01-20
|
2KB
|
71 lines
@echo off
: remove Multimedia Viewer Product
echo NOTE:
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
:RmClass
: Remove class replacement
echo Removing Class replacements.
repl WPDataFile WPDataFile -undo
: De-register object class
echo Deregistering object classes
reg -d LTFolder
reg -d LTReference
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
: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