How do i package my project so i can distribute it to friends

I made a school project and it works great. However whenever I send my friends the application file, and they try to run it they get an error saying:

Error

Couldn’t start:
“C:\Users\friend’sname\Desktop\New folder\Enging\Binaries\Win64\UE4Game.exe”
…....\MyProject4\MyProject4.uproject
CreateProcess() returned 2.

Any ideas what could cause this issue? I’ve checked the forums over and Avast was mentioned as causing some issues with UE4 but he nor I have that. Does he actually need something more than just the Project application I grabbed out of the WindowsNoEditor folder it made? Any help would be appreciated. New to UE4.

Perhaps you packaged it for Win32 and your friend is on Win64? Or vice-versa.

I’ll test this now by packaging it as both and sending each to him. Also should I send him only the 1 file or the whole “WindowsNoEditor” folder and all of its contents? Also if I want to send both of them to him. Can I include a 32 and a 64 bit file inside the same “WindowsNoEditor” folder or should I send him two folders?

The entire WindowsNoEditor folder! I would rename WindowsNoEditor to something like MyProject and zip it up, if I were you.

I don’t know if you can include 32-bit and 64-bit in one folder structure. I have never tried.

Here is a picture of what my current folder my packaged project is in now. Surprisingly I am able to include both the 32-bit and the 64-bit in the same folder. I tested this by sending it over dropbox to another PC and the process worked, the other computer was able to run the UE4 game.Besides the experimental method of including both 32,64-bit files in the same folder, is this how a finished UE4 project should be given out and ran through a client/end user?

Also another friend I sent my file to got a separate error.

Error
The following component(s) are required to run this program:
Microsoft Visual C++ 2015 Runtime
DirectX Runtime

I thought that by me checking the box “Include Prerequisites” in the Project - Packaging section was supposed to include these? Should I just have my friend go out and individually get the two components or am I doing something wrong through packaging?

Hmm. What version of Windows is your friend on? And has he run ALL his Windows Updates, including the optional ones?

Well that did it. Thanks for all of your help!

Awesome! You’ll have to accept the answer again. Epic set the forum so that a comment by the question author clears the answer acceptance. Weird setting, if you ask me, because most people accept the answer and then comment about it.