Page 1 of 1

Uninstallkey issue in MSI

Published: May 25, 2023 - 11:55 AM
by jrabouil
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

Re: Uninstallkey issue in MSI

Published: May 25, 2023 - 1:45 PM
by sfonteneau

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.

Re: Uninstallkey issue in MSI

Published: May 25, 2023 - 2:13 PM
by jrabouil
Indeed! That's all good, thank you very much.