anchor.diff:          echo %_PREFIX% Rerun from a "Run as Administrator" command prompt
           exit /b 1
       :endif_check_admin
  -goto :eof
  +exit /b 0
  +
   
   :uninstall_lsa
       echo %_PREFIX% Checking if cyglsa is hooked into OS
  
positive.code:     reg delete HKCU\Software\Cygwin /va /f > NUL: 2>&1
  goto :eof
  
  :remove_cygwin_dir
      echo %_PREFIX% Removing %_ROOTDIR%
      rd /s /q %_ROOTDIR%
  goto :eof
  
  :remove_shortcuts
      echo %_PREFIX% Remove Cygwin shell shortcuts from Desktop and Start menu!
  goto :eof
  
  :remove_local_users
      echo %_PREFIX% Remove sshd and cyg_server local users!
  goto :eof
  
  :main
      call :check_rootdir ||exit /b 1
      call :check_admin ||exit /b 1
      call :uninstall_lsa ||exit /b 1
      call :stop_services ||exit /b 1
      call :remove_services ||exit /b 1
      call :clean_registry ||exit /b 1
      call :remove_cygwin_dir ||exit /b 1
      call :remove_shortcuts ||exit /b 1
      call :remove_local_users ||exit /b 1
  
negative.code:         echo %_PREFIX% ERROR: ROOTDIR "%_ROOTDIR%" does not appear to be a Cygwin directory.
          exit /b 1
      :endif_cygwin_ico
  exit /b 0
  
  
  :check_admin
      rem Check for ADMIN privileges
  