Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Message-ID: <43721FE4.3E48369D@dessent.net> Date: Wed, 09 Nov 2005 08:12:21 -0800 From: Brian Dessent MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Old versions of setup.exe References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com Igor Pechtchanski wrote: > Dave's running this command on a self-compiled version of setup. The > setup on the Cygwin site is compressed with upx, which mangles all strings > (except the PE header). So, one way to get version information into setup > is to use the "Version:" tag in the PE header (or whatever it's called), > but that will only work for the newest setup versions -- the older ones > will have the "unextractable version" problem. In that case: upx -d setup.exe -o setup.tmp >/dev/null && \ strings setup.tmp | grep setup-version | cut -d ' ' -f 3 && \ rm setup.tmp Brian -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/