c++ - Make Custom Self-Extractor -


i'll explain want, , i'll explain how i'm trying achieve it. want know if i'm gonig right way, or if there easier.

what want: self-extracting executable happens have additional entry point (which makes executable suitably usable if dll). additional entry point must not part of compressed payload. entry point, strangely enough, not execute lzma functions (please don't ask why...long story). fyi: making executable dll entry point trivial matter - know how that.

how i'm pursuing this: i've downloaded lzma sdk , build own c++ self-extractor. there appears no lzma api documentation. evidentally, if want learn how use lzma must read either .\c\util\7z\7zmain.c or .\cpp\7zip\bundles\lzmacon\lzmaalone.cpp. don't know if studying fastest learning tool.

once create self-extraction code, add dll entry point need , build. resulting exe self-extractor concatenate zip file (a dos command should suffice concatenate 2 files). should achieve goal.

thoughts?

p.s. incidentally, i've partly done years before. had made self-extractor (in c# think) executable, concatenated zip file (via dos command). voila, self-extracting zip executable emerged. makes current effort different i'm using c++, , need additional / arbitrary dll entry point.

why jam 2 kinds of functionality together? why don't make dll , executable uses it.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -