'Qt 5.5 and Qt Installer Framework 2.0.1: Logo is not displayed despite being present in config.xml
I have written an installer for my application using the precompiled Qt Installer Framework binaries, version 2.0.1. However, the Installer window will not display any of my logos in any of the possible ways.
The logo in question is named "installerlogo.png", a 64x64 image with an alpha channel, located at the top of the installer directory structure (same directory as where config/ and packages/ directories are located.)
I made another logo for the purposes of an icon, named "installericon.ico", which is just a 16x16 version of the above, simply renamed to ".ico" (Is this the wrong way to do it?)
I've tried the following in the config.xml file:
<InstallerApplicationIcon>installericon</InstallerApplicationIcon>
<InstallerWindowIcon>installerlogo</InstallerWindowIcon>
<Logo>installerlogo.png</Logo>
<Background>installerlogo.png</Background>
But none yield any visual results.
Solution 1:[1]
Apart from the excellent points Maxim indicated above, here is a very important thing. I have been breaking my head for the past 2 hours because of this issue. Adding it, so that it is of help to someone.
Windows has some sort of caching for the .exe icon images (based on the exe name and folder location)
Let's say the first time you generated the Installer exe without the image (maybe you didn't have the image set or you had an incorrect image setting in the config). Now the second time when you generate the exe, this time with the image correctly set in the config, to the same folder location with the same name for the exe, the exe will still have the old(default) image.
If you copy the exe to a different folder location, the image will magically appear for the exe. Else you should be generating the exe with a different name in your second attempt, for the changed image to reflect.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Boney |
