# How to add a file to copy in the Packaging Process

**URL:** <https://forums.unrealengine.com/t/how-to-add-a-file-to-copy-in-the-packaging-process/290122>\
**Category:** Plugins\
**Tags:** unreal-engine, Shipping, shipping-build, Packaging, Plugins, question\
**Created:** [August 5, 2014, 12:08am UTC](https://forums.unrealengine.com/t/how-to-add-a-file-to-copy-in-the-packaging-process/290122 "2014-08-05T00:08:49Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![getnamo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/getnamo/32/1194624_2.png) [@getnamo](https://forums.unrealengine.com/u/getnamo)\
**Post date:** [August 5, 2014, 12:08am UTC](https://forums.unrealengine.com/t/how-to-add-a-file-to-copy-in-the-packaging-process/290122/1 "2014-08-05T00:08:49Z")

</div>

Wondering if there is a way to add a specific file (such as a .dll in a plugin) to the packaging process and have it copied when a user packages their project.

The Razer Hydra Plugin requires the sixense dll to be available, right now a user has to manually add the dependent dll file from the plugin after packaging. Is there a way to streamline this so that the file gets copied automatically to the right sub-directory?

---

<div class="post-metadata">

**Author:** ![getnamo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/getnamo/32/1194624_2.png) [@getnamo](https://forums.unrealengine.com/u/getnamo)\
**Post date:** [October 29, 2014, 1:13pm UTC](https://forums.unrealengine.com/t/how-to-add-a-file-to-copy-in-the-packaging-process/290122/2 "2014-10-29T13:13:28Z")

</div>

still need an answer on this, anyone who can help?

---

<div class="post-metadata">

**Author:** ![hurricane86](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hurricane86](https://forums.unrealengine.com/u/hurricane86)\
**Post date:** [December 3, 2014, 2:33pm UTC](https://forums.unrealengine.com/t/how-to-add-a-file-to-copy-in-the-packaging-process/290122/3 "2014-12-03T14:33:49Z")

</div>

Bump!

I need this too.

I know that it is possible to modify the function **GetFilesToDeployOrStage** in [YOUR UE4 DIR]\Engine\Source\Programs\AutomationTool\Win\WinPlatform.Automation.cs

but its not acceptable to change engine files…

---

<div class="post-metadata">

**Author:** ![Kafumanto](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kafumanto/32/1194651_2.png) [@Kafumanto](https://forums.unrealengine.com/u/Kafumanto)\
**Post date:** [December 4, 2014, 1:24pm UTC](https://forums.unrealengine.com/t/how-to-add-a-file-to-copy-in-the-packaging-process/290122/4 "2014-12-04T13:24:16Z")

</div>

Theres is a PR on github ([https://github.com/EpicGames/UnrealEngine/pull/335](https://github.com/EpicGames/UnrealEngine/pull/335)) that could allow this sort of custom tasks.

---

<div class="post-metadata">

**Author:** ![wittlief\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@wittlief\_1](https://forums.unrealengine.com/u/wittlief_1)\
**Post date:** [April 16, 2015, 8:22pm UTC](https://forums.unrealengine.com/t/how-to-add-a-file-to-copy-in-the-packaging-process/290122/5 "2015-04-16T20:22:11Z")

</div>

Hi all,

Unfortunately that PR was declined due to changes to UBT. It does appear to be something staff is tracking, however, so be on the look out for it in the future.

Thanks!

---

<div class="post-metadata">

**Author:** ![getnamo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/getnamo/32/1194624_2.png) [@getnamo](https://forums.unrealengine.com/u/getnamo)\
**Post date:** [April 16, 2015, 11:05pm UTC](https://forums.unrealengine.com/t/how-to-add-a-file-to-copy-in-the-packaging-process/290122/6 "2015-04-16T23:05:12Z")

</div>

are UBT changes complex or can the PR be modified to work with the new system fairly easily?

---

<div class="post-metadata">

**Author:** ![wittlief\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@wittlief\_1](https://forums.unrealengine.com/u/wittlief_1)\
**Post date:** [April 17, 2015, 1:37pm UTC](https://forums.unrealengine.com/t/how-to-add-a-file-to-copy-in-the-packaging-process/290122/7 "2015-04-17T13:37:13Z")

</div>

That would be something to ask in the Github thread itself, the devs who answered will be able to tell you if there is more work that can be done to adapt the pull to the new changes, or if they themselves are working on a similar functionality. Thanks!

---

<div class="post-metadata">

**Author:** ![Ben\_Marsh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ben\_Marsh](https://forums.unrealengine.com/u/Ben_Marsh)\
**Post date:** [April 17, 2015, 5:26pm UTC](https://forums.unrealengine.com/t/how-to-add-a-file-to-copy-in-the-packaging-process/290122/8 "2015-04-17T17:26:34Z")

</div>

We’re still working out the kinks in it (and adding support for more platforms), but I recently added the ability to pass a list of files to stage from the module build rules through to UAT. You can look in PhysX.build.cs to see how it stages the PhysX DLLs, for example.

---

<div class="post-metadata">

**Author:** ![Shen\_Yuju](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shen\_Yuju](https://forums.unrealengine.com/u/Shen_Yuju)\
**Post date:** [March 8, 2024, 9:01am UTC](https://forums.unrealengine.com/t/how-to-add-a-file-to-copy-in-the-packaging-process/290122/9 "2024-03-08T09:01:01Z")

</div>

Did any further solution come up?
