Nmap Development mailing list archives

RE: [PATCH] RE: [PATCH] RE: Zenmap Build Guide


From: "Rob Nicholls" <robert () robnicholls co uk>
Date: Thu, 18 Nov 2010 07:47:26 -0000

Hi David,

I've currently added the Visual C++ 2008 RTM with ATL package, which appears
to be the latest fully patched installer in the non-SP1 branch; but I get
prompted by Windows Update to install the 2008 SP1 with ATL patch afterwards
(possibly some dodgy detection logic?). I'll update it to the latest (and
sadly twice the size) 2008 SP1 version to avoid people telling us we're not
using the latest/right installer.

I'm also testing an updated version of the Nmap installer. Over a year ago I
noticed that the uninstaller is only created if you selected the Nmap Core
Files section. We also only install the redistributables if you select Nmap
or Zenmap right now. I've moved the code to create the installer and install
the relevant redistributable to separate functions that get called by each
section (except for WinPcap and the registry tweaks), and set a variable so
we only try to do each function once. That way anyone installing Ncat on its
own will also get the uninstaller and 2010 redistributable, for example.

Rob

-----Original Message-----
From: 'David Fifield' [mailto:david () bamsoftware com] 
Sent: 17 November 2010 22:04
To: Rob Nicholls
Cc: nmap-dev () insecure org
Subject: Re: [PATCH] RE: [PATCH] RE: Zenmap Build Guide

On Wed, Nov 10, 2010 at 06:04:54PM -0000, Rob Nicholls wrote:
Sorry for the slow and rather lengthy reply, I hit an annoying issue 
that I think explains the comment in the Zenmap Build Guide about GTK+ 
2.16 working on Windows 7 but not on XP. I don't think it's a GTK 
problem, I think it's a "built on Windows 7" problem, which I suspect is
more of a py2exe problem!

After playing with depends.exe and doing some investigative work I 
spotted that py2exe was including some of my Windows 7 DLLs, which XP 
didn't seem to like (and the error message logged to zenmap.exe.log wasn't
very helpful).
After I told py2exe to exclude four DLLs by editing setup.py (see 
attached
patch) it now seems to run okay on XP and Vista (where I initially saw 
the same problem).

When I tried it on a clean Vista (SP1) VM it initially displayed this 
Windows error message:

The application has failed to start because its side-by-side 
configuration is incorrect. Please see the application event log for more
detail.

Rather oddly, it seemed to work fine on a clean Windows 7 VM, so 
perhaps MS already include native support for the 2008 runtimes? I 
couldn't find anything online to prove that though.

I then installed the 2008 SP1 (with ATL) redistributable hoping that 
Zenmap might be happy, and it was! I suspect either Python are wrong 
when they say the 2008 RTM version should be used, or (much more 
likely) the 2008 SP1 redistributable also installs 2008 RTM files at 
the same time (why else is Microsoft's installer more than twice as 
large as the older version?). I presume that means that Nmap's 2008 
SP1 with ATL redistributable was sorting out our Zenmap issues without 
us realising (if we'd supplied a manifest and specific DLLs we probably
would have seen it sooner).

I'll do some more digging, but we probably need to re-include the 2008 
redistributable (we could probably drop down to the 2008 with ATL fix 
redistributable, rather than 2008 SP1 with ATL, and halve the size of 
the vcredist.exe we need to supply) or go the less elegant route of 
including a manifest and the required DLLs with zenmap.exe.

I saw that you re-added the 2008 SP1 package. Thanks for that. That's
probably the way to go for now.

David Fifield


_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


Current thread: