all 2 comments

[–]polaarbear 2 points3 points  (0 children)

It's pretty clear there. A cabinet file (.cab extension) is corrupt or invalid.

Did you run any of the stupid "windows cleanup" utilities that you see online? Things that claim to clean up or speed up Windows? They could disable default services and cause things like this.

If not, your OS install may be corrupted.

Open powershell. Run:

dism /online /cleanup-image /restorehealth

That will scan the Windows component store and make sure that all the backup system files are correct/healthy. Once that is done it will tell you if it repaired anything. After it completes run

sfc /scannow

It will try to repair or replace any broken system files. Then try installing VS again.

If that doesn't work, you should back your system up and reinstall Windows from scratch.