Skip to content

Commit

Permalink
o The Nmap Windows self-installer now automatically installs the MS
Browse files Browse the repository at this point in the history
  Visual C++ 2008 runtime components if they aren't already installed
  on a system.  These are some reasonably small DLLs that are
  generally necessary for applications compiled with Visual C++ (with
  dynamic linking).  Many or most systems already have these installed
  from other software packages.  The lack of these components led to
  the error message "The Application failed to intialize properly
  (0xc0150002)." with Nmap 4.65.  A related change is that Nmap on
  Windows is now compiled with /MD rather than /MT so that it
  consistently uses these runtime libraries.  The patch was created by
  Rob Nicholls.
  • Loading branch information
fyodor committed Jun 29, 2008
1 parent 22fac0e commit 2c4f8d1
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 6 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Nmap Changelog ($Id$); -*-text-*-

o The Nmap Windows self-installer now automatically installs the MS
Visual C++ 2008 runtime components if they aren't already installed
on a system. These are some reasonably small DLLs that are
generally necessary for applications compiled with Visual C++ (with
dynamic linking). Many or most systems already have these installed
from other software packages. The lack of these components led to
the error message "The Application failed to intialize properly
(0xc0150002)." with Nmap 4.65. A related change is that Nmap on
Windows is now compiled with /MD rather than /MT so that it
consistently uses these runtime libraries. The patch was created by
Rob Nicholls.

o Updated showHTMLTitle NSE script to follow one HTTP redirect if
necessary as long as it is on the same server. [Jah]

Expand Down
2 changes: 1 addition & 1 deletion libdnet-stripped/libdnet-stripped.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
AdditionalOptions="/D "_CRT_SECURE_NO_DEPRECATE""
AdditionalIncludeDirectories="include;"..\mswin32\pcap-include""
PreprocessorDefinitions="WIN32;_LIB"
RuntimeLibrary="0"
RuntimeLibrary="2"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="true"
Expand Down
2 changes: 1 addition & 1 deletion liblua/liblua.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
MinimalRebuild="false"
ExceptionHandling="0"
BasicRuntimeChecks="0"
RuntimeLibrary="0"
RuntimeLibrary="2"
BufferSecurityCheck="false"
TreatWChar_tAsBuiltInType="false"
RuntimeTypeInfo="false"
Expand Down
2 changes: 1 addition & 1 deletion libpcre/libpcre.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
<Tool
Name="VCCLCompilerTool"
PreprocessorDefinitions="WIN32;_LIB"
RuntimeLibrary="0"
RuntimeLibrary="2"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="false"
Expand Down
1 change: 1 addition & 0 deletions mswin32/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ winbuild:
cp -a Release/nselib nmap-$(NMAP_VERSION)
cp -a Release/nselib-bin nmap-$(NMAP_VERSION)
cp winpcap/winpcap-nmap-*.exe nmap-$(NMAP_VERSION)
cp vcredist_x86.exe nmap-$(NMAP_VERSION)
zip -r nmap-$(NMAP_VERSION)-win32.zip nmap-$(NMAP_VERSION)
mkdir nmap-$(NMAP_VERSION)/zenmap
cd ../zenmap && install_scripts/windows/copy_and_compile.bat
Expand Down
2 changes: 1 addition & 1 deletion mswin32/nmap.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
AdditionalIncludeDirectories=".;..;../liblua;../nbase;../libpcre;winip;..\nsock\include;&quot;pcap-include&quot;;&quot;..\libdnet-stripped\include&quot;;OpenSSL\include;"
PreprocessorDefinitions="WIN32;_CONSOLE"
StringPooling="true"
RuntimeLibrary="0"
RuntimeLibrary="2"
EnableFunctionLevelLinking="true"
UsePrecompiledHeader="0"
PrecompiledHeaderFile=".\Release/nmap.pch"
Expand Down
9 changes: 7 additions & 2 deletions mswin32/nsis/Nmap.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,12 @@ Section "Nmap Core Files" SecCore

;Store installation folder
WriteRegStr HKCU "Software\Nmap" "" $INSTDIR


;Silent install of Visual C++ 2008 runtime components
File ..\vcredist_x86.exe
ExecWait '"$INSTDIR\vcredist_x86.exe" /q'
Delete "$INSTDIR\vcredist_x86.exe"

;Create uninstaller
WriteUninstaller "$INSTDIR\Uninstall.exe"

Expand Down Expand Up @@ -232,7 +237,7 @@ SectionEnd
;Descriptions

;Component strings
LangString DESC_SecCore ${LANG_ENGLISH} "Installs Nmap executable and NSE scripts"
LangString DESC_SecCore ${LANG_ENGLISH} "Installs Nmap executable, NSE scripts and Visual C++ 2008 runtime components"
LangString DESC_SecRegisterPath ${LANG_ENGLISH} "Registers Nmap path to System path so you can execute it from any directory"
LangString DESC_SecWinPcap ${LANG_ENGLISH} "Installs WinPcap 4.0 (required for most Nmap scans unless it is already installed)"
LangString DESC_SecPerfRegistryMods ${LANG_ENGLISH} "Modifies Windows registry values to improve TCP connect scan performance. Recommended."
Expand Down
Binary file added mswin32/vcredist_x86.exe
Binary file not shown.

0 comments on commit 2c4f8d1

Please sign in to comment.