fusioninventory / fusioninventory-agent-windows-installer

The New Windows Installer for FusionInventory Agent
GNU General Public License v2.0
11 stars 5 forks source link

Add support for Windows VersionInfo in Agent exe #10

Open pszafer opened 2 years ago

pszafer commented 2 years ago

Hi, Currently after FIA is installed it display same versioninfo as perl interpreter installed image

Would be possible to add there version info of FusionInventory Agent currently installed? Then it would be pretty easy to configure agent installation with eg. Ansible without any additional script. https://docs.ansible.com/ansible/latest/collections/ansible/windows/win_package_module.html#parameter-creates_version

g-bougard commented 2 years ago

Hi @pszafer actually, fusioninventory-agent.exe is just a copy of perl.exe. This is handy to do that so you can see a "fusioninventory-agent" program in details runnning programs in place of "perl.exe" for FusioInventory-Agent service in taskmgr. FusionInventory-Agent being a perl software, you should probably do more than just check an exe version. The version is really defined in C:Program Files\FusionInventory-Agent\perl\agent\FusionInventory\Agent\Version.pm.

pszafer commented 2 years ago

Ok, I know, unfortunately most automated software uses VersionInfo for upgrade process. Thanks for response!

ddurieux commented 2 years ago

It can do it, because at each future version, we will update the perl version, except if we create 2 FusionInventory agent release in a very very short in time, the version will be different between 2 versions.

pszafer commented 2 years ago

Great, so consider it in next release 👍

ddurieux commented 2 years ago

yes, that's it ;) In couple weeks for the next release (end February I think)