Single EXE py2exe
Posted on August 7th, 2010 in Uncategorized | No Comments »
Hey guys!
If any of you have been aching for a way to create a single executable in py2exe; this is your solution! Warning: This does use a cracked application for evaluation purposes; please purchase the full one once you have confirmed this works!
The first thing to do is download WinRAR, which can be found Download HERE No viruses, go check for yourself. Pre-cracked, no need to run any keygens. Unzip, then run the installer.
2: Compile your program using py2exe, just as usual.(duh)
3: After compiling, it should result in two folders; one called build and another called dist. Open the folder called dist.

4: In the folder dist, highlight YourProgram.exe, press F2(rename), then copy it’s full filename.

5:Highlight all of the files in the dist folder, then move your cursor close to a file icon, and right click, and select add to archive.

6: Give your final EXE a name (MyProgram.exe), then select the checkbox SFX archive, and under the menu compression, select Best

7: Click on the tab ‘Advanced’, and then click on SFX options.

8: Paste the name of your main EXE that you copied in Step 4, in the textfield Run After Extraction.
9: Click on the tab Modes, then check off Unpack to temporary folder and select Hide All under Silent mode.
10: Click on the tab Update and select Overwrite all files under Overwrite mode.
11: Click OK, then OK in the next window, then WinRAR should begin compiling your EXE.

12: Now you are done, now you have your EXE!

Hope you like my guide, please leave any questions/comments in the comment box!






