I uninstalled visual studio 2015. Then I deleted the folder \Program Files (x86)\programming1\Microsoft Visual Studio 14.0
and its contents. Then I renamed all instances of Program Files (x86)\programming1\Microsoft Visual Studio 14.0
in the registry to Program Files (x86)\programming\Microsoft Visual Studio 14.0
as well as Program Files (x86)/programming1/Microsoft Visual Studio 14.0 in the registry renamed to
Program Files (x86)/programming/Microsoft Visual Studio 14.0
(note the difference being the forward or back slash, and programming1 renamed to programming ie without the 1).
The reason I did this is because I had typed a typing mistake with the "1" after programming and wanted the correct location for my installation but it's not possible to change the installed directory after installation so I had to uninstall and
then reinstall it.
After that I reinstalled visual studio 2015 but it came up with an error that the C++ 2015 redistributable (64bit and 32bit) could not be installed. So I uninstalled those from the control panel, and then I was able to install Visual Studio 2015
community edition. However when I try to compile things it says the compiler is missing. I tried running the install and click on "repair" which takes ages but afterward the problem is still there.
An example error message in visual studio is:
Severity Code Description Project File Line
Warning A problem occurred while trying to set the "References" parameter for the IDE's in-process compiler. Project 'Greenshot.ImageEditor' could not be opened because the Visual C# 2015 compiler could not be
created. Please re-install Visual Studio. Greenshot.ImageEditor
I have a feeling that there might be components marked as installed in the registry now, that are actually missing in the file system due to the fact that I had deleted the "Microsoft Visual Studio 14.0" folder. So that the visual studio installation
is thinking it doesn't need to reinstall them anymore, when in fact it does ??
Update on this issue: I have managed to reinstall visual studio 2015 community edition and the compiler is now working. What I had to do was to install using the default options, instead of clicking custom and telling it to install everything.