It is because that you installed visual studio 2015 ago, and you install visual studio 2017 now. when you install vs 2017, it broke the visual c++ 2015 redistributable package’s registry.
So the simply manner is that:
Press “Modify” to repair the registry for the x64 and x86.
Then you can install mysql 8 now.