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: Message-ID: 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: Content-Language: en-GB 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 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: =?utf-8?q?Csaba_R=C3=A1duly_via_Cygwin?= Reply-To: =?UTF-8?Q?Csaba_R=c3=a1duly?= Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: cygwin-bounces AT cygwin DOT com Sender: "Cygwin" 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