Uninstallkey issue in MSI

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
jrabouil
Messages: 2
Registration: May 25, 2023 - 11:45

May 25, 2023 - 11:55

Good morning,

I'm new to WAPT packages and I'm already facing a problem:
I want to create a package for an MSI using the install_msi_if_needed function

But the uninstallkey isn't the right one...

Code: Select all

print (get_msi_properties(bin_name)["ProductCode"])
returns: {8FF61D0C-7B9E-46F1-A2F2-14B2A65ACFB1}

But in the registry, the key in uninstall is: {2B27213F-E49A-4442-B469-8D03ADF57F25}

As seen on the forum, I'm trying to 'force' the key:

Code: Select all

    
    install_msi_if_needed(
        bin_name,
        timeout=900,
        uninstallkeylist= ["{2B27213F-E49A-4442-B469-8D03ADF57F25}",]
    )
but I'm still waiting for the key {8FF61D0C-7B9E-46F1-A2F2-14B2A65ACFB1}

Code: Select all

Waiting for key: {8FF61D0C-7B9E-46F1-A2F2-14B2A65ACFB1} to appear in Windows registry
Thank you for your help
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

May 25, 2023 - 1:45 PM

Code: Select all

    
    install_msi_if_needed(
        bin_name,
        timeout=900,
        uninstallkeylist= ["{2B27213F-E49A-4442-B469-8D03ADF57F25}",]
    )

You were almost there ;)

The argument is therefore key:

Code: Select all

    
    install_msi_if_needed(
        bin_name,
        timeout=900,
        key= "{2B27213F-E49A-4442-B469-8D03ADF57F25}"
    )
uninstallkeylist is to get all the keys at the end of the installation.
The uninstallkeylist argument is an internal Wapt technical argument that should not be used by the user.
jrabouil
Messages: 2
Registration: May 25, 2023 - 11:45

May 25, 2023 - 2:13 PM

Indeed! That's all good, thank you very much.
Locked