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

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