2001-04-04 04:50:05 +00:00
;
2006-05-30 13:19:30 +00:00
; wireshark.nsi
2001-04-04 04:50:05 +00:00
;
2007-03-26 04:02:05 +00:00
2005-07-25 07:42:06 +00:00
; Set the compression mechanism first.
2007-03-26 04:02:05 +00:00
; As of NSIS 2.07, solid compression which makes installer about 1MB smaller
2005-07-25 07:42:06 +00:00
; is no longer the default, so use the /SOLID switch.
; This unfortunately is unknown to NSIS prior to 2.07 and creates an error.
; So if you get an error here, please update to at least NSIS 2.07!
2005-07-26 18:17:09 +00:00
SetCompressor /SOLID lzma
2013-03-15 21:46:25 +00:00
SetCompressorDictSize 64 ; MB
2001-04-04 04:50:05 +00:00
2012-06-13 19:06:27 +00:00
!include "common.nsh"
!include 'LogicLib.nsh'
2004-06-10 10:12:30 +00:00
2001-04-04 04:50:05 +00:00
; ============================================================================
; Header configuration
; ============================================================================
2011-03-01 19:40:51 +00:00
2001-04-04 04:50:05 +00:00
; The file to write
2012-10-15 12:50:20 +00:00
OutFile "${PROGRAM_NAME}-${WIRESHARK_TARGET_PLATFORM}-${VERSION}.exe"
2012-06-13 19:06:27 +00:00
; Installer icon
2009-02-18 20:27:16 +00:00
Icon "..\..\image\wiresharkinst.ico"
2001-04-04 04:50:05 +00:00
2003-12-26 12:27:47 +00:00
; ============================================================================
; Modern UI
; ============================================================================
; The modern user interface will look much better than the common one.
; However, as the development of the modern UI is still going on, and the script
; syntax changes, you will need exactly that NSIS version, which this script is
; made for. This is the current (December 2003) latest version: V2.0b4
; If you are using a different version, it's not predictable what will happen.
!include "MUI.nsh"
2005-07-23 20:34:43 +00:00
;!addplugindir ".\Plugins"
2003-12-26 12:27:47 +00:00
2009-02-18 20:27:16 +00:00
!define MUI_ICON "..\..\image\wiresharkinst.ico"
2014-01-05 17:16:03 +00:00
BrandingText "Wireshark Installer (tm)"
2003-12-26 12:27:47 +00:00
!define MUI_COMPONENTSPAGE_SMALLDESC
2004-08-25 03:32:26 +00:00
!define MUI_FINISHPAGE_NOAUTOCLOSE
2012-10-16 08:08:18 +00:00
!define MUI_WELCOMEPAGE_TEXT "This wizard will guide you through the installation of ${PROGRAM_NAME}.\r\n\r\nBefore starting the installation, make sure ${PROGRAM_NAME} is not running.\r\n\r\nClick 'Next' to continue."
2013-03-08 18:23:58 +00:00
;!define MUI_FINISHPAGE_LINK "Install WinPcap to be able to capture packets from a network."
2005-07-23 20:34:43 +00:00
;!define MUI_FINISHPAGE_LINK_LOCATION "http://www.winpcap.org"
2004-08-25 03:32:26 +00:00
; NSIS shows Readme files by opening the Readme file with the default application for
2007-03-26 04:02:05 +00:00
; the file's extension. "README.win32" won't work in most cases, because extension "win32"
; is usually not associated with an appropriate text editor. We should use extension "txt"
; for a text file or "html" for an html README file.
2004-08-26 22:48:29 +00:00
!define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\NEWS.txt"
!define MUI_FINISHPAGE_SHOWREADME_TEXT "Show News"
!define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED
2014-08-05 15:23:41 +00:00
!define MUI_FINISHPAGE_RUN "$INSTDIR\${PROGRAM_NAME_PATH_QT}"
2005-07-23 20:34:43 +00:00
!define MUI_FINISHPAGE_RUN_NOTCHECKED
2005-02-03 02:35:20 +00:00
!define MUI_PAGE_CUSTOMFUNCTION_SHOW myShowCallback
2003-12-26 12:27:47 +00:00
; ============================================================================
; MUI Pages
; ============================================================================
!insertmacro MUI_PAGE_WELCOME
2004-01-05 15:27:35 +00:00
!insertmacro MUI_PAGE_LICENSE "..\..\COPYING"
2003-12-26 12:27:47 +00:00
!insertmacro MUI_PAGE_COMPONENTS
2005-07-23 20:34:43 +00:00
Page custom DisplayAdditionalTasksPage
2003-12-26 12:27:47 +00:00
!insertmacro MUI_PAGE_DIRECTORY
2005-07-23 20:34:43 +00:00
Page custom DisplayWinPcapPage
2003-12-26 12:27:47 +00:00
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH
2007-03-26 04:02:05 +00:00
2003-12-26 12:27:47 +00:00
; ============================================================================
; MUI Languages
; ============================================================================
2007-03-26 04:02:05 +00:00
2003-12-26 12:27:47 +00:00
!insertmacro MUI_LANGUAGE "English"
2005-07-23 20:34:43 +00:00
; ============================================================================
; Reserve Files
; ============================================================================
2007-03-26 04:02:05 +00:00
2005-07-23 20:34:43 +00:00
;Things that need to be extracted on first (keep these lines before any File command!)
;Only useful for BZIP2 compression
2007-03-26 04:02:05 +00:00
2005-07-23 20:34:43 +00:00
ReserveFile "AdditionalTasksPage.ini"
ReserveFile "WinPcapPage.ini"
!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
2004-08-26 22:48:29 +00:00
; ============================================================================
; Section macros
; ============================================================================
!include "Sections.nsh"
; ========= Macro to unselect and disable a section =========
!macro DisableSection SECTION
Push $0
SectionGetFlags "${SECTION}" $0
IntOp $0 $0 & ${SECTION_OFF}
IntOp $0 $0 | ${SF_RO}
SectionSetFlags "${SECTION}" $0
Pop $0
!macroend
; ========= Macro to enable (unreadonly) a section =========
!define SECTION_ENABLE 0xFFFFFFEF
!macro EnableSection SECTION
Push $0
SectionGetFlags "${SECTION}" $0
IntOp $0 $0 & ${SECTION_ENABLE}
SectionSetFlags "${SECTION}" $0
Pop $0
!macroend
2005-09-14 02:07:20 +00:00
; ============================================================================
; Command Line
; ============================================================================
!include "FileFunc.nsh"
!insertmacro GetParameters
!insertmacro GetOptions
2001-04-04 04:50:05 +00:00
; ============================================================================
; License page configuration
; ============================================================================
2006-05-22 08:14:01 +00:00
LicenseText "Wireshark is distributed under the GNU General Public License."
2004-01-05 15:27:35 +00:00
LicenseData "..\..\COPYING"
2001-04-04 04:50:05 +00:00
; ============================================================================
; Component page configuration
; ============================================================================
2001-04-05 05:36:47 +00:00
ComponentText "The following components are available for installation."
2001-04-04 04:50:05 +00:00
; ============================================================================
; Directory selection page configuration
; ============================================================================
; The text to prompt the user to enter a directory
2012-10-16 08:08:18 +00:00
DirText "Choose a directory in which to install ${PROGRAM_NAME}."
2001-04-04 04:50:05 +00:00
; The default installation directory
2009-04-17 22:09:26 +00:00
!if ${WIRESHARK_TARGET_PLATFORM} == "win64"
2012-10-16 08:08:18 +00:00
InstallDir $PROGRAMFILES64\${PROGRAM_NAME}
2009-04-17 22:09:26 +00:00
!else
2012-10-16 08:08:18 +00:00
InstallDir $PROGRAMFILES\${PROGRAM_NAME}
2009-04-17 22:09:26 +00:00
!endif
2001-04-04 04:50:05 +00:00
; See if this is an upgrade; if so, use the old InstallDir as default
2012-10-16 08:08:18 +00:00
InstallDirRegKey HKEY_LOCAL_MACHINE SOFTWARE\${PROGRAM_NAME} "InstallDir"
2001-04-04 04:50:05 +00:00
; ============================================================================
; Install page configuration
; ============================================================================
ShowInstDetails show
2004-06-10 10:12:30 +00:00
; ============================================================================
; Functions and macros
; ============================================================================
2012-06-13 19:06:27 +00:00
Var EXTENSION
2012-06-13 20:11:41 +00:00
; http://msdn.microsoft.com/en-us/library/windows/desktop/cc144148.aspx
2004-06-10 10:12:30 +00:00
Function Associate
2014-01-05 18:16:22 +00:00
Push $R0
2012-06-13 19:06:27 +00:00
!insertmacro PushFileExtensions
2014-01-05 18:16:22 +00:00
Pop $EXTENSION
2013-07-25 15:40:39 +00:00
2014-01-05 18:16:22 +00:00
${DoUntil} $EXTENSION == ${FILE_EXTENSION_MARKER}
ReadRegStr $R0 HKCR $EXTENSION ""
StrCmp $R0 "" Associate.doRegister
Goto Associate.end
2007-03-26 04:02:05 +00:00
2004-06-10 10:12:30 +00:00
Associate.doRegister:
2014-01-05 18:16:22 +00:00
;The extension is not associated to any program, we can do the link
WriteRegStr HKCR $EXTENSION "" ${WIRESHARK_ASSOC}
DetailPrint "Registered file type: $EXTENSION"
2012-06-13 19:06:27 +00:00
2004-06-10 10:12:30 +00:00
Associate.end:
2014-01-05 18:16:22 +00:00
Pop $EXTENSION
${Loop}
2004-06-10 10:12:30 +00:00
2014-01-05 18:16:22 +00:00
Pop $R0
2004-06-10 10:12:30 +00:00
FunctionEnd
2002-08-19 15:48:28 +00:00
2008-10-21 16:44:35 +00:00
Var OLD_UNINSTALLER
2008-11-01 00:24:10 +00:00
Var OLD_INSTDIR
2008-10-21 16:44:35 +00:00
Var OLD_DISPLAYNAME
2008-11-01 00:24:10 +00:00
Var TMP_UNINSTALLER
2008-10-21 16:44:35 +00:00
2009-04-17 22:09:26 +00:00
; ============================================================================
; 64-bit support
; ============================================================================
2009-04-17 17:32:48 +00:00
!include x64.nsh
2005-07-23 20:34:43 +00:00
Function .onInit
2009-04-17 17:32:48 +00:00
!if ${WIRESHARK_TARGET_PLATFORM} == "win64"
; http://forums.winamp.com/printthread.php?s=16ffcdd04a8c8d52bee90c0cae273ac5&threadid=262873
2009-04-17 22:09:26 +00:00
${IfNot} ${RunningX64}
2013-09-05 17:51:17 +00:00
MessageBox MB_OK "This version of Wireshark only runs on x64 machines.$\nTry installing the 32-bit version instead." /SD IDOK
2009-04-17 17:32:48 +00:00
Abort
${EndIf}
!endif
2014-08-10 14:48:40 +00:00
; Get the Windows version
Call GetWindowsVersion
Pop $R0 ; Windows Version
; Check if we're able to run with this version
StrCmp $R0 '95' lbl_winversion_unsupported
StrCmp $R0 '98' lbl_winversion_unsupported
StrCmp $R0 'ME' lbl_winversion_unsupported
StrCmp $R0 'NT 4.0' lbl_winversion_unsupported_nt4
StrCmp $R0 '2000' lbl_winversion_unsupported_2000
StrCmp $R0 'XP' lbl_winversion_warn_xp
Goto lbl_winversion_supported
lbl_winversion_unsupported:
MessageBox MB_OK \
"Windows $R0 is no longer supported.$\nPlease install Ethereal 0.99.0 instead." \
/SD IDOK
Quit
lbl_winversion_unsupported_nt4:
MessageBox MB_OK \
"Windows $R0 is no longer supported.$\nPlease install Wireshark 0.99.4 instead." \
/SD IDOK
Quit
lbl_winversion_unsupported_2000:
MessageBox MB_OK \
"Windows $R0 is no longer supported.$\nPlease install Wireshark 1.2 or 1.0 instead." \
/SD IDOK
Quit
lbl_winversion_warn_xp:
MessageBox MB_YESNO|MB_ICONINFORMATION \
"This version of ${PROGRAM_NAME} may not work on Windows $R0.$\nWe recommend ${PROGRAM_NAME} 1.10 instead.$\nDo you want to continue?" \
/SD IDYES IDYES lbl_winversion_supported
Quit
lbl_winversion_supported:
2013-02-20 23:59:49 +00:00
!insertmacro IsWiresharkRunning
2013-02-20 01:19:42 +00:00
2008-10-21 16:44:35 +00:00
; Copied from http://nsis.sourceforge.net/Auto-uninstall_old_before_installing_new
ReadRegStr $OLD_UNINSTALLER HKLM \
2012-10-16 08:08:18 +00:00
"Software\Microsoft\Windows\CurrentVersion\Uninstall\${PROGRAM_NAME}" \
2008-11-01 00:24:10 +00:00
"UninstallString"
2008-10-21 16:44:35 +00:00
StrCmp $OLD_UNINSTALLER "" done
2008-11-01 00:24:10 +00:00
ReadRegStr $OLD_INSTDIR HKLM \
2012-10-16 08:08:18 +00:00
"Software\Microsoft\Windows\CurrentVersion\App Paths\${PROGRAM_NAME}.exe" \
2008-11-01 00:24:10 +00:00
"Path"
StrCmp $OLD_INSTDIR "" done
2008-10-21 16:44:35 +00:00
ReadRegStr $OLD_DISPLAYNAME HKLM \
2012-10-16 08:08:18 +00:00
"Software\Microsoft\Windows\CurrentVersion\Uninstall\${PROGRAM_NAME}" \
2008-11-01 00:24:10 +00:00
"DisplayName"
2008-10-21 16:44:35 +00:00
StrCmp $OLD_DISPLAYNAME "" done
2008-11-01 00:24:10 +00:00
MessageBox MB_YESNOCANCEL|MB_ICONQUESTION \
"$OLD_DISPLAYNAME is already installed.\
2013-11-14 22:35:10 +00:00
$\n$\nWould you like to uninstall it first?" \
2009-02-18 20:27:16 +00:00
/SD IDYES \
IDYES prep_uninstaller \
2008-11-01 00:24:10 +00:00
IDNO done
2008-10-21 16:44:35 +00:00
Abort
2011-06-23 23:04:03 +00:00
2008-11-01 00:24:10 +00:00
; Copy the uninstaller to $TEMP and run it.
; The uninstaller normally does this by itself, but doesn't wait around
; for the executable to finish, which means ExecWait won't work correctly.
2009-02-18 20:27:16 +00:00
prep_uninstaller:
2008-10-21 16:44:35 +00:00
ClearErrors
2012-10-16 08:08:18 +00:00
StrCpy $TMP_UNINSTALLER "$TEMP\${PROGRAM_NAME}_uninstaller.exe"
2008-11-01 00:24:10 +00:00
; ...because we surround UninstallString in quotes.
StrCpy $0 $OLD_UNINSTALLER -1 1
2012-10-16 08:08:18 +00:00
StrCpy $1 "$TEMP\${PROGRAM_NAME}_uninstaller.exe"
2008-11-01 00:24:10 +00:00
StrCpy $2 1
System::Call 'kernel32::CopyFile(t r0, t r1, b r2) 1'
2009-02-18 20:27:16 +00:00
ExecWait "$TMP_UNINSTALLER /S _?=$OLD_INSTDIR"
2008-11-01 00:24:10 +00:00
Delete "$TMP_UNINSTALLER"
2011-06-23 23:04:03 +00:00
2008-10-21 16:44:35 +00:00
done:
2005-07-23 20:34:43 +00:00
;Extract InstallOptions INI files
2007-03-26 04:02:05 +00:00
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "AdditionalTasksPage.ini"
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "WinpcapPage.ini"
2005-07-23 20:34:43 +00:00
FunctionEnd
Function DisplayAdditionalTasksPage
!insertmacro MUI_HEADER_TEXT "Select Additional Tasks" "Which additional tasks should be done?"
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "AdditionalTasksPage.ini"
FunctionEnd
Function DisplayWinPcapPage
!insertmacro MUI_HEADER_TEXT "Install WinPcap?" "WinPcap is required to capture live network data. Should WinPcap be installed?"
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "WinPcapPage.ini"
FunctionEnd
2001-04-04 04:50:05 +00:00
; ============================================================================
; Installation execution commands
; ============================================================================
2005-07-23 20:34:43 +00:00
Var WINPCAP_UNINSTALL ;declare variable for holding the value of a registry key
2006-05-30 13:19:30 +00:00
;Var WIRESHARK_UNINSTALL ;declare variable for holding the value of a registry key
2005-07-23 20:34:43 +00:00
2012-10-19 17:47:34 +00:00
!ifdef VCREDIST_EXE
2012-07-20 17:56:16 +00:00
Var VCREDIST_FLAGS ; silent vs passive, norestart
2012-10-19 17:47:34 +00:00
!endif
2012-07-20 17:56:16 +00:00
2001-04-04 04:50:05 +00:00
Section "-Required"
;-------------------------------------------
2002-08-19 15:48:28 +00:00
;
; Install for every user
;
SetShellVarContext all
2001-04-04 04:50:05 +00:00
SetOutPath $INSTDIR
2012-06-14 18:53:55 +00:00
File "${STAGING_DIR}\${UNINSTALLER_NAME}"
2012-06-13 21:03:54 +00:00
File "${STAGING_DIR}\wiretap-${WTAP_VERSION}.dll"
2006-05-31 00:23:01 +00:00
!ifdef ENABLE_LIBWIRESHARK
2012-06-13 21:03:54 +00:00
File "${STAGING_DIR}\libwireshark.dll"
2004-05-09 10:03:41 +00:00
!endif
2014-07-10 00:58:30 +00:00
File "${STAGING_DIR}\libwsutil.dll"
2015-01-21 16:41:19 +00:00
!include all-manifest.nsh
2012-06-13 21:03:54 +00:00
File "${STAGING_DIR}\COPYING.txt"
File "${STAGING_DIR}\NEWS.txt"
File "${STAGING_DIR}\README.txt"
File "${STAGING_DIR}\README.windows.txt"
2009-06-21 15:47:40 +00:00
File "..\..\doc\AUTHORS-SHORT"
2001-10-11 01:04:19 +00:00
File "..\..\manuf"
2007-08-12 20:54:30 +00:00
File "..\..\services"
2011-05-19 18:10:21 +00:00
File "..\..\pdml2html.xsl"
2008-02-22 20:03:36 +00:00
File "..\..\doc\ws.css"
2006-05-31 19:12:15 +00:00
File "..\..\doc\wireshark.html"
File "..\..\doc\wireshark-filter.html"
2012-06-13 21:03:54 +00:00
File "${STAGING_DIR}\dumpcap.exe"
2006-02-11 23:58:07 +00:00
File "..\..\doc\dumpcap.html"
2009-02-16 18:27:29 +00:00
File "..\..\ipmap.html"
2002-06-01 22:17:22 +00:00
2007-03-26 04:02:05 +00:00
; C-runtime redistributable
2007-01-13 00:59:39 +00:00
!ifdef VCREDIST_EXE
2014-07-30 01:45:47 +00:00
; vcredist_x64.exe - copy and execute the redistributable installer
2007-01-13 00:59:39 +00:00
File "${VCREDIST_EXE}"
2009-09-17 21:54:52 +00:00
; If the user already has the redistributable installed they will see a
; Big Ugly Dialog by default, asking if they want to uninstall or repair.
; Ideally we should add a checkbox for this somewhere. In the meantime,
2012-07-20 17:56:16 +00:00
; just do a "passive+norestart" install for MSVC 2010 and later and a
; "silent" install otherwise.
; http://blogs.msdn.com/b/astebner/archive/2010/10/20/10078468.aspx
2014-07-30 01:45:47 +00:00
; http://allthingsconfigmgr.wordpress.com/2013/12/17/visual-c-redistributables-made-simple/
2012-07-20 18:04:00 +00:00
; "!if ${MSVC_VER_REQUIRED} >= 1600" doesn't work.
2014-07-30 01:45:47 +00:00
!searchparse /noerrors ${MSVC_VER_REQUIRED} "1400" VCREDIST_FLAGS_Q "1500" VCREDIST_FLAGS_Q "1600" VCREDIST_FLAGS_Q_NORESTART
!ifdef VCREDIST_FLAGS_Q
2012-07-20 17:56:16 +00:00
StrCpy $VCREDIST_FLAGS "/q"
2014-07-30 01:45:47 +00:00
!else ; VCREDIST_FLAGS_Q
!ifdef VCREDIST_FLAGS_Q_NORESTART
2012-07-20 17:56:16 +00:00
StrCpy $VCREDIST_FLAGS "/q /norestart"
2014-07-30 01:45:47 +00:00
!else ; VCREDIST_FLAGS_Q_NORESTART
StrCpy $VCREDIST_FLAGS "/quiet /norestart"
!endif ; VCREDIST_FLAGS_Q_NORESTART
!endif ; VCREDIST_FLAGS_Q
2012-07-20 17:56:16 +00:00
ExecWait '"$INSTDIR\vcredist_${TARGET_MACHINE}.exe" $VCREDIST_FLAGS' $0
DetailPrint "vcredist_${TARGET_MACHINE} returned $0"
IntCmp $0 3010 redistReboot redistNoReboot
redistReboot:
SetRebootFlag true
redistNoReboot:
2013-02-21 01:03:47 +00:00
Delete "$INSTDIR\vcredist_${TARGET_MACHINE}.exe"
2007-01-13 00:59:39 +00:00
!else
!ifdef MSVCR_DLL
; msvcr*.dll (MSVC V7 or V7.1) - simply copy the dll file
2013-03-08 18:23:58 +00:00
!echo "IF YOU GET AN ERROR HERE, check the MSVC_VARIANT setting in config.nmake: MSVC2005 vs. MSVC2005EE."
2007-01-13 00:59:39 +00:00
File "${MSVCR_DLL}"
!else
!if ${MSVC_VARIANT} != "MSVC6"
2013-03-08 18:23:58 +00:00
!error "C-Runtime redistributable for this package not available / not redistributable."
2007-01-13 00:59:39 +00:00
!endif
2014-01-05 18:16:22 +00:00
!endif ; MSVCR_DLL
!endif ; VCREDIST_EXE
2007-01-13 00:59:39 +00:00
2007-03-26 04:02:05 +00:00
; global config files - don't overwrite if already existing
2005-08-26 00:01:49 +00:00
;IfFileExists cfilters dont_overwrite_cfilters
2005-06-09 07:43:32 +00:00
File "..\..\cfilters"
2005-08-26 00:01:49 +00:00
;dont_overwrite_cfilters:
;IfFileExists colorfilters dont_overwrite_colorfilters
2005-06-09 07:43:32 +00:00
File "..\..\colorfilters"
2005-08-26 00:01:49 +00:00
;dont_overwrite_colorfilters:
;IfFileExists dfilters dont_overwrite_dfilters
2005-06-09 07:43:32 +00:00
File "..\..\dfilters"
2005-08-26 00:01:49 +00:00
;dont_overwrite_dfilters:
2008-10-27 04:38:21 +00:00
;IfFileExists smi_modules dont_overwrite_smi_modules
2007-08-27 22:06:47 +00:00
File "..\..\smi_modules"
;dont_overwrite_smi_modules:
2005-06-09 07:43:32 +00:00
2002-06-01 22:17:22 +00:00
;
; Install the Diameter DTD and XML files in the "diameter" subdirectory
; of the installation directory.
2007-03-26 04:02:05 +00:00
;
2002-06-01 22:17:22 +00:00
SetOutPath $INSTDIR\diameter
2012-09-23 20:12:46 +00:00
File "..\..\diameter\AlcatelLucent.xml"
2005-12-16 20:58:50 +00:00
File "..\..\diameter\chargecontrol.xml"
2013-04-24 18:04:33 +00:00
File "..\..\diameter\ChinaTelecom.xml"
2012-09-23 20:12:46 +00:00
File "..\..\diameter\Cisco.xml"
2013-07-25 15:40:39 +00:00
File "..\..\diameter\Custom.xml"
2005-09-29 02:20:29 +00:00
File "..\..\diameter\dictionary.dtd"
File "..\..\diameter\dictionary.xml"
2009-06-26 05:48:03 +00:00
File "..\..\diameter\eap.xml"
2008-01-07 22:00:26 +00:00
File "..\..\diameter\Ericsson.xml"
2007-07-10 13:20:37 +00:00
File "..\..\diameter\etsie2e4.xml"
2013-01-23 14:50:57 +00:00
File "..\..\diameter\SKT.xml"
2014-06-24 14:08:17 +00:00
File "..\..\diameter\HP.xml"
2005-09-29 02:20:29 +00:00
File "..\..\diameter\mobileipv4.xml"
2010-03-18 21:29:58 +00:00
File "..\..\diameter\mobileipv6.xml"
2005-09-29 02:20:29 +00:00
File "..\..\diameter\nasreq.xml"
2012-10-08 14:20:34 +00:00
File "..\..\diameter\Nokia.xml"
2015-01-19 08:33:22 +00:00
File "..\..\diameter\NokiaSolutionsAndNetworks.xml"
2006-11-14 06:31:47 +00:00
File "..\..\diameter\sip.xml"
2014-03-02 17:23:36 +00:00
File "..\..\diameter\Starent.xml"
2005-09-29 02:20:29 +00:00
File "..\..\diameter\sunping.xml"
2014-08-29 01:20:56 +00:00
File "..\..\diameter\TGPP.xml"
2014-08-28 19:28:27 +00:00
File "..\..\diameter\TGPP2.xml"
2013-07-18 09:27:10 +00:00
File "..\..\diameter\VerizonWireless.xml"
2011-06-09 06:36:40 +00:00
File "..\..\diameter\Vodafone.xml"
2013-08-21 19:53:57 +00:00
!include "custom_diameter_xmls.txt"
2002-06-01 22:17:22 +00:00
SetOutPath $INSTDIR
2001-04-04 04:50:05 +00:00
2005-07-15 22:36:21 +00:00
;
; Install the RADIUS directory files in the "radius" subdirectory
; of the installation directory.
;
2005-07-15 21:18:32 +00:00
SetOutPath $INSTDIR\radius
2009-07-09 20:31:22 +00:00
File "..\..\radius\README.radius_dictionary"
2013-01-23 12:08:15 +00:00
File "..\..\radius\custom.includes"
2005-07-15 21:18:32 +00:00
File "..\..\radius\dictionary"
File "..\..\radius\dictionary.3com"
File "..\..\radius\dictionary.3gpp"
File "..\..\radius\dictionary.3gpp2"
File "..\..\radius\dictionary.acc"
2011-05-24 19:13:04 +00:00
File "..\..\radius\dictionary.acme"
2009-07-09 20:31:22 +00:00
File "..\..\radius\dictionary.airespace"
2014-10-27 08:12:21 +00:00
File "..\..\radius\dictionary.actelis"
File "..\..\radius\dictionary.aerohive"
2005-07-15 21:18:32 +00:00
File "..\..\radius\dictionary.alcatel"
2011-05-24 19:13:04 +00:00
File "..\..\radius\dictionary.alcatel.esam"
File "..\..\radius\dictionary.alcatel.sr"
2013-11-11 21:13:55 +00:00
File "..\..\radius\dictionary.alcatel-lucent.aaa"
2005-07-15 21:18:32 +00:00
File "..\..\radius\dictionary.alteon"
File "..\..\radius\dictionary.altiga"
2009-07-09 20:31:22 +00:00
File "..\..\radius\dictionary.alvarion"
2014-10-27 08:12:21 +00:00
File "..\..\radius\dictionary.alvarion.wimax.v2_2"
2009-07-09 20:31:22 +00:00
File "..\..\radius\dictionary.apc"
2005-07-15 21:18:32 +00:00
File "..\..\radius\dictionary.aptis"
2008-12-09 13:57:55 +00:00
File "..\..\radius\dictionary.aruba"
2014-11-26 19:08:07 +00:00
File "..\..\radius\dictionary.arbor"
2009-07-09 20:31:22 +00:00
File "..\..\radius\dictionary.ascend"
File "..\..\radius\dictionary.asn"
2011-05-24 19:13:04 +00:00
File "..\..\radius\dictionary.audiocodes"
2009-07-09 20:31:22 +00:00
File "..\..\radius\dictionary.avaya"
File "..\..\radius\dictionary.azaire"
2005-07-15 21:18:32 +00:00
File "..\..\radius\dictionary.bay"
2014-10-27 08:12:21 +00:00
File "..\..\radius\dictionary.bluecoat"
2005-07-15 21:18:32 +00:00
File "..\..\radius\dictionary.bintec"
2014-10-27 08:12:21 +00:00
File "..\..\radius\dictionary.broadsoft"
File "..\..\radius\dictionary.brocade"
File "..\..\radius\dictionary.bskyb"
2005-07-15 21:18:32 +00:00
File "..\..\radius\dictionary.bristol"
2014-10-27 08:12:21 +00:00
File "..\..\radius\dictionary.bt"
File "..\..\radius\dictionary.camiant"
2005-07-15 21:18:32 +00:00
File "..\..\radius\dictionary.cablelabs"
File "..\..\radius\dictionary.cabletron"
2009-07-09 20:31:22 +00:00
File "..\..\radius\dictionary.chillispot"
2005-07-15 21:18:32 +00:00
File "..\..\radius\dictionary.cisco"
2014-10-27 08:12:21 +00:00
File "..\..\radius\dictionary.cisco.asa"
2005-07-15 21:18:32 +00:00
File "..\..\radius\dictionary.cisco.bbsm"
File "..\..\radius\dictionary.cisco.vpn3000"
File "..\..\radius\dictionary.cisco.vpn5000"
2014-10-27 08:12:21 +00:00
File "..\..\radius\dictionary.citrix"
2009-07-09 20:31:22 +00:00
File "..\..\radius\dictionary.clavister"
2005-07-15 21:18:32 +00:00
File "..\..\radius\dictionary.colubris"
File "..\..\radius\dictionary.columbia_university"
2014-10-27 08:12:21 +00:00
File "..\..\radius\dictionary.compatible"
2005-07-15 21:18:32 +00:00
File "..\..\radius\dictionary.compat"
File "..\..\radius\dictionary.cosine"
2014-10-27 08:12:21 +00:00
File "..\..\radius\dictionary.dante"
2009-07-09 20:31:22 +00:00
File "..\..\radius\dictionary.dhcp"
2014-10-27 08:12:21 +00:00
File "..\..\radius\dictionary.dlink"
2009-07-09 20:31:22 +00:00
File "..\..\radius\dictionary.digium"
2014-10-27 08:12:21 +00:00
File "..\..\radius\dictionary.dragonwave"
File "..\..\radius\dictionary.efficientip"
2010-11-18 09:51:50 +00:00
File "..\..\radius\dictionary.eltex"
2009-07-09 20:31:22 +00:00
File "..\..\radius\dictionary.epygi"
2014-10-27 08:12:21 +00:00
File "..\..\radius\dictionary.equallogic"
2005-09-28 16:39:20 +00:00
File "..\..\radius\dictionary.ericsson"
2014-10-27 08:12:21 +00:00
File "..\..\radius\dictionary.ericsson.ab"
File "..\..\radius\dictionary.ericsson.packet.core.networks"
2005-07-15 21:18:32 +00:00
File "..\..\radius\dictionary.erx"
File "..\..\radius\dictionary.extreme"
2014-10-27 08:12:21 +00:00
File "..\..\radius\dictionary.f5"
File "..\..\radius\dictionary.fdxtended"
2009-07-09 20:31:22 +00:00
File "..\..\radius\dictionary.fortinet"
2005-07-15 21:18:32 +00:00
File "..\..\radius\dictionary.foundry"
2014-10-27 08:12:21 +00:00
File "..\..\radius\dictionary.freedhcp"
2005-07-15 21:18:32 +00:00
File "..\..\radius\dictionary.freeradius"
2009-07-09 20:31:22 +00:00
File "..\..\radius\dictionary.freeradius.internal"
File "..\..\radius\dictionary.freeswitch"
2005-07-15 21:18:32 +00:00
File "..\..\radius\dictionary.gandalf"
File "..\..\radius\dictionary.garderos"
File "..\..\radius\dictionary.gemtek"
2009-07-09 20:31:22 +00:00
File "..\..\radius\dictionary.h3c"
File "..\..\radius\dictionary.hp"
File "..\..\radius\dictionary.huawei"
2014-10-27 08:12:21 +00:00
File "..\..\radius\dictionary.iana"
2011-05-24 19:13:04 +00:00
File "..\..\radius\dictionary.iea"
2014-10-27 08:12:21 +00:00
File "..\..\radius\dictionary.infoblox"
2009-07-09 20:31:22 +00:00
File "..\..\radius\dictionary.infonet"
File "..\..\radius\dictionary.ipunplugged"
File "..\..\radius\dictionary.issanni"
2005-07-15 21:18:32 +00:00
File "..\..\radius\dictionary.itk"
2009-07-09 20:31:22 +00:00
File "..\..\radius\dictionary.jradius"
2005-07-15 21:18:32 +00:00
File "..\..\radius\dictionary.juniper"
2014-10-27 08:12:21 +00:00
File "..\..\radius\dictionary.kineto"
2005-07-15 21:18:32 +00:00
File "..\..\radius\dictionary.karlnet"
2009-07-09 20:31:22 +00:00
File "..\..\radius\dictionary.lancom"
2005-07-15 21:18:32 +00:00
File "..\..\radius\dictionary.livingston"
File "..\..\radius\dictionary.localweb"
2009-07-09 20:31:22 +00:00
File "..\..\radius\dictionary.lucent"
File "..\..\radius\dictionary.manzara"
2014-11-26 19:08:07 +00:00
File "..\..\radius\dictionary.meinberg"
2005-07-15 21:18:32 +00:00
File "..\..\radius\dictionary.merit"
2014-10-27 08:12:21 +00:00
File "..\..\radius\dictionary.meru"
2005-07-15 21:18:32 +00:00
File "..\..\radius\dictionary.microsoft"
File "..\..\radius\dictionary.mikrotik"
2009-07-09 20:31:22 +00:00
File "..\..\radius\dictionary.motorola"
2011-05-24 19:13:04 +00:00
File "..\..\radius\dictionary.motorola.wimax"
2005-07-15 21:18:32 +00:00
File "..\..\radius\dictionary.navini"
File "..\..\radius\dictionary.netscreen"
2009-07-09 20:31:22 +00:00
File "..\..\radius\dictionary.networkphysics"
File "..\..\radius\dictionary.nexans"
2005-07-15 21:18:32 +00:00
File "..\..\radius\dictionary.nokia"
2009-07-09 20:31:22 +00:00
File "..\..\radius\dictionary.nokia.conflict"
2005-07-15 21:18:32 +00:00
File "..\..\radius\dictionary.nomadix"
2009-07-09 20:31:22 +00:00
File "..\..\radius\dictionary.nortel"
File "..\..\radius\dictionary.ntua"
File "..\..\radius\dictionary.openser"
File "..\..\radius\dictionary.packeteer"
2014-10-27 08:12:21 +00:00
File "..\..\radius\dictionary.paloalto"
2009-07-09 20:31:22 +00:00
File "..\..\radius\dictionary.patton"
2015-01-28 16:59:48 +00:00
File "..\..\radius\dictionary.perle"
2005-07-15 21:18:32 +00:00
File "..\..\radius\dictionary.propel"
2009-07-09 20:31:22 +00:00
File "..\..\radius\dictionary.prosoft"
2014-10-27 08:12:21 +00:00
File "..\..\radius\dictionary.proxim"
File "..\..\radius\dictionary.purewave"
2009-07-09 20:31:22 +00:00
File "..\..\radius\dictionary.quiconnect"
2005-07-15 21:18:32 +00:00
File "..\..\radius\dictionary.quintum"
File "..\..\radius\dictionary.redcreek"
2009-07-09 20:31:22 +00:00
File "..\..\radius\dictionary.rfc2865"
File "..\..\radius\dictionary.rfc2866"
File "..\..\radius\dictionary.rfc2867"
File "..\..\radius\dictionary.rfc2868"
File "..\..\radius\dictionary.rfc2869"
File "..\..\radius\dictionary.rfc3162"
File "..\..\radius\dictionary.rfc3576"
File "..\..\radius\dictionary.rfc3580"
File "..\..\radius\dictionary.rfc4072"
File "..\..\radius\dictionary.rfc4372"
2011-05-24 19:13:04 +00:00
File "..\..\radius\dictionary.rfc4603"
2009-07-09 20:31:22 +00:00
File "..\..\radius\dictionary.rfc4675"
File "..\..\radius\dictionary.rfc4679"
File "..\..\radius\dictionary.rfc4818"
File "..\..\radius\dictionary.rfc4849"
File "..\..\radius\dictionary.rfc5090"
File "..\..\radius\dictionary.rfc5176"
2012-12-23 18:40:40 +00:00
File "..\..\radius\dictionary.rfc5447"
2011-05-24 19:13:04 +00:00
File "..\..\radius\dictionary.rfc5580"
File "..\..\radius\dictionary.rfc5607"
File "..\..\radius\dictionary.rfc5904"
2012-12-23 18:40:40 +00:00
File "..\..\radius\dictionary.rfc6519"
File "..\..\radius\dictionary.rfc6572"
2014-10-27 08:12:21 +00:00
File "..\..\radius\dictionary.rfc6677"
File "..\..\radius\dictionary.rfc6911"
File "..\..\radius\dictionary.rfc6929"
File "..\..\radius\dictionary.rfc6930"
File "..\..\radius\dictionary.rfc7055"
File "..\..\radius\dictionary.rfc7155"
File "..\..\radius\dictionary.rfc7268"
File "..\..\radius\dictionary.riverbed"
2009-07-09 20:31:22 +00:00
File "..\..\radius\dictionary.riverstone"
2014-10-27 08:12:21 +00:00
File "..\..\radius\dictionary.ruckus"
2009-07-09 20:31:22 +00:00
File "..\..\radius\dictionary.roaringpenguin"
2014-10-27 08:12:21 +00:00
File "..\..\radius\dictionary.sg"
2005-07-15 21:18:32 +00:00
File "..\..\radius\dictionary.shasta"
File "..\..\radius\dictionary.shiva"
2014-10-27 08:12:21 +00:00
File "..\..\radius\dictionary.siemens"
2009-07-09 20:31:22 +00:00
File "..\..\radius\dictionary.slipstream"
File "..\..\radius\dictionary.sofaware"
2005-07-15 21:18:32 +00:00
File "..\..\radius\dictionary.sonicwall"
File "..\..\radius\dictionary.springtide"
2009-04-02 19:05:52 +00:00
File "..\..\radius\dictionary.starent"
2014-10-27 08:12:21 +00:00
File "..\..\radius\dictionary.starent.vsa1"
File "..\..\radius\dictionary.surfnet"
File "..\..\radius\dictionary.symbol"
2005-07-15 21:18:32 +00:00
File "..\..\radius\dictionary.t_systems_nova"
File "..\..\radius\dictionary.telebit"
2009-07-09 20:31:22 +00:00
File "..\..\radius\dictionary.telkom"
2014-10-27 08:12:21 +00:00
File "..\..\radius\dictionary.terena"
2005-07-15 21:18:32 +00:00
File "..\..\radius\dictionary.trapeze"
2015-01-28 16:59:48 +00:00
File "..\..\radius\dictionary.travelping"
2009-07-09 20:31:22 +00:00
File "..\..\radius\dictionary.tropos"
2011-05-25 00:40:35 +00:00
File "..\..\radius\dictionary.ukerna"
2005-07-15 21:18:32 +00:00
File "..\..\radius\dictionary.unix"
File "..\..\radius\dictionary.usr"
2009-07-09 20:31:22 +00:00
File "..\..\radius\dictionary.utstarcom"
2005-07-15 21:18:32 +00:00
File "..\..\radius\dictionary.valemount"
File "..\..\radius\dictionary.versanet"
2009-07-09 20:31:22 +00:00
File "..\..\radius\dictionary.vqp"
File "..\..\radius\dictionary.walabi"
File "..\..\radius\dictionary.waverider"
2011-05-24 19:13:04 +00:00
File "..\..\radius\dictionary.wichorus"
2009-04-02 19:05:52 +00:00
File "..\..\radius\dictionary.wimax"
2014-10-27 08:12:21 +00:00
File "..\..\radius\dictionary.wimax.alvarion"
2011-05-24 19:13:04 +00:00
File "..\..\radius\dictionary.wimax.wichorus"
2005-07-15 21:18:32 +00:00
File "..\..\radius\dictionary.wispr"
File "..\..\radius\dictionary.xedia"
2014-10-27 08:12:21 +00:00
File "..\..\radius\dictionary.xylan"
File "..\..\radius\dictionary.yubico"
File "..\..\radius\dictionary.zeus"
File "..\..\radius\dictionary.zte"
2009-07-09 20:31:22 +00:00
File "..\..\radius\dictionary.zyxel"
2013-01-23 12:08:15 +00:00
!include "custom_radius_dict.txt"
2005-07-15 21:18:32 +00:00
SetOutPath $INSTDIR
2005-09-17 17:17:42 +00:00
;
; install the dtds in the dtds subdirectory
;
SetOutPath $INSTDIR\dtds
File "..\..\dtds\dc.dtd"
File "..\..\dtds\itunes.dtd"
2006-11-15 17:27:04 +00:00
File "..\..\dtds\mscml.dtd"
2006-06-08 05:56:34 +00:00
File "..\..\dtds\pocsettings.dtd"
File "..\..\dtds\presence.dtd"
2006-06-06 19:30:57 +00:00
File "..\..\dtds\reginfo.dtd"
2006-10-19 17:37:15 +00:00
File "..\..\dtds\rlmi.dtd"
2005-09-17 17:17:42 +00:00
File "..\..\dtds\rss.dtd"
File "..\..\dtds\smil.dtd"
2006-07-19 19:00:36 +00:00
File "..\..\dtds\xcap-caps.dtd"
2007-06-21 11:37:42 +00:00
File "..\..\dtds\xcap-error.dtd"
2006-06-08 05:56:34 +00:00
File "..\..\dtds\watcherinfo.dtd"
2005-09-17 17:17:42 +00:00
SetOutPath $INSTDIR
2007-11-11 13:23:17 +00:00
; Install the TPNCP DAT file in the "tpncp" subdirectory
; of the installation directory.
SetOutPath $INSTDIR\tpncp
File "..\..\tpncp\tpncp.dat"
2007-10-12 10:01:41 +00:00
;
; install the wimaxasncp TLV definitions in the wimaxasncp subdirectory
;
SetOutPath $INSTDIR\wimaxasncp
2007-10-15 12:32:19 +00:00
File "..\..\wimaxasncp\dictionary.xml"
File "..\..\wimaxasncp\dictionary.dtd"
2007-10-12 10:01:41 +00:00
SetOutPath $INSTDIR
2004-02-18 20:45:54 +00:00
SetOutPath $INSTDIR\help
2012-06-13 21:03:54 +00:00
File "${STAGING_DIR}\help\toc"
File "${STAGING_DIR}\help\overview.txt"
File "${STAGING_DIR}\help\getting_started.txt"
File "${STAGING_DIR}\help\capturing.txt"
File "${STAGING_DIR}\help\capture_filters.txt"
File "${STAGING_DIR}\help\display_filters.txt"
File "${STAGING_DIR}\help\faq.txt"
2004-02-18 20:45:54 +00:00
2001-04-04 04:50:05 +00:00
; Write the uninstall keys for Windows
2012-04-04 00:47:21 +00:00
; http://nsis.sourceforge.net/Add_uninstall_information_to_Add/Remove_Programs
; http://msdn.microsoft.com/en-us/library/ms954376.aspx
; http://msdn.microsoft.com/en-us/library/windows/desktop/aa372105.aspx
!define UNINSTALL_PATH "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PROGRAM_NAME}"
WriteRegStr HKEY_LOCAL_MACHINE "${UNINSTALL_PATH}" "Comments" "${DISPLAY_NAME}"
2014-01-05 17:16:03 +00:00
WriteRegStr HKEY_LOCAL_MACHINE "${UNINSTALL_PATH}" "DisplayIcon" "$INSTDIR\${PROGRAM_NAME_PATH_GTK},0"
2012-04-04 00:47:21 +00:00
WriteRegStr HKEY_LOCAL_MACHINE "${UNINSTALL_PATH}" "DisplayName" "${DISPLAY_NAME}"
WriteRegStr HKEY_LOCAL_MACHINE "${UNINSTALL_PATH}" "DisplayVersion" "${VERSION}"
WriteRegStr HKEY_LOCAL_MACHINE "${UNINSTALL_PATH}" "HelpLink" "http://ask.wireshark.org/"
WriteRegStr HKEY_LOCAL_MACHINE "${UNINSTALL_PATH}" "InstallLocation" "$INSTDIR"
WriteRegStr HKEY_LOCAL_MACHINE "${UNINSTALL_PATH}" "Publisher" "The Wireshark developer community, http://www.wireshark.org"
WriteRegStr HKEY_LOCAL_MACHINE "${UNINSTALL_PATH}" "URLInfoAbout" "http://www.wireshark.org"
WriteRegStr HKEY_LOCAL_MACHINE "${UNINSTALL_PATH}" "URLUpdateInfo" "http://www.wireshark.org/download.html"
WriteRegDWORD HKEY_LOCAL_MACHINE "${UNINSTALL_PATH}" "NoModify" 1
WriteRegDWORD HKEY_LOCAL_MACHINE "${UNINSTALL_PATH}" "NoRepair" 1
WriteRegDWORD HKEY_LOCAL_MACHINE "${UNINSTALL_PATH}" "VersionMajor" ${VERSION_MAJOR}
WriteRegDWORD HKEY_LOCAL_MACHINE "${UNINSTALL_PATH}" "VersionMinor" ${VERSION_MINOR}
2012-06-14 18:53:55 +00:00
WriteRegStr HKEY_LOCAL_MACHINE "${UNINSTALL_PATH}" "UninstallString" '"$INSTDIR\${UNINSTALLER_NAME}"'
WriteRegStr HKEY_LOCAL_MACHINE "${UNINSTALL_PATH}" "QuietUninstallString" '"$INSTDIR\${UNINSTALLER_NAME}" /S'
2012-04-04 00:47:21 +00:00
2004-10-21 02:06:37 +00:00
; Write an entry for ShellExecute
2014-01-05 17:16:03 +00:00
WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\App Paths\${PROGRAM_NAME_PATH_GTK}" "" '$INSTDIR\${PROGRAM_NAME_PATH_GTK}'
WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\App Paths\${PROGRAM_NAME_PATH_GTK}" "Path" '$INSTDIR'
!ifdef QT_DIR
WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\App Paths\${PROGRAM_NAME_PATH_QT}" "" '$INSTDIR\${PROGRAM_NAME_PATH_QT}'
WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\App Paths\${PROGRAM_NAME_PATH_QT}" "Path" '$INSTDIR'
!endif
2004-10-21 02:06:37 +00:00
2005-07-23 20:34:43 +00:00
; Create start menu entries (depending on additional tasks page)
2014-07-30 01:31:43 +00:00
ReadINIStr $0 "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 5" "State"
2005-07-23 20:34:43 +00:00
StrCmp $0 "0" SecRequired_skip_StartMenu
SetOutPath $PROFILE
2012-10-16 08:08:18 +00:00
;CreateDirectory "$SMPROGRAMS\${PROGRAM_NAME}"
2013-09-13 21:59:24 +00:00
; To quote "http://download.microsoft.com/download/0/4/6/046bbd36-0812-4c22-a870-41911c6487a6/WindowsUserExperience.pdf"
2005-07-23 20:34:43 +00:00
; "Do not include Readme, Help, or Uninstall entries on the Programs menu."
2012-10-16 08:08:18 +00:00
Delete "$SMPROGRAMS\${PROGRAM_NAME}\Wireshark Web Site.lnk"
;WriteINIStr "$SMPROGRAMS\${PROGRAM_NAME}\Wireshark Web Site.url" "InternetShortcut" "URL" "http://www.wireshark.org/"
2014-01-05 17:16:03 +00:00
CreateShortCut "$SMPROGRAMS\${PROGRAM_NAME_GTK}.lnk" "$INSTDIR\${PROGRAM_NAME_PATH_GTK}" "" "$INSTDIR\${PROGRAM_NAME_PATH_GTK}" 0 "" "" "${PROGRAM_FULL_NAME_GTK}"
2012-10-16 08:08:18 +00:00
;CreateShortCut "$SMPROGRAMS\${PROGRAM_NAME}\Wireshark Manual.lnk" "$INSTDIR\wireshark.html"
;CreateShortCut "$SMPROGRAMS\${PROGRAM_NAME}\Display Filters Manual.lnk" "$INSTDIR\wireshark-filter.html"
;CreateShortCut "$SMPROGRAMS\${PROGRAM_NAME}\Wireshark Program Directory.lnk" "$INSTDIR"
2005-07-23 20:34:43 +00:00
SecRequired_skip_StartMenu:
2005-09-14 02:07:20 +00:00
; is command line option "/desktopicon" set?
${GetParameters} $R0
${GetOptions} $R0 "/desktopicon=" $R1
StrCmp $R1 "no" SecRequired_skip_DesktopIcon
StrCmp $R1 "yes" SecRequired_install_DesktopIcon
2005-07-23 20:34:43 +00:00
2005-09-14 02:07:20 +00:00
; Create desktop icon (depending on additional tasks page and command line option)
2014-07-30 01:31:43 +00:00
ReadINIStr $0 "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 6" "State"
2005-07-23 20:34:43 +00:00
StrCmp $0 "0" SecRequired_skip_DesktopIcon
2005-09-14 02:07:20 +00:00
SecRequired_install_DesktopIcon:
2014-01-05 17:16:03 +00:00
CreateShortCut "$DESKTOP\${PROGRAM_NAME_GTK}.lnk" "$INSTDIR\${PROGRAM_NAME_PATH_GTK}" "" "$INSTDIR\${PROGRAM_NAME_PATH_GTK}" 0 "" "" "${PROGRAM_FULL_NAME_GTK}"
2005-07-23 20:34:43 +00:00
SecRequired_skip_DesktopIcon:
2001-04-04 04:50:05 +00:00
2005-09-14 02:07:20 +00:00
; is command line option "/quicklaunchicon" set?
${GetParameters} $R0
${GetOptions} $R0 "/quicklaunchicon=" $R1
StrCmp $R1 "no" SecRequired_skip_QuickLaunchIcon
StrCmp $R1 "yes" SecRequired_install_QuickLaunchIcon
; Create quick launch icon (depending on additional tasks page and command line option)
2014-07-30 01:31:43 +00:00
ReadINIStr $0 "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 7" "State"
2005-07-23 20:34:43 +00:00
StrCmp $0 "0" SecRequired_skip_QuickLaunchIcon
2005-09-14 02:07:20 +00:00
SecRequired_install_QuickLaunchIcon:
2014-01-05 17:16:03 +00:00
CreateShortCut "$QUICKLAUNCH\${PROGRAM_NAME_GTK}.lnk" "$INSTDIR\${PROGRAM_NAME_PATH_GTK}" "" "$INSTDIR\${PROGRAM_NAME_PATH_GTK}" 0 "" "" "${PROGRAM_FULL_NAME_GTK}"
2005-07-23 20:34:43 +00:00
SecRequired_skip_QuickLaunchIcon:
; Create File Extensions (depending on additional tasks page)
2014-01-05 17:16:03 +00:00
; None Associate
ReadINIStr $0 "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 11" "State"
StrCmp $0 "1" SecRequired_skip_FileExtensions
; GTK+ Associate
2014-07-30 01:31:43 +00:00
ReadINIStr $0 "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 10" "State"
2014-01-05 17:16:03 +00:00
StrCmp $0 "1" SecRequired_GTK_FileExtensions
; Qt Associate
2014-07-30 01:31:43 +00:00
ReadINIStr $0 "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 9" "State"
2014-01-05 17:16:03 +00:00
StrCmp $0 "1" SecRequired_QT_FileExtensions
SecRequired_GTK_FileExtensions:
2008-08-14 17:54:35 +00:00
WriteRegStr HKCR ${WIRESHARK_ASSOC} "" "Wireshark capture file"
2014-01-05 17:16:03 +00:00
WriteRegStr HKCR "${WIRESHARK_ASSOC}\Shell\open\command" "" '"$INSTDIR\${PROGRAM_NAME_PATH_GTK}" "%1"'
WriteRegStr HKCR "${WIRESHARK_ASSOC}\DefaultIcon" "" '"$INSTDIR\${PROGRAM_NAME_PATH_GTK}",1'
Goto SecRequired_Associate_FileExtensions
SecRequired_QT_FileExtensions:
WriteRegStr HKCR ${WIRESHARK_ASSOC} "" "Wireshark capture file"
WriteRegStr HKCR "${WIRESHARK_ASSOC}\Shell\open\command" "" '"$INSTDIR\${PROGRAM_NAME_PATH_QT}" "%1"'
WriteRegStr HKCR "${WIRESHARK_ASSOC}\DefaultIcon" "" '"$INSTDIR\${PROGRAM_NAME_PATH_QT}",1'
Goto SecRequired_Associate_FileExtensions
2012-06-13 19:06:27 +00:00
2014-01-05 17:16:03 +00:00
SecRequired_Associate_FileExtensions:
2013-06-06 18:46:37 +00:00
; We refresh the icon cache down in -Finally.
2012-06-13 19:06:27 +00:00
Call Associate
2005-07-23 20:34:43 +00:00
; if somethings added here, add it also to the uninstall section and the AdditionalTask page
2012-06-13 19:06:27 +00:00
2005-07-23 20:34:43 +00:00
SecRequired_skip_FileExtensions:
2014-01-05 17:16:03 +00:00
2005-08-26 00:59:07 +00:00
; if running as a silent installer, don't try to install winpcap
IfSilent SecRequired_skip_Winpcap
2005-07-23 20:34:43 +00:00
; Install WinPcap (depending on winpcap page setting)
2014-08-05 15:23:41 +00:00
ReadINIStr $0 "$PLUGINSDIR\WinPcapPage.ini" "Field 4" "State"
2005-07-23 20:34:43 +00:00
StrCmp $0 "0" SecRequired_skip_Winpcap
; Uinstall old WinPcap first
ReadRegStr $WINPCAP_UNINSTALL HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\WinPcapInst" "UninstallString"
IfErrors lbl_winpcap_notinstalled ;if RegKey is unavailable, WinPcap is not installed
2005-08-07 23:10:06 +00:00
; from released version 3.1, WinPcap will uninstall an old version by itself
;ExecWait '$WINPCAP_UNINSTALL' $0
;DetailPrint "WinPcap uninstaller returned $0"
2005-07-23 20:34:43 +00:00
lbl_winpcap_notinstalled:
SetOutPath $INSTDIR
2013-12-01 10:05:16 +00:00
File "${WIRESHARK_LIB_DIR}\WinPcap_${WINPCAP_VERSION}.exe"
ExecWait '"$INSTDIR\WinPcap_${WINPCAP_VERSION}.exe"' $0
2005-07-23 20:34:43 +00:00
DetailPrint "WinPcap installer returned $0"
SecRequired_skip_Winpcap:
2006-07-04 18:40:51 +00:00
; If no user profile exists for Wireshark but for Ethereal, copy it over
SetShellVarContext current
IfFileExists $APPDATA\Wireshark profile_done
IfFileExists $APPDATA\Ethereal 0 profile_done
;MessageBox MB_YESNO "This seems to be the first time you use Wireshark. Copy over the personal settings from Ethereal?" /SD IDYES IDNO profile_done
CreateDirectory $APPDATA\Wireshark
CopyFiles $APPDATA\Ethereal\*.* $APPDATA\Wireshark
profile_done:
SetShellVarContext all
2005-07-23 20:34:43 +00:00
SectionEnd ; "Required"
2014-07-30 01:31:43 +00:00
!ifdef QT_DIR
Section "${PROGRAM_NAME}" SecWiresharkQt
;-------------------------------------------
2014-08-28 23:48:53 +00:00
; by default, Wireshark is installed but file is always associate with Wireshark GTK+
2014-07-30 01:31:43 +00:00
SetOutPath $INSTDIR
File "${QT_DIR}\${PROGRAM_NAME_PATH_QT}"
2014-08-05 15:23:41 +00:00
!include qt-dll-manifest.nsh
File "${QT_DIR}\*.qm"
2014-07-30 01:31:43 +00:00
Push $0
;SectionGetFlags ${SecWiresharkQt} $0
;IntOp $0 $0 & 1
;CreateShortCut "$SMPROGRAMS\${PROGRAM_NAME_QT}.lnk" "$INSTDIR\${PROGRAM_NAME_PATH_QT}" "" "$INSTDIR\${PROGRAM_NAME_PATH_QT}" 0 "" "" "${PROGRAM_FULL_NAME_QT}"
; Create start menu entries (depending on additional tasks page)
ReadINIStr $0 "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 2" "State"
StrCmp $0 "0" SecRequired_skip_StartMenuQt
CreateShortCut "$SMPROGRAMS\${PROGRAM_NAME_QT}.lnk" "$INSTDIR\${PROGRAM_NAME_PATH_QT}" "" "$INSTDIR\${PROGRAM_NAME_PATH_QT}" 0 "" "" "${PROGRAM_FULL_NAME_QT}"
SecRequired_skip_StartMenuQt:
; is command line option "/desktopicon" set?
${GetParameters} $R0
${GetOptions} $R0 "/desktopicon=" $R1
StrCmp $R1 "no" SecRequired_skip_DesktopIconQt
StrCmp $R1 "yes" SecRequired_install_DesktopIconQt
; Create desktop icon (depending on additional tasks page and command line option)
ReadINIStr $0 "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 3" "State"
StrCmp $0 "0" SecRequired_skip_DesktopIconQt
SecRequired_install_DesktopIconQt:
CreateShortCut "$DESKTOP\${PROGRAM_NAME_QT}.lnk" "$INSTDIR\${PROGRAM_NAME_PATH_QT}" "" "$INSTDIR\${PROGRAM_NAME_PATH_QT}" 0 "" "" "${PROGRAM_FULL_NAME_QT}"
SecRequired_skip_DesktopIconQt:
; is command line option "/quicklaunchicon" set?
${GetParameters} $R0
${GetOptions} $R0 "/quicklaunchicon=" $R1
StrCmp $R1 "no" SecRequired_skip_QuickLaunchIconQt
StrCmp $R1 "yes" SecRequired_install_QuickLaunchIconQt
; Create quick launch icon (depending on additional tasks page and command line option)
ReadINIStr $0 "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 4" "State"
StrCmp $0 "0" SecRequired_skip_QuickLaunchIconQt
SecRequired_install_QuickLaunchIconQt:
CreateShortCut "$QUICKLAUNCH\${PROGRAM_NAME_QT}.lnk" "$INSTDIR\${PROGRAM_NAME_PATH_QT}" "" "$INSTDIR\${PROGRAM_NAME_PATH_QT}" 0 "" "" "${PROGRAM_FULL_NAME_QT}"
SecRequired_skip_QuickLaunchIconQt:
Pop $0
2014-08-05 15:23:41 +00:00
SectionEnd ; "SecWiresharkQt"
2014-07-30 01:31:43 +00:00
!endif
Section "TShark" SecTShark
;-------------------------------------------
SetOutPath $INSTDIR
File "${STAGING_DIR}\tshark.exe"
File "..\..\doc\tshark.html"
SectionEnd
2008-04-09 03:48:16 +00:00
!ifdef GTK_DIR
2014-07-30 01:31:43 +00:00
Section "${PROGRAM_NAME} 1" SecWiresharkGtk
2004-02-18 20:45:54 +00:00
;-------------------------------------------
SetOutPath $INSTDIR
2014-01-05 17:16:03 +00:00
File "${STAGING_DIR}\${PROGRAM_NAME_PATH_GTK}"
2012-10-19 17:47:34 +00:00
2015-01-21 16:41:19 +00:00
!include gtk-dll-manifest.nsh
2012-10-19 17:47:34 +00:00
2014-08-05 15:23:41 +00:00
SectionEnd ; "SecWiresharkGtk"
2008-06-26 16:42:07 +00:00
!endif
2005-07-21 20:05:37 +00:00
2014-07-30 01:31:43 +00:00
SectionGroup "Plugins & Extensions" SecPluginsGroup
2001-04-04 04:50:05 +00:00
2005-03-07 22:31:13 +00:00
Section "Dissector Plugins" SecPlugins
2001-04-04 04:50:05 +00:00
;-------------------------------------------
2009-05-17 18:46:50 +00:00
SetOutPath '$INSTDIR\plugins\${VERSION}'
2012-06-13 21:03:54 +00:00
File "${STAGING_DIR}\plugins\${VERSION}\docsis.dll"
File "${STAGING_DIR}\plugins\${VERSION}\ethercat.dll"
File "${STAGING_DIR}\plugins\${VERSION}\gryphon.dll"
File "${STAGING_DIR}\plugins\${VERSION}\irda.dll"
File "${STAGING_DIR}\plugins\${VERSION}\m2m.dll"
File "${STAGING_DIR}\plugins\${VERSION}\opcua.dll"
File "${STAGING_DIR}\plugins\${VERSION}\profinet.dll"
File "${STAGING_DIR}\plugins\${VERSION}\unistim.dll"
File "${STAGING_DIR}\plugins\${VERSION}\wimax.dll"
File "${STAGING_DIR}\plugins\${VERSION}\wimaxasncp.dll"
2012-07-20 01:21:27 +00:00
File "${STAGING_DIR}\plugins\${VERSION}\wimaxmacphy.dll"
2010-01-11 14:48:28 +00:00
!include "custom_plugins.txt"
2005-03-07 22:31:13 +00:00
SectionEnd
2005-07-26 17:58:17 +00:00
Section "Tree Statistics Plugin" SecStatsTree
2005-03-07 22:31:13 +00:00
;-------------------------------------------
2009-05-17 18:46:50 +00:00
SetOutPath '$INSTDIR\plugins\${VERSION}'
2012-06-13 21:03:54 +00:00
File "${STAGING_DIR}\plugins\${VERSION}\stats_tree.dll"
2001-07-12 22:45:23 +00:00
SectionEnd
2001-04-04 04:50:05 +00:00
2005-07-21 20:05:37 +00:00
Section "Mate - Meta Analysis and Tracing Engine" SecMate
2005-01-21 19:16:05 +00:00
;-------------------------------------------
2009-05-17 18:46:50 +00:00
SetOutPath '$INSTDIR\plugins\${VERSION}'
2012-06-13 21:03:54 +00:00
File "${STAGING_DIR}\plugins\${VERSION}\mate.dll"
2005-01-21 19:16:05 +00:00
SectionEnd
2013-05-01 22:22:10 +00:00
Section "Configuration Profiles" SecProfiles
2013-05-01 22:06:49 +00:00
;-------------------------------------------
; This should be a function or macro
SetOutPath '$INSTDIR\profiles\Bluetooth'
File "${STAGING_DIR}\profiles\Bluetooth\colorfilters"
SetOutPath '$INSTDIR\profiles\Classic'
File "${STAGING_DIR}\profiles\Classic\colorfilters"
SectionEnd
2006-02-07 09:12:43 +00:00
2007-08-27 06:40:36 +00:00
!ifdef SMI_DIR
Section "SNMP MIBs" SecMIBs
;-------------------------------------------
SetOutPath $INSTDIR\snmp\mibs
2011-06-27 20:48:26 +00:00
File "${SMI_DIR}\share\mibs\iana\*"
File "${SMI_DIR}\share\mibs\ietf\*"
File "${SMI_DIR}\share\mibs\irtf\*"
File "${SMI_DIR}\share\mibs\tubs\*"
File "${SMI_DIR}\share\pibs\*"
File "${SMI_DIR}\share\yang\*.yang"
2012-07-19 08:02:50 +00:00
!include "custom_mibs.txt"
2007-08-27 06:40:36 +00:00
SectionEnd
!endif
2014-01-05 18:16:22 +00:00
SectionGroupEnd ; "Plugins / Extensions"
2005-07-21 20:05:37 +00:00
2005-07-23 20:34:43 +00:00
SectionGroup "Tools" SecToolsGroup
2005-07-21 20:05:37 +00:00
Section "Editcap" SecEditcap
;-------------------------------------------
SetOutPath $INSTDIR
2012-06-13 21:03:54 +00:00
File "${STAGING_DIR}\editcap.exe"
2005-07-21 20:05:37 +00:00
File "..\..\doc\editcap.html"
SectionEnd
Section "Text2Pcap" SecText2Pcap
;-------------------------------------------
SetOutPath $INSTDIR
2012-06-13 21:03:54 +00:00
File "${STAGING_DIR}\text2pcap.exe"
2005-07-21 20:05:37 +00:00
File "..\..\doc\text2pcap.html"
SectionEnd
Section "Mergecap" SecMergecap
;-------------------------------------------
SetOutPath $INSTDIR
2012-06-13 21:03:54 +00:00
File "${STAGING_DIR}\mergecap.exe"
2005-07-21 20:05:37 +00:00
File "..\..\doc\mergecap.html"
SectionEnd
2012-09-24 11:59:49 +00:00
Section "Reordercap" SecReordercap
;-------------------------------------------
SetOutPath $INSTDIR
File "${STAGING_DIR}\reordercap.exe"
SectionEnd
2005-07-21 20:05:37 +00:00
Section "Capinfos" SecCapinfos
;-------------------------------------------
SetOutPath $INSTDIR
2012-06-13 21:03:54 +00:00
File "${STAGING_DIR}\capinfos.exe"
2005-07-21 20:05:37 +00:00
File "..\..\doc\capinfos.html"
SectionEnd
2008-06-26 16:42:07 +00:00
Section "Rawshark" SecRawshark
;-------------------------------------------
SetOutPath $INSTDIR
2012-06-13 21:03:54 +00:00
File "${STAGING_DIR}\rawshark.exe"
2008-06-26 16:42:07 +00:00
File "..\..\doc\rawshark.html"
SectionEnd
2014-01-05 18:16:22 +00:00
SectionGroupEnd ; "Tools"
2005-07-21 20:05:37 +00:00
2006-04-20 20:33:04 +00:00
!ifdef HHC_DIR
Section "User's Guide" SecUsersGuide
;-------------------------------------------
SetOutPath $INSTDIR
2007-01-19 00:10:22 +00:00
File "user-guide.chm"
2006-04-20 20:33:04 +00:00
SectionEnd
!endif
2005-07-21 20:05:37 +00:00
2012-04-04 00:47:21 +00:00
Section "-Finally"
2013-06-06 18:46:37 +00:00
!insertmacro UpdateIcons
2012-04-04 00:47:21 +00:00
; Compute and write the installation directory size
${GetSize} "$INSTDIR" "/S=0K" $0 $1 $2
IntFmt $0 "0x%08X" $0
WriteRegDWORD HKEY_LOCAL_MACHINE "${UNINSTALL_PATH}" "EstimatedSize" "$0"
SectionEnd
2005-04-10 13:43:07 +00:00
; ============================================================================
; PLEASE MAKE SURE, THAT THE DESCRIPTIVE TEXT FITS INTO THE DESCRIPTION FIELD!
; ============================================================================
2003-12-26 12:27:47 +00:00
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
2014-08-05 15:23:41 +00:00
!ifdef QT_DIR
!insertmacro MUI_DESCRIPTION_TEXT ${SecWiresharkQt} "The main network protocol analyzer application."
2004-08-26 22:48:29 +00:00
!endif
2014-06-05 23:19:22 +00:00
!insertmacro MUI_DESCRIPTION_TEXT ${SecTShark} "Text based network protocol analyzer."
2014-08-05 15:23:41 +00:00
!ifdef GTK_DIR
!insertmacro MUI_DESCRIPTION_TEXT ${SecWiresharkGtk} "The classic user interface."
2012-10-11 20:45:35 +00:00
!endif
2013-05-01 22:06:49 +00:00
!insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsGroup} "Plugins and extensions for both ${PROGRAM_NAME} and TShark."
!insertmacro MUI_DESCRIPTION_TEXT ${SecPlugins} "Additional protocol dissectors."
!insertmacro MUI_DESCRIPTION_TEXT ${SecStatsTree} "Extended statistics."
2005-01-21 19:16:05 +00:00
!insertmacro MUI_DESCRIPTION_TEXT ${SecMate} "Plugin - Meta Analysis and Tracing Engine (Experimental)."
2013-05-01 22:06:49 +00:00
!insertmacro MUI_DESCRIPTION_TEXT ${SecProfiles} "Configuration profiles"
2007-08-27 06:40:36 +00:00
!ifdef SMI_DIR
!insertmacro MUI_DESCRIPTION_TEXT ${SecMIBs} "SNMP MIBs for better SNMP dissection."
2007-01-02 22:19:48 +00:00
!endif
2013-05-01 22:06:49 +00:00
2005-07-23 20:34:43 +00:00
!insertmacro MUI_DESCRIPTION_TEXT ${SecToolsGroup} "Additional command line based tools."
2014-06-05 23:19:22 +00:00
!insertmacro MUI_DESCRIPTION_TEXT ${SecEditCap} "Copy packets to a new file, optionally trimmming packets, omitting them, or saving to a different format."
!insertmacro MUI_DESCRIPTION_TEXT ${SecText2Pcap} "Read an ASCII hex dump and write the data into a libpcap-style capture file."
!insertmacro MUI_DESCRIPTION_TEXT ${SecMergecap} "Combine multiple saved capture files into a single output file"
!insertmacro MUI_DESCRIPTION_TEXT ${SecReordercap} "Copy packets to a new file, sorted by time."
!insertmacro MUI_DESCRIPTION_TEXT ${SecCapinfos} "Pring information about capture files."
!insertmacro MUI_DESCRIPTION_TEXT ${SecRawshark} "Raw packet filter."
2013-05-01 22:06:49 +00:00
2006-10-21 09:40:18 +00:00
!ifdef HHC_DIR
2014-06-05 23:19:22 +00:00
!insertmacro MUI_DESCRIPTION_TEXT ${SecUsersGuide} "Install an offline copy of the User's Guide."
2006-10-21 09:40:18 +00:00
!endif
2003-12-26 12:27:47 +00:00
!insertmacro MUI_FUNCTION_DESCRIPTION_END
2005-07-23 20:34:43 +00:00
2004-06-10 10:12:30 +00:00
; ============================================================================
; Callback functions
; ============================================================================
2014-08-05 15:23:41 +00:00
!ifdef QT_DIR
; Disable File extensions and icon if Wireshark (Qt / GTK+) isn't selected
2004-06-10 10:12:30 +00:00
Function .onSelChange
2014-01-05 18:16:22 +00:00
Push $0
Goto onSelChange.checkqt
2014-01-05 17:16:03 +00:00
2014-08-05 15:23:41 +00:00
;Check Wireshark Qt and after check GTK+
2014-01-05 17:16:03 +00:00
onSelChange.checkqt:
2014-01-05 18:16:22 +00:00
SectionGetFlags ${SecWiresharkQt} $0
2014-08-05 15:23:41 +00:00
IntOp $0 $0 & ${SF_SELECTED}
2014-01-05 18:16:22 +00:00
IntCmp $0 0 onSelChange.unselectqt
2014-08-05 15:23:41 +00:00
IntCmp $0 ${SF_SELECTED} onSelChange.selectqt
Goto onSelChange.checkqt
2008-08-14 17:54:35 +00:00
2014-01-05 17:16:03 +00:00
onSelChange.unselectqt:
2014-08-05 15:23:41 +00:00
; Qt Icon
2014-07-30 01:31:43 +00:00
WriteINIStr "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 2" "Flags" "DISABLED"
WriteINIStr "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 2" "State" 0
WriteINIStr "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 3" "Flags" "DISABLED"
WriteINIStr "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 3" "State" 0
WriteINIStr "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 4" "Flags" "DISABLED"
WriteINIStr "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 4" "State" 0
2014-08-05 15:23:41 +00:00
; Qt Association
WriteINIStr "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 9" "State" 0
2014-07-30 01:31:43 +00:00
WriteINIStr "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 9" "Flags" "DISABLED"
2014-08-05 15:23:41 +00:00
; Select "None Association"
WriteINIStr "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 11" "State" 1
Goto onSelChange.checkgtk
2014-01-05 17:16:03 +00:00
onSelChange.selectqt:
2014-08-05 15:23:41 +00:00
; Qt Icon
2014-07-30 01:31:43 +00:00
WriteINIStr "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 2" "Flags" ""
WriteINIStr "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 2" "State" 1
WriteINIStr "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 3" "Flags" ""
WriteINIStr "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 3" "State" 0
WriteINIStr "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 4" "Flags" ""
WriteINIStr "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 4" "State" 1
2014-01-05 18:16:22 +00:00
;Qt Association
2014-08-05 15:23:41 +00:00
WriteINIStr "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 9" "State" 1
2014-07-30 01:31:43 +00:00
WriteINIStr "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 9" "Flags" ""
2014-08-05 15:23:41 +00:00
; Force None and GTK+ Association to no selected
WriteINIStr "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 11" "State" 0
WriteINIStr "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 10" "State" 0
Goto onSelChange.checkgtk
;Check Wireshark GTK+
onSelChange.checkgtk:
!ifdef GTK_DIR
SectionGetFlags ${SecWiresharkGtk} $0
IntOp $0 $0 & ${SF_SELECTED}
IntCmp $0 0 onSelChange.unselectgtk
IntCmp $0 ${SF_SELECTED} onSelChange.selectgtk
!endif
Goto onSelChange.end
!ifdef GTK_DIR
onSelChange.unselectgtk:
;GTK+ Icon
WriteINIStr "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 5" "Flags" "DISABLED"
WriteINIStr "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 5" "State" 0
WriteINIStr "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 6" "Flags" "DISABLED"
WriteINIStr "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 6" "State" 0
WriteINIStr "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 7" "Flags" "DISABLED"
WriteINIStr "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 7" "State" 0
;GTK+ Association
WriteINIStr "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 10" "Flags" "DISABLED"
Goto onSelChange.end
onSelChange.selectgtk:
;GTK+ Icon
WriteINIStr "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 5" "Flags" ""
WriteINIStr "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 5" "State" 1
WriteINIStr "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 6" "Flags" ""
WriteINIStr "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 6" "State" 0
WriteINIStr "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 7" "Flags" ""
WriteINIStr "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 7" "State" 1
;GTK+ Association
WriteINIStr "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 10" "Flags" ""
2014-01-05 18:16:22 +00:00
Goto onSelChange.end
2014-01-05 17:16:03 +00:00
!endif
2008-08-14 17:54:35 +00:00
2004-06-10 10:12:30 +00:00
onSelChange.end:
2014-01-05 18:16:22 +00:00
Pop $0
2004-06-10 10:12:30 +00:00
FunctionEnd
2004-06-29 07:14:39 +00:00
!endif
2005-02-03 02:35:20 +00:00
!include "GetWindowsVersion.nsh"
2005-07-23 20:34:43 +00:00
!include WinMessages.nsh
2007-11-06 20:32:30 +00:00
!include "VersionCompare.nsh"
2005-02-03 02:35:20 +00:00
2007-11-06 20:32:30 +00:00
Var WINPCAP_NAME ; DisplayName from WinPcap installation
2013-12-01 10:05:16 +00:00
Var WINWINPCAP_VERSION ; DisplayVersion from WinPcap installation
2005-02-03 02:35:20 +00:00
Function myShowCallback
2005-07-23 20:34:43 +00:00
2014-08-05 15:23:41 +00:00
!ifdef GTK_DIR
; If GTK+ is available enable icon and associate from additional tasks
; GTK+ Icon
WriteINIStr "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 5" "Flags" ""
WriteINIStr "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 5" "State" 1
WriteINIStr "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 6" "Flags" ""
WriteINIStr "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 6" "State" 0
WriteINIStr "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 7" "Flags" ""
WriteINIStr "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 7" "State" 1
2014-01-05 18:16:22 +00:00
;Qt Association
2014-08-05 15:23:41 +00:00
WriteINIStr "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 10" "Flags" ""
2014-01-05 17:16:03 +00:00
!endif
2014-01-05 18:16:22 +00:00
; detect if WinPcap should be installed
2014-08-05 15:23:41 +00:00
WriteINIStr "$PLUGINSDIR\WinPcapPage.ini" "Field 4" "Text" "Install WinPcap ${PCAP_DISPLAY_VERSION}"
2014-01-05 18:16:22 +00:00
ReadRegStr $WINPCAP_NAME HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\WinPcapInst" "DisplayName"
IfErrors 0 lbl_winpcap_installed ;if RegKey is available, WinPcap is already installed
2014-08-05 15:23:41 +00:00
WriteINIStr "$PLUGINSDIR\WinPcapPage.ini" "Field 2" "Text" "WinPcap is currently not installed"
WriteINIStr "$PLUGINSDIR\WinPcapPage.ini" "Field 2" "Flags" "DISABLED"
WriteINIStr "$PLUGINSDIR\WinPcapPage.ini" "Field 5" "Text" "(Use Add/Remove Programs first to uninstall any undetected old WinPcap versions)"
2014-01-05 18:16:22 +00:00
Goto lbl_winpcap_done
2005-07-23 20:34:43 +00:00
lbl_winpcap_installed:
2014-08-05 15:23:41 +00:00
WriteINIStr "$PLUGINSDIR\WinPcapPage.ini" "Field 2" "Text" "$WINPCAP_NAME"
2014-01-05 18:16:22 +00:00
; Compare the installed build against the one we have.
ReadRegStr $WINWINPCAP_VERSION HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\WinPcapInst" "DisplayVersion"
StrCmp $WINWINPCAP_VERSION "" lbl_winpcap_do_install ; WinPcap is really old(?) or installed improperly.
${VersionCompare} $WINWINPCAP_VERSION "4.1.0.2980" $1 ; WinPcap 4.1.3
StrCmp $1 "2" lbl_winpcap_do_install
2005-07-26 17:58:17 +00:00
2005-09-09 21:04:19 +00:00
;lbl_winpcap_dont_install:
2014-01-05 18:16:22 +00:00
; The installed version is >= to what we have, so don't install
2014-08-05 15:23:41 +00:00
WriteINIStr "$PLUGINSDIR\WinPcapPage.ini" "Field 4" "State" "0"
WriteINIStr "$PLUGINSDIR\WinPcapPage.ini" "Field 5" "Text" "If selected, the currently installed $WINPCAP_NAME will be uninstalled first."
2014-01-05 18:16:22 +00:00
Goto lbl_winpcap_done
2005-07-26 17:58:17 +00:00
2007-02-16 06:38:59 +00:00
;lbl_winpcap_dont_upgrade:
2014-01-05 18:16:22 +00:00
; force the user to upgrade by hand
2014-08-05 15:23:41 +00:00
WriteINIStr "$PLUGINSDIR\WinPcapPage.ini" "Field 4" "State" "0"
WriteINIStr "$PLUGINSDIR\WinPcapPage.ini" "Field 4" "Flags" "DISABLED"
WriteINIStr "$PLUGINSDIR\WinPcapPage.ini" "Field 5" "Text" "If you wish to install WinPcap ${PCAP_DISPLAY_VERSION}, please uninstall $WINPCAP_NAME manually first."
WriteINIStr "$PLUGINSDIR\WinPcapPage.ini" "Field 5" "Flags" "DISABLED"
2014-01-05 18:16:22 +00:00
Goto lbl_winpcap_done
2006-10-16 22:47:32 +00:00
2005-07-26 17:58:17 +00:00
lbl_winpcap_do_install:
2014-01-05 18:16:22 +00:00
; seems to be an old version, install newer one
2014-08-05 15:23:41 +00:00
WriteINIStr "$PLUGINSDIR\WinPcapPage.ini" "Field 4" "State" "1"
WriteINIStr "$PLUGINSDIR\WinPcapPage.ini" "Field 5" "Text" "The currently installed $WINPCAP_NAME will be uninstalled first."
2005-07-23 20:34:43 +00:00
lbl_winpcap_done:
2014-01-05 18:16:22 +00:00
; if Wireshark was previously installed, unselect previously not installed icons etc.
; detect if Wireshark is already installed ->
ReadRegStr $0 HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Wireshark" "UninstallString"
IfErrors lbl_wireshark_notinstalled ;if RegKey is unavailable, Wireshark is not installed
2005-07-25 17:56:19 +00:00
2014-01-05 18:16:22 +00:00
; only select Start Menu Group, if previously installed
; (we use the "all users" start menu, so select it first)
SetShellVarContext all
2014-01-05 17:16:03 +00:00
2014-01-05 18:16:22 +00:00
;Set State=1 to Desktop icon (no enable by default)
WriteINIStr "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 6" "State" "1"
2014-07-30 01:31:43 +00:00
!ifdef QT_DIR
WriteINIStr "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 3" "State" "1"
2014-01-05 17:16:03 +00:00
!endif
IfFileExists "$SMPROGRAMS\${PROGRAM_NAME}\${PROGRAM_NAME}.lnk" lbl_have_gtk_startmenu
IfFileExists "$SMPROGRAMS\${PROGRAM_NAME}.lnk" lbl_have_gtk_startmenu
2014-01-05 18:16:22 +00:00
IfFileExists "$SMPROGRAMS\${PROGRAM_NAME_GTK}.lnk" lbl_have_gtk_startmenu
2014-07-30 01:31:43 +00:00
WriteINIStr "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 5" "State" "0"
2014-01-05 17:16:03 +00:00
lbl_have_gtk_startmenu:
2005-07-25 17:56:19 +00:00
2014-01-05 18:16:22 +00:00
; only select Desktop Icon, if previously installed
IfFileExists "$DESKTOP\${PROGRAM_NAME}.lnk" lbl_have_gtk_desktopicon
IfFileExists "$DESKTOP\${PROGRAM_NAME_GTK}.lnk" lbl_have_gtk_desktopicon
2014-07-30 01:31:43 +00:00
WriteINIStr "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 6" "State" "0"
2014-01-05 17:16:03 +00:00
lbl_have_gtk_desktopicon:
2005-07-25 17:56:19 +00:00
2014-01-05 18:16:22 +00:00
; only select Quick Launch Icon, if previously installed
IfFileExists "$QUICKLAUNCH\${PROGRAM_NAME}.lnk" lbl_have_gtk_quicklaunchicon
IfFileExists "$QUICKLAUNCH\${PROGRAM_NAME_GTK}.lnk" lbl_have_gtk_quicklaunchicon
2014-07-30 01:31:43 +00:00
WriteINIStr "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 7" "State" "0"
2014-01-05 17:16:03 +00:00
lbl_have_gtk_quicklaunchicon:
!ifdef QT_DIR
2014-01-05 18:16:22 +00:00
IfFileExists "$SMPROGRAMS\${PROGRAM_NAME_QT}.lnk" lbl_have_qt_startmenu
2014-07-30 01:31:43 +00:00
WriteINIStr "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 2" "State" "0"
2014-01-05 17:16:03 +00:00
lbl_have_qt_startmenu:
2014-01-05 18:16:22 +00:00
; only select Desktop Icon, if previously installed
IfFileExists "$DESKTOP\${PROGRAM_NAME_QT}.lnk" lbl_have_qt_desktopicon
2014-07-30 01:31:43 +00:00
WriteINIStr "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 3" "State" "0"
2014-01-05 17:16:03 +00:00
lbl_have_qt_desktopicon:
2014-01-05 18:16:22 +00:00
; only select Quick Launch Icon, if previously installed
IfFileExists "$QUICKLAUNCH\${PROGRAM_NAME_QT}.lnk" lbl_have_qt_quicklaunchicon
2014-07-30 01:31:43 +00:00
WriteINIStr "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 4" "State" "0"
2014-01-05 17:16:03 +00:00
lbl_have_qt_quicklaunchicon:
!endif
2005-07-25 17:56:19 +00:00
2006-05-30 13:19:30 +00:00
lbl_wireshark_notinstalled:
2005-07-25 17:56:19 +00:00
2005-02-03 02:35:20 +00:00
FunctionEnd
2013-02-20 23:59:49 +00:00
;
; Editor modelines - http://www.wireshark.org/tools/modelines.html
;
; Local variables:
; c-basic-offset: 4
; tab-width: 8
; indent-tabs-mode: nil
; End:
;
; vi: set shiftwidth=4 tabstop=8 expandtab:
; :indentSize=4:tabSize=8:noTabs=true:
;