Click here to Skip to main content
16,005,222 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CTreeCtrl Problem Pin
Joel Lucsy30-Jul-02 7:05
Joel Lucsy30-Jul-02 7:05 
QuestionHow to copy text from CView? Pin
rsg_dj30-Jul-02 1:13
rsg_dj30-Jul-02 1:13 
AnswerRe: How to copy text from CView? Pin
PJ Arends30-Jul-02 1:26
professionalPJ Arends30-Jul-02 1:26 
GeneralCEditView cannot break-line? Pin
Anonymous30-Jul-02 3:02
Anonymous30-Jul-02 3:02 
GeneralRe: CEditView cannot break-line? Pin
PJ Arends30-Jul-02 5:41
professionalPJ Arends30-Jul-02 5:41 
GeneralQuestion on InstallWizard Pin
D Satya30-Jul-02 1:04
D Satya30-Jul-02 1:04 
GeneralRe: Question on InstallWizard Pin
includeh1030-Jul-02 6:49
includeh1030-Jul-02 6:49 
GeneralRe: Question on InstallWizard Pin
perlmunger30-Jul-02 9:13
perlmunger30-Jul-02 9:13 
I think you may have a hard time finding anyone to help you re-invent the wheel Wink | ;-) . I have wanted to do things before that are already done well just so I could learn, but in general, people don't seem to have much to offer in that type of situation. I'll do my best to help, but I'm no expert on the subject.

First of all, I've never seen documentaion on this before, so you're on your own to track that down. Here's how I see it, though.

It seems to me that there are different paradigms for creating an installer creation tool. Microsoft, for instance provides a way to create an .msi installer with their installer tool that works with InterDev. Their model creates a virtual workspace in which there is a virtual filesystem, a virtual registry, and virtual installer screens. It is not highly versatile, but the model they use is very intuitive and great for simple installers.

On the other hand, you have a product like InstallShield which is far more robust, but not quite as intuitive. They give you the ability to script more complex things with a VB like programming language. The model they use leaves a lot to be desired in my opinion, but it is an effective tool once you learn it.

There are many others that I won't mention. The point here, I think, is that you want to roll your own. I think you have to just break down the problem in it's component parts and go from there. Answer these questions:

1. How do I find out the system directory programatically?
2. How do I create directories programmatically?
3. How do I register activex controls or dlls programatically?
4. How do I find out which OS my installer is running on programmatically?
5. How do I create shortcuts programmatically?

Once you know the answer to these questions, you can start coding it. However, you will also have to decide how you're going to create your executable that the end-user will install. I think what you get with many installers, is a way to bundle all of your files into a single file that can be executed. Keep in mind, I've never done this so it's probably speculation, but I believe what happens is this:

1. The installer creation tool creates the executable that is going to do the installing.
2. It also generates a layout file that contains directives as to where to place the files as well as registry settings. It becomes a script that your installer reads.
3. It then concatenates each of the additional files (e.g. the application .exe file, any .dll or .ocx files, etc) to the end of the installer .exe file keeping track of the offset of each file while it adds them.

Again, I have never done this, so it may not be the best information, but this is probably how I would approach it given your scenario.

Best of luck to you and Best Regards.

-Matt

------------------------------------------

The 3 great virtues of a programmer:
Laziness, Impatience, and Hubris.
--Larry Wall
GeneralFile Browser Control Pin
RuiSantiago30-Jul-02 0:40
RuiSantiago30-Jul-02 0:40 
GeneralRe: File Browser Control Pin
PJ Arends30-Jul-02 0:59
professionalPJ Arends30-Jul-02 0:59 
GeneralRe: File Browser Control Pin
RuiSantiago30-Jul-02 1:03
RuiSantiago30-Jul-02 1:03 
GeneralRe: File Browser Control Pin
Ruca1-Aug-02 6:04
Ruca1-Aug-02 6:04 
GeneralRe: File Browser Control Pin
PJ Arends1-Aug-02 6:28
professionalPJ Arends1-Aug-02 6:28 
GeneralRe: File Browser Control Pin
Sharad Ganesh30-Jul-02 1:50
Sharad Ganesh30-Jul-02 1:50 
QuestionHow to set the print orientation on printer dialog ? Pin
Yo Yo~~30-Jul-02 0:13
sussYo Yo~~30-Jul-02 0:13 
AnswerRe: How to set the print orientation on printer dialog ? Pin
Sharad Ganesh30-Jul-02 2:01
Sharad Ganesh30-Jul-02 2:01 
GeneralI am Sergeant Destructor! (best practice Q) Pin
Paul Watson29-Jul-02 23:58
sitebuilderPaul Watson29-Jul-02 23:58 
GeneralRe: I am Sergeant Destructor! (best practice Q) Pin
BlackSmith30-Jul-02 3:40
BlackSmith30-Jul-02 3:40 
GeneralRe: I am Sergeant Destructor! (best practice Q) Pin
Andrew Peace30-Jul-02 7:27
Andrew Peace30-Jul-02 7:27 
GeneralRe: I am Sergeant Destructor! (best practice Q) Pin
Paul Watson30-Jul-02 11:35
sitebuilderPaul Watson30-Jul-02 11:35 
GeneralCEdit style Pin
Renjith Ramachandran29-Jul-02 23:46
Renjith Ramachandran29-Jul-02 23:46 
GeneralRe: CEdit style Pin
PJ Arends30-Jul-02 0:28
professionalPJ Arends30-Jul-02 0:28 
GeneralRe: CEdit style Pin
Renjith Ramachandran30-Jul-02 0:49
Renjith Ramachandran30-Jul-02 0:49 
GeneralQuestion about auto_ptr Pin
pankajdaga29-Jul-02 23:33
pankajdaga29-Jul-02 23:33 
GeneralRe: Question about auto_ptr Pin
Daniel Lohmann30-Jul-02 2:25
Daniel Lohmann30-Jul-02 2:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.