Error Compiling UE4 using VS2013 Ultimate

1-Windows 7/x64 ultimate, Intel core i7 950 @ 3.07GHz, 12 GB RAM.

2- VS 2013 ultimate.

I received the following Error:

Error 1 error : SetEnvironmentVariablesFromBatchFile: BatchFile D:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools…/…/VC/bin/x86_amd64/vcvarsx86_amd64.bat does not exist! D:\GitHub\UnrealEngine\Engine\Intermediate\ProjectFiles\EXEC

Error 2 error MSB3073: The command “…\Build\BatchFiles\Build.bat UE4Editor Win64 Development” exited with code -1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets 38

Right click on mycomputer and select properties and in Advanced system settings click on Environment variables>

You should have VS120COMNTOOLS with value "(Installed directory Like C):\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools" in System Variables.

If not then Add it. Or check the directory to be installed directory.

2051-prev.jpg

Thanks. This is a result of a VS2013 installation bug.

I had a previous installation on “D:” that was successfully uninstalled, followed by a fresh installation on “C:”.

Unfortunately, the PATH and environment vars were not updated automatically, and remained pointing to non existing directories on “D:” !

I will try again, and hopefully no other install/uninstall messing appear.

I’m having this same problem. I’ve followed the above directions and still have the following error:

1>EXEC : error : SetEnvironmentVariablesFromBatchFile: BatchFile E:\Microsoft Visual Studio\Common7\Tools…/…/VC/bin/x86_amd64/vcvarsx86_amd64.bat does not exist!
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets(38,5): error MSB3073: The command ““C:\Program Files\Unreal Engine\4.0\Engine\Build\BatchFiles\Build.bat” ShaleEditor Win64 Development “E:\Shale\Shale\Shale.uproject” -rocket” exited with code -1.

I realize the file above doesn’t exist, but my VS120COMNTOOLS variable is set to the correct path - this just seems to be calling the wrong one. Is there another variable I need to set?

We apologize that we were not able to resolve this post at the time it was created. We have since improved our systems and workflows to provide better coverage going forward. Many changes have occurred to the Unreal Engine since this post was made, so we are marking this as Resolved for tracking purposes. If you still require assistance with this issue, please let us know. If the issue has changed in any way, we recommend you create a new post.

Thank you.