UE4 can't find Visual Studio 2013 Professional

When I try to GenerateProjectFiles it says it can’t find a valid installation of Visual Studio and asks to check if it is installed (which it is), a registry value is set HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\12.0\InstallDir (I checked this and this is correct and set to to the \common7\IDE sub-folder)
I also checked my environment variables and this is also set correctly under
VS120COMNTOOLS C:\Program Files(x86)\Microsoft Visual Studio 12.0\Common7\Tools
So I am pretty much clueless on this issue because everything is correct and UE4 still can’t find my VS installation. I was wondering if anyone else had the same problem and had a fix for it that would be greatly appreciated.

Hi JIGGITPrime,

I saw that you have checked your registry and environment variables, and the values you mention for those appear to be correct. Have you also attempted to repair your installation of Visual Studio?

Another possibility, though a little more time consuming, would be to actually uninstall Visual Studio, restart your computer, then re-install Visual Studio and restart your computer.

This may seem like a silly question, but it helps to be sure. Is the location pointed to by your VS120COMNTOOLS environment variable actually your installation location for Visual Studio? That looks like the default installation location, but if you installed it in a different location this value will not work for you.

Have very same problem here as well but with free VS 2013 express Window Desktop version.

Trying to repair VS installation now. I will keep updated later.

Repair VS not working. Start second way which suggested.

After VS 2013 Express for Windows Desktop, there isn’t HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\12.0\InstallDir.

Even manually added InstallDir registry value, it is still not working.

Did you do a search for InstallDir? I found the key for my installation of Visual Studio, but it was in a different location: Computer\HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\12.0_Config

8708-vskey.png

This is the registry where I can see InstallDir. So do I need to manually add registry for generating UE4 solution?

Hi frankmli,

As long as the InstallDir key is present and pointing to the correct location, it should be fine where it is.

Do you possibly have more than one version of Visual Studio installed? This has caused some similar issues for a few people.

Yes, I have VS 2010 and 2012 as well. Should I uninstall both?

Finally it was fixed. In my case, the problem is the path, "C:\Windows\System32", which need to go into Path in environment variables, otherwise reg.exe was never been called correctly.

Thanks very much your a lifesaver. I will now be able to use Unreal Engine 4 for my next game project thanks again