# "VisualStudioUnsupported x64 must be installed" trying to update a project from 5.3.2 to 5.4.1

**URL:** <https://forums.unrealengine.com/t/visualstudiounsupported-x64-must-be-installed-trying-to-update-a-project-from-5-3-2-to-5-4-1/1835116>\
**Category:** C++\
**Tags:** updates, compiling, unreal-engine, update, UE5, question\
**Created:** [May 1, 2024, 5:18pm UTC](https://forums.unrealengine.com/t/visualstudiounsupported-x64-must-be-installed-trying-to-update-a-project-from-5-3-2-to-5-4-1/1835116 "2024-05-01T17:18:25Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ares9323](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ares9323/32/1194521_2.png) [@Ares9323](https://forums.unrealengine.com/u/Ares9323)\
**Post date:** [May 1, 2024, 5:18pm UTC](https://forums.unrealengine.com/t/visualstudiounsupported-x64-must-be-installed-trying-to-update-a-project-from-5-3-2-to-5-4-1/1835116/1 "2024-05-01T17:18:25Z")

</div>

Hi! I’ve just downloaded 5.4.1 and I’m receiving this strange error if I click “Switch Unreal Engine Version” in the right click menu:

```auto
Running C:/Program Files/Epic Games/UE_5.4/Engine/Build/BatchFiles/Build.bat -projectfiles -project="D:/_Unreal/UnrealProjects/HOWL/HOWL.uproject" -game -rocket -progress -log="D:\_Unreal\UnrealProjects\HOWL/Saved/Logs/UnrealVersionSelector-2024.05.01-19.07.36.log"
Using bundled DotNet SDK version: 6.0.302
Running UnrealBuildTool: dotnet "..\..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" -projectfiles -project="D:/_Unreal/UnrealProjects/HOWL/HOWL.uproject" -game -rocket -progress -log="D:\_Unreal\UnrealProjects\HOWL/Saved/Logs/UnrealVersionSelector-2024.05.01-19.07.36.log"
Log file: D:\_Unreal\UnrealProjects\HOWL\Saved\Logs\UnrealVersionSelector-2024.05.01-19.07.36.log
Log file: C:\Users\Ares\AppData\Local\UnrealBuildTool\Log_GPF.txt

Generating VisualStudio project files:
Discovering modules, targets and source code for project...
Total execution time: 1.95 seconds
VisualStudioUnsupported x64 must be installed in order to build this target.

```

I’ve tried to delete all the unnecessary folders inside the project and rebuild it, change the engine association manually in the .uproject file but it just doesn’t work.  
Should I install a specific version of visual studio?  
I’ve also had issues with another UE5.4 project, it was compiling perfectly fine in 5.2 and 5.4 but in 5.4 I get this strange error saying: ` error C4668: 'ENGINE_MAJOR_VERSION' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'`, since “ENGINE\_MAJOR\_VERSION” should be a valid macro, I guess there is something wrong with my installation or with the latest unreal build tool ('cause I have no issues with previous engine versions)

Thank you in advance!

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [May 1, 2024, 8:58pm UTC](https://forums.unrealengine.com/t/visualstudiounsupported-x64-must-be-installed-trying-to-update-a-project-from-5-3-2-to-5-4-1/1835116/2 "2024-05-01T20:58:44Z")

</div>

You need visual studio 2022 with the latest updates to work with 5.4. The newest version is 64-bit only.

---

<div class="post-metadata">

**Author:** ![Ares9323](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ares9323/32/1194521_2.png) [@Ares9323](https://forums.unrealengine.com/u/Ares9323)\
**Post date:** [May 1, 2024, 9:49pm UTC](https://forums.unrealengine.com/t/visualstudiounsupported-x64-must-be-installed-trying-to-update-a-project-from-5-3-2-to-5-4-1/1835116/3 "2024-05-01T21:49:47Z")

</div>

> [@3dRaven](#):
>
> You need visual studio 2022 with the latest updates to work with 5.4. The newest version is 64-bit only.

I’ve been using visual studio 2022 since before it was officially supported by UE and it’s up to date and using the latest version, I really don’t know what could be happening here 😅

---

<div class="post-metadata">

**Author:** ![Ares9323](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ares9323/32/1194521_2.png) [@Ares9323](https://forums.unrealengine.com/u/Ares9323)\
**Post date:** [May 1, 2024, 9:59pm UTC](https://forums.unrealengine.com/t/visualstudiounsupported-x64-must-be-installed-trying-to-update-a-project-from-5-3-2-to-5-4-1/1835116/4 "2024-05-01T21:59:36Z")

</div>

> [@Ares9323](#):
>
> I’ve been using visual studio 2022 since before it was officially supported by UE

And… this was the issue! Thank you for pointing me in the right direction!

I had to delete the file I was using to force VS2022 with UE 4.27 (I even posted it as solution [here](https://forums.unrealengine.com/t/visual-studio-2019-14-22-27905-must-be-installed-to-build-this-target/150754/4)), this means it’s probably time to remove 4.27 from my pc 😅

EDIT:

After being able to change the engine version I had another error saying:

> UnrealBuildTool has banned the MSVC 14.39.33519-14.39.99999 toolchains due to compiler issues. Please install a different toolchain such as 14.38.33130 by opening the generated solution and installing recommended components or from the Visual Studio installer.

I had to install a previous MSVC version (MSVC v143 - VS 2022 C++ x64/x86 build tools v14.38-17.8) and I was finally able to compile

---

<div class="post-metadata">

**Author:** ![NiteVelan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NiteVelan](https://forums.unrealengine.com/u/NiteVelan)\
**Post date:** [May 1, 2024, 11:37pm UTC](https://forums.unrealengine.com/t/visualstudiounsupported-x64-must-be-installed-trying-to-update-a-project-from-5-3-2-to-5-4-1/1835116/5 "2024-05-01T23:37:00Z")

</div>

Hi to all. I trying to convert project from 5.3.2 to 5.4.1. And all time get error.

//--------------------------------------------------  
Project files could not be generated. Log output:

Running D:/UE/UE\_5.4/Engine/Build/BatchFiles/Build.bat -projectfiles -project=“_.uproject" -game -rocket -progress  
Using bundled DotNet SDK version: 6.0.302  
Running UnrealBuildTool: dotnet “…..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” -projectfiles -project="_.uproject” -game -rocket -progress  
Log file: C:\Users\iNOD\AppData\Local\UnrealBuildTool\Log\_GPF.txt

Generating VisualStudio project files:  
Discovering modules, targets and source code for project…  
Total execution time: 2.72 seconds  
Targets with a unique build environment cannot be built with an installed engine.  
//--------------------------------------------------

Where i can find what i needed to install for VS2022?  
This is my installation config.

 ![VS2022](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/4/9/e4906555bdad3a46d86b40273d71a9978c4c7f77.jpeg)

---

<div class="post-metadata">

**Author:** ![Ares9323](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ares9323/32/1194521_2.png) [@Ares9323](https://forums.unrealengine.com/u/Ares9323)\
**Post date:** [May 1, 2024, 11:51pm UTC](https://forums.unrealengine.com/t/visualstudiounsupported-x64-must-be-installed-trying-to-update-a-project-from-5-3-2-to-5-4-1/1835116/6 "2024-05-01T23:51:03Z")

</div>

This solved the issue for me:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/a/e/4aecfeff93d2c806f6281458b28090d9db44dbcd.png)

---

<div class="post-metadata">

**Author:** ![Zharay](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zharay/32/88719_2.png) [@Zharay](https://forums.unrealengine.com/u/Zharay)\
**Post date:** [May 17, 2024, 1:40am UTC](https://forums.unrealengine.com/t/visualstudiounsupported-x64-must-be-installed-trying-to-update-a-project-from-5-3-2-to-5-4-1/1835116/7 "2024-05-17T01:40:43Z")

</div>

This finally fixed such a perplexing issue for me as well. It was mainly down to deleting that xml file and letting unreal remake it.

Really odd since if I made EGS verify my install of 5.4 (and after the update to 5.4.1) it’d generate the project files fine and even let me compile. But the moment I go back to 5.3 and then forward to 5.4 again, it’d come back with this same VisualStudioUnsupported error.

Time to remove 4.27 as well until some project forces me back again.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [June 16, 2024, 1:41am UTC](https://forums.unrealengine.com/t/visualstudiounsupported-x64-must-be-installed-trying-to-update-a-project-from-5-3-2-to-5-4-1/1835116/8 "2024-06-16T01:41:19Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
