# UE5 - PersistentDownloadDir Location

**URL:** <https://forums.unrealengine.com/t/ue5-persistentdownloaddir-location/601901>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, UE5-0, packaging-projects, question\
**Created:** [July 10, 2022, 11:11pm UTC](https://forums.unrealengine.com/t/ue5-persistentdownloaddir-location/601901 "2022-07-10T23:11:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheMainStark](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/themainstark/32/1120943_2.png) [@TheMainStark](https://forums.unrealengine.com/u/TheMainStark)\
**Post date:** [July 10, 2022, 11:11pm UTC](https://forums.unrealengine.com/t/ue5-persistentdownloaddir-location/601901/1 "2022-07-10T23:11:29Z")

</div>

With a UE5 shipping build the Mobile Patching Utility looks for files in a %appdata%/Local/GameName/ folder. Previously (and in a non-shipping build) it would just be stored in the game folder GameFolder/GameName/Saved/PersistentDownloadDir.

Is there way to change the PersistentDownloadDir location? The game folder works better for distribution when providing an alternate download link with all patch files included.

With the %appdata% folder it would require additional steps after downloading to copy/paste and just becomes an instructional mess.

---

<div class="post-metadata">

**Author:** ![TheMainStark](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/themainstark/32/1120943_2.png) [@TheMainStark](https://forums.unrealengine.com/u/TheMainStark)\
**Post date:** [July 11, 2022, 2:46am UTC](https://forums.unrealengine.com/t/ue5-persistentdownloaddir-location/601901/2 "2022-07-11T02:46:42Z")

</div>

I think this might be my problem and am working on this fix:

> [@How to change the Saved folder location?](https://forums.unrealengine.com/t/how-to-change-the-saved-folder-location/293846/6):
>
> Having the same issue with Windows Shipping Builds, but figured it out. I followed it back to the function where the UserSettingsDir is set for shipping games. On Windows, it calls UserSettingsDir() in WindowsPlatformProcess.cpp. If you change the following at around line 785: HRESULT Ret = SHGetFolderPath(NULL, CSIDL\_LOCAL\_APPDATA, NULL, SHGFP\_TYPE\_CURRENT, UserPath); to: HRESULT Ret = SHGetFolderPath(NULL, CSIDL\_MYDOCUMENTS, NULL, SHGFP\_TYPE\_CURRENT, UserPath); and add a ‘My Games’ fold…
