RE: Installation issue(Windows Management Instrumentation (WMI)): Getting error after clicking setup.exe.

Getting error after clicking setup.exe.

It seems to be related with python and windows (translation of log error):

“pywintypes.com_error: (-2147023836, ‘The specified service does not exist as an installed service.’, None, None)”

Jessie Asked on 24 2 月, 2025 in FAQ.
Add Comment
1 Answers

Step 1. Confirm if there is WMI Invalid class issue on the computer

  • Press the ‘Win + R’ keyboard shortcut
  • Type ‘compmgmt.msc‘ in the blank field
  • Press the ‘Ok’ button
  • Right-click on WMI Control and select ‘Properties.’
  • Check if the computer has any WMI invalid class issues

RE: Installation issue(Windows Management Instrumentation (WMI)): Getting error after clicking setup.exe.

RE: Installation issue(Windows Management Instrumentation (WMI)): Getting error after clicking setup.exe.

Step 2. Re-registering WMI components

  • The .DLL and .EXE files used by WMI are located in %windir%\system32\wbem. You might need to re-register all the .DLL and .EXE files in this directory. If you are running a 64-bit system you might also need to check for .DLLS and .EXE files in %windir%\sysWOW64\wem
  • Open Command Prompt as administrator.
  • To re-register the WMI components, run the following commands at the command prompt (Enter a command and press Enter. Wait for it to finish, and then input the next one.):
    • cd wbem
    • for %i in (*.dll) do RegSvr32 -s %i
    • for %i in (*.exe) do %i /RegServer
    • for %i in (*.mof, *.mfl) do Mofcomp %i
    • RE: Installation issue(Windows Management Instrumentation (WMI)): Getting error after clicking setup.exe.

Step 3. Go to WMI to see if the invalid class issue is fixed

RE: Installation issue(Windows Management Instrumentation (WMI)): Getting error after clicking setup.exe.

 

Reference:

https://www.youtube.com/watch?v=KGtytA14R0w

Answered on 24 2 月, 2025.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.