Jump to content

Package your game into a single exe file


MiniGrief

Recommended Posts

This is something I'm surprised hasn't been posted here before, or at least some variant of this. Either way, this is a way to package all your game files into a single exe file. This can be used as a method to hide your files, but it's just that. Hiding. This is NOT encryption and should not be used with the interpretation that it is. You can right click the packaged exe and open it in Winrar to see all your files. But it stops the average person from fiddling with the files if you don't want them to.

 

Note: Some anti-viruses detect these packaged files as suspicious and mark them as viruses, but these are typically brands that few people commonly use. VirusTotal Scan

 

Required software:

Winrar

Your game

 

Step 1:

Spoiler

Call your game client exe and pdb something like your games name or just client. Highlight all the files, then right click and select "Add to archive..."

 

Step 2:

Spoiler

All of the Winrar settings will be just pictures, unless they require your own input, which I will say in text. Highlighted areas mean that is something you should change.

 

1. Leave the name of the archive to after the other 3 settings are changed.

711e0d174b502e3d584258c71124a485.png

 

2.

a8178350e45d83468ddb4eae34a65732.png

 

3. Use the name of your games client exe here.

31a81fc0fa5aedb4666d06da469cbaec.png

 

4. 

7ce6b050a79b9682ea34023199976d53.png

 

5.

407e950fe6af20eed9c091ddf4f9ebeb.png

 

6. This is only required if you want to use your own icon for the exe file.

95751706e18073b8065b7c81c963be47.png

 

7. Once these setting are done, you can just ok everything and it should package your game up into a single exe file.

 

Link to comment
Share on other sites

I mean it is possible with a auto updater,

but that autoupdater will have to package the stuff after its done downloading updates.

or download a new packaged EXE in its entirety every time.

 

I don't know how hard it is to write in code.

 

 

But hey, I learn't something new today.

 

Link to comment
Share on other sites

2 hours ago, PixelFox said:

I mean it is possible with a auto updater,

but that autoupdater will have to package the stuff after its done downloading updates.

or download a new packaged EXE in its entirety every time.

 

I don't know how hard it is to write in code.

 

 

But hey, I learn't something new today.

 

It really doesn't work with the auto updater (since that needs to be the thing run first, not an extractor) and redownloading the entire package is extremely inefficient.

tl;dr: Self-extracting archives are probably not the way to go. There's a reason games have installers.

 

Link to comment
Share on other sites

This is meant to be more of a method of hiding your files so that people can't mess with them as easily. But anyway, this does work with jc's launcher/updater.

 

Obviously, this is not a very good permanent solution, but it should work as a temporary security for those who don't want people fiddling with files.

 

5 hours ago, PixelFox said:

or download a new packaged EXE in its entirety every time.

Yes, this is probably the biggest drawback of it. I'd only recommend using it on a game you are mostly finished with and will rarely update anymore. Or if you would still update it, the updates would have to be big changes and not just update for every little thing.

 

Edit:

Forgot to mention that the launcher I was using was downloading the packaged exe and was not packaged into a single exe by itself. I don't know how it would work if you tried to use a packaged launcher, but I'd assume badly.

Edited by MiniGrief
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...