[SOLVED] Error on the tis-jamovi package

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
esberard
Messages: 44
Registration: Oct 09, 2023 - 11:35

June 3, 2026 - 09:03

Good morning,

There is an error in the placement of the "key" value in your setup which causes the package to fail if the version is present instead of checking the value in the registry.

Your code:

Code: Select all

def install():

    install_exe_if_needed(
        glob.glob("*jamovi*.exe")[0],
        silentflags="/S",
        min_version=control.get_software_version(),
    )
    key="jamovi %s" % control.get_software_version()
    wait_uninstallkey_present(key)
The corrected code:

Code: Select all

def install():

    install_exe_if_needed(
        glob.glob("*jamovi*.exe")[0],
        silentflags="/S",
        min_version=control.get_software_version(),
        key="jamovi %s" % control.get_software_version()
    )
THANKS

Remy
italbot
Messages: 78
Registration: Sep 26, 2023 - 3:50 p.m.

June 3, 2026 - 09:17

Hello,

If I remember correctly, we did this intentionally because there was a problem with the registry key; we couldn't use it for uninstallation, but we still wanted to verify that the software was installed correctly. Does the error appear when the same version is already present? I'll see what I can do.

Best regards,

Ingrid
Tranquil IT
esberard
Messages: 44
Registration: Oct 09, 2023 - 11:35

June 3, 2026 - 11:47

Yes, the problem occurs if the same version is present.

Alternatively, it is possible to go through the value uninstallkey.remove('CLEMONSOFTWARE')

Example using an older version of Office:

Code: Select all

install_exe_if_needed("setup.exe",silentflags="/adminfile unistra.MSP",key='Office16.PROPLUS',min_version="16.0.4266.1001", timeout=3600)
filecopyto('OffScrub16.vbs',r'c:\windows')
uninstallkey.remove('Office16.PROPLUS')
italbot
Messages: 78
Registration: Sep 26, 2023 - 3:50 p.m.

June 3, 2026 - 11:59

I think we can modify the code in the following way with the need_install() function so that there is only an installation if Jamovi of a lower version is installed, if the version is equal to or higher there is no attempt to install.

Code: Select all

def install():

    bin_name =  glob.glob("*jamovi*.exe")[0]
    key="jamovi %s" % control.get_software_version()

    if need_install(key = key, min_version = control.get_software_version()) : 
        run(bin_name + "/S")
        wait_uninstallkey_present(key)
        
    else : 
        print("Jamovi is already installed")
Can you test it and tell me if it works correctly on your end?
If everything is okay, I will modify the package.

Sincerely,

Ingrid
Tranquil IT
italbot
Messages: 78
Registration: Sep 26, 2023 - 3:50 p.m.

June 3, 2026 - 12:10

I just saw your previous message; indeed, it also works with uninstallkey.remove(). I've made the change; you can find the pre-production package below:
https://wapt.tranquil.it/store/fr/tis-jamovi

Sincerely,

Ingrid
Tranquil IT
esberard
Messages: 44
Registration: Oct 09, 2023 - 11:35

June 4, 2026 - 08:05

Thanks for the update
Locked