Page 1 of 1

[SOLVED] Package uninstallation problem

Published: September 14, 2023 - 09:19
by sebastien4444
[WAPTConsole Enterprise version 2.4.0.14080]
[Windows 11]

Hello,

We purchased a WAPT trial license for our company.
During our package deployment tests:
When we add software packages to a machine package and refresh, the status "To be installed" is correctly displayed for both the machine package and the added packages in the machine's General tab.
However, if we remove a software package from the machine package and refresh, the status remains OK, whereas logically, the status should be "To be removed" for the removed software package. :roll:
Since the "To be removed" status is not displayed in this case, when will this status be displayed?
Furthermore, this means that to uninstall a software package, we must right-click on it in the General tab > Uninstall selected packages.
I would have thought the uninstallation process worked the same way as the installation, that is:
- remove the software package from the machine package
- the software package changes to a "to be removed" status for the machine
- the machine package changes to a "to be updated" status to reflect this removal
- upon clicking "start installation," the machine realizes there's one less package in its new machine package and uninstalls the missing software package.

But since this "to be removed" status exists, I'm wondering if I'm encountering a bug...?

Thank you in advance for your help.

Re: Package uninstallation problem

Published: September 14, 2023 - 1:46 PM
by t.heroult
Hello,

to mark it as "to be removed," it's not enough to simply remove it from the dependencies; you must also add it to the machine's "conflicts" tab.

Regards,
Tom

Re: Package uninstallation problem

Published: September 14, 2023 - 3:25 PM
by sebastien4444
Thank you so much! I did see that option, but I didn't realize what it was for.

Another question, by the way: is it possible to uninstall software from a PC that wasn't installed via WAPT? (Since already installed software isn't represented in the machine's packages).

I managed to do it by creating an uninstallation package (overriding the `install()` function in `setup.py` with a `run()` from the uninstallation executable), but I'm wondering if there's a "cleaner" way, one that WAPT provides, to do it.

Re: Package uninstallation problem

Published: September 15, 2023 - 4:13 PM
by dcardon
Hello Sébastien,

it's best to start a new thread for a new question (for readability :-) ). I'm closing this thread; you can start a new one with your question.

Regards,

Denis