Hi! I'm trying to instal VS 2019 community. It was previously installed, but when I tried to download pack for winforms/etc, the same error popped up and I decided to fully reinstall VS. Now I can't install plain VS visout any packs. I tried VS 2022, but it didn't install with other error message.
A few weeks ago I accidently deleted some files from WindowsApps, bc I managed to install a miner which hided in WinApps folder in Program Data. After that some of the standart apps (calc etc) were removed, but I reinstalled it. I assume it may be connected, as far as I installed VS 3 months ago, before deleting WinApps.
I tried different ways of solving this problem, including fully reinstalling Visual Studio, trying to solve this with microsoft install and uninstall tool, changing software politics, using some scanning command in cmd.exe (don't remember the name). Please, help me. I'm ready to provide any of the logs file, but I'm not sure which one to copy, as far as I've been trying to install VS for more than 3 hours and I have a lot of files.
Also I can't install neither VS 2022 or 2019 from Microsoft Store, error code is 0x80070002.