X-Recipient: archive-cygwin@delorie.com
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 4C9FF385DC14
Authentication-Results: sourceware.org;
 dmarc=none (p=none dis=none) header.from=towo.net
Authentication-Results: sourceware.org; spf=none smtp.mailfrom=towo@towo.net
Subject: Re: Can I find where cygwin is installed (for automation purposes)
To: cygwin@cygwin.com
References: <CACac1F9BvE0nqGru8=NxA7pc=6VPF_sokUPS94Wr1NfRQeLN5w@mail.gmail.com>
 <CAEhDDbBUcV3HmoCwraH7pY5c19Sj=mRZ6ofCOZL3T9qx_4qq6w@mail.gmail.com>
From: Thomas Wolff <towo@towo.net>
X-Tagtoolbar-Keys: D20200415144226295
Message-ID: <20877a05-79f2-549e-8959-3bd6904e5bb3@towo.net>
Date: Wed, 15 Apr 2020 14:42:26 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101
 Thunderbird/68.7.0
MIME-Version: 1.0
In-Reply-To: <CAEhDDbBUcV3HmoCwraH7pY5c19Sj=mRZ6ofCOZL3T9qx_4qq6w@mail.gmail.com>
X-Provags-ID: V03:K1:IFRlIL6RK3Z/d6a85yyigQtSyDzzMmgcMj5c3MySQ7x9CS6mPUp
 qXQ2w4/RMGVsL4rxVYiQIR1lFC+FisJhSyL6T9Nq/1rpZ9Hv9ylgmxfMEuxr2rRZ3i3YHRA
 2aJHzZ0wUcrKo1fBY8Ih91VwCtLchLoPib0YFyRy/ESONzekJy/AcqFjwfB93V/oSwqNbbe
 uqOqvhwrUSGEIC6Dbz2lw==
X-UI-Out-Filterresults: notjunk:1;V03:K0:Vxtj3gNOydE=:vBEmoFshYZ0u5F7mjqYblM
 mNfeVhMzRxv6MIqPu5kfM4uOok/sjt8RxtmQIl71y3U2F2gBdf72poP5r8zrelmydv8PM+xbI
 UcOc2Lzub1KrkFtaG5yolmblaN3Ehq2eigb7cwOB5pR4A/qx1bYPyd7w7BYvSoc9R8qQVYCRg
 h72J9YwxSLRRat1x53LzrSJjV/huvPduNa+nZnf1wOSEXUM/4+0YBWXHFw53pvufxriPyi4mN
 7C0fN2SNhOOWXEfFFis63hO/4dR/CSmu1+nXKPwhQHWYvBmgij8tLI5AE0hTueiK1WqUY/g8o
 XROIRWlc5BILndrLkDZ7cnIth7Ynt1Tpcicbdrv3UizkwME36V3An37XPaG7x8YWArhUhuaeH
 rYKmXeQC9a2WwEk2sgPWJ7UMYXKgdWQxvMYd3KOePyYoew9nsa+CAlejS2D0GC69N7YkWS2wJ
 KiCc/izRkLWCtGfavX2CvWLdXaVTDr6vF3MblzstXhHbno37X0oW1Kc1w6jRlLgco3JoznvKN
 XxiOTyS5/9NvB70sQvv6MqgPQ6Za2SqEETIVoaXHU/aV+8QeB7AzXo0ZbzDbbWuAScGZiSWne
 sd3H1iXE6Jzdh9QtZh/xUpLuXOlG9YCNvkJsoP8W6h8Ig6IwbFkMWBFW86tpIfUfpvU5/TBBr
 Tc11BGBEMuNcpx04VxWA/UhBKwE1C2fypWk2+cN5Q5bMNjLPLmtqCl+x7I1mNtZ+qZjDUKLTS
 fi9uk2v6GBrltWD8vogghF+xzLZA9JvcgrYxayxe5+WED3KpvsY+wWDL1JLZdWM4WIqvdyduk
 /fnHa8wYC2UTI3IXgHgrRAN46x26W75WD9gKcjjYnyaD6Dfvro=
X-Spam-Status: No, score=-11.3 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS,
 KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_NONE,
 TXREP autolearn=no autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <http://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Errors-To: cygwin-bounces@cygwin.com
Sender: "Cygwin" <cygwin-bounces@cygwin.com>

Am 15.04.2020 um 12:51 schrieb Csaba Raduly via Cygwin:
> Hi Paul,
>
> On Wed, Apr 15, 2020 at 12:30 PM Paul Moore via Cygwin <cygwin@cygwin.com>
> wrote:
>
>> I'm trying to write an automation script that works on a number of
>> machines. I know that on all machines Cygwin will be installed, but I
>> cannot guarantee that (1) it will be in the same location on each PC,
>> or (2) that it will be in PATH.
>>
>> There's HKCU\Software\Cygwin\Installations, but that seems to use \??
>> prefixes on the PATH, which I'm not sure how to interpret
Running that script within cygwin? `mount | grep " / "`

>
> On my machine, I have a
>
> HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\setup
>
> key, which contains a string value named "rootdir" with the date
> "C:\cygwin64".
>
> Csaba
>

--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
