Qt 5.5 and Qt Installer Framework 2.0.1: the logo is not displayed despite the fact that it is present in the config.xml file

I wrote an installer for my application using the pre-compiled Qt Installer Framework version 2.0.1 binaries. However, the installer window will not display any of my logos in any way possible.

The logo in question is called "installerlogo.png", a 64x64 image with an alpha channel located at the top of the installer's directory structure (the same directory where config / and packages / directories are located.)

I made another logo for an icon named "installericon.ico", which is only the 16x16 version above, just renamed to ".ico" (is this the wrong way to do this?)

I tried the following in the config.xml file:

<InstallerApplicationIcon>installericon</InstallerApplicationIcon> <InstallerWindowIcon>installerlogo</InstallerWindowIcon> <Logo>installerlogo.png</Logo> <Background>installerlogo.png</Background> 

But not one of them gives visual results.

+6
source share
1 answer

After exploring a few more on the Internet about structure, I now see that all together I made a few mistakes.

  • Firstly, just changing .png to .ico does not work - the whole point of the .ico format, as I discovered, is to store multiple resolutions of the same image so that it is blurry when zoomed in the file explorer. Solution http://www.icoconverter.com/ - this website allows you to create a completely modified ico file from one png.

  • Secondly, ico are not included in the topmost directory - they should be placed in the same directory as the config.xml file

  • Thirdly, you should not specify file name extensions for the icon file in config.xml tags, for example. "myicon.ico" - this is done as necessary when the file is parsed. EDIT: Please note, however, that elsewhere you need to specify extensions, for example. when using the <Watermark> or the like.

  • Fourth, you need to define <WizardStyle> as "Modern", "Classic", "Mac" or "Aero" (without quotes) to enable certain functions - I forget that now, but some of the xml flags do nothing, if, for example, <WizardStyle> is "classic." I installed mine on <WizardStyle>Modern</WizardStyle> and it still works.

  • And finally, some of the tags make sense to use them with the installscrip.qs file. Although this did not bother me specifically, this also needs to be followed.

+7
source

All Articles