[Bug 45343] Multiple apps (Vavoo Webinstaller,Kodi) fail with windows version set to Win7: wmic.exe needs support for "/?" switch

WineHQ Bugzilla wine-bugs at winehq.org
Sat Apr 10 06:04:54 CDT 2021


https://bugs.winehq.org/show_bug.cgi?id=45343

Louis Lenders <xerox.xerox2000x at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|-unknown                    |programs
                 CC|                            |xerox.xerox2000x at gmail.com
            Summary|Vavoo Webinstaller fails    |Multiple apps (Vavoo
                   |with windows version set to |Webinstaller,Kodi)  fail
                   |Win7                        |with windows version set to
                   |                            |Win7: wmic.exe needs
                   |                            |support for "/?" switch

--- Comment #7 from Louis Lenders <xerox.xerox2000x at gmail.com> ---
Hi, Kodi has same problem

Maybe Vavoo and Kodi use same installer(?), 
anyway, let`s target this bugreport for the 1st problem: wmic.exe should
support '/?' switch

After that, in source code for Kodi one can read that a few more things are
needed, but that can be directed to new bugreports (though problem for the
programs is minor as one can switch to win81 to workaround the bug)

  Var /GLOBAL HotFixID
  ${If} ${IsWin7}
    StrCpy $HotFixID "2670838" ; Platform Update for Windows 7 SP1
  ${Else}
    StrCpy $HotFixID ""
  ${Endif}
  ${If} $HotFixID != ""
    nsExec::ExecToStack 'cmd /Q /C "%SYSTEMROOT%\System32\wbem\wmic.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 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\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
    ${OrIf} $1 == ""
      MessageBox MB_OK|MB_ICONSTOP|MB_TOPMOST|MB_SETFOREGROUND "Platform Update
for Windows (KB$HotFixID) is required.$\nDownload and install Platform Update
for Windows then run setup again."
      ExecShell "open" "http://support.microsoft.com/kb/$HotFixID"
      Quit
    ${EndIf}
    SetOutPath "$INSTDIR"
  ${EndIf}
  StrCpy $CleanDestDir "-1"
FunctionEnd

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list