Uninstall Key error

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
adf
Messages: 3
Registration: Sep 29, 2021 - 2:20 p.m.

September 29, 2021 - 2:34 PM

Hello,

I created an automatically generated package to install our antivirus client.
The setup.py file only contains an install_msi_if_needed statement, and it works perfectly.
However, as there's always a however, during the last automatic antivirus update, the Uninstall Key must have changed, and WAPT can no longer find it in the registry.
I want to let the antivirus update itself automatically.

How can I tell the package not to check the Uninstall Key, or at least not to return an error if the Uninstall Key is incorrect?

Thank you in advance for your help

Sincerely,
Philippe.

WAPT Server Version: 2.0
WAPT Agent Version: 2.0.0.9450
WAPT Setup Version: 2.0.0.9450
WAPT Deploy Version: 2.0.0.9450
Database Status: OK (2.0.8.0)
florentR2
Messages: 100
Registration: February 13, 2020 - 5:23 PM

September 29, 2021 - 4:20 PM

Good morning,
We have a similar situation in our somewhat "mixed" management of Firefox where we still want it to update itself.
We added this to the end of the install function

Code: Select all

uninstallkey.remove('xxxxxx')
adf
Messages: 3
Registration: Sep 29, 2021 - 2:20 p.m.

September 29, 2021 - 4:52 PM

Thanks for the feedback florentR2

I tried, but unfortunately, with uninstallkey.remove, it returns an error: "returned non-zero exit status 1603"

Here is the installation of my setup.py:

Code: Select all

def install():
    # declaring local variables
    package_version = control.get_software_version()

    # installing the package
    install_msi_if_needed('OfflineInstallerCP-PSB1.msi',
        min_version=package_version,
    )
    uninstallkey.remove('{C47726B5-9008-4C58-9151-DB9EE1A13237}')
florentR2
Messages: 100
Registration: February 13, 2020 - 5:23 PM

September 29, 2021 - 4:55 PM

The error it returns is more consistent with msiexec.
Can you check after execution with a

Code: Select all

wapt-get list-registry NomLogiciel
to see if he's still there?
adf
Messages: 3
Registration: Sep 29, 2021 - 2:20 p.m.

September 29, 2021 - 5:23 PM

The application is there, but with a different UninstallKey: {B8A6E157-DFE1-42EC-9F0C-F36EC0FCED63}
florentR2
Messages: 100
Registration: February 13, 2020 - 5:23 PM

September 29, 2021 - 6:45 PM

The key that needs to be removed is the one that Wapt can't find, I suppose
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

October 14, 2021 - 3:56 PM

The uninstall key changes with each MSI version. It must be updated with every version change
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
Locked