dkuerten
Posts: 5
Joined: Tue Jan 14, 2025 1:56 pm

App Logo Icon not rendered with WinUI

I've encountered the issue that when I activate the WinUI rendering option in the Theme settings, the App Logo is not rendered correctly when the installer is run.

Version: Version 22.3 (4E21175D) Professional
Package Type: Single EXE setup (deployes a .Net project)
Theme: BlackSurface (Flat)
Image Scaling: Adaptive stretching (also tested with other modes but nothing different)
Observerd behvaiour:
  • jpg
    • Editor => Displayed normally
    • Installer => Displayed normally
    • Installer(WinUI) => Nothing rendered
  • bmp
    • Editor => Displayed normally
    • Installer => Displayed normally
    • Installer(WinUI) => Nothing rendered
  • svg
    • Editor => White box
    • Installer => White box
    • Installer(WinUI) => White box
Addiotnally svg was tested with a test image from the internet but diplayed the same result. Because the svg images did not even work in the editor I'm not sure if there is a different problem with them.
Catalin
Posts: 7664
Joined: Wed Jun 13, 2018 7:49 am

Re: App Logo Icon not rendered with WinUI

Hello and welcome to our forums,

I'm afraid I can not say for sure why this is happening.

If possible, could you please provide a sample image file and a step-by-step test-case for me to further investigate this on our end?

Or is this happening with any image format?

Additionally, please post some screenshots of how the image is not rendered on your end when WinUI is enabled.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dkuerten
Posts: 5
Joined: Tue Jan 14, 2025 1:56 pm

Re: App Logo Icon not rendered with WinUI

To reproduce the behaviour execute the following steps:
  1. Create a new project
  2. Set theme to BlackSurface
  3. Add image as "App Logo Icon"
  4. Turn on WinUI rendering in the settings tab
  5. Compile and Run project
I've tested this with .bmp and .svg files and attached the corresponding results. I also attached my project I used for testing this including the used images.

Bmp images also seem to not work in the Preview resulting in a broken Images. I took a look into the "Generated Images" folder and this seems to relate to a conversion issue because the generated images are also incorrect.

Additonally I discovered that when you close and reopen a project the theme preview seems to reset, resulting in the default image (advanced installer icon) being displayed instead of the assigned one. This only affects the preview, the created installer still has the correct image.
Attachments
Test_Installer.zip
Test Project, containts tested images
(143.95 KiB) Downloaded 98 times
svg_image.png
svg_image.png (47.43 KiB) Viewed 4489 times
bmp_image.png
bmp_image.png (51.24 KiB) Viewed 4489 times
Catalin
Posts: 7664
Joined: Wed Jun 13, 2018 7:49 am

Re: App Logo Icon not rendered with WinUI

Hello,

Thank you very much for the provided resources.

Using those, I managed to reproduce the issue on my end as well, although slightly different than you.
Screenshot_221.png
Screenshot_221.png (70.26 KiB) Viewed 4147 times

It looks like the image is not correctly rendered.

I will open a ticket for the dev team so they can further investigate and fix this.

Thank you for bringing this to our attention!

Once a fix will be available, I will notify you via this thread.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”