PAK app and resource files into Single EXE

Just starting out? Need help? Post your questions and find answers here.
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1285
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

PAK app and resource files into Single EXE

Post by Paul »

If anyone is interested in trying an enhanced version of my PureInstall application, I have a beta available...
http://www.reelmediaproductions.com/pur ... stall2.exe

This version allows you to combine many resources into a single PAK file and then attach this PAK file to your EXE creating a single EXE. Files can be encrypted with a key if you want to prevent them from being tampered with.

You can also keep the PAK file external if you wish.

There are 3 commands you can call from your application to access these PAK'd resource files...
PAK_Extract(file,key)
PAK_ExtractAll(key)
PAK_ExtractMemory(file,key)

There are 3 demo examples showing how to use these commands in your program. Demo1 shows how to extract a single graphic file from the EXE and then loa it as a sprite. Demo2 shows how to extract a single graphic file from an external PAK file and load it as a sprite. Demo3 shows how to extract a single graphic from the EXE and Catch it from memory to use as a sprite without having to extract to your hard drive.


This version will stay seperate from the original PureInstall application and is basically for PureBasic users since you must compile your apps using the various PAK commands to access your data in the PAK files.


(sorry, I cannot provide much support for this version since it was basically just to try some ideas I had in my head :) )
Image Image
TronDoc
Enthusiast
Enthusiast
Posts: 310
Joined: Wed Apr 30, 2003 3:50 am
Location: 3DoorsDown

Post by TronDoc »

I was just about to install the original version
to try it out. Should I go ahead with that and
then try the v2? Do they conflict with each other?
Do they both have unInstalls?
Thanks.
Joe
peace
[pI 166Mhz 32Mb w95]
[pII 350Mhz 256Mb atir3RagePro WinDoze '98 FE & 2k]
[Athlon 1.3Ghz 160Mb XPHome & RedHat9]
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1285
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

Post by Paul »

Just place them in different folders when you install them.
Image Image
TronDoc
Enthusiast
Enthusiast
Posts: 310
Joined: Wed Apr 30, 2003 3:50 am
Location: 3DoorsDown

Post by TronDoc »

cool.
I couldn't wait; so I installed the original version.
Very nice! Easy to use. SMALL!
I may toss the other insallers I have lying around. :wink:
Joe
peace
[pI 166Mhz 32Mb w95]
[pII 350Mhz 256Mb atir3RagePro WinDoze '98 FE & 2k]
[Athlon 1.3Ghz 160Mb XPHome & RedHat9]
Post Reply