Question

I know how to create and code my own setup program but i need to be redirected at some point. This point i'm sure inlight other people too.

I created a setup project. All is done. Except, installation files inside of EXE.

I know 2 different ways of doing this:

  1. Create resource in EXE and embed RAR/ZIP file.
  2. Put compressed archive with files along with EXE. EXE will read contents and data from this protected and compressed ZIP.

But what i want is number 1. I want to embed it. But;

  1. What is the proper way of embedding this? Are other setup creators do the same thing? Embed resource as compressed single zip in EXE? Or do they another trick?
  2. How do you extract files? On the fly by memory? Like read each file one-by-one. Synced. Or first, copy ZIP to temp and extract from it.
  3. Or even embed all files separately to the resources.

I, even think that if i should create simple MSI without dialogs and embed it and run from background but i want to take all control. I want everything belongs to the original setup that i created.

Note:

I want to make my own dialogs, effects, procedures, functions and steps. Yes, MSI is acceptable but i will stick with its features. Oh, If im able to extend it, why should i spent more time doing this instead of making my own? I am so confused... I am talking about very big setup project here. Not just a standard ugly UI with less features. At least, im gonna try :)

Do not give me any sample/code just show me a correct path, please.

Best options here:

  1. Create ZIP compatible EXE that reads itself as ZIP and read the file list and extract.
  2. Create non-zip compatible EXE that has a hidden body somewhere and read that area (seek) and get the list & extract.
Was it helpful?

Solution 3

Best options here:

  1. Create ZIP compatible EXE that reads itself as ZIP and read the file list and extract.
  2. Create non-zip compatible EXE that has a hidden body somewhere and read that area (seek) and get the list & extract.

OTHER TIPS

The proper way to do it is to use the Windows installer technology, aka MSI. There is a nice, Microsoft blessed toolset called WiX that you can use to greatly simplify the process.

http://wix.codeplex.com/

If you are truly intent on reinventing the wheel, you can look through the source code to WiX on how things are done.

Why write your own? Much easier to use WiX (http://wixtoolset.org/) with optionally a graphical interface like WiXEdit (http://wixedit.sourceforge.net/). Have you thought about additional requirements like uninstall etc...

Good luck!

Would InnoSetup help with your problem? You can personalise the dialogs and extend its functionality quite a lot.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top