Page 1 of 1

Uninstall Key error

Published: September 29, 2021 - 2:34 PM
by adf
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)

Re: Uninstall Key error

Published: September 29, 2021 - 4:20 PM
by florentR2
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')

Re: Uninstall Key error

Published: September 29, 2021 - 4:52 PM
by adf
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}')

Re: Uninstall Key error

Published: September 29, 2021 - 4:55 PM
by florentR2
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?

Re: Uninstall Key error

Published: September 29, 2021 - 5:23 PM
by adf
The application is there, but with a different UninstallKey: {B8A6E157-DFE1-42EC-9F0C-F36EC0FCED63}

Re: Uninstall Key error

Published: September 29, 2021 - 6:45 PM
by florentR2
The key that needs to be removed is the one that Wapt can't find, I suppose

Re: Uninstall Key error

Published: October 14, 2021 - 3:56 PM
by dcardon
The uninstall key changes with each MSI version. It must be updated with every version change