Saturday, 17 August 2013

Run exe file in a compressed exe file C

Run exe file in a compressed exe file C

I have 1 file: a.exe. I developed b.cpp file and built to b.exe. Both a
and b are compressed in c.exe. I want if I run c.exe file, b.exe will run
first, and b.exe will call a.exe to run. Can you help me sovle? Thanks.
Here is my code:
STARTUPINFO si;
PROCESS_INFORMATION pi;
ZeroMemory( &si, sizeof(si) );
si.cb = sizeof(si);
ZeroMemory( &pi, sizeof(pi) );
if(!CreateProcess(NULL,"c.exe\\a.exe",0,0,FALSE,0,0,0,&si,&pi))
cout << "Unable to start process\n";
But it doesn't work.

No comments:

Post a Comment