[SOLVED] Uninstalling the xmind package

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
hasop
Messages: 44
Registration: December 13, 2017 - 10:31

February 1, 2018 - 2:35 PM

Hello,

I tested the tis-xmind package, replacing it with version 8U6 (but I think the problem is the same with the version included in the package):
When trying to uninstall the package, I noticed that the package was indeed removed from the list in the console, but the tool is still visible in the inventory.

I ran `wapt-get list-registry`.
The tool is listed correctly with an `uninstallstring="...\unins000.exe"`. There is no `/S` at the end of the string. Could the problem be related to this?

Is it possible to customize the uninstallation (in a `def uninstall():`) by retrieving the contents of the `uninstallstring`?
For example, by running the string and adding the missing `/S`?

Thank you in advance for your help.
Last edited by hasop on 20 Feb 2018 - 15:34, edited 1 time.
WAPT 1.5.1.9
Server: CentOS 7
Administration: Windows 7 Pro
Clients: Windows 7 Pro
User avatar
agauvrit
WAPT Expert
Messages: 238
Registration: Nov 17, 2016 - 10:25
Location: Nantes
Contact :

February 20, 2018 - 3:30 PM

Good morning,

Yes, you can override the uninstallation with the function

Code: Select all

uninstall():
Alexander
hasop
Messages: 44
Registration: December 13, 2017 - 10:31

February 20, 2018 - 3:34 PM

OK for "def uninstall():", but can we retrieve the contents of uninstallstring to add a /S at the end?
WAPT 1.5.1.9
Server: CentOS 7
Administration: Windows 7 Pro
Clients: Windows 7 Pro
User avatar
agauvrit
WAPT Expert
Messages: 238
Registration: Nov 17, 2016 - 10:25
Location: Nantes
Contact :

February 20, 2018 - 3:41 PM

Yes, it's hidden in the documentation:

https://www.wapt.fr/fr/doc-1.5/Creation ... -if-needed
hasop
Messages: 44
Registration: December 13, 2017 - 10:31

February 20, 2018 - 3:55 PM

I'm not sure I understand.
Does `uninstallstring` equal `uninstallkey`?
WAPT 1.5.1.9
Server: CentOS 7
Administration: Windows 7 Pro
Clients: Windows 7 Pro
User avatar
agauvrit
WAPT Expert
Messages: 238
Registration: Nov 17, 2016 - 10:25
Location: Nantes
Contact :

February 20, 2018 - 4:10 PM

  • Uninstallkey = Registry entry with a set of subkeys (Name, Description, Publisher, Version, Uninstallstring etc)
  • Uninstallstring = Sub-entry of an uninstallkey that contains the text string executed for uninstallation
Locked