The process of installing, configuring, and customizing Visual Studio to support development workflows across languages, platforms, and workloads.
Hi @Hillel ,
Thank you for sharing your concern.
The "Microsoft.VisualStudio.Setup.WMIProvider" is a Windows service. It is responsible for finding disk locations and helping install Visual Studio. If, for some reason, it is not working, Visual Studio cannot continue and gets stuck at this component, as you can see.
The InstallCleanup.exe tool only uninstalls Visual Studio and cleans up the environment, so it cannot resolve this issue.
There are a few solutions to repair the WMI provider. Please try them step by step and re-run the Visual Studio setup file after each step.
Before starting the troubleshooting steps, please make sure to close the installer. If the installer stops responding, try restarting the computer.
Troubleshooting Steps
1. Restart the Windows Management Instrumentation Service
Press Win + R, type services.msc, and press Enter. Scroll down and find Windows Management Instrumentation. Double‑click it to open the dialog. Click Stop, then Start to reset the service. Re-run the Visual Studio setup file and check if the issue is resolved.
2. Use Command Line to deep reset WMI
This command performs a deep reset of WMI. Open cmd.exe with Administrator privileges and run the following commands:
cd %windir%\system32\wbem
for /f %s in ('dir /b *.dll') do regsvr32 /s %s
for /f %s in ('dir /b *.mof *.mfl') do mofcomp %s
3. Check if You Have Another Disk Partition
If you have another disk partition such as D: or E:, please temporarily disable it to see if the root issue is related to the WMI provider failing due to disk partition configuration.
Follow these steps:
- Search for "Create and format hard disk partitions".
- Right‑click your D: or E: partition and select Change Drive Letter and Paths.
- Click Remove to unmount it.
Please rest assured that this action will not delete any data on that partition. You can mount it again later using the same steps.
Hope this helps! If my answer was helpful, please mark the answer so others with the same problem can benefit as well. If you need any further assistance, feel free to let me know in the comments.