I've tried uninstalling from both control panel in Windows 10 and in the VS Installer (by clicking "More" there and then "Uninstall"). Have also searched in File Explorer to delete all files related to VS. But when I reinstall VS it keeps installing in the old location where I no longer want it to be installed. It installs under C:\Users\ ...\sources\repos As far as I know it's meant to be installed in Program Files (x86), right? Furthermore, when I reinstall, I don't get an option to choose where to install VS. It just automatically installs at C:\Users...\sources\repos
Before reinstalling, I have also tried without success to delete in Registry:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\Setup\SharedInstallationPath
Any way to fix this?
I ask because I'm trying to install the Msvc compiler from Microsoft, in order to properly set up Visual Studio Code for C++, and the freecodeCamp.org Youtube video, called C++ Programming Course - Beginner to Advanced, says that I must use the Developer PowerShell Visual Studio 2022 to do that, but the PowerShell is corrupted, as I have explained here:
https://superuser.com/questions/1741651/developer-powershell-for-visual-studio-2022-is-corrupted
I have therefore tried to uninstall Visual Studio, and reinstall it, to see if that solves the problem with the VS PowerShell, but it seems like a complete uninstall isn't possible, at least the VS PowerShell keeps being broken when trying to launch it as an app from "Search" in Windows 10.
Anyway, is there another way than using the VS Powershell to "connect" Visual Studio Code to the Msvc compiler?
I'm totally new to programming, so please explain in an easy step-by-step manner. Thanks in advance :) :)