Visual Studio 2017 defines the VS150COMNTOOLS variable which kdevelop-msvc.bat ignored till now.
Also VS17 has a new folder layout, so vcvarsall.bat is under a different location. An if-else finds the script accordingly.
Last but not least clicking kdevelop-msvc.bat doesn't initialize our MSVC enviroment; one has to find and run the script from Developer Command Prompt!