mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 05:01:29 +00:00
Simplify some IfSilent calls (MessageBox is not displayed in silent mode anyway)
This commit is contained in:
@@ -363,10 +363,8 @@ Function vcredist2013installer
|
|||||||
|
|
||||||
vcredist_not_present:
|
vcredist_not_present:
|
||||||
DetailPrint "Microsoft Visual C++ 2013 Redistributable failed to install"
|
DetailPrint "Microsoft Visual C++ 2013 Redistributable failed to install"
|
||||||
IfSilent vcredist_done vcredist_messagebox
|
MessageBox MB_OK "Microsoft Visual C++ 2013 Redistributable Package (x86) failed to install. Please ensure your system meets the minimum requirements before running the installer again."
|
||||||
vcredist_messagebox:
|
Goto vcredist_done
|
||||||
MessageBox MB_OK "Microsoft Visual C++ 2013 Redistributable Package (x86) failed to install. Please ensure your system meets the minimum requirements before running the installer again."
|
|
||||||
Goto vcredist_done
|
|
||||||
vcredist_success:
|
vcredist_success:
|
||||||
Delete "$PLUGINSDIR\vcredist_x86.exe"
|
Delete "$PLUGINSDIR\vcredist_x86.exe"
|
||||||
DetailPrint "Microsoft Visual C++ 2013 Redistributable was successfully installed"
|
DetailPrint "Microsoft Visual C++ 2013 Redistributable was successfully installed"
|
||||||
@@ -399,10 +397,8 @@ Function vcredist2008installer
|
|||||||
StrCmp $0 "Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729.6161" vcredist2008_success vcredist2008_not_present
|
StrCmp $0 "Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729.6161" vcredist2008_success vcredist2008_not_present
|
||||||
vcredist2008_not_present:
|
vcredist2008_not_present:
|
||||||
DetailPrint "Microsoft Visual C++ 2008 Redistributable failed to install"
|
DetailPrint "Microsoft Visual C++ 2008 Redistributable failed to install"
|
||||||
IfSilent vcredist2008_done vcredist2008_messagebox
|
MessageBox MB_OK "Microsoft Visual C++ 2008 Redistributable Package (x86) failed to install. Please ensure your system meets the minimum requirements before running the installer again."
|
||||||
vcredist2008_messagebox:
|
Goto vcredist2008_done
|
||||||
MessageBox MB_OK "Microsoft Visual C++ 2008 Redistributable Package (x86) failed to install. Please ensure your system meets the minimum requirements before running the installer again."
|
|
||||||
Goto vcredist2008_done
|
|
||||||
vcredist2008_success:
|
vcredist2008_success:
|
||||||
Delete "$PLUGINSDIR\vcredist2008_x86.exe"
|
Delete "$PLUGINSDIR\vcredist2008_x86.exe"
|
||||||
DetailPrint "Microsoft Visual C++ 2008 Redistributable was successfully installed"
|
DetailPrint "Microsoft Visual C++ 2008 Redistributable was successfully installed"
|
||||||
|
|||||||
Reference in New Issue
Block a user