Uninstall a package

Questions about WAPT Server / Requests and help related to the WAPT server
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
koky
Messages: 3
Registration: March 10, 2016 - 09:56

March 10, 2016 - 10:03

Good morning,

I have a final year project, and it consists of installing WAPT-server and getting it working in my company's environment.

The problem is that I can't uninstall the packages.
I have a Windows Server 2008 R2 where I installed wapt-server!

I go to a machine where the wapt agent is installed, then in general, I right-click on the package, uninstall a package, then it tells me in the console to-upgrade and missing... I'm attaching a screenshot!

I don't know what to do...
2016-03-10_100240.jpg
2016-03-10_100240.jpg (215.54 KB) Viewed 9689 times
Thank you!
Floflobel
Messages: 135
Registration: Oct 15, 2015 - 5:32 p.m.

March 10, 2016 - 6:49 PM

Is the package available on your repo?

http://yourrepo/wapt
koky
Messages: 3
Registration: March 10, 2016 - 09:56

March 10, 2016 - 8:11 PM

What is a repo?
aurelien
Messages: 3
Registration: March 24, 2016 - 08:50

April 7, 2016 - 9:20 AM

Your "repo" is where your packages are stored.
If you replaced your "Firefox 26" with a newer version, you need to remove that package from the list of packages to install.
I don't know how you do it on your system, but I created deployment groups (grpWin7 or grpWinXP). With each software update, I add it to the group and remove the old version.

I hope my answer is correct; I'm a new WAPT user.
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

April 7, 2016 - 12:07 PM

With each software update, I integrate it into the group and remove the old version.
When you add software to a machine, you are not adding the software version.
You just add: lsa-firefox

The wapt client will always look for the latest version of Firefox in the repository.
So when you duplicate the latest version of Firefox from the tranquil.it repositories, there's no need to modify your groups.

This is useful, however, when the software version is included in the package name. For example, lsa-java7

When a package is uninstalled, if it is still in a group or in the list of software to install on the machine, then the package will try to reinstall itself and will therefore reappear as "missing"

Basically, they ask for uninstallation then they ask for installation --> doesn't make sense.

Simon
TISwapt-tester
Messages: 5
Registration: May 9, 2016 - 3:19 p.m.

May 10, 2016 - 10:48

Hello,

I'm reviving this thread because I'm facing a similar problem:

I deleted a package (7zip) from the WAPT console, and I also removed it from the packages it was in, but this package is still present in my http://myrepo/wapt directory.

How can I permanently remove it?
The installation of this package failed (probably due to the package itself), and it keeps trying to install on every machine, which is annoying, especially since I've deleted it everywhere I could see it.

Also, I deleted a package group I had created, and every time I click on "Edit Machine" on the machines that had this group assigned to them, I get this message:
"Warning: The package(s) ["package1"] could not be found and have been ignored."
This is beyond frustrating...
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

May 10, 2016 - 11:46

Hello,

I invite you to read a short overview on package management on a WAPT client:

https://wiki.lesfourmisduweb.org/index. ... 7un_client.

In your case, you either need to fix the 7zip package (understand why it's failing) and then fix and push a new version of the package.

Or you need to "forget" the package on the machine. This will remove the error from the console.

To forget 7zip,

use `wapt-get forget tis-7zip`

or

right-click on the failed package in the machine from the console and then select "Forget Package".
TISwapt-tester
Messages: 5
Registration: May 9, 2016 - 3:19 p.m.

May 10, 2016 - 1:26 PM

Thanks for your help, I had just figured out how to forget the package.




EDIT: And the `forget` command turns out to be very useful for forgetting a package that is no longer displayed in the console.
TISwapt-tester
Messages: 5
Registration: May 9, 2016 - 3:19 p.m.

May 10, 2016 - 3:46 PM

However, I don't understand. I've removed the package from everywhere and I've also used the `forget` command, but I still get the message saying that the packages weren't found and are therefore ignored as soon as I click on "edit machine configuration"

How come it's still trying to find those packages??? (one of which is a package group I created and then deleted)



EDIT: I solved the problem by deleting the remote-machine.wapt file located in

Code: Select all

C:\wapt\waptserver\repository\wapt-host\
So that a new hosts file is generated. It therefore appears that this hosts file is not being updated correctly.
Daniel Traversa
Messages: 16
Registration: February 21, 2017 - 2:26 PM

September 28, 2017 - 08:59

Hello,

I'm encountering the same problem. I've noticed that even when it uninstalls cleanly, the following registry key isn't deleted:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{23170F69-40C1-2702-1604-000001000000}.

As a result, we get this message:
Installing 7-Zip 16.4-8
MSI 7z1604-x64.msi already installed. Skipping msiexec.

Is it possible to delete a registry key with Wapt before installation?
Thank you.
Locked