Click here to Skip to main content
Licence CPOL
First Posted 20 Aug 2009
Views 33,679
Downloads 841
Bookmarked 81 times

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

By Klaus Ruttkowski | 28 Mar 2011
The Add-In complements VS 2008 around a new dialog Selection Feature to manage features.
1 vote, 5.0%
1

2

3
6 votes, 30.0%
4
13 votes, 65.0%
5
4.75/5 - 20 votes
1 removed
μ 4.60, σa 1.66 [?]

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)

About the Author

Klaus Ruttkowski

Software Developer (Senior)

Germany Germany

Member


Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralIt does not work in VS2010 PinmemberWin32nipuh2:08 13 May '11  
QuestionCompatibility with VS 2010 PinmemberMember 42356470:59 28 Mar '11  
AnswerRe: Compatibility with VS 2010 PinmemberKlaus Ruttkowski5:00 28 Mar '11  
GeneralRe: Compatibility with VS 2010 PinmemberMember 42356476:11 28 Mar '11  
GeneralAdd-in failed to load Pinmembermjmeans8:26 20 Oct '10  
GeneralRe: Add-in failed to load PinmemberKlaus Ruttkowski22:40 20 Oct '10  
GeneralRe: Add-in failed to load Pinmembermjmeans6:55 21 Oct '10  
GeneralRe: Add-in failed to load [modified] PinmemberKlaus Ruttkowski9:34 28 Oct '10  
GeneralRe: Add-in failed to load [modified] Pinmembermjmeans12:57 8 Nov '10  
GeneralRe: Add-in failed to load PinmemberKlaus Ruttkowski2:43 9 Nov '10  
GeneralRe: Add-in failed to load Pinmembermjmeans6:15 9 Nov '10  
GeneralRe: Add-in failed to load Pinmembermjmeans6:21 9 Nov '10  
GeneralRe: Add-in failed to load PinmemberKlaus Ruttkowski0:13 14 Nov '10  
GeneralVS 2010 compatibility. Pinmemberklim_c11:40 27 Aug '10  
AnswerRe: VS 2010 compatibility. PinmemberKlaus Ruttkowski22:42 29 Aug '10  
GeneralRe: VS 2010 compatibility. Pinmemberklim_c17:36 30 Aug '10  
AnswerRe: VS 2010 compatibility. PinmemberKlaus Ruttkowski22:28 30 Aug '10  
GeneralRe: VS 2010 compatibility. Pinmemberklim_c9:27 31 Aug '10  
GeneralRe: VS 2010 compatibility. PinmemberKlaus Ruttkowski22:36 31 Aug '10  
GeneralMy vote of 1 Pinmemberkoby_m0:50 27 Feb '10  
AnswerRe: My vote of 1 PinmemberKlaus Ruttkowski4:33 6 Mar '10  
QuestionBuild the TestInstallFeature failed Pinmemberdoan03833:08 23 Nov '09  
AnswerRe: Build the TestInstallFeature failed PinmemberKlaus Ruttkowski22:58 23 Nov '09  
GeneralEmpty tree Pinmembera_l_p0:04 23 Sep '09  
First, thank you for your great article.
 
I'm trying to use it, but the tree selection turns out to be empty.
Only it shows a node without text.
Even the project TestInstallFrature shows the empty tree.
Have I to modify some characteristic or option in VS2008?
 
Greetings
GeneralRe: Empty tree Pinmembera_l_p22:44 23 Sep '09  

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.

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