Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Mar 23, 2023 7:07:54 AM
Mar 23, 2023 6:08:17 AM
The Qlik Sense installer fails with an error describing to call Qlik Support or to instead perform a silent installation.
The Qlik Sense Installation logs show:
Unexpected error during configuration: System.AggregateException: One or more errors occurred. ---> System.Management.ManagementException: Invalid class
Qlik Sense Enterprise on Windows
Microsoft Windows 2012 to 2016
The note to contact Qlik Support is misleading. The issue is caused by a corrupt repository for the WMI (Windows Management Instrumentation).
For information on how to resolve this issue, see winmgmt - Win32 apps | Microsoft Learn
You can verify the integrity of your Windows OS files by running sfc /scannow in a command prompt. This may lead to further information about any required repairs.
A corrupt repository for the WMI (Windows Management Instrumentation). There are several way to confirm if this is in fact the problem:
If the above steps didn't solve your problem there is an alternative solution by creating the batch file below. This one will reset your current WMI configuration, and generate a new one after a system reboot. This also worked in cases where the above check under point 2b sends the response Repository is consistent but Qlik Sense would still not install.
on
cd /d c:\temp
if not exist %windir%\system32\wbem goto TryInstall
cd /d %windir%\system32\wbem
net stop winmgmt
winmgmt /kill
if exist Rep_bak rd Rep_bak /s /q
rename Repository Rep_bak
for %%i in (*.dll) do RegSvr32 -s %%i
for %%i in (*.exe) do call :FixSrv %%i
for %%i in (*.mof,*.mfl) do Mofcomp %%i
net start winmgmt
goto End :FixSrv
if /I (%1) == (wbemcntl.exe) goto SkipSrv
if /I (%1) == (wbemtest.exe) goto SkipSrv
if /I (%1) == (mofcomp.exe) goto SkipSrv
%1 /Regserver
:SkipSrv
goto End
:TryInstall
if not exist wmicore.exe goto End
wmicore /s
net start winmgmt
:End
To start it save the block above as cleanwmi.bat in e.g. C:\temp\ and run the script as an administrative user. If its finished please reboot the machine.