Thread overview
.Exe file how to embed in resource after start program
Jul 01, 2013
Ali GOREN
Jul 01, 2013
Ali Çehreli
Jul 01, 2013
Ali GOREN
Jul 01, 2013
Martin Drašar
July 01, 2013
Hi.

Sorry for my bad english.

I want to embed .exe file in resources my program.

Etc.

Y.JAR embed => DProgram.Exe

after

if start

DProgram.exe

Y.Jar program start. :)

I'm very, very sorry. Because very bad my english.

Thanks :)
July 01, 2013
On 07/01/2013 12:28 PM, Ali GOREN wrote:

> Sorry for my bad english.

Please don't say that. :) Thank you very much for writing in English so that we can understand you.

I don't have an answer to your question though... :-/

Ali

July 01, 2013
On Monday, 1 July 2013 at 20:11:40 UTC, Ali Çehreli wrote:
> On 07/01/2013 12:28 PM, Ali GOREN wrote:
>
> > Sorry for my bad english.
>
> Please don't say that. :) Thank you very much for writing in English so that we can understand you.
>
> I don't have an answer to your question though... :-/
>
> Ali

Hmm thank you very much :) i want to embed because high security program :(
July 01, 2013
Dne 1.7.2013 23:03, Ali GOREN napsal(a):
> On Monday, 1 July 2013 at 20:11:40 UTC, Ali Çehreli wrote:
>> On 07/01/2013 12:28 PM, Ali GOREN wrote:
>>
>> > Sorry for my bad english.
>>
>> Please don't say that. :) Thank you very much for writing in English
>> so that we can understand you.
>>
>> I don't have an answer to your question though... :-/
>>
>> Ali
>
> Hmm thank you very much :) i want to embed because high security program :(

Hi,

one way, not necessarily the optimal one, that works in Windows:

- save the exe as a string in a file, like: enum prog = '...'; and compile it to your wrapping program
- 1) run the wrapping program, write the prog to disk and call CreateProcessEx (it requires file in the filesystem)
- 2) run the wrapping program, memory map the prog and then try to follow this guide at StackOverflow (the one with 21 upvotes)

http://stackoverflow.com/questions/305203/createprocess-from-memory-buffer

Both approaches have their pros and cons and you should tread carefully, especially if you say that this should be about high security...

Regards,
Martin