Page 1 of 1
Force uninstallation of a package from within another package?
Published: November 21, 2017 - 5:19 PM
by perch
Good evening,
I'm finalizing two packages for the Veyon software (student computer monitoring).
Is it possible, from within a package that needs to be installed, to uninstall an existing WAPT package? Or, failing that, to reinstall software that's already present, even if it's the same version? This should only be done once, as long as the package hasn't been updated on the server.
This new installation uses a configuration file that doesn't exist for the students.
Re: Force uninstallation of a package from another package?
Published: Dec 1, 2017 - 12:29
by fludo67
Hello,
you have several methods.
If you have created a new package with a different name:
1) in your WAPT\control package file: add the name of the package to remove to the conflicts section;
2) in your installation routine, add the line wapt.remove('the name of the package to remove').
If you want to modify the current package, it seems simpler to add your configuration file and increment the package version number so that it updates on the machines.
Re: Force uninstallation of a package from another package?
Published: Dec 2, 2017 - 10:00 PM
by vcardon
This question was also asked on the mailing list:
https://lists.tranquil.it/pipermail/wap ... 02463.html
Simon's answer on the mailing list seems more accurate and will more effectively achieve the desired result:
https://lists.tranquil.it/pipermail/wap ... 02468.html
Re: Force uninstallation of a package from another package?
Published: Dec 7, 2017 - 1:54 PM
by perch
Thank you.
By default, I usually use forums because they're more easily indexed by search engines, which is why questions can appear in the list a few days later if there's no response on the forum.
I know we're all volunteers, and that's absolutely not a criticism. In fact, thank you to those who take the time to reply.
Re: Force uninstallation of a package from another package?
Published: January 10, 2018 - 12:07 PM
by perch
Hello,
I'm revisiting the WAPT.remove('package-name') command and encountering a problem.
When removing the package, the uninstallation completes correctly, but it's no longer silent. For your information, the original package handles silent uninstallation correctly.
To double-check, I also used the command `wapt-get remove package-name`, and the problem is identical. I've also tested this on several popular packages and I'm experiencing the same issue.
Is it necessary to include a variable or other information to ensure the silent uninstallation of the original package?