ChrisGue
Posts: 116
Joined: Tue Feb 03, 2009 7:26 pm

cutom action on uninstallation, but not when uninstalled by winget

I use AI 19.9 corporate to create a exe installer with mis inside
I have a custom action during uninstallation. It starts an exe to show a dialog asking whether to delete all settings or not.
This should be executed uninstallation (but not during an upgrade). So far so good.
here my condition:
(REMOVE="ALL" AND (NOT UPGRADINGPRODUCTCODE)) AND UILevel >= 5

But it seems when uninstalling via winget uninstall ...
that dialog is shown as well, although it should not, as the UILevel should be < 5

The custom action shall be executed when the user uninstally ma product via the windows settings
But not when uninstalling with winget uninstall ...
How to solve that?
Catalin
Posts: 7845
Joined: Wed Jun 13, 2018 7:49 am

Re: cutom action on uninstallation, but not when uninstalled by winget

Hello Chris,

I have tested this with the package you provided previously for that other issue and it worked fine on my end, I did not encounter any messagebox custom action during the uninstall.
Screenshot_181.png
Screenshot_181.png (13.81 KiB) Viewed 9604 times

Could you please let me know if my approach in testing this is correct?

What i've done is:

1. install the setup you provided earlier

2. uninstall it using winget

During this, I did not receive any messageboxes. I have also tested with manual uninstallation and confirmed the messagebox appeared there.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”