# Installed Build is too large

**URL:** <https://forums.unrealengine.com/t/installed-build-is-too-large/776405>\
**Category:** Platform & Builds\
**Tags:** uat, runuatbat, build, unreal-engine, unrealbuildtool, editor, question\
**Created:** [February 22, 2023, 2:54pm UTC](https://forums.unrealengine.com/t/installed-build-is-too-large/776405 "2023-02-22T14:54:43Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![JasonMa233](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jasonma233/32/581309_2.png) [@JasonMa233](https://forums.unrealengine.com/u/JasonMa233)\
**Post date:** [February 22, 2023, 2:54pm UTC](https://forums.unrealengine.com/t/installed-build-is-too-large/776405/1 "2023-02-22T14:54:43Z")

</div>

I compiled the Installed Build Engine from source code of UE5.1 using the following command:

```auto
Engine\Build\BatchFiles\RunUAT.bat BuildGraph -target="Make Installed Build Win64" -script=Engine/Build/InstalledEngineBuild.xml -set:WithMac=false -set:WithMacArm64=false -set:WithAndroid=false -set:WithIOS=false -set:WithTVOS=false -set:WithLinux=false -set:WithLinuxArm64=false -set:WithHTML5=false -set:WithSwitch=false -WithDDC=false -set:WithWin32=false -set:WithLumin=false -set:WithPS4=false -set:WithXboxOne=false -set:WithHoloLens=false -set:GameConfigurations=Shipping

```

I’ve tried different -set:GameConfigurations settings, but they all result in about 90GB, which is far more than the official 30GB:

 ![GCFEN`T2N~50M0HFNY~~{4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/3/c/e3c299ff4ee92b41d60664d11b64606f4322a76d.png)

I compared the engine files of the Epic launcher and found that there are many more large binary files:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/9/0/190622ef08bb92809a3eab01fdd68ae626a81349.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/b/f/cbfba27bea08d3f0a57ae3263942723e05ad4dc0.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/8/d/48d45d38fa94a4994ab37e4aa0b1184cd1e3b478.png)

[FolderComparison.txt](https://forums.unrealengine.com/uploads/short-url/z6JthOL7SFlF6v9glLENpddhKMz.txt) (423.0 KB)

This problem has been going on for a long time in different engine versions. The newer the version, the bigger the Installed Build is, which is not conducive to release.  
How can I compile the Installed Build Engine with the same size as the official version?

---

<div class="post-metadata">

**Author:** ![JasonMa233](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jasonma233/32/581309_2.png) [@JasonMa233](https://forums.unrealengine.com/u/JasonMa233)\
**Post date:** [March 1, 2023, 3:48am UTC](https://forums.unrealengine.com/t/installed-build-is-too-large/776405/2 "2023-03-01T03:48:44Z")

</div>

Well, the solution is to delete all “.pdb” files:

```auto
@echo off
setlocal enabledelayedexpansion

set target_directory=LocalBuilds

for /r "%target_directory%" %%f in (*.pdb) do (
    echo Deleting "%%f"
    del "%%f"
)

echo All .pdb files in "%target_directory%" have been deleted.

endlocal

```

After deletion, the package size is less than 30GB, which means that the engine does not contain debug info, and cannot package C++ games, but it is very suitable for distribution to artists

---

<div class="post-metadata">

**Author:** ![JackRao](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JackRao](https://forums.unrealengine.com/u/JackRao)\
**Post date:** [March 12, 2023, 9:41pm UTC](https://forums.unrealengine.com/t/installed-build-is-too-large/776405/3 "2023-03-12T21:41:49Z")

</div>

Hi, when we compile the installed build engine from source code of UE5.1, how do we prevent the generation of pdb files ??

---

<div class="post-metadata">

**Author:** ![JasonMa233](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jasonma233/32/581309_2.png) [@JasonMa233](https://forums.unrealengine.com/u/JasonMa233)\
**Post date:** [March 14, 2023, 3:17am UTC](https://forums.unrealengine.com/t/installed-build-is-too-large/776405/4 "2023-03-14T03:17:23Z")

</div>

I’m not sure, it may not be possible to prevent the .pdb file from being generated, I can only delete it through the .bat script mentioned above

---

<div class="post-metadata">

**Author:** ![Leroyyyy231](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Leroyyyy231](https://forums.unrealengine.com/u/Leroyyyy231)\
**Post date:** [August 17, 2023, 10:58pm UTC](https://forums.unrealengine.com/t/installed-build-is-too-large/776405/5 "2023-08-17T22:58:22Z")

</div>

I haven’t tried it, but per the docs [here](https://docs.unrealengine.com/5.2/en-US/using-an-installed-build-of-unreal-engine/), if you pass the argument `-set:WithFullDebugInfo=false` it should prevent .pdb files from being included in the Installed Build.

---

<div class="post-metadata">

**Author:** ![Leroyyyy231](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Leroyyyy231](https://forums.unrealengine.com/u/Leroyyyy231)\
**Post date:** [August 18, 2023, 4:24am UTC](https://forums.unrealengine.com/t/installed-build-is-too-large/776405/6 "2023-08-18T04:24:38Z")

</div>

Just tried my previous post, seems that even with `-set:WithFullDebugInfo=false` it still includes .pdb files in the generated LocalBuilds folder ☹

---

<div class="post-metadata">

**Author:** ![waterswaterAhHa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@waterswaterAhHa](https://forums.unrealengine.com/u/waterswaterAhHa)\
**Post date:** [July 3, 2024, 2:14am UTC](https://forums.unrealengine.com/t/installed-build-is-too-large/776405/7 "2024-07-03T02:14:11Z")

</div>

thanks

---

<div class="post-metadata">

**Author:** ![RobotBerry](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/robotberry/32/913498_2.png) [@RobotBerry](https://forums.unrealengine.com/u/RobotBerry)\
**Post date:** [July 10, 2024, 12:59am UTC](https://forums.unrealengine.com/t/installed-build-is-too-large/776405/8 "2024-07-10T00:59:42Z")

</div>

The official version remains some pdb files and can package c++ games. So are these pdb files minimal requirements? Why? Are there any relevant documents and instructions?

---

<div class="post-metadata">

**Author:** ![IIIIIShadowI](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@IIIIIShadowI](https://forums.unrealengine.com/u/IIIIIShadowI)\
**Post date:** [September 24, 2024, 4:45pm UTC](https://forums.unrealengine.com/t/installed-build-is-too-large/776405/9 "2024-09-24T16:45:11Z")

</div>

I have a solution that can package Project. The way is to open the unreal editor and search the engine fold to find the .pdb files , then manual delete them . When the system warrning you that the file is being used then just skip all. Finally you will get a small engine and can package!

---

<div class="post-metadata">

**Author:** ![TrueFranco](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/truefranco/32/1095055_2.png) [@TrueFranco](https://forums.unrealengine.com/u/TrueFranco)\
**Post date:** [November 16, 2024, 11:15pm UTC](https://forums.unrealengine.com/t/installed-build-is-too-large/776405/10 "2024-11-16T23:15:36Z")

</div>

The Solution is very simple .  
Open the file Engine/Build/InstalledEngineFilters.xml

Find the line that start with…

```
       <!-- Content -->
	Engine/Content/....psd
	Engine/Content/....pdn
	Engine/Content/....po

```

and add at the end…

> Engine/Binaries/\*/…pdb  
> Engine/Plugins/…pdb

So the whole line will be…

```
     <!-- Content -->
	Engine/Content/....psd
	Engine/Content/....pdn
	Engine/Content/....po
    Engine/Binaries/*/....pdb
    Engine/Plugins/....pdb

```

---

<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:** [December 16, 2024, 11:15pm UTC](https://forums.unrealengine.com/t/installed-build-is-too-large/776405/11 "2024-12-16T23:15:43Z")

</div>

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