delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/04/15/06:54:23

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B5AA4384A883
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1586948018;
bh=Gp6l3h63lDyMm9dAPy+eAwEifn3YStD9EJxahQFlG6A=;
h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=UPP1AzibLoShTdJfd565rtUozG5dEkod9Nj/+/RwwVVi2Unv+BSLwEHP0Js634MjK
EuApJCqn+0ZxmDzG6ASBiopNdZo2zGYcWF9NKWWMpeJR0D4HXMmexLo7Oq6eHk/r90
wSix2FXuPOAPrEBjO9T03n7Vv+F+jwtkivGZlpnA=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 62FDC385DC1C
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:subject:to:references:from:message-id:date
:user-agent:mime-version:in-reply-to:content-language
:content-transfer-encoding;
bh=juxSaCJkDln9KevVoIx2EJCywq12gF7y4Zl/elPAxCI=;
b=MV7QIBbxwu0klmxj5S630lwjruw6fqn/5uBbj1J63954GY+CVuZDHAiZMGgbjKCWK/
Fs3Y9ggWk2bBWxEoVTHygmK5K8EYvkPT4ALfB8dzCod2247T7jVxCc+UIyPa15RjbEVd
jNMyZELA2fyEUFzgHMw8Hwp6SGTdqS4MYkyAlP8XF//v8BYbBdLijUdZaOoomm6lEYiR
hoasquwmgzq5R0p13Ne1hV7e3UXTWuv/Axu3dwbly2KTJgUgtOyzSiLGf6gRl1A30Arh
MYArC0CTQ6XC/LWevjfF5MiZm7Cj/SX5WW67ZivoAWMIgwJsWvQS/vgWODdeB8ykLw50
HYhw==
X-Gm-Message-State: AGi0PubLItoDXI6NLtSY5Sxay4w9MLSbdCWSuadhtO1PoLlH7REjqZGo
9mQd1a2PLmXHXrehFIohIzWk4L4+e/4=
X-Google-Smtp-Source: APiQypKLWjzbU4pWzEa1ngs4etZtw77RC8sOgoc9SPgf3RBlRF3oBET48lqskXkzSFMeQEKT13rD/Q==
X-Received: by 2002:a7b:ce81:: with SMTP id q1mr4942337wmj.156.1586948015385;
Wed, 15 Apr 2020 03:53:35 -0700 (PDT)
Subject: Re: Can I find where cygwin is installed (for automation purposes)
To: cygwin AT cygwin DOT com
References: <CACac1F9BvE0nqGru8=NxA7pc=6VPF_sokUPS94Wr1NfRQeLN5w AT mail DOT gmail DOT com>
Message-ID: <fea3d3d3-3ba0-7b8c-8c5c-c2793a397762@gmail.com>
Date: Wed, 15 Apr 2020 12:53:32 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101
Thunderbird/68.6.0
MIME-Version: 1.0
In-Reply-To: <CACac1F9BvE0nqGru8=NxA7pc=6VPF_sokUPS94Wr1NfRQeLN5w@mail.gmail.com>
X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,
SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham 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 AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <http://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: =?utf-8?q?Csaba_R=C3=A1duly_via_Cygwin?= <cygwin AT cygwin DOT com>
Reply-To: =?UTF-8?Q?Csaba_R=c3=a1duly?= <rcsaba AT gmail DOT com>
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

Hi Paul,

On 15/04/2020 12:29, Paul Moore via Cygwin 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 
...

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

-- 
You can get very substantial performance improvements
by not doing the right thing. - Scott Meyers, An Effective C++11/14 Sampler
So if you're looking for a completely portable, 100% standards-conformat way
to get the wrong information: this is what you want. - Scott Meyers (C++TDaWYK)
--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019