Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: How do i compress files into one .exe file

18 Apr 2012   #1
Dominic Warden

Windows 8 Pro x64
How do i compress files into one .exe file

Hi, I have a small pc game and I want to compress all the files that help the game run into one .exe, so I can click on this one .exe and the game will launch. is this possible?


My System SpecsSystem Spec
18 Apr 2012   #2

Windows 8.1 ; Windows 7 x86 (Dec2008-Jan2013)

Yes, you can do it with WinRAR. Even in trial mode.

You can create a self extracting archive, which can upon starting silently extract your game in temporary folder and start it from there. If the game is relatively small and computer is modern, final user should not be able to notice the delay.

Download and install Graphic version of WinRAR.

Then browse to a folder with your game. Hightlight all files you need, right click - WinRAR - Add to archive... (first option). Then you will see window Archive name and parameters. Click option - Create SFX archive.
Then go to Advanced tab, click SFX options button. In SFX options window in General tab, type %temp% in Path to extract field. Then click Update tab - Overwrite All files. Then in Mode tab click - Hide all. And in Text and icon tab you can set and icon for future exe file (last line called Load SFX ICON from the file). Then in Setup tab, in field Run after extraction type your original main exe file of that game. It will be started after full extraction.

After that click OK and let WinRAR create you sfx file.

Of course, if your game stores settings and saves inside that folder, after you change them, they won't stick, because SFX arhive would be already made and you would have to edit SFX archive itself. But if you game keeps progress/settings in other folders or registry that approach would be fine.

If you want I can create such sfx file for you. Just post/PM link to the game.
My System SpecsSystem Spec
18 Apr 2012   #3

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bit Service Pack 1

You can also create an sfx file with the free 7-Zip
My System SpecsSystem Spec

18 Apr 2012   #4
Dominic Warden

Windows 8 Pro x64

No, I don't mean an installing file. I mean like a portable app, so I just click on the .exe and the game launches.
My System SpecsSystem Spec
18 Apr 2012   #5

Windows 8.1 ; Windows 7 x86 (Dec2008-Jan2013)

Well, that is not really installing file. That is the way many portable applications work (extract temp files). Plus, we can create you a cmd script that will delete those temporary files, once you done playing that game.

And let me have a look at the game please.
My System SpecsSystem Spec
19 Apr 2012   #6
Dominic Warden

Windows 8 Pro x64

Oh, sorry I misread your reply. WinRAR worked great thanks.
My System SpecsSystem Spec

 How do i compress files into one .exe file

Thread Tools

Similar help and support threads
Thread Forum
Compress and Decompress - Add to File and Folder Context Menu
How to Add NTFS "Compress" and "Decompress" to File and Folder Context Menu This will add File Compression Options and Folder Compression Options to the context menu of files and folders for all users to be able to compress or decompress one or more selected folder(s) and/or file(s) with NTFS...
Can I compress video files
Is there a program to compress large video files like movies? Thank you
Music, Pictures & Video
How to compress a DVD movie into a smaller file
I own a number of movies which are burned to my external hard drive. They are about 4.2 GB. I would like to shrink these down so I can put them on an Ipad and play them with a VLC player app. Any idea how I would do this? Thank you. Smorton
Music, Pictures & Video
Cannot compress .dmp files
Hello, I am getting fairly regular BSODs. But the problem is that I cannot compress .dmp (minidump files). I have tried a number of things. (1. Create dump folder on desktop, copy/paste .dmp to this folder, send to compressed folder does not work) (2. Download "Takeownership" and install,...
Installation & Setup
Compress audio files?
My car radio plays only cd audio format NO mp3 or anything else. So i can only create a audio cd with max of 10-15 songs Is there any <<trick>> or program to add more audio files in a single cd? Is there any program to compress my mp3s without loosing quality? Is it possible to play a DVD in my...
Sound & Audio

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 13:50.
Twitter Facebook Google+