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.
After researching some more on the internet about the framework, I now see that all together I had made several mistakes.
First, simply changing the .png to .ico does not work - the whole point of the .ico format, as I have discovered, is to be able to store multiple resolutions of the same image, to prevent it looking blurry when enlarged in file explorer. Solution: http://www.icoconverter.com/ - this website allows one to create a fully-ranged ico file from a single png.
Secondly, the ico's do not go in the top-most directory - they should be put in the same directory as the config.xml file
Thirdly, one should not specify filename extensions for the icon file in the config.xml tags, e.g. "myicon.ico" - this is done as needed when the file is parsed. EDIT: Note however, that elsewhere you do need to specify extensions, e.g. when using the <Watermark>
tag or the like.
Fourthly, one needs to define the <WizardStyle>
to be either "Modern", "Classic, "Mac", or "Aero" (without the quotes) to enable specific features - I forget which now, but some of the xml flags do nothing if, for example, <WizardStyle>
is "Classic". I've set mine to <WizardStyle>Modern</WizardStyle>
and so far everything works.
And, lastly, some of the tags only make sense to be used in conjunction with an installscrip.qs file. Although this did not hinder me specifically, there's that to watch out for too.