Page 1 of 1

attaching a pack to exe

Posted: Tue Mar 23, 2004 4:26 am
by Dreglor
i was wondering if it is possible to attach a pack file to the end of a exe (pb of course) like a self extracting exe like thing with out it interfering with exe

see i was pondering a way to quickly extract things from a execute with out people haveing some extractor or pb to do so i though up a statci exe that would copy the ending chunk of data from the exe which were some program attched the pack to, into a sepreat file and then extract the files from it

but i worryed that it will be executed like normal machien code resulting in some werid error(s)
so is there a way to seperate the 2 files with out doing so

Posted: Tue Mar 23, 2004 2:01 pm
by ebs
Dreglor,

Could you attach it to the end of the program using "IncludeBinary" and have your program extract it to a separate file?

Look at my message in this thread to see a small code sample:
viewtopic.php?t=9880

Eric

Posted: Tue Mar 23, 2004 6:28 pm
by Dreglor
yes, but i want it so i don't need the complier to attach things like how winzip attaches the zip to a self extractor

Posted: Tue Mar 23, 2004 6:31 pm
by Pupil
There should be no problem appending data to the end of an exe file, this is true for WinOS only, for Linux i don't know...

Posted: Tue Mar 23, 2004 6:38 pm
by Dreglor
hmm i guess this is were experamenting comes in

Posted: Tue Mar 23, 2004 7:58 pm
by Kris_a
If the data is after the 'exit process' part of the code in your problem, it'll never get reached, so it shouldn't cause any problems (even on non-windows systems, although I don't know for sure)

Posted: Wed Mar 24, 2004 10:46 pm
by Dreglor
now if i think about it...
what about reading it self? i thinking it will have troubles becasue it already opened