aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRechi <Rechi@users.noreply.github.com>2017-04-08 17:27:13 +0200
committerRechi <Rechi@users.noreply.github.com>2017-04-08 17:27:13 +0200
commitb70cc2d3d4cab1632e7ad1a33292781305e37a59 (patch)
tree1758343400bbc67f0fad98c1e2dce6a2db12fe03
parenteb3a01ac9036598852c04e391efe356a589e6868 (diff)
[windows] installer: call findstr with full path
-rw-r--r--project/Win32BuildSetup/genNsisInstaller.nsi12
1 files changed, 10 insertions, 2 deletions
diff --git a/project/Win32BuildSetup/genNsisInstaller.nsi b/project/Win32BuildSetup/genNsisInstaller.nsi
index a52408bff7..3d21a5cd5b 100644
--- a/project/Win32BuildSetup/genNsisInstaller.nsi
+++ b/project/Win32BuildSetup/genNsisInstaller.nsi
@@ -360,8 +360,16 @@ Function .onInit
${OrIf} $1 == ""
MessageBox MB_OK|MB_ICONSTOP|MB_TOPMOST|MB_SETFOREGROUND "Unable to run the Windows program wmic.exe to verify that Windows Update KB$HotFixID is installed.$\nWmic is not installed correctly.$\nPlease fix this issue and try again to install Kodi."
Quit
- ${EndIf}
- nsExec::ExecToStack 'cmd /Q /C "%SYSTEMROOT%\System32\wbem\wmic.exe qfe get hotfixid | findstr "^KB$HotFixID[^0-9]""'
+ ${EndIf}
+ nsExec::ExecToStack 'cmd /Q /C "%SYSTEMROOT%\System32\findstr.exe /?"'
+ Pop $0 ; return value (it always 0 even if an error occured)
+ Pop $1 ; command output
+ ${If} $0 != 0
+ ${OrIf} $1 == ""
+ MessageBox MB_OK|MB_ICONSTOP|MB_TOPMOST|MB_SETFOREGROUND "Unable to run the Windows program findstr.exe to verify that Windows Update KB$HotFixID is installed.$\nFindstr is not installed correctly.$\nPlease fix this issue and try again to install Kodi."
+ Quit
+ ${EndIf}
+ nsExec::ExecToStack 'cmd /Q /C "%SYSTEMROOT%\System32\wbem\wmic.exe qfe get hotfixid | %SYSTEMROOT%\System32\findstr.exe "^KB$HotFixID[^0-9]""'
Pop $0 ; return value (it always 0 even if an error occured)
Pop $1 ; command output
${If} $0 != 0