0

The docs say it's C:\cygwin, but I observe C:\tools\cygwin.

I'm testing the installation with Chocolatey, but I might have had a previous Cygwin installation and don't remember if I changed the default location. I tried to remove all occurrences of C:\tools in the registry but so far the reinstallation insists on installing there.

Reto Höhener
  • 5,419
  • 4
  • 39
  • 79

1 Answers1

0

Looks like Chocolatey sets this location:

$cygwin_root = (Get-ItemProperty 'HKLM:\SOFTWARE\Cygwin\setup' -ea 0).rootdir
if (!$cygwin_root) {
    $cygwin_root = if ($pp.InstallDir) { $pp.InstallDir } else { "$toolsLocation\cygwin" }
} else { Write-Host 'Existing installation detected, ignoring InstallDir argument' }

But what's the reason for not using the default location?

Reto Höhener
  • 5,419
  • 4
  • 39
  • 79
  • Maybe to not overlap with an standard Cygwin installation, if exist ? For 64bit the default is `c:\Cygwin64` – matzeri Jun 02 '21 at 14:33
  • @matzeri The code seems to indicate the opposite intention: `Existing installation detected, ignoring InstallDir argument` – Reto Höhener Jun 02 '21 at 16:26