version in registry does not match

Questions about WAPT Packaging / Requests and help regarding Wapt packages.
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Locked
crismatinfo
Messages: 3
Registration: Apr 29, 2020 - 2:27 p.m.

April 29, 2020 - 2:56 PM

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
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

April 29, 2020 - 4:03 PM

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)
crismatinfo
Messages: 3
Registration: Apr 29, 2020 - 2:27 p.m.

April 29, 2020 - 4:28 PM

Okay, thank you for your reply. I'm not very proficient in Python yet, and I'm still working on consulting the WAPT documentation ;) .
Locked