Version number doesn't change after upgrade in "Programs and features" Windows
-
I deployed the version 1.0.0 of my application using QT Installer Framework 2.0.3
In Windows the version number appears correctly in "Computer > Programs > Programs and features".Now I want to deploy the new version 1.1.0. I changed the version number in all the corresponding files, compiled and created a new installer. When I try to update to this new version the Installer recognises properly the new version (1.1.0 ) but after the installation the version remains the same (1.0.0) in "Computer > Programs > Programs and features".
Any idea?
-
HI in Windows there are 2 types of versions: a file version and a product version. maybe only of them got updated them from 1.0.0 to 1.1.0 when you changed to 1.1.0. And perhaps Computer > Programs > Programs is looking at one of them, and the installer at the other...
-
in Windows there are 2 types of versions: a file version and a product version.
Yep, and both of those can be embedded as resources. But the installed application version (as shown in the Programs and Features windows) uses neither of those. It uses registry keys that the installer should be setting - ie the
DisplayVersion
subkey under a key likeSoftware\Microsoft\Windows\CurrentVersion\Uninstall\<appname>
, within the relevant hive (usually HKLM or HKCU).I'm not sure how the Qt Installer Framework handles this though. Either it extracts the version automagically from your exe, or its a separate configuration property you set?
(sorry I can't be more helpful... I haven't used QIF yet).
Cheers.
-
or its a separate configuration property you set?
Are you setting the
<Version>
element as shown in http://doc.qt.io/qtinstallerframework/ifw-globalconfig.html ?Cheers.
-
Indeed the the global config files creates an entry in the registry, including an "uninstall" key and the DisplayName and DisplayVersion information, the problem is that this information is not changed when updating the application through an online repository as QT Installer Framework allows. I think this is a bug. Thank you for the help.
-