Page 3 of 3
Posted: Thu Aug 21, 2003 2:02 am
by Karbon
Make that 2 future customers

By the way....
Posted: Fri Aug 22, 2003 9:05 pm
by LJ
@Karbon,
Search for Azid's code on packing and unpacking files. There is a recursive folder packer (also in Code Archive 1.3 from Andre Beer). I've modified this code and used it to compact my project. Now I have a main.pack file.
The next thing to do is to write a small program (using Azid's unpacker) that unpacks this code to a folder, then using RunProgram, runs the .exe you want when it's done unpacking.
Next, you append the .pack file to the end of your small program .exe and rename the file extension to have .exe on the end.
That's it, you have yourself a self contained .exe!
I'm still working out a few things, maybe I'll post the source in the Tricks and Tips section when I'm done with it, if there's any interest in this beyond yourself and I, not sure if too many of our fellow coders really care about this.
Lj
P.S. Note that the small .exe that uses RunProgram is running your program from inside this one so you can add things like password protection, or time trial, whatever you want.
Posted: Fri Aug 22, 2003 10:45 pm
by Karbon
I think lots of people would use it, so please do post the source when you get a chance!
Thanks for the tip(s)!
Sure
Posted: Sat Aug 23, 2003 3:31 am
by LJ
Sure. You want to work on this with me? What I need is a small program with some dependent files that it loads like .jpgs. My project is over 150 files and I don't like running tests because it takes too long. I looked through the Examples folder in the Purebasic folder and the only dependencies I really found involved the 3D engine and so I want to stay away from that right also. Do you have a small project or something that you've wrote that has a few jpgs or something it calls we can use to test? Private message me and we can talk more about this. Maybe if you have any program that uses a small number of files, maybe 10 - 30 files or something that you can put up on the web for me to download and then try packing into a single .exe. I'm not sure how busy you are but maybe we can pass the code back and forth privately and then release it in the Tricks and Tips section with full source when we are finished.
Lj