Stack Exchange postings suggest that I must modify 10.2\SystemFiles\Components\CCompilerDriver\VisualStudioCompiler.m. Sure enough, installPath[“2015”] isn’t there and so I suppose I need a line similar to:
If you get it working, consider editing the StackExchange post with the correct details for VS 2015 (the “community wiki” designation of that answer means that you are welcome to do this). Other people who use VS 2015 will appreciate it. I do not have this software myself so I cannot test, I can only guess at the correct setup.
Thanks, Szabolcs. You’re right – “VS140COMNTOOLS” is correct, per the environment variable that I’ve just learned to access (Control Panel / System / System / AdvSystemSettings / AdvancedTab / EnvironmentVariables then scroll down in the box).
Now I need to unprotect VisualStudioCompiler.m so that I can edit it. Years ago, Wolfram Tech Support said “Check with us first before editing *.m files” so I’ll wait 'til Monday to do so. I’ll then post to Stack Exchange, as you requested (yes, that was indeed the thread – I now see that you had participated in it).
I think there is very little risk to trying this out, just make sure to create a backup of the file you modify. You can run a text editor as administrator, then use it to open and edit the file.
There are good reasons why WRI discourages people from modifying installation files: doing so can break things, sometimes in very subtle ways, and people might not even realize that the problems they see could be because they modified something several months ago and then forgotten about it. Then this creates an additional support burden for WRI. So they certainly don’t want such modifications to become commonplace in the community.
However, in this specific case, I wouldn’t worry. Just make a backup of the file and do keep in mind that you made this particular modification.