home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / upsmange.zip / EDITOR / DESINST.BAT next >
DOS Batch File  |  1996-02-28  |  1KB  |  63 lines

  1. @echo off
  2.  
  3. rem UM-Editor removal procedure for Windows - version 1.00 (part 1)
  4. rem ---------------------------------------------------------------
  5.  
  6. cls
  7. echo.
  8. echo.
  9. echo UM-Editor removal procedure
  10. echo ---------------------------
  11. echo.
  12. echo.
  13.  
  14. if not exist UMED.EXE goto baddir
  15. if not exist GETVAR.EXE goto incdir
  16. if not exist DESINST1.BAT goto incdir
  17.  
  18. echo This program will erase all UM-Editor files and directories.
  19. echo You MUST stop UM-Editor before starting removal procedure.
  20. echo Continue (Y/N) ?
  21.  
  22. getvar.exe REPONS
  23. call setenv.bat
  24. if not "%REPONS%" == "Y" if not "%REPONS%" == "y" goto abort
  25.  
  26. if not exist \ETC\UMEDPATH goto nopath
  27. getvar.exe UMEDP <\ETC\UMEDPATH
  28. call setenv.bat
  29. if "%UMEDP%" == "" goto nopath
  30.  
  31. erase %UMEDP%\UMED.EXE >nul
  32. if exist %UMEDP%\UMED.EXE goto running
  33.  
  34. copy %UMEDP%\DESINST1.BAT \ETC >nul
  35.  
  36. \ETC\DESINST1.BAT
  37.  
  38. echo Error : file DESINST1.BAT cannot be accessed or copied.
  39. goto abort
  40.  
  41. :running
  42. echo Error : UM-Editor is running.
  43. goto abort
  44.  
  45. :nopath
  46. echo Error : file \ETC\UMEDPATH not found or incorrect.
  47. goto abort
  48.  
  49. :incdir
  50. echo Error : utilities are missing in UM-Editor directory,
  51. echo         check GETVAR.EXE and DESINST1.BAT.
  52. goto abort
  53.  
  54. :baddir
  55. echo Error : current directory must be directory where UM-Editor is installed.
  56.  
  57. :abort
  58. echo Removal procedure aborted.
  59. echo.
  60. set UMEDP=
  61. set REPONS=
  62. pause
  63.