WPF: No current actions property

Jan 15, 2016 at 11:18 AM
Edited Jan 15, 2016 at 11:36 AM
I have made my own UI like it is in WPFSetup sample.
But one small difference:
I do not use setup Datacontext for the page but this function

Setup.PropertyChanged += (s, e) =>
        {
            if (e.PropertyName == @"CurrentActionName")
            {
                this.OnPropertyChanged(@"CurrentActionName");
            }
            return;
        };
Some problems occur:
  1. I do not see the current action names (even when I set setup.ProgressStepDelay = 50;)
  2. Install, uninstall actions completed successfully but I receive a message
    "Failed. See log files for details" and log file like this
=== Logging started: 1/15/2016 13:17:09 ===
Action start 13:17:09: INSTALL.
Action start 13:17:09: ValidateProductID.
Action ended 13:17:09: ValidateProductID. Return value 1.
Action start 13:17:09: CostInitialize.
Action ended 13:17:09: CostInitialize. Return value 1.
Action start 13:17:09: FileCost.
Action ended 13:17:09: FileCost. Return value 1.
Action start 13:17:09: CostFinalize.
Action ended 13:17:09: CostFinalize. Return value 1.
Action start 13:17:09: InstallValidate.
Action ended 13:17:09: InstallValidate. Return value 1.
Action start 13:17:09: InstallInitialize.
Action ended 13:17:09: InstallInitialize. Return value 1.
Action start 13:17:09: ProcessComponents.

What I do wrong?
Coordinator
Jan 16, 2016 at 12:59 PM
>I do not use setup Datacontext for the page...
Setting data context is not optional. It is how WPF data binding works. You may set it to something else but you have to set it.

>even when I set setup.ProgressStepDelay = 50
ProgressStepDelay only controls how often progress steps are reported but not the action names.

Anyway, it seems like you have a pure WPF problem. Probably the best way to approach it is to see it all under debugger.
Jan 18, 2016 at 7:52 AM
Thank you. It was my mistake. I have reference to the old Wixsharp.msi.dl. The problem was that under VS it worked fine, but running app manually it shows an error.
Anyway i fixed it using the new Wixsharp.
And yet other: I have found your comment like "do not trust MSI progress data" it can be even negative sometimes. Now it is ok.