Unable to generate c++ projects file 4.9 *Found Fix*

Ok I think I’ve solved my issue. Let me know if it works for you guys…

I went here > ERROR: Failed to harvest environment variables - C++ - Epic Developer Community Forums
and saw the very last post.

Check out the picture that was posted, and follow the red arrows. Advanced System Settings → Environment Variables → Select “Path” → Edit…
Now copy the ALL the text which is inside “Variable value:” field. Paste that into Notepad or Notepad++. As the guy in that thread said, “keep a copy of the whole PATH environment variable, just in case you break your windows.”

Search (Ctrl + F) for double quote characters ("). If one of your paths is surrounded by double quotes, then that may be your problem. For me, I had a path which looked like this… “C:\Program Files (x86)\Microsoft DirectX SDK (August 2006)\Utilities\Bin\x86”

I removed the double quotes from that, and it worked. I can now create a new C++ project in 4.9.1.