Add Installation Version Number
f.lux is currently supported by the WinGet package manager for Windows. Part of the package management process is checking for updates, and applying them as needed, which it does by looking at the installed application's reported version (which is also listed in the Control Panel's Add or Remove Programs page).
Currently upon installation f.lux does not report it's version number. So within the package manager it always shows the installed version as Unavailable, and will always attempt to reinstall it. If the application could report its version the package manager would be able to work as intended. An individual has also opened GitHub issue #16003, however it's not an issue resolvable by the WinGet community.
Thank you for the consideration.
herf last edited by
Thanks for the request - we don't currently write a version as part of our installer, but we can probably modify it in the future to do so.
The easier way is to have f.lux write this when it's run - do you know if WinGet would run our app after installing (so flux.exe could write this information), or if this would also cause problems because some cases would have an old version?
I have not developed for the platform, however anecdotally I can say that it seems to run like a normal update. So it briefly uninstalls or disables the application, then runs it again when it is complete. I don't see evidence of a post install version check, so potentially as long as the value is written by the next time a WinGet command is ran, it should behave as expected. I'd give it shot and see if it works if that's the easiest/quickest route.
It seems like a pretty open community, so if if you had questions you could probably respond to the linked ticket to get any needed advice; it's already got the Help-Wanted tag, and I think you're just the folks for the job.
It should actually be pretty easy to have the version set by the installer. It looks like you might be using NSIS (Nullsoft) to configure the exe installer, in which case you might have a .nsi file you can edit (I'm not familiar with Nullsoft but I've seen it like that in certain projects on GitHub).
Then just look in that configuration file for where it creates the registry entries in the "Uninstall" registry folder (see below), and add an extra line to have it also create a String Value called "DisplayVersion" and the value as the version number, and that's it.
Looking at my installation, flux's registry key goes into: Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Flux
(Though that might be different if installed as admin)
Anyway since in there, there are entries for Publisher, display icon, etc, then I think the installer configurator must surely have a section you can simply add a key for DisplayVersion.
You can also see I just manually added the entry myself, and now it shows in the Add/Remove programs list perfectly:
Hi, this is still an open issue and it would be really cool if this is fixed in the next version :)