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

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?

thanks

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 7601 Multiprocessor Free Service Pack 1
 
 

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


18 Apr 2012   #4

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

Windows 8 Pro x64
 
 

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

 How do i compress files into one .exe file




Thread Tools



Similar help and support threads for2: How do i compress files into one .exe file
Thread Forum
Cannot compress .dmp files Installation & Setup
Outlook file, no data, Windows shows 70MB, compress ineffective Microsoft Office
Compress and Decompress - Add to File and Folder Context Menu Tutorials
Solved Does Windows 7 Backup Compress Media files? Backup and Restore
Disk Cleanup: Why was Compress Old Files removed? Performance & Maintenance
Problems viewing WMV files compress gotomeeting codex Media Center
Compress audio files? 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 12:29 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33