Wixsharp: Question: Access built in feature tree dialog

Created on 8 Nov 2018  路  5Comments  路  Source: oleg-shilo/wixsharp

I am trying to access the built in feature tree dialog within my managed UI. I want to use the default so my features can have configurable directories. This is the dialog I am trying to place in my managed UI sequence: project.UI = WUI.WixUI_FeatureTree;

```
project.ManagedUI = new ManagedUI();
project.ManagedUI.InstallDialogs

                       .Add<WelcomeDialog>()
                       // this is the wixsharp default feature dialog
                       .Add(WixSharp.Forms.Dialogs.Features)
                       .Add<ProgressDialog>()
                       .Add<ExitDialog>();

```

question

All 5 comments

It is either project.UI or project.ManagedUI but not both.

In order to be able to customize the installation path of the feature, it is necessary to specify the directory ID in the ConfigurableDirectory attribute.

But only if you chose project.UI = WUI.WixUI_FeatureTree

The easiest way to investigate it is to create the "WixSharp - Custom UI" VS project and have a look in the generated InstallDirDialog. It has both initialization and change of the INSTALLDIR implemented.

By analogy, you can make a change to ConfigurableDirectory.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

empz picture empz  路  3Comments

yfnfif picture yfnfif  路  3Comments

ayman-eltemsahi picture ayman-eltemsahi  路  4Comments

JamesWHurst picture JamesWHurst  路  5Comments

Eagle3386 picture Eagle3386  路  6Comments