GenerateProjectFiles.bat doesn't recognize Visual Studio Ultimate 2013

I keep on getting this message:

GenerateProjectFiles ERROR: We couldn’t find a valid installation of Visual Studio. This program requires either Visual Studio 2013 or Visual Studio 2012. Ple ase check that you have Visual Studio installed, then verify that the HKEY_LOCAL _MACHINESOFTWAREWow6432NodeMicrosoftVisualStudio12.0InstallDir (or HKEY_LO CAL_MACHINESOFTWAREMicrosoftVisualStudio12.0InstallDir on 32-bit machines) registry value is set. Visual Studio configures this value when it is installed , and this program expects it to be set to the ‘Common7IDE’ sub-folder under a valid Visual Studio installation directory.

Press any key to continue . . . I have 64-Bit PC running Windows 8.1.

im going to try every solution so if i dont reply im probably reinstalling/fixing…

Please help!

UE Directory: C:\Users\Desktop\UnrealEngine\UnrealEngine

Not have installdir in registry editor

Hi PanKamil897,

Were you able to get the Engine built?

Hi PanKamil897,

We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will offer further assistance.

Thank you.