Fresh installed Visual Studio 2017 won’t create C++ project with error 0x80041fe2

I just installed Visual Studio 2017 (current time: August 2018). I only need C++ so I picked C++ component and deselected everything listed in “optional” items. Then after the installation, I cannot even create any C++ projects including both console and desktop projects. It gives me a error dialog of “Exception from hresult 0x80041fe2”.

I did a search online. This question, visual studio and qt: HRESULT: 0x80041FE2, seems close but it’s QT related, so it’s different.

I did eventually find a solution. Will answer my own question below

Leave a Comment