X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 	tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Date: Thu, 14 Jan 2010 11:01:20 +0100
Reply-To: "Christian Franke" <Christian.Franke@t-online.de>
To: cygwin@cygwin.com
Subject: Setup.exe 2.674 does not work properly if retry is used
From: "Christian Franke" <Christian.Franke@t-online.de>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit
Message-ID: <1NVMW0-06M35E0@fwd02.aul.t-online.de>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Current setup.exe does not work properly if retry is used. Steps to
reproduce:

1. Run some Cygwin shell to keep cygwin1.dll locked.

2. Run setup.exe 2.674.

3. Select "Reinstall cygwin" and start installation.

4. Wait for message box "Unable to extract /usr/bin/cygwin1.dll -- the
file is in use".

5. Stop the shell and select "Retry".

After installation most files of package cygwin are missing and a bogus
file named MZ\220 (first 3 bytes from EXE Header) is in cygwin root:

$ zcat /etc/setup/cygwin.lst.gz | cat -A
etc/$
etc/defaults/$
etc/defaults/etc/$
etc/defaults/etc/cygserver.conf$
usr/$
usr/bin/$
usr/bin/cygcheck.exe$
usr/bin/cyglsa-config$
usr/bin/cyglsa.dll$
usr/bin/cyglsa64.dll$
usr/bin/cygpath.exe$
usr/bin/cygserver-config$
usr/bin/cygwin-console-helper.exe$
usr/bin/cygwin1.dll$
MZM-^P$

$ ls -b -1 /
MZ\220
bin
boot
cygdrive
...

$ ls /bin/regtool.exe
ls: cannot access /bin/regtool.exe: No such file or directory

Another reinstall with cygwin1.dll not locked fixes this.

Christian




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

