Re: Application that makes EXE

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



If I understand you correctly, you want to be able to create an EXE in run
time, which is basically always the same, but just different "meta"
information attached...

One way to do this, is to create a stand-alone EXE application (statically
link the MFC library if you are using MFC),
And then add it to the main application as a resource, and instead of
compiling a program every time, just save the resource to the hard drive,
and append the "meta information" to the end of the file, and then append
also the length of the meta information.

The "dynamically" created EXE, will read the meta information from the end
of its own file...
The "meta information" shoudl not corrupt the EXE file, because the
execution process will never reach the "meta information".

Hope I helped...
Daniel C. Gindi
danielgindi (at) gmail dot com

"dacky" <harvey.daclan@xxxxxxxxx> wrote in message
news:1186382868.838200.242740@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Is it possible in MFC to create an EXE file programmatically?
I hope you guys can help me on this. My application is gonna upload an
image to a device. When it is uploaded it also contains meta
information appended on the image data because my application has also
settings. I want a way that i can preserve the image data and all its
settings on the absence of the device. I want to generate an
executable file and when i execute the file it can automatically
upload the image and all the necessary information to the device.

With presence of the device:

image -----> application ------> image + meta information ----->
device

Absence of the device:
(generate an exe file if the device is unavailable)
image ------> application -------> image + meta information -----> exe
file

If exe file is executed:
(it will automatically do the same function as with the presence of
the device
exe file -------->device



.



Relevant Pages

  • Re: Application that makes EXE
    ... Create an EXE that does what you want, that EXE will read its own file ... Then you can insert the EXE as a resource file to your application (the same ... also the meta information, and then write the length of the meta information ... and append the "meta information" to the end of the file, ...
    (microsoft.public.vc.mfc)
  • Re: Application that makes EXE
    ... you want to be able to create an EXE ... just save the resource to the hard ... and append the "meta information" to the end of the file, ...
    (microsoft.public.vc.mfc)
  • Re: How do they do that?
    ... For example, I need a script. ... execution engine. ... Now, if you need to create or modify this script during the install process, you would ... >How do some setup merge script files,, with the exe ...
    (microsoft.public.vc.mfc)
  • Re: Cant download exes from my own site
    ... How would a user run an .exe on a website? ... <jcochran at naplesgov dot com (Jeff Cochran)> ... > system down to prevent malicious execution. ... >>> You may want to review your permissions, both in IIS and in the NTFS ...
    (microsoft.public.inetserver.iis.security)
  • Re: Using ZwCreateFile to Launch embedded exe
    ... If you were just blocking execution, it would be acceptable, but you ... Anton Bassov ... then another .exe will execute in it's place. ...
    (microsoft.public.win32.programmer.kernel)