Removing Note: 1: 2228 2: 3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 1707 from log

Nov 16, 2016 at 5:31 PM
We are using customized panels in our MSI. after installing the MSI, at the conclusion of the log, we are seeing
MSI (c) (DC:B4) [08:13:48:220]: Note: 1: 1707
MSI (c) (DC:B4) [08:13:48:220]: Note: 1: 2205 2: 3: Error
MSI (c) (DC:B4) [08:13:48:220]: Note: 1: 2228 2: 3: Error 4: SELECT Message FROM Error WHERE Error = 1707
MSI (c) (DC:B4) [08:13:48:220]: Note: 1: 2205 2: 3: Error
MSI (c) (DC:B4) [08:13:48:220]: Note: 1: 2228 2: 3: Error 4: SELECT Message FROM Error WHERE Error = 1709
MSI (c) (DC:B4) [08:13:48:220]: Product: Test -- Installation completed successfully.

If the installation is successful, there shouldn't be mention of an "Error" since it installed successfully.
After doing a lot of research, it appears in order to resolve the 'Error' is to include an error table by what appears to be this line:
UIRef Id="WixUI_ErrorProgressText"

We are utilizing Visual Studio 2015. In our wixProject.cs program, I tried using
      UI = WUI.WixUI_FeatureTree, but that did not resolve the Error.  
I tried changing FeatureTree to ErrorProgressText but it could not resolve it within the .cs program itself.

Any ideas on how to resolve the Error notifications that are appearing in the log? If I cancel the MSI install, an 'Error' =1708 is written in the log instead.
Nov 18, 2016 at 7:38 AM
> tried changing FeatureTree to ErrorProgressText but it could not resolve it within the .cs program itself

As far as I understand you need to add another one nut not to replace UIRef. This needs to be done via XML injection. Something similar to this:
project.WixSourceGenerated += document => 
{
    document.Root
            .Select("Product")
            .AddElement("UIRef", "Id=WixUI_ErrorProgressText");
};
Always check generated wxs file to verify the injection result
Marked as answer by liuyankee on 11/18/2016 at 11:32 AM