PDA

View Full Version : How to add icon using QT installer framework



romzxlat
21st September 2015, 10:05
Hello,

I would like to ask if anyone knows how to add icon in the application using QT Installer Framework.

<?xml version="1.0" encoding="UTF-8"?>
<Installer>
<Name>Note</Name>
<Version>1.0.0</Version>
<Title>Note</Title>
<Publisher>Note</Publisher>
<InstallerWindowIcon>Note1.png</InstallerWindowIcon>
<InstallerApplicationIcon>Note2.png</InstallerApplicationIcon>
<Logo>Note3.png</Logo>
<!-- Directory name is used in component.xml -->
<StartMenuDir>Note</StartMenuDir>
<TargetDir>@HomeDir@/Note</TargetDir>
</Installer>

In my config.xml I already add the installerwindowicon but still failed.

Please help.

ChrisW67
21st September 2015, 12:08
InstallerApplicationIcon expects a bare file name matching either a name.ico file or name.icns file, not a PNG
https://doc.qt.io/qtinstallerframework/ifw-globalconfig.html#summary-of-configuration-file-elements

romzxlat
22nd September 2015, 03:49
thanks, the icon are now working.

after creating installer the executable don't have logo after running. do you know why?

TIA11385

turing_1
19th February 2016, 01:16
romzxlat,

Have you found a solution to this problem with the icon/logo after installing and running the executable? I am having this exact same problem...

Thanks!

ChrisW67
19th February 2016, 10:10
The icon displayed, for example, in the Windows Start Menu is the one embedded in the installed application executable. It has nothing to do with the icon embedded in the installer executable itself.