"BMAKE: Error - Attempting to build with VS 2015 but location is undefined!"

I am trying to run the examples using buildallexamples.bat file. I come across the above error.  

I am using VS2017 Professional on windows 10 64 bit

I dont have VS2015 on my computer . Should i also install 2015 version ? Any help is appreciated .