Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ Windows
I have a set of executables that I want to to be installed based on users choices. What I mean is that users should be able to decide if they want to install all the executables or some just as it is done in the installation of Windows Office which consist of MS Word, MS Excel, MS Access etc.
 
I can create a set project that installs all executables and sends them to the specified installation folder, but this is not what I want in this case.
 
please how do I do this.
 
I know that in a set up project one can customize Registry set up, File System Setup, File Type Setup,User Interface Set up,Custom Action set Up, and Lunch Condition Setup.
 
Please where and how do I do this?
Posted 12-Sep-12 2:33am
Edited 12-Sep-12 2:36am
v2
Comments
Jochen Arndt at 12-Sep-12 7:44am
   
I don't know if I understand you right. Did you ask for some kind of installer? If yes, have a look at the free InnoSetup http://www.jrsoftware.org/isinfo.php.
Malli_S at 12-Sep-12 8:06am
   
You are asking too much in a single wish. :)

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

You've to create the 'Custom Actions' for each option you wanna provide. Write the DLL for custom action. Call different function from the dll as a custom action depending on the user choice.
 
Secondly, for that you have to have a dialog providing options to the user. You can choose any template from the existing ones from Microsoft Template Dialogs (assuming that you are using VS for building setup project.)
 
On 'Next' of this dialog, you can install your sub installations (by calling custom actions depending on user choice).
  Permalink  
Comments
Gbenbam at 13-Sep-12 6:20am
   
You mean I can write a DLL for a setup project. Please can you give insight into this custom action DLL. Better stilll can you show me a sample mock dll for a custom action or show me where I can see one?
Gbenbam at 13-Sep-12 6:49am
   
I attempted what you suggest. I really don't know how I will write the DLL for custom action that will control installation. What kind of parameters will I use how do I make reference to the executables in my DLL.
Malli_S at 13-Sep-12 7:13am
   
check this -
http://www.codeproject.com/Articles/335516/Custom-Action-in-Visual-Studio-setup-projects
Gbenbam at 13-Sep-12 8:32am
   
Am I allowed to create dialogue box for Custom action just the way it is done in typical windows application?
Malli_S at 13-Sep-12 8:40am
   
Yes. but popping up multiple dialogs while installation isn't good idea.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 450
1 OriginalGriff 180
2 DamithSL 130
3 Dave Kreskowiak 120
4 Suvendu Shekhar Giri 110
0 OriginalGriff 7,645
1 DamithSL 5,614
2 Sergey Alexandrovich Kryukov 5,344
3 Maciej Los 4,961
4 Kornfeld Eliyahu Peter 4,539


Advertise | Privacy | Mobile
Web01 | 2.8.141223.1 | Last Updated 12 Sep 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100