Page 2 of 2

Re: Self-Service and the current user

Published: April 14, 2026 - 8:39 AM
by stan
bump :D

Re: Self-Service and the current user

Published: April 14, 2026 - 09:47
by dcardon
Hi Stan,

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

Denis

Re: Self-Service and the current user

Published: April 17, 2026 - 2:17 PM
by stan
Hello Denis,

Here is the version: WAPTConsole Enterprise 2.6.1.17765

Stan

Re: Self-Service and the current user

Published: April 17, 2026 - 3:23 PM
by dcardon
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

Re: Self-Service and the current user

Published: April 17, 2026 - 4:09 PM
by stan
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:

Re: Self-Service and the current user

Published: April 21, 2026 - 11:32 AM
by stan
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