run configurations remove and uninstall

Questions about WAPT Packaging / Requests and help regarding Wapt packages.
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Locked
florentR2
Messages: 100
Registration: February 13, 2020 - 5:23 PM

July 23, 2020 - 12:05 PM

Hi,
just to confirm the difference between Remove and Uninstall

Picture


. Does Remove execute the uninstall command based on the registry key, or is it specified in uninstallkey[xxx] or with install_exe_if_needed?

In the case of a non-silent uninstaller, if the uninstall() function is overridden, will this function be launched if Run Configuration / Uninstall is clicked?
Patrice_minagri
Messages: 57
Registration: Oct 21, 2016 - 4:56 p.m.

August 5, 2020 - 4:18 PM

Hello,

From what I understand:
option `remove` does indeed execute the package uninstallation key if one is provided. But it also executes the uninstall part if that function is used.

If no key is provided, the `def_uninstall()` function replaces it. And if a key is provided, the `def_uninstall()` function completes the processing performed by the `remove` command.

If someone could confirm or correct me, I would be grateful.

Patrice
WAPT 1.7.4
User avatar
Gaetan
Messages: 169
Registration: August 8, 2019 - 10:16
Location: Toulouse

August 5, 2020 - 4:40 PM

Hello,
`remove` is used to uninstall the package if it is installed.
`uninstall` only runs the uninstall function for the package.
Malo
Messages: 18
Registration: March 30, 2020 - 11:02

August 5, 2020 - 5:25 PM

Good morning,

I saw that the issue was not resolved, so I will try to rephrase it.

For me, the Remove function calls Uninstall, in addition to using information from Install.

Remove is the function used in the console when you want to uninstall a package from a machine.
Uninstall is used during uninstallation tests in PyScripter.

More specifically, if you overload Uninstall during your tests After To use the Install function, you must run Uninstall, not Remove! Remove is saved at the same time as Install. So don't be surprised if Remove doesn't change its behavior; you need to run Uninstall and then Install again to save Remove and finally test it.

One last thing: if you want to override the Uninstall function and you previously specified the uninstallkey, you must do the following at the end of the Install process:

Code: Select all

 uninstallkey.remove('CLE-DE-REGISTRE')
so that Remove calls Uninstall.
Locked