Quantcast
Channel: wixsharp Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1354

New Post: Problems with BackgroundImage and BannerImage

$
0
0
The problem is caused by the project.BackgroundImage and project.BannerImage are not propagated correctly into the ManagedUI resources.

The issue #86 (https://wixsharp.codeplex.com/workitem/86) has been created. The problem is already fixed in the code base and the fix is available from Git.

Please use the following work around until the fix is available in with the next release.
project.BackgroundImage = @"C:\Users\...\Resources\SetupDialog.png";
project.BannerImage = @"C:\Users\...\Resources\SetupBanner.png";

project.WixSourceGenerated += (document) =>
{
    var bins = document.FindAll("Binary");

    bins.Single(x => x.HasAttribute("Id", "WixUI_Bmp_Dialog"))
        .SetAttribute("SourceFile", project.BackgroundImage);

    bins.Single(x => x.HasAttribute("Id", "WixUI_Bmp_Banner"))
        .SetAttribute("SourceFile", project.BannerImage);
};

Viewing all articles
Browse latest Browse all 1354

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>