X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; q=dns; s=default; b=ESk4msq n+vGOwjK3H09nrEoXD2wwPAh64KQGtEHDg1ZSYU1QSa7ki8H+TQOkvUMfmdYUa/X BsH/vfieQLfnMlSHikxWZ1tVniT1SVzdtwVjxQPF8Ti9Kvq50LcCfHKTWtbq9UAX EqgY041NrffthJlyCBp8FGoabVoPUtLe2NUE= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; s=default; bh=Pq1kLF9Oga+dO 3RE2q1dm6axHUg=; b=V3mkbivR+MVEJ8OCFElYZ0HFyzHil60OlPw4svafwl2Q4 DM1oEg7XtHKQU1PjAhlB6guPVTCY9FUbDfvuRiVdybVR4jGRbbj57oXZMG+hbBsk 3vsa2ScBZahcfG5B2FFLKZB3OMIOBoIhFdPUjyRHfNCNE/VfO0d9gFC5jrJKi0= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy= X-HELO: mail-lf0-f41.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=0jEjsm5wNByw0kYAybNh8XGqzfIaqqgHg4J98t/wnwA=; b=EbezO2n7qbPFcNLpcArsvX6Y58QZ4/AN/spAhKV6dcqy2lfn+D0WX1f+K6kngwJb+t DtvvVt847BfvP9E6cZZRMaGJ6pRlVsiGYXVDhI0WbBNznZjnq5pxAyVXR8/jXGXz1sxp NOzNrW1bXdtdg9Pafqh21SgvZGylLb5qXREiKkWJj9GQ+2TxEx23rQ9oc96MUFhfvtR7 vbxpeW+6EpX2l9+GWGv5t4YW7qVVLZnPnvoj1qzNjvoU+Vn2qKWANStEe6f6JrtnhhK5 Ws7SJqf9tDceEnrKFZy0bMG7dezgZGVbeP8VoToIPc0cKA/RtWSCbQqkg/dVJP92hjwU hvAQ== X-Gm-Message-State: ALQs6tCEbFE2ekU2B+Cel3HP9OQBkoyhOabx/KzZIdN3RvBFFQH1x+2v SSE8uWhD2VJDPnufAL33MaCCQK3fn9Jv3+YfLXw= X-Google-Smtp-Source: AB8JxZo6ezL2L5Pt/CQB17CFNHzDJJZP6mIRRC6ZuHugdq1f7N3ekWTnqxapgSyyv4PIQhFBVzTT0d86JEK8LEX7KPE= X-Received: by 2002:a19:3b19:: with SMTP id i25-v6mr15159156lfa.56.1525915335395; Wed, 09 May 2018 18:22:15 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: From: R0b0t1 Date: Wed, 9 May 2018 20:22:15 -0500 Message-ID: Subject: Re: How portable (relocatable) is a Cygwin installation? To: cygwin AT cygwin DOT com Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes On Wed, May 9, 2018 at 7:08 PM, Andy Li wrote: > Hi, > > We are looking for an easy way to distribute an OCaml development > enviroment based on Cygwin. Someone has an idea of installing all the > necessary packages and zip the whole Cygwin installation directory and > distribute the resulting archive. > > Is it a good idea? Is the installation path written in a Cygwin > installation somewhere that may need to be updated when relocating? Is > there any registry entry or env var required for a Cygwin installation to > work? > This should work. Historically, MSYS(2) has been used for this purpose. Please reconsider bundling everything with your development distribution. It would be cleanest to have your users install Cygwin or MSYS2 separately, perhaps by launching the their installer from your installer. If multiple development bundles distribute a set of Unix-like utilities and add them to PATH things will break in hard to diagnose ways (usually related to very old bundled utilities, but this is not usually immediately obvious). The main danger with the reuse of Cygwin installations is that your user ID on one machine will not match the user ID on another. Cheers, R0b0t1 -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple