MSI Uninstallation not working in V4.1.5

Hello everyone,

I'm experiencing a rather strange issue where I cannot seem to get an MSI uninstalled. Whether I'm trying to call it via Start-ADTMsiProcess and Product Key or Uninstall-ADTApplication and DisplayName.
It always skips the steps with "Found no application based on the supplied FilterScript". Any ideas?

Thanks in advance!

Kind regards
Luke

what does the log file say for that Start-ADTMsiProcess line that you have circled?
Why not force an MSI log file to that, too?

I personally cannot replicate this issue, everything seems to be working well:

All 4 lines from the second screenshot output the „no application found by the supplied filter“ message, while only the last two are relevant on the specific system. The first two arent installed.

Are you on 4.1.5? Could it have to to between using single or double quotes?

I'm on a pre-4.1.6 build, but there's been nothing changed that should impact the operation in question.

I have found the issue. The app is installed as an MSI and behaves like an MSI - BUT - It sets the "WindowsInstaller" value in its uninstall key to 0.
After manually setting it to 1, the following uninstall commands work:

image

Although I think PSADT v3.X did not care about this value.

1 Like

Interesting, I've never seen this. Technically it's poor form on the app, but who's to say there's not others out there. I've submitted a PR for 4.1.6 to validate whether an app is an MSI-based app by extra means in case this comes up again.

2 Likes

Thanks for your time!
Yes, I fully agree, that one's 100% on the App Publisher. But like you said, who knows how often this happens.

Maybe an additional parameter like "-IgnoreWindowsInstallerBool" would also be an option, if all other MSI indicators are given? And/or a hint in the documentation, that this value is evaluated.

It's already patched in that PR. We'll check for that DWORD, but will additionally check the UninstallString for the presence of msiexec.exe as well.

1 Like

The UninstallString and the WindowsInstaller value are set automatically by Windows Installer, so the installation developer would have to go out of their way to develop a custom action to change/delete that key. Turns out that's exactly what they did here!

I downloaded the latest and there is a dll-based custom action 'C4B_90_MsiARPinformation' that runs after the standard PublishProduct action.

2 Likes

Thanks for your work, really appreciate it. Reminds me why I keep stressing PSADT every time I can :slight_smile:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.