Page 1 of 1

Uninstall vs Remove

Published: February 6, 2019 - 10:35 AM
by TomTomGo
Hello,

what is the correct method for properly uninstalling a package?
Let me explain: in one of my packages, I have to perform several "manual" operations for uninstallation.
I have to run a command like "SetupClient.exe /ALLOWRUN /X /Q" because the program doesn't support uninstallation via the msiexec function of the uninstallstring[] (Microsoft Dynamics CRM client), and then perform a series of file and registry key deletions.
So I overridden the uninstall() function, but when I try to uninstall the package with "wapt-get remove mypackage", the instructions it contains aren't executed; it attempts uninstallation via msiexec /X.
However, "wapt-get uninstall mypackage" correctly executes the instructions of uninstall().
Should I override the remove() function rather than the uninstall() function?

Thank you in advance for your help!

Thomas