home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 8 Other / 08-Other.zip / RMVMMV.ZIP / REMOVE.CMD < prev    next >
OS/2 REXX Batch file  |  1995-01-20  |  2KB  |  82 lines

  1. @echo off
  2.  
  3. : remove Multimedia Viewer Product
  4.   echo NOTE: This removal program is temporary, and only provided to test
  5.   echo       during the early Gopher and Web Beta Program.
  6.   echo       Its function is being added to MINSTALL.
  7.   echo .
  8.   echo       Multiple re-boots will not be necessary when MINSTALL
  9.   echo       is completed.
  10.   echo .
  11.   echo       Questions, comments, and problems should be directed to
  12.   echo       Stewart Tate, TATES@BCRVM1, 8-443-6971.
  13.   echo .
  14.   echo This program removes the Multimedia Viewer Product from your
  15.   echo computer system. If you do not want to do this, press CTRL-C now.
  16.   pause
  17.  
  18. : Check if Viewer has been installed
  19.   echo Looking for Viewer Product *%WORKPLAC%*.
  20.   if not exist %WORKPLAC%\README.DOC goto CkPhaseII
  21.  
  22. : Information
  23.   echo The Multimedia Viewer product was installed at %WORKPLAC%.
  24.   goto RmClass
  25.  
  26. :CkPhaseII
  27. : Phase Two - Erase class DLL's and Directories
  28.   if not exist %WORKPLAC%\DLL\UTLTMAIN.DLL goto NotInstalled
  29.   goto RmDLLs
  30.  
  31.  
  32. :RmClass
  33. : Remove class replacement
  34.   echo Removing Class replacements.
  35.   %WORKPLAC%\INSTALL\repl WPDataFile WPDataFile -undo
  36.  
  37. : De-register object class
  38.   echo Deregistering object classes
  39.   %WORKPLAC%\INSTALL\reg -d LTFolder
  40.   %WORKPLAC%\INSTALL\reg -d LTReference
  41.   %WORKPLAC%\INSTALL\reg -d LTDataFile
  42.  
  43.   echo Removing product files
  44.   if exist %WORKPLAC%\README.DOC del %WORKPLAC%\README.DOC
  45.   if exist %WORKPLAC%\CONFIG.NEW del %WORKPLAC%\CONFIG.NEW
  46.   goto PhaseIComplete
  47.  
  48. :RmDLLs
  49. : Delete Viewer Directories
  50.   echo Removing locked product files
  51.   if exist %WORKPLAC%\DLL\*.* del %WORKPLAC%\DLL\*.*
  52.   if exist %WORKPLAC%\HELP\*.* del %WORKPLAC%\HELP\*.*
  53.   if exist %WORKPLAC%\BIN\*.* del %WORKPLAC%\BIN\*.*
  54.   if exist %WORKPLAC%\DATA\*.* del %WORKPLAC%\DATA\*.*
  55.   if exist %WORKPLAC%\INSTALL\*.* del %WORKPLAC%\INSTALL\*.*
  56.  
  57.   echo Removing product directories
  58.   CD \
  59.   rd %WORKPLAC%\BIN
  60.   rd %WORKPLAC%\DATA
  61.   rd %WORKPLAC%\DLL
  62.   rd %WORKPLAC%\INSTALL
  63.   rd %WORKPLAC%\HELP
  64.   rd %WORKPLAC%
  65.   goto End
  66.  
  67. :PhaseIComplete
  68.  echo Phase I has been completed.
  69.  echo Re-boot your computer system and do %0 again (after re-booting)
  70.  echo to complete the removal process.
  71.  goto Done
  72.  
  73. :NotInstalled
  74.  echo The Multimedia Viewer is not installed on your system.
  75.  goto Done
  76.  
  77. :End
  78.  echo Viewer De-Install Completed.
  79.  
  80. :Done
  81.  
  82.