Skip to main content
Email Password   helpLost your password?

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 - Ereignisbehandlung
    public event PropertyChangedEventHandler PropertyChanged;

    private void NotyPropertyChanged(string info)
    {
        if (PropertyChanged != null)
        {
            PropertyChanged(this, new PropertyChangedEventArgs(info));
        }
    }
#endregion

#region Info

    // Hifsvariable für Meldungen
    OutputWindowPane owP = null;
    private string ErrorText = "{0} **** {1}";
        
    /// <summary>
    /// Gibt bei jeder Änderung mit Debug.Print den Inhalt aus
    /// </summary>
    private string _LastErrorText = null;
    public string LastErrorText
    {
        get { return _LastErrorText;}
        set 
        { 
            _LastErrorText = value;
            NotyPropertyChanged("Geändert");
            owP.OutputString(_LastErrorText + "\n");
            owP.ForceItemsToTaskList();
            Debug.Print(_LastErrorText);
        }
    }
#endregion

LastErrorText = string.Format(ErrorText,"ERROR", 
                "Der Dialog 'SelectionTree' ist nicht in der Installer-Datei enthalten");

History

You must Sign In to use this message board.
 
 
Per page   
 FirstPrevNext
GeneralEmpty tree Pin
a_l_p
0:04 23 Sep '09  
GeneralRe: Empty tree Pin
a_l_p
22:44 23 Sep '09  
GeneralVery Nice, But ... Pin
pita2009
19:37 21 Aug '09  
GeneralRe: Very Nice, But ... Pin
Klaus Ruttkowski
0:54 22 Aug '09  
GeneralRe: Very Nice, But ... Pin
Alek Davis
8:38 24 Aug '09  
GeneralRe: Very Nice, But ... Pin
Klaus Ruttkowski
6:24 25 Aug '09  
GeneralRe: Very Nice, But ... Pin
pita2009
4:42 22 Sep '09  
GeneralGREAT!!! Pin
Samir NIGAM
5:41 21 Aug '09  
GeneralRe: GREAT!!! Pin
Klaus Ruttkowski
6:56 21 Aug '09  
GeneralGood work Pin
Md. Marufuzzaman
7:11 20 Aug '09  


Last Updated 26 Aug 2009 | Advertise | Privacy | Terms of Use | Copyright © CodeProject, 1999-2009