aboutsummaryrefslogtreecommitdiffstats
path: root/packaging/nsis
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2013-03-08 18:23:58 +0000
committerGerald Combs <gerald@wireshark.org>2013-03-08 18:23:58 +0000
commita606a88647404ed46c0c356ee9e2713fd5d11b61 (patch)
tree4e6db6e8ef2639f2d2916c389ba2bc6b657005a0 /packaging/nsis
parent1b788d4061eb86678c4562ae12114385f171413b (diff)
Add /SD defaults to every MessageBox call (even if they're commented
out). Fixes bug 8451. Don't yell at the user so much. svn path=/trunk/; revision=48196
Diffstat (limited to 'packaging/nsis')
-rwxr-xr-xpackaging/nsis/uninstall.nsi6
-rw-r--r--packaging/nsis/wireshark.nsi8
-rw-r--r--packaging/nsis/x64.nsh2
3 files changed, 8 insertions, 8 deletions
diff --git a/packaging/nsis/uninstall.nsi b/packaging/nsis/uninstall.nsi
index c215667bf1..4b3001a550 100755
--- a/packaging/nsis/uninstall.nsi
+++ b/packaging/nsis/uninstall.nsi
@@ -115,7 +115,7 @@ ${DoUntil} $EXECUTABLE == ${EXECUTABLE_MARKER}
; into any problems here.
Delete "$INSTDIR\$EXECUTABLE.exe"
IfErrors 0 deletionSuccess
- MessageBox MB_OK "$EXECUTABLE.exe could not be removed. Is it in use?" IDOK 0
+ MessageBox MB_OK "$EXECUTABLE.exe could not be removed. Is it in use?" /SD IDOK IDOK 0
Abort "$EXECUTABLE.exe could not be removed. Aborting the uninstall process."
deletionSuccess:
@@ -269,7 +269,7 @@ Section /o "Un.WinPcap" un.SecWinPcap
SectionIn 2
ReadRegStr $1 HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\WinPcapInst" "UninstallString"
;IfErrors un.lbl_winpcap_notinstalled ;if RegKey is unavailable, WinPcap is not installed
-;MessageBox MB_OK "WinPcap $1"
+;MessageBox MB_OK "WinPcap $1" /SD IDOK
ExecWait '$1' $0
DetailPrint "WinPcap uninstaller returned $0"
;SetRebootFlag true
@@ -281,7 +281,7 @@ Section "-Un.Finally"
SectionIn 1 2
; this test must be done after all other things uninstalled (e.g. Global Settings)
IfFileExists "$INSTDIR" 0 NoFinalErrorMsg
- MessageBox MB_OK "Please note: The directory $INSTDIR could not be removed!" IDOK 0 ; skipped if dir doesn't exist
+ MessageBox MB_OK "Unable to remove $INSTDIR." /SD IDOK IDOK 0 ; skipped if dir doesn't exist
NoFinalErrorMsg:
SectionEnd
diff --git a/packaging/nsis/wireshark.nsi b/packaging/nsis/wireshark.nsi
index 23333bdf59..da28cee3bc 100644
--- a/packaging/nsis/wireshark.nsi
+++ b/packaging/nsis/wireshark.nsi
@@ -44,7 +44,7 @@ Icon "..\..\image\wiresharkinst.ico"
!define MUI_COMPONENTSPAGE_SMALLDESC
!define MUI_FINISHPAGE_NOAUTOCLOSE
!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."
-;!define MUI_FINISHPAGE_LINK "Install WinPcap to be able to capture packets from a network!"
+;!define MUI_FINISHPAGE_LINK "Install WinPcap to be able to capture packets from a network."
;!define MUI_FINISHPAGE_LINK_LOCATION "http://www.winpcap.org"
; NSIS shows Readme files by opening the Readme file with the default application for
@@ -205,7 +205,7 @@ Function .onInit
!if ${WIRESHARK_TARGET_PLATFORM} == "win64"
; http://forums.winamp.com/printthread.php?s=16ffcdd04a8c8d52bee90c0cae273ac5&threadid=262873
${IfNot} ${RunningX64}
- MessageBox MB_OK "This version of Wireshark only runs on x64 machines.\nTry installing the 32-bit version instead."
+ MessageBox MB_OK "This version of Wireshark only runs on x64 machines.\nTry installing the 32-bit version instead." /SD IDOK
Abort
${EndIf}
!endif
@@ -391,11 +391,11 @@ Delete "$INSTDIR\vcredist_${TARGET_MACHINE}.exe"
!else
!ifdef MSVCR_DLL
; msvcr*.dll (MSVC V7 or V7.1) - simply copy the dll file
-!echo "IF YOU GET AN ERROR HERE, check the MSVC_VARIANT setting in config.nmake: MSVC2005 vs. MSVC2005EE!"
+!echo "IF YOU GET AN ERROR HERE, check the MSVC_VARIANT setting in config.nmake: MSVC2005 vs. MSVC2005EE."
File "${MSVCR_DLL}"
!else
!if ${MSVC_VARIANT} != "MSVC6"
-!error "C-Runtime redistributable for this package not available / not redistributable!"
+!error "C-Runtime redistributable for this package not available / not redistributable."
!endif
!endif ; MSVCR_DLL
!endif ; VCREDIST_EXE
diff --git a/packaging/nsis/x64.nsh b/packaging/nsis/x64.nsh
index e694c1e613..751763231c 100644
--- a/packaging/nsis/x64.nsh
+++ b/packaging/nsis/x64.nsh
@@ -7,7 +7,7 @@
; RunningX64 checks if the installer is running on x64.
;
; ${If} ${RunningX64}
-; MessageBox MB_OK "running on x64"
+; MessageBox MB_OK "running on x64" /SD IDOK
; ${EndIf}
;
; DisableX64FSRedirection disables file system redirection.