[RESOLVED] Self-Service and the current user

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
stan
Messages: 17
Registration: May 26, 2025 - 10:16 p.m.

April 14, 2026 - 08:39

bump :D
User avatar
dcardon
WAPT Expert
Messages: 1929
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

April 14, 2026 - 09:47

Hi Stan,

which version of Wapt (see forum rules :-) )?

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
stan
Messages: 17
Registration: May 26, 2025 - 10:16 p.m.

April 17, 2026 - 2:17 PM

Hello Denis,

Here is the version: WAPTConsole Enterprise 2.6.1.17765

Stan
User avatar
dcardon
WAPT Expert
Messages: 1929
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

April 17, 2026 - 3:23 PM

Hello Stan,

Okay, it's a recent enough version that it should work... As for the 0/1 that is returned, I'm not sure we should rely on it too much.

Just to be sure, you don't have a `def uninstall()` that deletes the file in `c:\programdata`? Does it still bug out the same way when you use the GUID from the MSI instead of its path? In the user session, the GUID does indeed match the one in the package (we've seen GUIDs generated on the fly before...)

Could you please run the command again in debug mode?

Code: Select all

wapt-get session-clean -l debug
And could you add something to the function to make sure you actually go through it (like creating a file, etc.)?

Speaking of which, it's true that we could keep logs of this in %localappdata%\wapt-get, at least with the fact that it executed and the return code of the function.

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
stan
Messages: 17
Registration: May 26, 2025 - 10:16 p.m.

April 17, 2026 - 4:09 PM

Good morning,

Here is the result:

Code: Select all

[DEBUG] Logging TSynLog with level=debug to C:\Users\X\AppData\Local\wapt-get-log\wapt-get.log
2026-04-17 16:00:14,881 DEBUG Default encoding : utf-8
2026-04-17 16:00:14,881 DEBUG Caller: ['', 'session-cleanup', '-l', 'debug']
2026-04-17 16:00:14,881 DEBUG Python path ['C:\\Program Files (x86)\\wapt', 'C:\\Program Files (x86)\\wapt\\python310.zip', 'C:\\Program Files (x86)\\wapt', 'C:\\Program Files (x86)\\wapt\\DLLs', 'C:\\Program Files (x86)\\wapt\\lib\\site-packages', 'C:\\Program Files (x86)\\wapt\\lib\\site-packages\\win32', 'C:\\Program Files (x86)\\wapt\\lib\\site-packages\\win32\\lib', 'C:\\Program Files (x86)\\wapt\\lib\\site-packages\\Pythonwin']
2026-04-17 16:00:14,881 INFO Using local waptservice configuration C:\Program Files (x86)\wapt\wapt-get.ini
2026-04-17 16:00:14,881 DEBUG Config file: C:\Program Files (x86)\wapt\wapt-get.ini
2026-04-17 16:00:14,881 INFO Using openssl OpenSSL 3.5.5 27 Jan 2026
2026-04-17 16:00:14,883 DEBUG Thread 17204 is connecting to wapt db
Using config file: C:\Program Files (x86)\wapt\wapt-get.ini
2026-04-17 16:00:14,886 INFO User Groups:[]
2026-04-17 16:00:14,886 DEBUG Host certificate C:\Program Files (x86)\wapt\private\5f870aea-badb-4882-965a-fc5ceea3a828.crt not found, not using it for auth on repo global
2026-04-17 16:00:14,887 DEBUG 17204 Loading config from file C:\Program Files (x86)\wapt\conf.d\cfg-X-waptagent.json
2026-04-17 16:00:14,887 DEBUG 17204 Loading config from file C:\Program Files (x86)\wapt\conf.d\cfg-X-waptagent_DSN.json
2026-04-17 16:00:14,890 INFO WAPT base directory : C:\Program Files (x86)\wapt
2026-04-17 16:00:14,890 DEBUG cleanup session db, removed not installed package entries
2026-04-17 16:00:14,891 DEBUG Thread 17204 is connecting to wapt db
2026-04-17 16:00:14,893 DEBUG DB Start transaction
2026-04-17 16:00:14,894 DEBUG DB commit
1
20260417 14001455  ! rotat wapt-get 2.6.1.17765 TSynLog 2.4.13434 {12 10.08 8.94 7GB/7.7GB 23.1GB/26.7GB 66581b01}
20260417 14001455  ! info  SetThreadName 1 4334 17204=Main
20260417 14001455  ! info  wapt-get terminate
And if I do it a second time, only the 1 changes to 0.... :roll:
stan
Messages: 17
Registration: May 26, 2025 - 10:16 p.m.

April 21, 2026 - 11:32

dcardon wrote: Apr 17, 2026 - 3:23 PM Does it still bug out the same way when you use the GUID from the MSI instead of its path? In the user session, the GUID does indeed correspond to the one in the package (we've already seen GUIDs that were generated on the fly...)
Hello Denis,

After trying quite a few things, replacing the GUID file with the MSI file finally unlocked the uninstallation. A huge thank you!

By the way, I'm offering my "proton-authenticator" package for the WAPT store, if the team is interested in adding it:

Code: Select all

# -*- coding: utf-8 -*-
from setuphelpers import *
from time import sleep

new_path = makepath(programdata(), "wapt", "ProtonAuthenticator.msi")
uninstall_key = "{F91F8A3E-840F-4B27-B877-13797064C5CA}"

def install():
    bin_name = glob.glob("ProtonAuthenticator*.msi")[0]
    filecopyto(bin_name , new_path)
    if isfile(new_path):
        print("Proton Authenticator a été copié dans " + new_path)
    else:
        print("Erreur lors de la copie de Proton Authenticator dans " + new_path)
        return "ERROR"

def session_setup():
    try:
        install_msi_if_needed(new_path)
    except Exception as e:
        print("Erreur lors de l'installation de Proton Authenticator : " + str(e))
        return "ERROR"
    print("Proton Authenticator a été installé")

def session_cleanup():
    r"""Supprime le raccourci du bureau de l'utilisateur
    """
    run("msiexec /x \"%s\" /qn" % uninstall_key)
    sleep(2)
    remove_file(new_path)

def uninstall():
    print("Désinstallation de Proton Authenticator...")
And of course, we're offering you the following beautiful icon, in 48x48:
https://i.imgur.com/fHG3Vwg.png

Sincerely,

Stan :D
Locked