Page 1 of 1

version in registry does not match

Published: April 29, 2020 - 2:56 PM
by crismatinfo
Hello,
Below is my configuration:
WAPT Server version: 1.7.4 on Debian 9
WAPT Agent version: 1.7.4.6229
Database status: OK (1.7.4.0)
Windows 10 console on Oracle VM VirtualBox

Following JRES, I am testing WAPT and starting on packaging. I don't know Python, but I have done development in other languages ​​in the past.

Here's my problem: I have an executable that doesn't set a version number in the registry, even though the number exists in the executable's metadata. Therefore, I get the error: "version in registry does not match requirements of min version". I saw a solution in November 2019 with the get_installed_version , but I have the impression that it no longer exists (I haven't seen it in setuphelpers, or I don't know how to use it).
Can you help me?
Eric
CNRS / CRISMAT laboratory

Re: version in registry does not match

Published: April 29, 2020 - 4:03 PM
by sfonteneau
Good morning


Here is an example:
https://www.wapt.fr/fr/doc/wapt-common- ... -if-needed

Code: Select all

   def versnaps2(key):
       return key['name'].replace('NAPS2 ','')

   install_exe_if_needed('naps2-5.3.3-setup.exe',silentflags='/VERYSILENT',key='NAPS2 (Not Another PDF Scanner 2)_is1',get_version=versnaps2)

You need to create a function that accepts an argument (the uninstallkey)
Your function must be able to retrieve the version number from elsewhere, for example: file properties, registry database, etc.

In the naps example, we retrieve the version from the software name (we retrieve the name from key)

Re: version in registry does not match

Published: April 29, 2020 - 4:28 PM
by crismatinfo
Okay, thank you for your reply. I'm not very proficient in Python yet, and I'm still working on consulting the WAPT documentation ;) .