Another visual studio missing problem (but this is very hard)

i Have visual studio Express 2013 and after an installation of a second version (trial) of visual studio (2013) ue4 stopped to pack my game… so i’ve tried to update to version 4.8 and the end of the world begun. The situation is this: UE4 doesn’t find anymore visual studio. I cannot compile my project (it says something like"failed to produce etc etc") Generateprojectfile.bat says that he does not find visual studio and i’ve checked ALL the possible solution that i’ve saw online so:

  1. I Have “C:\Windows\System32;” in my environment variable “path” (and only that… no other similar)

  2. I have “C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools” as value of the EV “VS120COMNTOOLS”

  3. I have the InstallDir key in the registry, with the value “C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE”

  4. i Do not have any special character in my windows username

What do i have to do? i start to wander that maybe if i bring the blood of a virgin on the top of the Epic Mountain in a full moon summer night with at least 5 planet allineated maybe… i said maybe something will be fixed… so i’m asking… virgin’s blood anyone?

sorry for the very bad english ad the very bad joke… please… help me

Hello, andrearuzze

To fix the error, please go to \Engine\Source\Programs\UnrealBuildTool\Windows, open UEBuildWindows.cs and add the following check to bHasVisualStudioDTE method:

         string envVSEdition = System.Environment.GetEnvironmentVariable("VisualStudioEdition");
         if (envVSEdition != null && envVSEdition.ToLower().IndexOf("express") != -1)
         {
             return false;
         }

Hope this helped!

Good luck!

it didn’t worked… same result. ive put the code just under the get statement. Any ideas?