With Microsoft changing the pattern of registry entries in its latest versions, how do i detect if Visual C++ 2017 Redistributable is installed on a machine?
My aim is to install VC++2015Redist since the software is written using VS2015. If i can successfully detect VC++2017Redist on a machine, then I skip my installation of VC++2015Redist
You're solving the wrong problem. You're trying to install an outdated redistributable that was only suitable for VS2015 (Toolset v140). Instead, install the current VS2017 redistributable (Toolset v141). It's backwards compatible with VS2015.