Click here to Skip to main content
11,431,829 members (57,290 online)
Click here to Skip to main content

Complete VS2008/VS2010-Setup-Project with Add-In for Feature/SelectionTree

, 28 Mar 2011 CPOL
Rate this:
Please Sign up or sign in to vote.
The Add-In complements VS 2008 around a new dialog Selection Feature to manage features.

Introduction

The Add-In complements the VS 2008 around a new dialog Selection Feature for the management of Feature. The add-in checks the installer project whether a Selection Feature dialog exists. If the dialog exists, it changes the MSI-file as well as it is put in the Dialog-Property. The result becomes the Output-window. The new dialog SelectionFeature(VsdSelectionTreeDlg.wid) uses the functionality of the Installer-Control SelectionTree. The dialog becomes sketched for neutral, US-English and German, one more copy must be adapted with Orca for other languages. In addition, the language must be adapted in the table ModuleSignature in the field Language (e.g., 1031 for German and in 1033 for English). Dialogs are in the directory C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\Deployment\VsdDialogs\0, ..1031, ..1033....

Background

The functionality to select Components in the set-up project is offered only by professional Installer editors, not by VS 2008.

Using the Dialog

Install the SelectionTree with the MSI-file. It installs three files VsdSelectionTreDlg_0.wid, VsdSelectionTreDlg_1031.wid, and VsdSelectionTreDlg_1033.wid, as VsdSelectionTreDlg.wid, in the above mentioned directories. It also installs the AddIn.

In the set-up project, select the new dialog Selection Feature and then determine the parameters functionality.

The SelectionTree

Add single files to the project or summarise before several files into Mergemodule and insert this. All together, 9 features can be inserted. Then insert the name of the file in the SelectionTree in field Files if it is a single file.

Mergemodule

Or insert the Guid-part of the ModuleSignature from the Mergemodule if you input Mergemodule. Give the number the used feature and suitable parameter. Fill the Title, Description and Directory. See also....

Level

Select the Level.

Parent

Select the Parent.

Level

Select the Display.

Points of Interest

For output, the Message in the Output-Window is used PropertyChangedEventArgs:

#region PropertyChanged
    // INotifyPropertyChanged - Event treatment
    public event PropertyChangedEventHandler PropertyChanged;
    
    private void NotyPropertyChanged(string info)
    {
        if (PropertyChanged != null)
        {
            PropertyChanged(this, new PropertyChangedEventArgs(info));
        }
    }
#endregion

#region Info

    // Help variables for announcements
    OutputWindowPane owP = null;
    private string ErrorText = "{0} **** {1}";
    private ResourceManager rm = new ResourceManager
	("InsertFeature.InsertFeature", Assembly.GetExecutingAssembly());
    
    /// 
    /// Gives by every change with Debug. Print the contents from
    /// 
    private string _LastErrorText = null;
    public string LastErrorText
    {
       get { return _LastErrorText;}
       set 
       { 
           _LastErrorText = value;
           owP.OutputString(_LastErrorText + "\n");
           owP.ForceItemsToTaskList();
        }
     }
#endregion

LastErrorText = string.Format
		(ErrorText, "ERROR", rm.GetString("LastErrorText001", culture));

What is New?

Now the surface is English and German. It can be translated by own String resources to your culture. Please send me your translations from InsertFeature.xx-XX.resx and VsdSelectionTreeDlg.wid.

History

  • 08/20/2009 - First initial release
  • 08/25/2009 - New dialog for neutral (English) and in US-English added
  • 08/26/2009 - Error by Install SelectionTree removed
  • 03/05/2010 - Surface and messages English and to furnish with the option other languages. Please insert new InsertFeature.es-ES.resx or InsertFeature.fr-FR.resx, etc.
  • 10/28/2010 – New setup for VS2008 and VS2010
  • 11/12/2010 - Added source for VS2010
  • 03/28/2011 - Updated download setup VS2010

License

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

Share

About the Author

Klaus Ruttkowski
Software Developer (Senior)
Germany Germany
No Biography provided

