Guten Morgen,
Auch nach etwa zehnmaliger Durchführung des Vorgangs passiert nichts.
Hier ist mein Skript:
Code: Alle auswählen
# -*- coding: utf-8 -*-
from setuphelpers import *
new_path = makepath(programdata(), "wapt", "ProtonAuthenticator.msi")
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)
return
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é")
return "OK"
def session_cleanup():
run("msiexec /X" + new_path + " /qn")
remove_file(new_path)
Wenn ich die Befehle eingebe, erhalte ich Folgendes:
Code: Alle auswählen
C:\Users\stan>wapt-get remove X-proton-authenticator
Désinstallation de X-proton-authenticator mis en file d'attente
Désinstallé(s) : X-proton-authenticator
C:\Users\stan>wapt-get session-cleanup ALL
Using config file: C:\Program Files (x86)\wapt\wapt-get.ini
1
C:\Users\stan>wapt-get session-cleanup ALL
Using config file: C:\Program Files (x86)\wapt\wapt-get.ini
0
Der Wert ging von 1 auf 0, also sollte es für mich funktionieren, tut es aber nicht.
Wenn ich jedoch die Zeile "msiexec /XProtonAuthenticator.msi /qn" in der CLI ausführe, funktioniert es einwandfrei.
Dank im Voraus
