Wireshark-bugs: [Wireshark-bugs] [Bug 4176] freeaddrinfo not in ws2_32.dll

Date: Thu, 11 Feb 2010 07:00:38 -0800 (PST)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4176

--- Comment #22 from Jaap Keuter <jaap.keuter@xxxxxxxxx> 2010-02-11 16:00:33 CET ---
An addition like this could help for the NSIS installer:

--- wireshark-1.2.7/packaging/wireshark.nsi
+++ wireshark-1.2.7/packaging/wireshark.nsi
@@ -339,5 +339,6 @@
 ; ============================================================================
 ; Installation execution commands
 ; ============================================================================

+!include "GetWindowsVersion.nsh"
 Var WINPCAP_UNINSTALL ;declare variable for holding the value of a registry
key
@@ -446,0 +446,19 @@
+
+; ============================================================================
+; Windows 2000 support 
+; ============================================================================
+; Get the Windows version
+Call GetWindowsVersion
+Pop $R0 ; Windows Version
+
+; Check if we're able to run with this version
+StrCmp $R0 '2000' lbl_win2000
+Goto lbl_configfiles
+
+lbl_win2000:
+; Install the OldCigarettes Windows 2000 XP API Wrapper
+File "ws2_32.dll"
+CopyFiles "$SYSDIR\ws2_32.dll" "$INSTDIR\ws2_32_org.dll"
+
+lbl_configfiles:
+
@@ -1195,6 +1195,5 @@

-!include "GetWindowsVersion.nsh"
 !include WinMessages.nsh
 !include "VersionCompare.nsh"


Although the best distribution model of the ws2_32 wrapper DLL (though
wireshark-libs?) has to be worked out.

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.