Comments and Discussions

 
QuestionSource will not compile - files missing Pin
Randy Kreisel30-Aug-12 13:42
memberRandy Kreisel30-Aug-12 13:42 
QuestionFeature list is empty and some other problems Pin
Afshin Jafari29-Apr-12 14:04
memberAfshin Jafari29-Apr-12 14:04 
AnswerRe: Feature list is empty and some other problems Pin
Klaus Ruttkowski29-Apr-12 23:07
memberKlaus Ruttkowski29-Apr-12 23:07 
GeneralRe: Feature list is empty and some other problems [modified] Pin
Afshin Jafari30-Apr-12 12:25
memberAfshin Jafari30-Apr-12 12:25 
GeneralRe: Feature list is empty and some other problems Pin
Afshin Jafari30-Apr-12 20:56
memberAfshin Jafari30-Apr-12 20:56 
GeneralRe: Feature list is empty and some other problems Pin
Klaus Ruttkowski2-May-12 6:38
memberKlaus Ruttkowski2-May-12 6:38 
GeneralRe: Feature list is empty and some other problems Pin
Afshin Jafari3-May-12 12:20
memberAfshin Jafari3-May-12 12:20 
GeneralRe: Feature list is empty and some other problems Pin
Klaus Ruttkowski6-May-12 22:38
memberKlaus Ruttkowski6-May-12 22:38 
QuestionWebsetupProject [modified] Pin
Navin Kumar.K.Subramanian21-Feb-12 20:53
groupNavin Kumar.K.Subramanian21-Feb-12 20:53 
AnswerRe: WebsetupProject Pin
Klaus Ruttkowski21-Feb-12 22:50
memberKlaus Ruttkowski21-Feb-12 22:50 
GeneralIt does not work in VS2010 Pin
Win32nipuh13-May-11 2:08
memberWin32nipuh13-May-11 2:08 
QuestionCompatibility with VS 2010 Pin
Member 423564728-Mar-11 0:59
memberMember 423564728-Mar-11 0:59 
AnswerRe: Compatibility with VS 2010 Pin
Klaus Ruttkowski28-Mar-11 5:00
memberKlaus Ruttkowski28-Mar-11 5:00 
GeneralRe: Compatibility with VS 2010 Pin
Member 423564728-Mar-11 6:11
memberMember 423564728-Mar-11 6:11 
GeneralAdd-in failed to load Pin
mjmeans20-Oct-10 8:26
membermjmeans20-Oct-10 8:26 
GeneralRe: Add-in failed to load Pin
Klaus Ruttkowski20-Oct-10 22:40
memberKlaus Ruttkowski20-Oct-10 22:40 
GeneralRe: Add-in failed to load Pin
mjmeans21-Oct-10 6:55
membermjmeans21-Oct-10 6:55 
GeneralRe: Add-in failed to load [modified] Pin
Klaus Ruttkowski28-Oct-10 9:34
memberKlaus Ruttkowski28-Oct-10 9:34 
GeneralRe: Add-in failed to load [modified] Pin
mjmeans8-Nov-10 12:57
membermjmeans8-Nov-10 12:57 
GeneralRe: Add-in failed to load Pin
Klaus Ruttkowski9-Nov-10 2:43
memberKlaus Ruttkowski9-Nov-10 2:43 
GeneralRe: Add-in failed to load Pin
mjmeans9-Nov-10 6:15
membermjmeans9-Nov-10 6:15 
GeneralRe: Add-in failed to load Pin
mjmeans9-Nov-10 6:21
membermjmeans9-Nov-10 6:21 
GeneralRe: Add-in failed to load Pin
Klaus Ruttkowski14-Nov-10 0:13
memberKlaus Ruttkowski14-Nov-10 0:13 
GeneralVS 2010 compatibility. Pin
klim_c27-Aug-10 11:40
memberklim_c27-Aug-10 11:40 
AnswerRe: VS 2010 compatibility. Pin
Klaus Ruttkowski29-Aug-10 22:42
memberKlaus Ruttkowski29-Aug-10 22:42 
GeneralRe: VS 2010 compatibility. Pin
klim_c30-Aug-10 17:36
memberklim_c30-Aug-10 17:36 
AnswerRe: VS 2010 compatibility. Pin
Klaus Ruttkowski30-Aug-10 22:28
memberKlaus Ruttkowski30-Aug-10 22:28 
GeneralRe: VS 2010 compatibility. Pin
klim_c31-Aug-10 9:27
memberklim_c31-Aug-10 9:27 
GeneralRe: VS 2010 compatibility. Pin
Klaus Ruttkowski31-Aug-10 22:36
memberKlaus Ruttkowski31-Aug-10 22:36 
GeneralMy vote of 1 Pin
koby_m27-Feb-10 0:50
memberkoby_m27-Feb-10 0:50 
AnswerRe: My vote of 1 Pin
Klaus Ruttkowski6-Mar-10 4:33
memberKlaus Ruttkowski6-Mar-10 4:33 
QuestionBuild the TestInstallFeature failed Pin
doan038323-Nov-09 3:08
memberdoan038323-Nov-09 3:08 
AnswerRe: Build the TestInstallFeature failed Pin
Klaus Ruttkowski23-Nov-09 22:58
memberKlaus Ruttkowski23-Nov-09 22:58 
GeneralEmpty tree Pin
a_l_p23-Sep-09 0:04
membera_l_p23-Sep-09 0:04 
GeneralRe: Empty tree Pin
a_l_p23-Sep-09 22:44
membera_l_p23-Sep-09 22:44 
GeneralVery Nice, But ... Pin
pita200921-Aug-09 19:37
memberpita200921-Aug-09 19:37 
GeneralRe: Very Nice, But ... Pin
Klaus Ruttkowski22-Aug-09 0:54
memberKlaus Ruttkowski22-Aug-09 0:54 
GeneralRe: Very Nice, But ... Pin
Alek Davis24-Aug-09 8:38
memberAlek Davis24-Aug-09 8:38 
GeneralRe: Very Nice, But ... Pin
Klaus Ruttkowski25-Aug-09 6:24
memberKlaus Ruttkowski25-Aug-09 6:24 
GeneralRe: Very Nice, But ... Pin
pita200922-Sep-09 4:42
memberpita200922-Sep-09 4:42 
GeneralGREAT!!! Pin
Samir NIGAM21-Aug-09 5:41
mvpSamir NIGAM21-Aug-09 5:41 
GeneralRe: GREAT!!! Pin
Klaus Ruttkowski21-Aug-09 6:56
memberKlaus Ruttkowski21-Aug-09 6:56 
GeneralGood work Pin
Md. Marufuzzaman20-Aug-09 7:11
groupMd. Marufuzzaman20-Aug-09 7:11 

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

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

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150428.2 | Last Updated 28 Mar 2011
Article Copyright 2009 by Klaus Ruttkowski
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid