Ich habe Probleme beim Deinstallieren von OFFICE 2013 Standard über WAPT.
Ich habe verschiedene Wege versucht, alles zu deinstallieren, aber es gelingt mir nicht.
Zuerst über den Deinstallationsschlüssel:
Ich habe die UID über wapt-get list-registry abgerufen, was mir einige Ergebnisse lieferte, aber wenn ich versuche, es über PyScripter zu deinstallieren, funktioniert es nicht (Rückgabewert:
Code: Alle auswählen
Ligne de Commande : uninstall "C:\waptdev\Office2013Std_32bits-wapt\WAPT\.."
Uninstalling C:\waptdev\Office2013Std_32bits-wapt ...
None
Uninstallation done)Code: Alle auswählen
uninstallkey = ['{90150000-002A-0000-1000-0000000FF1CE}','{90150000-002A-040C-1000-0000000FF1CE}','Office15.STANDARD','Office2013Std_32bits','{90150000-0012-0000-0000-0000000FF1CE}','{90150000-001F-0401-0000-0000000FF1CE}','{90150000-001F-0407-0000-0000000FF1CE}','{90150000-001F-0409-0000-0000000FF1CE}','{90150000-001F-040C-0000-0000000FF1CE}','{90150000-001F-0413-0000-0000000FF1CE}','{90150000-001F-0C0A-0000-0000000FF1CE}','{90150000-002C-040C-0000-0000000FF1CE}','{90150000-006E-040C-0000-0000000FF1CE}','{90150000-00E1-040C-0000-0000000FF1CE}','{90150000-00E2-040C-0000-0000000FF1CE}']Code: Alle auswählen
Ligne de Commande : uninstall "C:\waptdev\Office2013Std_32bits-wapt\WAPT\.."
Uninstalling C:\waptdev\Office2013Std_32bits-wapt ...
None
Uninstallation done)Code: Alle auswählen
uninstallstring =['"C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE15\Office Setup Controller\Setup.exe /uninstall Standard /config silent.xml"']
Code: Alle auswählen
def uninstall():
print("Desinstallation d\'Office")
run('"C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE15\Office Setup Controller\Setup.exe /uninstall Standard /config silent.xml"')Code: Alle auswählen
Ligne de Commande : uninstall "C:\waptdev\Office2013Std_32bits-wapt\WAPT\.."
Uninstalling C:\waptdev\Office2013Std_32bits-wapt ...
Desinstallation d'Office
2018-10-24 16:11:02,690 CRITICAL Fatal error in uninstall function: CalledProcessErrorOutput: Command '"C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\OFFICE15\\Office Setup Controller\\Setup.exe /uninstall Standard /config silent.xml"' returned non-zero exit status 1.
Output:Le chemin d'accÇùs spǸcifiǸ est introuvable.
:
Traceback (most recent call last):
File "c:\wapt\waptpackage.py", line 1843, in call_setup_hook
hookdata = hook_func()
File "C:\waptdev\Office2013Std_32bits-wapt\setup.py", line 39, in uninstall
run('"C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE15\Office Setup Controller\Setup.exe /uninstall Standard /config silent.xml"')
File "c:\wapt\common.py", line 3317, in run
return ensure_unicode(setuphelpers.run(*arg,pidlist=self.pidlist,**args))
File "c:\wapt\setuphelpers.py", line 1044, in run
raise CalledProcessErrorOutput(proc.returncode,cmd,''.join(output))
CalledProcessErrorOutput: Command '"C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\OFFICE15\\Office Setup Controller\\Setup.exe /uninstall Standard /config silent.xml"' returned non-zero exit status 1.
Output:Le chemin d'accŠs sp‚cifi‚ est introuvable.
FATAL ERROR : CalledProcessErrorOutput: Command '"C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\OFFICE15\\Office Setup Controller\\Setup.exe /uninstall Standard /config silent.xml"' returned non-zero exit status 1.
Output:Le chemin d'accÇùs spǸcifiǸ est introuvable.
Exit code: 3
Die Installation verläuft sehr gut, sie ist völlig transparent, die MSP-Datei befindet sich am richtigen Ort, ebenso die silent.xml-Datei.
Wenn ich den folgenden Befehl in einer Shell ausführe, funktioniert er einwandfrei und ohne Fehlermeldung....
Code: Alle auswählen
C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE15\Office Setup Controller\Setup.exe /uninstall Standard /config silent.xmlCode: Alle auswählen
r"C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE15\Office Setup Controller\Setup.exe /uninstall Standard /config silent.xml" Ich habe auch versucht, die "pathlib"-Bibliothek zu verwenden, aber sie ist nicht in WAPT integriert, und ich konnte sie nicht zum Laufen bringen.
Ich habe meine gesamte setup.py-Datei unten beigefügt, falls sie Ihnen Anregungen gibt, aber im Vergleich zu den verschiedenen Themen zu OFFICE, die in den Foren zu finden sind, ist daran nichts besonders Originelles
Dank im Voraus!
fbst
Code: Alle auswählen
from setuphelpers import *
import time
windowspath64 = r"C:\Program Files (x86)\Common Files\microsoft shared\OFFICE15\Office Setup Controller"
windowspath32 = r"C:\Program Files\Common Files\microsoft shared\OFFICE15\Office Setup Controller"
waptpath = r"C:\waptdev\Office2013Std_32bits-wapt\Microsoft Office 2013 32bits"
if iswin64():
uninstallstring =['"%s\Setup.exe /uninstall Standard /config silent.xml"',windowspath64]
else:
uninstallstring =['"C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE15\Office Setup Controller\Setup.exe /unininstall Standard /config silent.xml"']
def install():
def killsoft():
for soft in ('WINWORD.EXE','POWERPNT.EXE','EXCEL.exe','MSPUB.EXE','MSACCESS.EXE','INFOPATH.EXE','lync.exe','ONENOTE.EXE','OUTLOOK.EXE','ONENOTEM.EXE','MSOSYNC.EXE','GROOVE.EXE'):
if isrunning(soft):
print ("closing %s" % soft)
killalltasks(soft)
softname = 'Microsoft Office Professionnel Standard 2013'
check_installed_out = installed_softwares(softname)
if not check_installed_out:
print('installing Office 2013')
killsoft()
cmd = ('%s\setup.exe /adminfile setup.msp /config silent.xml',waptpath)
run(cmd,timeout=1200,accept_returncodes=[1641,3010,0])
time.sleep(30)
filecopyto("silent.xml",("C:\Program Files\Common Files\"))
else:
print('repair Office 2013')
killsoft()
cmd = '"C:\Program Files (x86)\Common Files\microsoft shared\OFFICE15\Office Setup Controller\setup.exe" /repair Standard /config silent.xml"'
run(cmd,timeout=1200,accept_returncodes=[1641,3010,0])