# Automatically copy external dll into packaged Binaries?

**URL:** <https://forums.unrealengine.com/t/automatically-copy-external-dll-into-packaged-binaries/1206666>\
**Category:** Getting Started & Setup\
**Tags:** third-party-librarie, unreal-engine, packaging-projects, question\
**Created:** [June 21, 2023, 8:34pm UTC](https://forums.unrealengine.com/t/automatically-copy-external-dll-into-packaged-binaries/1206666 "2023-06-21T20:34:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![BDC\_Patrick](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bdc_patrick/32/1104221_2.png) [@BDC\_Patrick](https://forums.unrealengine.com/u/BDC_Patrick)\
**Post date:** [June 21, 2023, 8:34pm UTC](https://forums.unrealengine.com/t/automatically-copy-external-dll-into-packaged-binaries/1206666/1 "2023-06-21T20:34:53Z")

</div>

Hi there…

My Project uses some third-party libs… like the discord sdk…

Currently, i need to copy that SDK dll into the packaged Game’s Binaries Folder to make the discord rich presence run properly in the shipping build.

Since many of the tuts out there are more confusing and on a a level of understanding the building process, that i’m not into… i ask here perhaps for a short answer.

My DLL is sitting inside the Projects root Directory (where the uproj file is sitting).  
And i want it to be automatically copied over to the packaged Game’s Binaries Folder, whenever i package the Game.

What do i need to do, to achieve that? 🙂

---

<div class="post-metadata">

**Author:** ![BDC\_Patrick](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bdc_patrick/32/1104221_2.png) [@BDC\_Patrick](https://forums.unrealengine.com/u/BDC_Patrick)\
**Post date:** [June 23, 2023, 11:17am UTC](https://forums.unrealengine.com/t/automatically-copy-external-dll-into-packaged-binaries/1206666/2 "2023-06-23T11:17:29Z")

</div>

_silent bump_

---

<div class="post-metadata">

**Author:** ![BDC\_Patrick](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bdc_patrick/32/1104221_2.png) [@BDC\_Patrick](https://forums.unrealengine.com/u/BDC_Patrick)\
**Post date:** [June 29, 2023, 7:57am UTC](https://forums.unrealengine.com/t/automatically-copy-external-dll-into-packaged-binaries/1206666/3 "2023-06-29T07:57:00Z")

</div>

sweet little _push_

---

<div class="post-metadata">

**Author:** ![BDC\_Patrick](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bdc_patrick/32/1104221_2.png) [@BDC\_Patrick](https://forums.unrealengine.com/u/BDC_Patrick)\
**Post date:** [July 11, 2023, 4:09pm UTC](https://forums.unrealengine.com/t/automatically-copy-external-dll-into-packaged-binaries/1206666/4 "2023-07-11T16:09:01Z")

</div>

pushy pushy…

---

<div class="post-metadata">

**Author:** ![BDC\_Patrick](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bdc_patrick/32/1104221_2.png) [@BDC\_Patrick](https://forums.unrealengine.com/u/BDC_Patrick)\
**Post date:** [July 12, 2023, 12:20pm UTC](https://forums.unrealengine.com/t/automatically-copy-external-dll-into-packaged-binaries/1206666/5 "2023-07-12T12:20:09Z")

</div>

Managed to fix this with some help.

for any interest:

```auto
if (Target.Platform == UnrealTargetPlatform.Win64)
    { RuntimeDependencies.Add("TargetDirectory/Filename.dll", "OriginDirectory/Filename.dll");
    }

```

---

<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:** [August 11, 2023, 12:20pm UTC](https://forums.unrealengine.com/t/automatically-copy-external-dll-into-packaged-binaries/1206666/6 "2023-08-11T12:20:51Z")

</div>

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