Self extracting/copying executable

T

Terry Olsen

Ok, now that I've got my disk imager program working, I'd like to attach a
"self-extractor" to the front end of the image file and make it a
self-extracting disk image executable file. The idea being that the user
would double-click on the file and the disk would be created. I would like
to be able to "create" the self-extracting disk image from my program. Any
guidance on how to go about doing this?

thanks.
 
H

Herfried K. Wagner [MVP]

Terry Olsen said:
Ok, now that I've got my disk imager program working, I'd like to attach a
"self-extractor" to the front end of the image file and make it a
self-extracting disk image executable file. The idea being that the user
would double-click on the file and the disk would be created. I would
like to be able to "create" the self-extracting disk image from my
program. Any guidance on how to go about doing this?

You could implement the self-extractor using C/C++ and store the disk image
as Win32 resource in the executable file. Then you could ship an executable
with a dummy resource with your application and use 'UpdateResource' as
shown in <URL:http://dotnet.mvps.org/dotnet/samples/tools/ThemeUtil.zip> to
replace the dummy resource with the disk image.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top