How to completely uninstall/remove cygwin from Windows 7

Follow the below steps.

  1. C:\>takeown /r /d y /f cygwin

cygwin is the folder name where is located ours files

  1. C:\>icacls cygwin /t /grant Everyone:F
  2. C:\cygwin\bin>.\cygrunsrv.exe -E sshd
  3. C:\cygwin\bin>.\cygrunsrv.exe -R sshd

Then delete the folder c:\cygwin and all its sub-folders. This approach worked for me.

Be aware that windows commands like takeown are depending on the locale, i.e. option /d yworks only in english systems. In german system one needs to use /d j to work (without hint in the english help, *facepalm microsoft)*

Lascia un commento

Questo sito usa Akismet per ridurre lo spam. Scopri come i tuoi dati vengono elaborati.

Chiudi il menu