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:         echo %_PREFIX% ERROR: ROOTDIR "%_ROOTDIR%" does not appear to be a Cygwin directory.
          exit /b 1
      :endif_cygwin_ico
  goto :eof
  
  :check_admin
      rem Check for ADMIN privileges
  
negative.code: rem Uninstall Cygwin.
  rem See http://cygwin.com/faq/faq-nochunks.html#faq.setup.uninstall-all
  rem
  rem Copyright (c) 2012-2012 Tom Schutter
  rem All rights reserved.
  rem
  rem Redistribution and use in source and binary forms, with or without
  rem modification, are permitted provided that the following conditions
  rem are met:
  rem
  rem    - Redistributions of source code must retain the above copyright
  rem      notice, this list of conditions and the following disclaimer.
  rem    - Redistributions in binary form must reproduce the above
  rem      copyright notice, this list of conditions and the following
  rem      disclaimer in the documentation and/or other materials provided
  rem      with the distribution.
  rem
  rem THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  rem "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  rem LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  rem FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  rem COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  rem INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  rem BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  rem LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  rem CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  rem LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
  rem ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  rem POSSIBILITY OF SUCH DAMAGE.
  rem
  
  setlocal
  
  rem Configuration.
  set _ROOTDIR=C:\cygwin
  set _PREFIX=CYGWIN_UNINSTALL:
  
  goto :main
  
  