X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 252BF3858282
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1700067928;
	bh=RSa8wyQXciQ9VW5gHEDWKeisy8gNfAC/MTWIccasAvQ=;
	h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
	 From;
	b=t0/Nn2hghjWqzA+aoK1OFXvzbnoWtOglYIh4PwcGE1YxZkkpKFCR9k7HWh3LDrrDH
	 apsnnbTf5JDdcVLkmdkYNbjzu28HdImKUWCjFahgeiLakDlgtbd/Eg0DcoFG9XxulD
	 dEf3XupMoDz0AWOOeVjEUHMOGRgUf081Ljvl2OGA=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DC7183858D20
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org DC7183858D20
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700067907; cv=none;
 b=ghoSAkO5oEzk8KjNsfgcupV2d2cTS00oFpV1NZyriVdvm01gJ27rQDMhhdBEDMe/XONkUL67Jc4ZFDHsXDtDmkQANCRKZigbcRcQTn5Uw+C0+RjO8fQhnB9eyu5wVj9Ilvm5odnybl0WsarAOvPWN4aas4378QJE+7WffcAFsNY=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
 t=1700067907; c=relaxed/simple;
 bh=+yGzSOCppVZcgRGH8paAKstJSGZrGpWqP1upvrA3TGw=;
 h=DKIM-Signature:Date:From:Message-ID:To:Subject:MIME-Version;
 b=tQjSwKQrtGO4qbu8iqR7HDgf2nVTXJOiYhLHlwEsIi7A8KLDri4+Fvq2DanENQcZSF3k8hoKHVzFEvXVMhRjyH2X+YomyKQ8KBfnBiO3ERb42xc3xFmMzSN+85pab9fp+4mg1NRmAm9H2X3xzAxA2IHkEa2vyVw6bkdYgV26F/w=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Yandex-Fwd: 1
Date: Wed, 15 Nov 2023 20:01:44 +0300
X-Mailer: The Bat! (v9.3.4) Professional
Message-ID: <1594716181.20231115200144@yandex.ru>
To: "Mainz, Roland" <Roland.Mainz@rovema.de>, cygwin@cygwin.com
Subject: Re: setup-x86_64.exe (bug ?): Cannot write to /usr/bin/cygwin1.dll -
 cyserver squatting it...
In-Reply-To: <DBBPR05MB111779EE12E855BE19BFE167B92B1A@DBBPR05MB11177.eurprd05.prod.outlook.com>
References: <a0f1e420-ae48-49a3-9300-c56f1948ad9b.8d485f54-9f47-42b0-bdcb-9635fbf663c3.331c6002-7ca1-4c59-9494-402e573a76ee@emailsignatures365.codetwo.com>
 <a0f1e420-ae48-49a3-9300-c56f1948ad9b.e52b7f5f-5a09-4346-99f8-a6591191169c.d8646e54-e135-4b48-b201-e04c766db67c@emailsignatures365.codetwo.com>
 <DBBPR05MB111779EE12E855BE19BFE167B92B1A@DBBPR05MB11177.eurprd05.prod.outlook.com>
MIME-Version: 1.0
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_THEBAT,
 NICE_REPLY_A, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL,
 SPF_HELO_NONE, SPF_PASS, TXREP,
 T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.30
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://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: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Andrey Repin via Cygwin <cygwin@cygwin.com>
Reply-To: cygwin@cygwin.com
Cc: Andrey Repin <anrdaemon@yandex.ru>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cygwin-bounces+archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>

Greetings, Mainz, Roland!


> Hi!

> ----

> The Cygwin installer "setup-x86_64.exe" has problems updating cygwin1.dll when cygserver is running:

You should stop ALL Cygwin processes before starting setup.exe.
This is documented.

> ---- snip ----
> Unable to extract /usr/bin/cygwin1.dll -- error writing file
> ---- snip ----

> The fix is to do a $ sc stop cygserver # as Administrator, then
> "setup-x86_64.exe" can write to that file, and after "setup" is done do a $ sc start cygserverr # as Admin again.

> ... is it possible to modify "setup-x86_64.exe" to stop cygserver before
> doing the installation process and re-start it after it ?

There's no reason to do so, as there's no easy way to detect beforehand, if
you actually need to do so.

You could have cygserver running from one Cygwin setup but installing to the
different one. And so on.


-- 
With best regards,
Andrey Repin
Wednesday, November 15, 2023 19:59:00

Sorry for my terrible english...


-- 
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
