[SOLVED] Manual uninstallation of a package

Share your tips or issues concerning the WAPT Console or WAPT Agent here
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
djedje68
Messages: 9
Registration: December 16, 2019 - 1:02 PM

December 16, 2019 - 1:07 PM

Hello,

I'm currently learning about WAPT before deploying it.

I have a quick question:
I install a package on a client machine, for example, Notepad++. When I shut down the machine, the package installs without any problem. If I manually uninstall Notepad++ from the Control Panel, WAPT still detects the software as installed even though it's no longer there.
1. Is this normal?
2. Is there a way to make WAPT detect the uninstallation?

Thank you in advance.
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

December 17, 2019 - 2:17 PM

Hello djedje68,
djedje68 wrote: Dec 16, 2019 - 1:07 PM I'm currently learning about WAPT before deploying it.

Quick question:
I install a package on a client machine, for example, Notepad++. When I shut down the machine, the package installs without any problem. If I manually uninstall Notepad++ from the Control Panel, WAPT detects the software as installed even though it's no longer there.
1. Is this normal?
2. Is there a way to make WAPT detect the uninstallation?
1. A person with uninstallation rights on Windows is an administrator of the machine. Therefore, they can do whatever they want/can (even send incorrect inventories or simply uninstall the WAPT client). This is why you should avoid giving administrator rights to users; otherwise, it's normal not to have complete control over the machines...

2. In the enterprise version, you can activate the audit feature and verify that the uninstallation key or the .exe binary is still there.

Sincerely,

Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
djedje68
Messages: 9
Registration: December 16, 2019 - 1:02 PM

December 19, 2019 - 09:42

Good morning,

Thank you very much for your feedback.

1. A person with uninstallation rights on Windows is an administrator of the machine. Therefore, they can do whatever they want/can (even send incorrect inventories or simply uninstall the WAPT client). This is why you should avoid giving administrator rights to users; otherwise, it's normal not to have complete control over the machines...
I'm well aware of all that; most people don't have admin rights, and frankly, that wasn't the point. Otherwise, I would have asked how to gain control over my network. I'm currently testing the software, and my question seemed legitimate to understand how WAPT works in different situations. The WAPT documentation states that you need a specific sample of the machines in your network. I was testing this sample to see the results.
2. In the enterprise version, you can activate the audit feature and verify that the uninstallation key or the .exe binary is still there.
Okay, thanks for the reply. So in the Community version, we have no way to get this information?
djedje68
Messages: 9
Registration: December 16, 2019 - 1:02 PM

December 19, 2019 - 10:52

How does WAPT behave with software already installed before WAPT deployment?

For example,
FusionInventory is already installed at version 2.4.
If I add my WAPT repository with version 2.5.2, it doesn't install it because it detects that the package is already installed.

How can we force the software replacement?

The goal is to replace all software installed "before" WAPT for finer control.
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

December 19, 2019 - 12:27

The Fusion package from tis uses install_exe_if_needed which has the min_version argument.

Therefore, wapt will force a reinstallation of Fusion.

https://wapt.tranquil.it/store/details- ... 2.5-2.wapt
djedje68
Messages: 9
Registration: December 16, 2019 - 1:02 PM

December 19, 2019 - 12:57

The Fusion package from tis uses install_exe_if_needed which has the min_version argument.

Therefore, wapt will force a reinstallation of Fusion.

https://wapt.tranquil.it/store/details- ... 2.5-2.wapt
Great! Thanks for the feedback

Even if the package had been installed by a means other than WAPT?

Thank you for the answer
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

December 19, 2019 - 3:28 PM

Hello djedje68,
djedje68 wrote: Dec 19, 2019 - 12:57
The Fusion package from tis uses install_exe_if_needed which has the min_version argument.

Therefore, wapt will force a reinstallation of Fusion.

https://wapt.tranquil.it/store/details- ... 2.5-2.wapt
Great! Thanks for the feedback

Even if the package had been installed by a means other than WAPT?
The `install_exe_if_needed` function compares the version to the registry information displayed on the "Programs and Features" screen. If the software is correctly registered, `install_exe_if_needed` will only install it if the version is lower than the one provided. However, sometimes software fails to register its version correctly; in this case, additional work is required to correct the problem.

Sincerely,

Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
djedje68
Messages: 9
Registration: December 16, 2019 - 1:02 PM

December 19, 2019 - 3:37 PM

The `install_exe_if_needed` function compares the version to the registry information displayed on the "Programs and Features" screen. If the software is correctly registered, `install_exe_if_needed` will only install it if the version is lower than the one provided. However, sometimes software fails to register its version correctly; in this case, additional work is required to correct the problem.
Great answer!! Thank you so much!
Locked