From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 107236 invoked by alias); 17 Aug 2018 09:58:36 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 107203 invoked by uid 89); 17 Aug 2018 09:58:36 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=H*F:D*mail.com, distributing, UD:zip, transfer X-HELO: mout.gmx.com Received: from mout.gmx.com (HELO mout.gmx.com) (74.208.4.200) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 17 Aug 2018 09:58:34 +0000 Received: from johndoe65534.mail.com ([85.28.70.154]) by mail.gmx.com (mrgmxus001 [74.208.5.15]) with ESMTPSA (Nemesis) id 0MKIAS-1fox6135ni-001iQf for ; Fri, 17 Aug 2018 11:58:31 +0200 Subject: Re: distributing preconfigured cygwin To: cygwin@cygwin.com References: <0F7D3B1B3C4B894D824F5B822E3E5A17787FB4BB@IRSMSX102.ger.corp.intel.com> <3110356010.20180606204945@yandex.ru> <540c62ab-2519-9f57-6565-d536d8b74ef2@gmail.com> <944481618.20180607010455@yandex.ru> <20180608133017.GB20898@rus.uni-stuttgart.de> <0F7D3B1B3C4B894D824F5B822E3E5A17787FD684@IRSMSX102.ger.corp.intel.com> <20180608135221.GF20898@rus.uni-stuttgart.de> <49498971.20180608194124@yandex.ru> <20180709002131.GA3525@rus.uni-stuttgart.de> <87d0vp7uth.fsf@Rainer.invalid> <20180817094154.GB9924@rus.uni-stuttgart.de> From: john doe Message-ID: Date: Fri, 17 Aug 2018 10:58:00 -0000 MIME-Version: 1.0 In-Reply-To: <20180817094154.GB9924@rus.uni-stuttgart.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2018-08/txt/msg00220.txt.bz2 On 8/17/2018 11:41 AM, Ulli Horlacher wrote: > On Sat 2018-07-14 (16:31), Achim Gratz wrote: > >>>> You have to install Cygwin, not "transfer". >>> >>> I have several 100 users, none of them is able to install cygwin and >>> the packages they need the official way, they are way to *CENSORED* for >>> this job :-} >> >> If they can follow your current instructions, they can surely start some >> script that does this correctly? > > I do not have a script which installs all needed packages. > > >>> I give them my preconfigured cygwin.zip (or cygwin64.zip) and tell them to >>> unpack it in C:\ >>> >>> http://fex.belwue.de/usecases/cygwin.html >> >> Whatever you call it, it's still cludgey nonsense that might or might >> not work. Only when it's not working your users will really be unable >> to figure out what to do since they won't even know what is failing. > > So far, it has worked for all my users. No one is complaining. > > >> script that calls setup to install it and any other packages you need >> (if not already installed by way of dependency). Setup can deal with >> multiple package repositories, so you can use one of the official >> mirrors as the primary package repository and only provide your package >> as an add-on repository (like cygwin ports does). > > How do I write such a script? > Is there documentation/examples about this? > > This install script must first download the cygwin base package, install > it and then run setup with all needed cygwin packages. > But at the very beginning, I do not have a shell at all? > Basically, you create a batch script that would execute a powershell script. The powershell script will handle the download of the setup file, installation of cygwin, installation of extra packages, detect 32/64bit architecture... The batch script is easier for the user to execute and you can also run the powershell script as administrator, if needed. From a CLI pass the '-h, --help' option to the setup file to get all available options. -- John Doe -- 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