Page 1 of 1
[SOLVED] Manual uninstallation of a package
Published: Dec 16, 2019 - 1:07 PM
by djedje68
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.
Re: Manual uninstallation of a package
Published: Dec 17, 2019 - 2:17 PM
by dcardon
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
Re: Manual uninstallation of a package
Published: Dec 19, 2019 - 09:42
by djedje68
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?
Re: Manual uninstallation of a package
Published: Dec 19, 2019 - 10:52 AM
by djedje68
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.
Re: Manual uninstallation of a package
Published: Dec 19, 2019 - 12:27
by sfonteneau
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
Re: Manual uninstallation of a package
Published: Dec 19, 2019 - 12:57
by djedje68
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
Re: Manual uninstallation of a package
Published: Dec 19, 2019 - 3:28 PM
by dcardon
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
Re: Manual uninstallation of a package
Published: Dec 19, 2019 - 3:37 PM
by djedje68
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!