# How to make packaged exe files always run with administrator privileges

**URL:** <https://forums.unrealengine.com/t/how-to-make-packaged-exe-files-always-run-with-administrator-privileges/1430810>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, question\
**Created:** [November 29, 2023, 7:04am UTC](https://forums.unrealengine.com/t/how-to-make-packaged-exe-files-always-run-with-administrator-privileges/1430810 "2023-11-29T07:04:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anonymous\_f748f4a63066c835e1234ace03ed0476](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_f748f4a63066c835e1234ace03ed0476](https://forums.unrealengine.com/u/Anonymous_f748f4a63066c835e1234ace03ed0476)\
**Post date:** [November 29, 2023, 7:04am UTC](https://forums.unrealengine.com/t/how-to-make-packaged-exe-files-always-run-with-administrator-privileges/1430810/1 "2023-11-29T07:04:06Z")

</div>

I am trying to distribute files packaged in UE5 using nsis. Then, the packaging file will be located in Program files, but SaveGame cannot be read or written due to permission issues.

Is there a way to automatically run it with administrator privileges other than having the user run it with administrator privileges?

---

<div class="post-metadata">

**Author:** ![Quetzalcodename](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Quetzalcodename](https://forums.unrealengine.com/u/Quetzalcodename)\
**Post date:** [November 29, 2023, 11:27am UTC](https://forums.unrealengine.com/t/how-to-make-packaged-exe-files-always-run-with-administrator-privileges/1430810/2 "2023-11-29T11:27:34Z")

</div>

Hey @Anonymous_f748f4a63066c835e1234ace03ed0476! Welcome to the Forums!

There does not seem to be anything you can do to bypass and make the application force Admin privileges, which is a security risk. However, check out this post on automatically asking for admin rights:

> [@Packaging a Windows game that requires administrator rights](https://forums.unrealengine.com/t/packaging-a-windows-game-that-requires-administrator-rights/250205/2):
>
> No matter what you do, you can’t circumvent an administrator request with a windows app for security purpose. However, you are getting prompted by a firewall request and not administrator right? In that case, you can do this. It’s called either CreateProcessAsUser or CreateProcessWithLogonW

I hope the above is the solution you need!
