Bonjour,
Je prépare un package Office 2019, linstallation et le désinstallation se font sans problème depuis la console, mais par contre avec le self-service la désinstallation ne se fait pas, avez-vous une idée ? voici mon setup :
# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = []
def install():
print('Installing Microsoft Office 2019')
run(r"setup.exe /configure Configuration.xml")
def uninstall():
print('Uninstalling Microsoft Office 2019')
run(r"setup.exe /configure Configuration_SUPPRESS.xml")
Merci pour votre aide.
Cordialement Patrick
Bonjour Patrick,
as-tu essayé via ce tuto : http://reseaux85.fr/index.php?title=Deploiement_Microsoft_Office
----------------------------------------------------------------------------------------------
*Gaëtan SEGAT * Gestionnaire Parc Informatique Inserm| DRSI Toulouse CHU Purpan – BP 3048 | 31024 Toulouse cedex 3 Tél. 05 62 74 83 58
Le 30/03/2020 à 17:41, Patrick BERTHELOT a écrit :
Bonjour,
Je prépare un package Office 2019, l’installation et le désinstallation se font sans problème depuis la console, mais par contre avec le self-service la désinstallation ne se fait pas, avez-vous une idée ? voici mon setup :
# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = []
def install():
print('Installing Microsoft Office 2019')
run(r"setup.exe /configure Configuration.xml")
def uninstall():
print('Uninstalling Microsoft Office 2019')
run(r"setup.exe /configure Configuration_SUPPRESS.xml")
Merci pour votre aide.
Cordialement Patrick
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
Bonjour Gaëtan,
Cest effectivement la méthode que jutilisais pour office 2016 mais qui ne fonctionne plus pour office 2019.
Merci quand meme.
Cordialement Patrick
De : WAPT wapt-bounces@lists.tranquil.it De la part de Gaëtan SEGAT Envoyé : mardi 31 mars 2020 10:02 À : wapt@lists.tranquil.it Objet : Re: [Wapt] problème désinstallation office 2019
Bonjour Patrick,
as-tu essayé via ce tuto : http://reseaux85.fr/index.php?title=Deploiement_Microsoft_Office
-------------------------------------------------------------------------- -------------------- Gaëtan SEGAT Gestionnaire Parc Informatique Inserm | DRSI Toulouse CHU Purpan BP 3048 | 31024 Toulouse cedex 3 Tél. 05 62 74 83 58
Le 30/03/2020 à 17:41, Patrick BERTHELOT a écrit :
Bonjour,
Je prépare un package Office 2019, linstallation et le désinstallation se font sans problème depuis la console, mais par contre avec le self-service la désinstallation ne se fait pas, avez-vous une idée ? voici mon setup :
# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = []
def install():
print('Installing Microsoft Office 2019')
run(r"setup.exe /configure Configuration.xml")
def uninstall():
print('Uninstalling Microsoft Office 2019')
run(r"setup.exe /configure Configuration_SUPPRESS.xml")
Merci pour votre aide.
Cordialement Patrick
_______________________________________________ WAPT mailing list WAPT@lists.tranquil.it mailto:WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
Lors de votre désinstallation le paquet n'est plus disponible (et donc les fichier ne sont pas dispo)
Lors de l'installation vous devez donc copier votre fichier "Configuration_SUPPRESS.xml" dans C:\Program Files par exemple.
dans uninstall vous devrez donc mentionner le fichier "Configuration_SUPPRESS.xml" dans C:\Program Files
Simon
Le 30/03/2020 à 17:41, Patrick BERTHELOT a écrit :
Bonjour,
Je prépare un package Office 2019, l’installation et le désinstallation se font sans problème depuis la console, mais par contre avec le self-service la désinstallation ne se fait pas, avez-vous une idée ? voici mon setup :
# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = []
def install():
print('Installing Microsoft Office 2019')
run(r"setup.exe /configure Configuration.xml")
def uninstall():
print('Uninstalling Microsoft Office 2019')
run(r"setup.exe /configure Configuration_SUPPRESS.xml")
Merci pour votre aide.
Cordialement Patrick
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
Cest bien ce que je commence a comprendre, je suis sur une autre piste :
https://forum.tranquil.it/viewtopic.php?t=1956
Cordialement Patrick
De : WAPT wapt-bounces@lists.tranquil.it De la part de Simon FONTENEAU Envoyé : mardi 31 mars 2020 10:38 À : wapt@lists.tranquil.it Objet : Re: [Wapt] problème désinstallation office 2019
Lors de votre désinstallation le paquet n'est plus disponible (et donc les fichier ne sont pas dispo)
Lors de l'installation vous devez donc copier votre fichier "Configuration_SUPPRESS.xml" dans C:\Program Files par exemple.
dans uninstall vous devrez donc mentionner le fichier "Configuration_SUPPRESS.xml" dans C:\Program Files
Simon
Le 30/03/2020 à 17:41, Patrick BERTHELOT a écrit :
Bonjour,
Je prépare un package Office 2019, linstallation et le désinstallation se font sans problème depuis la console, mais par contre avec le self-service la désinstallation ne se fait pas, avez-vous une idée ? voici mon setup :
# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = []
def install():
print('Installing Microsoft Office 2019')
run(r"setup.exe /configure Configuration.xml")
def uninstall():
print('Uninstalling Microsoft Office 2019')
run(r"setup.exe /configure Configuration_SUPPRESS.xml")
Merci pour votre aide.
Cordialement Patrick
_______________________________________________ WAPT mailing list WAPT@lists.tranquil.it mailto:WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
Bonjour,
Je suis aussi en train de valider mon paquet Office 2019. Il faut aussi copier setup.exe en local pour la désinstallation. Il est encore loin d'être optimisé (et je ne suis encore qu'un petit padawan en WAPT) mais voici ce que ça donne si ça peut aider :
# -*- coding: utf-8 -*- from setuphelpers import *
uninstallkey = []
def install(): print('installing %s' % control.asrequirement())
print('arret des processus en cours') 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','OfficeClickToRun.exe','IntegratedOffice.exe'): if isrunning(soft): print ("closing %s" % soft) killalltasks(soft)
print('desinstallation des anciennes versions') for soft in installed_softwares('O365ProPlusRetail - fr-fr'): print('desinstallation d office 365') uninstallcmd = u'setup.exe /configure uninstallALL.xml' run(uninstallcmd,timeout=1800,accept_returncodes=[1641,3010,0])
print('copie des fichiers en local pour desinstallation') if not isdir(r'C:\Program Files\wapt-files'): mkdirs(r'C:\Program Files\wapt-files') filecopyto(r'setup.exe',r'C:\Program Files\wapt-files\setup.exe') filecopyto(r'uninstallALL.xml',r'C:\Program Files\wapt-files\uninstallALL.xml')
domainepc = get_domain_fromregistry()
print('debut d installation') #installation d office 2019 if not uninstall_key_exists('ProPlus2019Volume - fr-fr'): if domainepc == 'domaine1': installcmd = u'setup.exe /configure Office2019-outlook-domaine1.xml' else: installcmd = u'setup.exe /configure Office2019-outlook-domaine2.xml' print(installcmd) print('installation d office 2019 sur domaine %s' % domainepc) run(installcmd,timeout=1800,accept_returncodes=[1641,3010,0]) else: print('Office 2019 deja installe sur le poste')
print('fin d install')
def uninstall(): print('uninstalling %s' % control.asrequirement())
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','OfficeClickToRun.exe','IntegratedOffice.exe'): if isrunning(soft): print ("closing %s" % soft) killalltasks(soft)
uninstallcmd = r'"C:\Program Files\wapt-files\setup.exe" /configure "C:\Program Files\wapt-files\uninstallALL.xml"' print('désinstallation de Microsoft Office') run(uninstallcmd,timeout=1800,accept_returncodes=[1641,3010,0])
print('fin de uninstall')
Cordialement, Mathieu
De : WAPT wapt-bounces@lists.tranquil.it De la part de Simon FONTENEAU Envoyé : mardi 31 mars 2020 10:38 À : wapt@lists.tranquil.it Objet : Re: [Wapt] problème désinstallation office 2019
Lors de votre désinstallation le paquet n'est plus disponible (et donc les fichier ne sont pas dispo)
Lors de l'installation vous devez donc copier votre fichier "Configuration_SUPPRESS.xml" dans C:\Program Files par exemple.
dans uninstall vous devrez donc mentionner le fichier "Configuration_SUPPRESS.xml" dans C:\Program Files
Simon
Le 30/03/2020 à 17:41, Patrick BERTHELOT a écrit : Bonjour,
Je prépare un package Office 2019, l'installation et le désinstallation se font sans problème depuis la console, mais par contre avec le self-service la désinstallation ne se fait pas, avez-vous une idée ? voici mon setup :
# -*- coding: utf-8 -*- from setuphelpers import *
uninstallkey = []
def install(): print('Installing Microsoft Office 2019') run(r"setup.exe /configure Configuration.xml")
def uninstall(): print('Uninstalling Microsoft Office 2019') run(r"setup.exe /configure Configuration_SUPPRESS.xml")
Merci pour votre aide.
Cordialement Patrick
_______________________________________________
WAPT mailing list
WAPT@lists.tranquil.itmailto:WAPT@lists.tranquil.it
Super merci, ca va me permettre de bien améliorer mon package, mais pour la désinstallation la commande « "C:\Program Files\wapt-files\setup.exe" /configure "C:\Program Files\wapt-files\uninstallALL.xml" » a besoin du rep « office » alors que la commande « "C:\Program Files\Common Files\Microsoft Shared\ClickToRun\OfficeClickToRun.exe" scenario=install scenariosubtype=ARP sourcetype=None productstoremove=ProPlus2019Volume DisplayLevel=False » semble complètement autonome mais jai bien du mal a trouver/comprendre tous les paramètres !!!
Cordialement Patrick
De : WAPT wapt-bounces@lists.tranquil.it De la part de TURETTI Mathieu Envoyé : mardi 31 mars 2020 11:40 À : wapt@lists.tranquil.it Objet : Re: [Wapt] problème désinstallation office 2019
Bonjour,
Je suis aussi en train de valider mon paquet Office 2019. Il faut aussi copier setup.exe en local pour la désinstallation.
Il est encore loin dêtre optimisé (et je ne suis encore quun petit padawan en WAPT) mais voici ce que ça donne si ça peut aider :
# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = []
def install():
print('installing %s' % control.asrequirement())
print('arret des processus en cours')
for soft in ('WINWORD.EXE','POWERPNT.EXE','EXCEL.exe','MSPUB.EXE','MSACCESS.EXE','INFO PATH.EXE','lync.exe','ONENOTE.EXE','OUTLOOK.EXE','ONENOTEM.EXE','MSOSYNC.E XE','GROOVE.EXE','OfficeClickToRun.exe','IntegratedOffice.exe'):
if isrunning(soft):
print ("closing %s" % soft)
killalltasks(soft)
print('desinstallation des anciennes versions')
for soft in installed_softwares('O365ProPlusRetail - fr-fr'):
print('desinstallation d office 365')
uninstallcmd = u'setup.exe /configure uninstallALL.xml'
run(uninstallcmd,timeout=1800,accept_returncodes=[1641,3010,0])
print('copie des fichiers en local pour desinstallation')
if not isdir(r'C:\Program Files\wapt-files'):
mkdirs(r'C:\Program Files\wapt-files')
filecopyto(r'setup.exe',r'C:\Program Files\wapt-files\setup.exe')
filecopyto(r'uninstallALL.xml',r'C:\Program Files\wapt-files\uninstallALL.xml')
domainepc = get_domain_fromregistry()
print('debut d installation')
#installation d office 2019
if not uninstall_key_exists('ProPlus2019Volume - fr-fr'):
if domainepc == 'domaine1':
installcmd = u'setup.exe /configure Office2019-outlook-domaine1.xml'
else:
installcmd = u'setup.exe /configure Office2019-outlook-domaine2.xml'
print(installcmd)
print('installation d office 2019 sur domaine %s' % domainepc)
run(installcmd,timeout=1800,accept_returncodes=[1641,3010,0])
else:
print('Office 2019 deja installe sur le poste')
print('fin d install')
def uninstall():
print('uninstalling %s' % control.asrequirement())
for soft in ('WINWORD.EXE','POWERPNT.EXE','EXCEL.exe','MSPUB.EXE','MSACCESS.EXE','INFO PATH.EXE','lync.exe','ONENOTE.EXE','OUTLOOK.EXE','ONENOTEM.EXE','MSOSYNC.E XE','GROOVE.EXE','OfficeClickToRun.exe','IntegratedOffice.exe'):
if isrunning(soft):
print ("closing %s" % soft)
killalltasks(soft)
uninstallcmd = r'"C:\Program Files\wapt-files\setup.exe" /configure "C:\Program Files\wapt-files\uninstallALL.xml"'
print('désinstallation de Microsoft Office')
run(uninstallcmd,timeout=1800,accept_returncodes=[1641,3010,0])
print('fin de uninstall')
Cordialement,
Mathieu
De : WAPT <wapt-bounces@lists.tranquil.it mailto:wapt-bounces@lists.tranquil.it > De la part de Simon FONTENEAU Envoyé : mardi 31 mars 2020 10:38 À : wapt@lists.tranquil.it mailto:wapt@lists.tranquil.it Objet : Re: [Wapt] problème désinstallation office 2019
Lors de votre désinstallation le paquet n'est plus disponible (et donc les fichier ne sont pas dispo)
Lors de l'installation vous devez donc copier votre fichier "Configuration_SUPPRESS.xml" dans C:\Program Files par exemple.
dans uninstall vous devrez donc mentionner le fichier "Configuration_SUPPRESS.xml" dans C:\Program Files
Simon
Le 30/03/2020 à 17:41, Patrick BERTHELOT a écrit :
Bonjour,
Je prépare un package Office 2019, linstallation et le désinstallation se font sans problème depuis la console, mais par contre avec le self-service la désinstallation ne se fait pas, avez-vous une idée ? voici mon setup :
# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = []
def install():
print('Installing Microsoft Office 2019')
run(r"setup.exe /configure Configuration.xml")
def uninstall():
print('Uninstalling Microsoft Office 2019')
run(r"setup.exe /configure Configuration_SUPPRESS.xml")
Merci pour votre aide.
Cordialement Patrick
_______________________________________________ WAPT mailing list WAPT@lists.tranquil.it mailto:WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
De quel répertoire « office » parle-t-on ici ?
mais pour la désinstallation la commande « "C:\Program Files\wapt-files\setup.exe" /configure "C:\Program Files\wapt-files\uninstallALL.xml" » a besoin du rep « office »
les 2 fichiers nécessaires sont dans C:\Program Files\wapt-files (ou n'importe quel répertoire d'ailleurs où les utilisateurs n'ont pas les droits).
Mais je ne connaissais pas votre méthode, je vais regarder aussi.
Mathieu
De : WAPT wapt-bounces@lists.tranquil.it De la part de Patrick BERTHELOT Envoyé : mardi 31 mars 2020 11:50 À : wapt@lists.tranquil.it Objet : Re: [Wapt] problème désinstallation office 2019
Super merci, ca va me permettre de bien améliorer mon package, mais pour la désinstallation la commande « "C:\Program Files\wapt-files\setup.exe" /configure "C:\Program Files\wapt-files\uninstallALL.xml" » a besoin du rep « office » alors que la commande « "C:\Program Files\Common Files\Microsoft Shared\ClickToRun\OfficeClickToRun.exe" scenario=install scenariosubtype=ARP sourcetype=None productstoremove=ProPlus2019Volume DisplayLevel=False » semble complètement autonome mais j'ai bien du mal a trouver/comprendre tous les paramètres !!!
Cordialement Patrick
De : WAPT <wapt-bounces@lists.tranquil.itmailto:wapt-bounces@lists.tranquil.it> De la part de TURETTI Mathieu Envoyé : mardi 31 mars 2020 11:40 À : wapt@lists.tranquil.itmailto:wapt@lists.tranquil.it Objet : Re: [Wapt] problème désinstallation office 2019
Bonjour,
Je suis aussi en train de valider mon paquet Office 2019. Il faut aussi copier setup.exe en local pour la désinstallation. Il est encore loin d'être optimisé (et je ne suis encore qu'un petit padawan en WAPT) mais voici ce que ça donne si ça peut aider :
# -*- coding: utf-8 -*- from setuphelpers import *
uninstallkey = []
def install(): print('installing %s' % control.asrequirement())
print('arret des processus en cours') 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','OfficeClickToRun.exe','IntegratedOffice.exe'): if isrunning(soft): print ("closing %s" % soft) killalltasks(soft)
print('desinstallation des anciennes versions') for soft in installed_softwares('O365ProPlusRetail - fr-fr'): print('desinstallation d office 365') uninstallcmd = u'setup.exe /configure uninstallALL.xml' run(uninstallcmd,timeout=1800,accept_returncodes=[1641,3010,0])
print('copie des fichiers en local pour desinstallation') if not isdir(r'C:\Program Files\wapt-files'): mkdirs(r'C:\Program Files\wapt-files') filecopyto(r'setup.exe',r'C:\Program Files\wapt-files\setup.exe') filecopyto(r'uninstallALL.xml',r'C:\Program Files\wapt-files\uninstallALL.xml')
domainepc = get_domain_fromregistry()
print('debut d installation') #installation d office 2019 if not uninstall_key_exists('ProPlus2019Volume - fr-fr'): if domainepc == 'domaine1': installcmd = u'setup.exe /configure Office2019-outlook-domaine1.xml' else: installcmd = u'setup.exe /configure Office2019-outlook-domaine2.xml' print(installcmd) print('installation d office 2019 sur domaine %s' % domainepc) run(installcmd,timeout=1800,accept_returncodes=[1641,3010,0]) else: print('Office 2019 deja installe sur le poste')
print('fin d install')
def uninstall(): print('uninstalling %s' % control.asrequirement())
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','OfficeClickToRun.exe','IntegratedOffice.exe'): if isrunning(soft): print ("closing %s" % soft) killalltasks(soft)
uninstallcmd = r'"C:\Program Files\wapt-files\setup.exe" /configure "C:\Program Files\wapt-files\uninstallALL.xml"' print('désinstallation de Microsoft Office') run(uninstallcmd,timeout=1800,accept_returncodes=[1641,3010,0])
print('fin de uninstall')
Cordialement, Mathieu
De : WAPT <wapt-bounces@lists.tranquil.itmailto:wapt-bounces@lists.tranquil.it> De la part de Simon FONTENEAU Envoyé : mardi 31 mars 2020 10:38 À : wapt@lists.tranquil.itmailto:wapt@lists.tranquil.it Objet : Re: [Wapt] problème désinstallation office 2019
Lors de votre désinstallation le paquet n'est plus disponible (et donc les fichier ne sont pas dispo)
Lors de l'installation vous devez donc copier votre fichier "Configuration_SUPPRESS.xml" dans C:\Program Files par exemple.
dans uninstall vous devrez donc mentionner le fichier "Configuration_SUPPRESS.xml" dans C:\Program Files
Simon
Le 30/03/2020 à 17:41, Patrick BERTHELOT a écrit : Bonjour,
Je prépare un package Office 2019, l'installation et le désinstallation se font sans problème depuis la console, mais par contre avec le self-service la désinstallation ne se fait pas, avez-vous une idée ? voici mon setup :
# -*- coding: utf-8 -*- from setuphelpers import *
uninstallkey = []
def install(): print('Installing Microsoft Office 2019') run(r"setup.exe /configure Configuration.xml")
def uninstall(): print('Uninstalling Microsoft Office 2019') run(r"setup.exe /configure Configuration_SUPPRESS.xml")
Merci pour votre aide.
Cordialement Patrick
_______________________________________________
WAPT mailing list
WAPT@lists.tranquil.itmailto:WAPT@lists.tranquil.it
Bonjour,
Pour la désinstallation de Microsoft Office 2019, j’exécute le fichier OfficeClickToRun.exe avec des paramètres :
def uninstall(): print('uninstalling Microsoft Office Pro 2019 x64') run (r'"%s" scenario=install scenariosubtype=ARP sourcetype=None productstoremove=ProPlus2019Volume.16_fr-fr_x-none culture=fr-fr version.16=16.0 DisplayLevel=False' % makepath(programfiles64,'Common Files','Microsoft Shared','ClickToRun','OfficeClickToRun.exe'),timeout=1200)
Cordialement.
http://www.univ-reunion.fr/ Olivier CHANE-KAÏ Service Infrastructure de Proximité Direction des Systèmes d’Information Université de La Réunion
.
Le 31 mars 2020 à 13:57, TURETTI Mathieu informatique@lfip.net.cn a écrit :
De quel répertoire « office » parle-t-on ici ?
mais pour la désinstallation la commande « "C:\Program Files\wapt-files\setup.exe" /configure "C:\Program Files\wapt-files\uninstallALL.xml" » a besoin du rep « office »
les 2 fichiers nécessaires sont dans C:\Program Files\wapt-files (ou n’importe quel répertoire d’ailleurs où les utilisateurs n’ont pas les droits).
Mais je ne connaissais pas votre méthode, je vais regarder aussi.
Mathieu
De : WAPT wapt-bounces@lists.tranquil.it De la part de Patrick BERTHELOT Envoyé : mardi 31 mars 2020 11:50 À : wapt@lists.tranquil.it Objet : Re: [Wapt] problème désinstallation office 2019
Super merci, ca va me permettre de bien améliorer mon package, mais pour la désinstallation la commande « "C:\Program Files\wapt-files\setup.exe" /configure "C:\Program Files\wapt-files\uninstallALL.xml" » a besoin du rep « office » alors que la commande « "C:\Program Files\Common Files\Microsoft Shared\ClickToRun\OfficeClickToRun.exe" scenario=install scenariosubtype=ARP sourcetype=None productstoremove=ProPlus2019Volume DisplayLevel=False » semble complètement autonome mais j’ai bien du mal a trouver/comprendre tous les paramètres !!!
Cordialement Patrick
De : WAPT <wapt-bounces@lists.tranquil.it mailto:wapt-bounces@lists.tranquil.it> De la part de TURETTI Mathieu Envoyé : mardi 31 mars 2020 11:40 À : wapt@lists.tranquil.it mailto:wapt@lists.tranquil.it Objet : Re: [Wapt] problème désinstallation office 2019
Bonjour,
Je suis aussi en train de valider mon paquet Office 2019. Il faut aussi copier setup.exe en local pour la désinstallation. Il est encore loin d’être optimisé (et je ne suis encore qu’un petit padawan en WAPT) mais voici ce que ça donne si ça peut aider :
# -*- coding: utf-8 -*- from setuphelpers import *
uninstallkey = []
def install(): print('installing %s' % control.asrequirement())
print('arret des processus en cours') 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','OfficeClickToRun.exe','IntegratedOffice.exe'): if isrunning(soft): print ("closing %s" % soft) killalltasks(soft) print('desinstallation des anciennes versions') for soft in installed_softwares('O365ProPlusRetail - fr-fr'): print('desinstallation d office 365') uninstallcmd = u'setup.exe /configure uninstallALL.xml' run(uninstallcmd,timeout=1800,accept_returncodes=[1641,3010,0]) print('copie des fichiers en local pour desinstallation') if not isdir(r'C:\Program Files\wapt-files'): mkdirs(r'C:\Program Files\wapt-files') filecopyto(r'setup.exe',r'C:\Program Files\wapt-files\setup.exe') filecopyto(r'uninstallALL.xml',r'C:\Program Files\wapt-files\uninstallALL.xml') domainepc = get_domain_fromregistry() print('debut d installation') #installation d office 2019 if not uninstall_key_exists('ProPlus2019Volume - fr-fr'): if domainepc == 'domaine1': installcmd = u'setup.exe /configure Office2019-outlook-domaine1.xml' else: installcmd = u'setup.exe /configure Office2019-outlook-domaine2.xml' print(installcmd) print('installation d office 2019 sur domaine %s' % domainepc) run(installcmd,timeout=1800,accept_returncodes=[1641,3010,0]) else: print('Office 2019 deja installe sur le poste') print('fin d install')
def uninstall(): print('uninstalling %s' % control.asrequirement())
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','OfficeClickToRun.exe','IntegratedOffice.exe'): if isrunning(soft): print ("closing %s" % soft) killalltasks(soft) uninstallcmd = r'"C:\Program Files\wapt-files\setup.exe" /configure "C:\Program Files\wapt-files\uninstallALL.xml"' print('désinstallation de Microsoft Office') run(uninstallcmd,timeout=1800,accept_returncodes=[1641,3010,0])
print('fin de uninstall')
Cordialement, Mathieu
De : WAPT <wapt-bounces@lists.tranquil.it mailto:wapt-bounces@lists.tranquil.it> De la part de Simon FONTENEAU Envoyé : mardi 31 mars 2020 10:38 À : wapt@lists.tranquil.it mailto:wapt@lists.tranquil.it Objet : Re: [Wapt] problème désinstallation office 2019
Lors de votre désinstallation le paquet n'est plus disponible (et donc les fichier ne sont pas dispo)
Lors de l'installation vous devez donc copier votre fichier "Configuration_SUPPRESS.xml" dans C:\Program Files par exemple.
dans uninstall vous devrez donc mentionner le fichier "Configuration_SUPPRESS.xml" dans C:\Program Files
Simon
Le 30/03/2020 à 17:41, Patrick BERTHELOT a écrit : Bonjour,
Je prépare un package Office 2019, l’installation et le désinstallation se font sans problème depuis la console, mais par contre avec le self-service la désinstallation ne se fait pas, avez-vous une idée ? voici mon setup :
# -*- coding: utf-8 -*- from setuphelpers import *
uninstallkey = []
def install(): print('Installing Microsoft Office 2019') run(r"setup.exe /configure Configuration.xml")
def uninstall(): print('Uninstalling Microsoft Office 2019') run(r"setup.exe /configure Configuration_SUPPRESS.xml")
Merci pour votre aide.
Cordialement Patrick
WAPT mailing list WAPT@lists.tranquil.it mailto:WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt http://lists.tranquil.it/listinfo/wapt_______________________________________________ WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
Merci, c’est la même commande qu’il y a dans le forum https://forum.tranquil.it/viewtopic.php?t=1956 mais j’aurais souhaité avoir des explications sur les différents paramètres, j’aimerais comprendre plutôt que de recopier « bêtement » mais je ne trouve rien, ou as-tu trouve ta commande ?
Cordialement Patrick
De : WAPT wapt-bounces@lists.tranquil.it De la part de Olivier Chane-Kai Envoyé : mardi 31 mars 2020 12:10 À : wapt@lists.tranquil.it Objet : Re: [Wapt] problème désinstallation office 2019
Bonjour,
Pour la désinstallation de Microsoft Office 2019, j’exécute le fichier OfficeClickToRun.exe avec des paramètres :
def uninstall():
print('uninstalling Microsoft Office Pro 2019 x64')
run (r'"%s" scenario=install scenariosubtype=ARP sourcetype=None productstoremove=ProPlus2019Volume.16_fr-fr_x-none culture=fr-fr version.16=16.0 DisplayLevel=False' % makepath(programfiles64,'Common Files','Microsoft Shared','ClickToRun','OfficeClickToRun.exe'),timeout=1200)
Cordialement.
Olivier CHANE-KAÏ
Service Infrastructure de Proximité
Direction des Systèmes d’Information
Université de La Réunion
.
Le 31 mars 2020 à 13:57, TURETTI Mathieu <informatique@lfip.net.cn mailto:informatique@lfip.net.cn > a écrit :
De quel répertoire « office » parle-t-on ici ?
mais pour la désinstallation la commande « "C:\Program Files\wapt-files\setup.exe" /configure "C:\Program Files\wapt-files\uninstallALL.xml" » a besoin du rep « office »
les 2 fichiers nécessaires sont dans C:\Program Files\wapt-files (ou n’importe quel répertoire d’ailleurs où les utilisateurs n’ont pas les droits).
Mais je ne connaissais pas votre méthode, je vais regarder aussi.
Mathieu
De : WAPT <wapt-bounces@lists.tranquil.it mailto:wapt-bounces@lists.tranquil.it > De la part de Patrick BERTHELOT Envoyé : mardi 31 mars 2020 11:50 À : wapt@lists.tranquil.it mailto:wapt@lists.tranquil.it Objet : Re: [Wapt] problème désinstallation office 2019
Super merci, ca va me permettre de bien améliorer mon package, mais pour la désinstallation la commande « "C:\Program Files\wapt-files\setup.exe" /configure "C:\Program Files\wapt-files\uninstallALL.xml" » a besoin du rep « office » alors que la commande « "C:\Program Files\Common Files\Microsoft Shared\ClickToRun\OfficeClickToRun.exe" scenario=install scenariosubtype=ARP sourcetype=None productstoremove=ProPlus2019Volume DisplayLevel=False » semble complètement autonome mais j’ai bien du mal a trouver/comprendre tous les paramètres !!!
Cordialement Patrick
De : WAPT < mailto:wapt-bounces@lists.tranquil.it wapt-bounces@lists.tranquil.it> De la part de TURETTI Mathieu Envoyé : mardi 31 mars 2020 11:40 À : mailto:wapt@lists.tranquil.it wapt@lists.tranquil.it Objet : Re: [Wapt] problème désinstallation office 2019
Bonjour,
Je suis aussi en train de valider mon paquet Office 2019. Il faut aussi copier setup.exe en local pour la désinstallation.
Il est encore loin d’être optimisé (et je ne suis encore qu’un petit padawan en WAPT) mais voici ce que ça donne si ça peut aider :
# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = []
def install():
print('installing %s' % control.asrequirement())
print('arret des processus en cours')
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','OfficeClickToRun.exe','IntegratedOffice.exe'):
if isrunning(soft):
print ("closing %s" % soft)
killalltasks(soft)
print('desinstallation des anciennes versions')
for soft in installed_softwares('O365ProPlusRetail - fr-fr'):
print('desinstallation d office 365')
uninstallcmd = u'setup.exe /configure uninstallALL.xml'
run(uninstallcmd,timeout=1800,accept_returncodes=[1641,3010,0])
print('copie des fichiers en local pour desinstallation')
if not isdir(r'C:\Program Files\wapt-files'):
mkdirs(r'C:\Program Files\wapt-files')
filecopyto(r'setup.exe',r'C:\Program Files\wapt-files\setup.exe')
filecopyto(r'uninstallALL.xml',r'C:\Program Files\wapt-files\uninstallALL.xml')
domainepc = get_domain_fromregistry()
print('debut d installation')
#installation d office 2019
if not uninstall_key_exists('ProPlus2019Volume - fr-fr'):
if domainepc == 'domaine1':
installcmd = u'setup.exe /configure Office2019-outlook-domaine1.xml'
else:
installcmd = u'setup.exe /configure Office2019-outlook-domaine2.xml'
print(installcmd)
print('installation d office 2019 sur domaine %s' % domainepc)
run(installcmd,timeout=1800,accept_returncodes=[1641,3010,0])
else:
print('Office 2019 deja installe sur le poste')
print('fin d install')
def uninstall():
print('uninstalling %s' % control.asrequirement())
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','OfficeClickToRun.exe','IntegratedOffice.exe'):
if isrunning(soft):
print ("closing %s" % soft)
killalltasks(soft)
uninstallcmd = r'"C:\Program Files\wapt-files\setup.exe" /configure "C:\Program Files\wapt-files\uninstallALL.xml"'
print('désinstallation de Microsoft Office')
run(uninstallcmd,timeout=1800,accept_returncodes=[1641,3010,0])
print('fin de uninstall')
Cordialement,
Mathieu
De : WAPT < mailto:wapt-bounces@lists.tranquil.it wapt-bounces@lists.tranquil.it> De la part de Simon FONTENEAU Envoyé : mardi 31 mars 2020 10:38 À : mailto:wapt@lists.tranquil.it wapt@lists.tranquil.it Objet : Re: [Wapt] problème désinstallation office 2019
Lors de votre désinstallation le paquet n'est plus disponible (et donc les fichier ne sont pas dispo)
Lors de l'installation vous devez donc copier votre fichier "Configuration_SUPPRESS.xml" dans C:\Program Files par exemple.
dans uninstall vous devrez donc mentionner le fichier "Configuration_SUPPRESS.xml" dans C:\Program Files
Simon
Le 30/03/2020 à 17:41, Patrick BERTHELOT a écrit :
Bonjour,
Je prépare un package Office 2019, l’installation et le désinstallation se font sans problème depuis la console, mais par contre avec le self-service la désinstallation ne se fait pas, avez-vous une idée ? voici mon setup :
# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = []
def install():
print('Installing Microsoft Office 2019')
run(r"setup.exe /configure Configuration.xml")
def uninstall():
print('Uninstalling Microsoft Office 2019')
run(r"setup.exe /configure Configuration_SUPPRESS.xml")
Merci pour votre aide.
Cordialement Patrick
_______________________________________________ WAPT mailing list mailto:WAPT@lists.tranquil.it WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt http://lists.tranquil.it/listinfo/wapt
_______________________________________________ WAPT mailing list WAPT@lists.tranquil.it mailto:WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
Je ne sais pas ce que signifient les paramètres mais en tout cas la commande semble orrespondre à la uninstallstring dispo dans la base de registre : [cid:image001.png@01D60757.CDA6D3E0]
De : WAPT wapt-bounces@lists.tranquil.it De la part de Patrick BERTHELOT Envoyé : mardi 31 mars 2020 12:18 À : wapt@lists.tranquil.it Objet : Re: [Wapt] problème désinstallation office 2019
Merci, c’est la même commande qu’il y a dans le forum https://forum.tranquil.it/viewtopic.php?t=1956 mais j’aurais souhaité avoir des explications sur les différents paramètres, j’aimerais comprendre plutôt que de recopier « bêtement » mais je ne trouve rien, ou as-tu trouve ta commande ?
Cordialement Patrick
De : WAPT <wapt-bounces@lists.tranquil.itmailto:wapt-bounces@lists.tranquil.it> De la part de Olivier Chane-Kai Envoyé : mardi 31 mars 2020 12:10 À : wapt@lists.tranquil.itmailto:wapt@lists.tranquil.it Objet : Re: [Wapt] problème désinstallation office 2019
Bonjour,
Pour la désinstallation de Microsoft Office 2019, j’exécute le fichier OfficeClickToRun.exe avec des paramètres :
def uninstall(): print('uninstalling Microsoft Office Pro 2019 x64') run (r'"%s" scenario=install scenariosubtype=ARP sourcetype=None productstoremove=ProPlus2019Volume.16_fr-fr_x-none culture=fr-fr version.16=16.0 DisplayLevel=False' % makepath(programfiles64,'Common Files','Microsoft Shared','ClickToRun','OfficeClickToRun.exe'),timeout=1200)
Cordialement.
[http://static.univ-reunion.fr/signature/logos/ur/2017/ur-216x164.png]http://www.univ-reunion.fr Olivier CHANE-KAÏ Service Infrastructure de Proximité Direction des Systèmes d’Information Université de La Réunion .
Le 31 mars 2020 à 13:57, TURETTI Mathieu <informatique@lfip.net.cnmailto:informatique@lfip.net.cn> a écrit :
De quel répertoire « office » parle-t-on ici ?
mais pour la désinstallation la commande « "C:\Program Files\wapt-files\setup.exe" /configure "C:\Program Files\wapt-files\uninstallALL.xml" » a besoin du rep « office »
les 2 fichiers nécessaires sont dans C:\Program Files\wapt-files (ou n’importe quel répertoire d’ailleurs où les utilisateurs n’ont pas les droits).
Mais je ne connaissais pas votre méthode, je vais regarder aussi.
Mathieu
De : WAPT <wapt-bounces@lists.tranquil.itmailto:wapt-bounces@lists.tranquil.it> De la part de Patrick BERTHELOT Envoyé : mardi 31 mars 2020 11:50 À : wapt@lists.tranquil.itmailto:wapt@lists.tranquil.it Objet : Re: [Wapt] problème désinstallation office 2019
Super merci, ca va me permettre de bien améliorer mon package, mais pour la désinstallation la commande « "C:\Program Files\wapt-files\setup.exe" /configure "C:\Program Files\wapt-files\uninstallALL.xml" » a besoin du rep « office » alors que la commande « "C:\Program Files\Common Files\Microsoft Shared\ClickToRun\OfficeClickToRun.exe" scenario=install scenariosubtype=ARP sourcetype=None productstoremove=ProPlus2019Volume DisplayLevel=False » semble complètement autonome mais j’ai bien du mal a trouver/comprendre tous les paramètres !!!
Cordialement Patrick
De : WAPT <wapt-bounces@lists.tranquil.itmailto:wapt-bounces@lists.tranquil.it> De la part de TURETTI Mathieu Envoyé : mardi 31 mars 2020 11:40 À : wapt@lists.tranquil.itmailto:wapt@lists.tranquil.it Objet : Re: [Wapt] problème désinstallation office 2019
Bonjour,
Je suis aussi en train de valider mon paquet Office 2019. Il faut aussi copier setup.exe en local pour la désinstallation. Il est encore loin d’être optimisé (et je ne suis encore qu’un petit padawan en WAPT) mais voici ce que ça donne si ça peut aider :
# -*- coding: utf-8 -*- from setuphelpers import *
uninstallkey = []
def install(): print('installing %s' % control.asrequirement())
print('arret des processus en cours') 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','OfficeClickToRun.exe','IntegratedOffice.exe'): if isrunning(soft): print ("closing %s" % soft) killalltasks(soft)
print('desinstallation des anciennes versions') for soft in installed_softwares('O365ProPlusRetail - fr-fr'): print('desinstallation d office 365') uninstallcmd = u'setup.exe /configure uninstallALL.xml' run(uninstallcmd,timeout=1800,accept_returncodes=[1641,3010,0])
print('copie des fichiers en local pour desinstallation') if not isdir(r'C:\Program Files\wapt-files'): mkdirs(r'C:\Program Files\wapt-files') filecopyto(r'setup.exe',r'C:\Program Files\wapt-files\setup.exe') filecopyto(r'uninstallALL.xml',r'C:\Program Files\wapt-files\uninstallALL.xml')
domainepc = get_domain_fromregistry()
print('debut d installation') #installation d office 2019 if not uninstall_key_exists('ProPlus2019Volume - fr-fr'): if domainepc == 'domaine1': installcmd = u'setup.exe /configure Office2019-outlook-domaine1.xml' else: installcmd = u'setup.exe /configure Office2019-outlook-domaine2.xml' print(installcmd) print('installation d office 2019 sur domaine %s' % domainepc) run(installcmd,timeout=1800,accept_returncodes=[1641,3010,0]) else: print('Office 2019 deja installe sur le poste')
print('fin d install')
def uninstall(): print('uninstalling %s' % control.asrequirement())
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','OfficeClickToRun.exe','IntegratedOffice.exe'): if isrunning(soft): print ("closing %s" % soft) killalltasks(soft)
uninstallcmd = r'"C:\Program Files\wapt-files\setup.exe" /configure "C:\Program Files\wapt-files\uninstallALL.xml"' print('désinstallation de Microsoft Office') run(uninstallcmd,timeout=1800,accept_returncodes=[1641,3010,0])
print('fin de uninstall')
Cordialement, Mathieu
De : WAPT <wapt-bounces@lists.tranquil.itmailto:wapt-bounces@lists.tranquil.it> De la part de Simon FONTENEAU Envoyé : mardi 31 mars 2020 10:38 À : wapt@lists.tranquil.itmailto:wapt@lists.tranquil.it Objet : Re: [Wapt] problème désinstallation office 2019
Lors de votre désinstallation le paquet n'est plus disponible (et donc les fichier ne sont pas dispo) Lors de l'installation vous devez donc copier votre fichier "Configuration_SUPPRESS.xml" dans C:\Program Files par exemple. dans uninstall vous devrez donc mentionner le fichier "Configuration_SUPPRESS.xml" dans C:\Program Files Simon
Le 30/03/2020 à 17:41, Patrick BERTHELOT a écrit : Bonjour,
Je prépare un package Office 2019, l’installation et le désinstallation se font sans problème depuis la console, mais par contre avec le self-service la désinstallation ne se fait pas, avez-vous une idée ? voici mon setup :
# -*- coding: utf-8 -*- from setuphelpers import *
uninstallkey = []
def install(): print('Installing Microsoft Office 2019') run(r"setup.exe /configure Configuration.xml")
def uninstall(): print('Uninstalling Microsoft Office 2019') run(r"setup.exe /configure Configuration_SUPPRESS.xml")
Merci pour votre aide.
Cordialement Patrick
_______________________________________________
WAPT mailing list
WAPT@lists.tranquil.itmailto:WAPT@lists.tranquil.it
http://lists.tranquil.it/listinfo/wapt _______________________________________________ WAPT mailing list WAPT@lists.tranquil.itmailto:WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
En effet, à l’époque j’avais juste récupéré la uninstallstring obtenu par la commande wapt-get list-registry.
Cordialement. http://www.univ-reunion.fr/ Olivier CHANE-KAÏ Service Infrastructure de Proximité Direction des Systèmes d’Information Université de La Réunion
.
Le 31 mars 2020 à 14:28, TURETTI Mathieu informatique@lfip.net.cn a écrit :
Je ne sais pas ce que signifient les paramètres mais en tout cas la commande semble orrespondre à la uninstallstring dispo dans la base de registre : <image001.png>
De : WAPT wapt-bounces@lists.tranquil.it De la part de Patrick BERTHELOT Envoyé : mardi 31 mars 2020 12:18 À : wapt@lists.tranquil.it Objet : Re: [Wapt] problème désinstallation office 2019
Merci, c’est la même commande qu’il y a dans le forum https://forum.tranquil.it/viewtopic.php?t=1956 https://forum.tranquil.it/viewtopic.php?t=1956 mais j’aurais souhaité avoir des explications sur les différents paramètres, j’aimerais comprendre plutôt que de recopier « bêtement » mais je ne trouve rien, ou as-tu trouve ta commande ?
Cordialement Patrick
De : WAPT <wapt-bounces@lists.tranquil.it mailto:wapt-bounces@lists.tranquil.it> De la part de Olivier Chane-Kai Envoyé : mardi 31 mars 2020 12:10 À : wapt@lists.tranquil.it mailto:wapt@lists.tranquil.it Objet : Re: [Wapt] problème désinstallation office 2019
Bonjour,
Pour la désinstallation de Microsoft Office 2019, j’exécute le fichier OfficeClickToRun.exe avec des paramètres :
def uninstall(): print('uninstalling Microsoft Office Pro 2019 x64') run (r'"%s" scenario=install scenariosubtype=ARP sourcetype=None productstoremove=ProPlus2019Volume.16_fr-fr_x-none culture=fr-fr version.16=16.0 DisplayLevel=False' % makepath(programfiles64,'Common Files','Microsoft Shared','ClickToRun','OfficeClickToRun.exe'),timeout=1200)
Cordialement.
http://www.univ-reunion.fr/ Olivier CHANE-KAÏ Service Infrastructure de Proximité Direction des Systèmes d’Information Université de La Réunion .
Le 31 mars 2020 à 13:57, TURETTI Mathieu <informatique@lfip.net.cn mailto:informatique@lfip.net.cn> a écrit :
De quel répertoire « office » parle-t-on ici ?
mais pour la désinstallation la commande « "C:\Program Files\wapt-files\setup.exe" /configure "C:\Program Files\wapt-files\uninstallALL.xml" » a besoin du rep « office »
les 2 fichiers nécessaires sont dans C:\Program Files\wapt-files (ou n’importe quel répertoire d’ailleurs où les utilisateurs n’ont pas les droits).
Mais je ne connaissais pas votre méthode, je vais regarder aussi.
Mathieu
De : WAPT <wapt-bounces@lists.tranquil.it mailto:wapt-bounces@lists.tranquil.it> De la part de Patrick BERTHELOT Envoyé : mardi 31 mars 2020 11:50 À : wapt@lists.tranquil.it mailto:wapt@lists.tranquil.it Objet : Re: [Wapt] problème désinstallation office 2019
Super merci, ca va me permettre de bien améliorer mon package, mais pour la désinstallation la commande « "C:\Program Files\wapt-files\setup.exe" /configure "C:\Program Files\wapt-files\uninstallALL.xml" » a besoin du rep « office » alors que la commande « "C:\Program Files\Common Files\Microsoft Shared\ClickToRun\OfficeClickToRun.exe" scenario=install scenariosubtype=ARP sourcetype=None productstoremove=ProPlus2019Volume DisplayLevel=False » semble complètement autonome mais j’ai bien du mal a trouver/comprendre tous les paramètres !!!
Cordialement Patrick
De : WAPT <wapt-bounces@lists.tranquil.it mailto:wapt-bounces@lists.tranquil.it> De la part de TURETTI Mathieu Envoyé : mardi 31 mars 2020 11:40 À : wapt@lists.tranquil.it mailto:wapt@lists.tranquil.it Objet : Re: [Wapt] problème désinstallation office 2019
Bonjour,
Je suis aussi en train de valider mon paquet Office 2019. Il faut aussi copier setup.exe en local pour la désinstallation. Il est encore loin d’être optimisé (et je ne suis encore qu’un petit padawan en WAPT) mais voici ce que ça donne si ça peut aider :
# -*- coding: utf-8 -*- from setuphelpers import *
uninstallkey = []
def install(): print('installing %s' % control.asrequirement())
print('arret des processus en cours') 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','OfficeClickToRun.exe','IntegratedOffice.exe'): if isrunning(soft): print ("closing %s" % soft) killalltasks(soft) print('desinstallation des anciennes versions') for soft in installed_softwares('O365ProPlusRetail - fr-fr'): print('desinstallation d office 365') uninstallcmd = u'setup.exe /configure uninstallALL.xml' run(uninstallcmd,timeout=1800,accept_returncodes=[1641,3010,0]) print('copie des fichiers en local pour desinstallation') if not isdir(r'C:\Program Files\wapt-files'): mkdirs(r'C:\Program Files\wapt-files') filecopyto(r'setup.exe',r'C:\Program Files\wapt-files\setup.exe') filecopyto(r'uninstallALL.xml',r'C:\Program Files\wapt-files\uninstallALL.xml') domainepc = get_domain_fromregistry() print('debut d installation') #installation d office 2019 if not uninstall_key_exists('ProPlus2019Volume - fr-fr'): if domainepc == 'domaine1': installcmd = u'setup.exe /configure Office2019-outlook-domaine1.xml' else: installcmd = u'setup.exe /configure Office2019-outlook-domaine2.xml' print(installcmd) print('installation d office 2019 sur domaine %s' % domainepc) run(installcmd,timeout=1800,accept_returncodes=[1641,3010,0]) else: print('Office 2019 deja installe sur le poste') print('fin d install')
def uninstall(): print('uninstalling %s' % control.asrequirement())
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','OfficeClickToRun.exe','IntegratedOffice.exe'): if isrunning(soft): print ("closing %s" % soft) killalltasks(soft) uninstallcmd = r'"C:\Program Files\wapt-files\setup.exe" /configure "C:\Program Files\wapt-files\uninstallALL.xml"' print('désinstallation de Microsoft Office') run(uninstallcmd,timeout=1800,accept_returncodes=[1641,3010,0])
print('fin de uninstall')
Cordialement, Mathieu
De : WAPT <wapt-bounces@lists.tranquil.it mailto:wapt-bounces@lists.tranquil.it> De la part de Simon FONTENEAU Envoyé : mardi 31 mars 2020 10:38 À : wapt@lists.tranquil.it mailto:wapt@lists.tranquil.it Objet : Re: [Wapt] problème désinstallation office 2019
Lors de votre désinstallation le paquet n'est plus disponible (et donc les fichier ne sont pas dispo) Lors de l'installation vous devez donc copier votre fichier "Configuration_SUPPRESS.xml" dans C:\Program Files par exemple. dans uninstall vous devrez donc mentionner le fichier "Configuration_SUPPRESS.xml" dans C:\Program Files Simon
Le 30/03/2020 à 17:41, Patrick BERTHELOT a écrit : Bonjour,
Je prépare un package Office 2019, l’installation et le désinstallation se font sans problème depuis la console, mais par contre avec le self-service la désinstallation ne se fait pas, avez-vous une idée ? voici mon setup :
# -*- coding: utf-8 -*- from setuphelpers import *
uninstallkey = []
def install(): print('Installing Microsoft Office 2019') run(r"setup.exe /configure Configuration.xml")
def uninstall(): print('Uninstalling Microsoft Office 2019') run(r"setup.exe /configure Configuration_SUPPRESS.xml")
Merci pour votre aide.
Cordialement Patrick
WAPT mailing list WAPT@lists.tranquil.it mailto:WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt http://lists.tranquil.it/listinfo/wapt _______________________________________________ WAPT mailing list WAPT@lists.tranquil.it mailto:WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt http://lists.tranquil.it/listinfo/wapt
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
Je parle du répertoire « office » contenant les sources office utilisé lors de linstallation, mais mon fichier uninstall.xml nest peux être pas bon :
<Remove All="FALSE">
<Product ID="ProPlus2019Volume" >
<Language ID="fr-fr" />
</Product>
</Remove>
Cordialement Patrick
De : WAPT wapt-bounces@lists.tranquil.it De la part de TURETTI Mathieu Envoyé : mardi 31 mars 2020 11:57 À : wapt@lists.tranquil.it Objet : Re: [Wapt] problème désinstallation office 2019
De quel répertoire « office » parle-t-on ici ?
mais pour la désinstallation la commande « "C:\Program Files\wapt-files\setup.exe" /configure "C:\Program Files\wapt-files\uninstallALL.xml" » a besoin du rep « office »
les 2 fichiers nécessaires sont dans C:\Program Files\wapt-files (ou nimporte quel répertoire dailleurs où les utilisateurs nont pas les droits).
Mais je ne connaissais pas votre méthode, je vais regarder aussi.
Mathieu
De : WAPT <wapt-bounces@lists.tranquil.it mailto:wapt-bounces@lists.tranquil.it > De la part de Patrick BERTHELOT Envoyé : mardi 31 mars 2020 11:50 À : wapt@lists.tranquil.it mailto:wapt@lists.tranquil.it Objet : Re: [Wapt] problème désinstallation office 2019
Super merci, ca va me permettre de bien améliorer mon package, mais pour la désinstallation la commande « "C:\Program Files\wapt-files\setup.exe" /configure "C:\Program Files\wapt-files\uninstallALL.xml" » a besoin du rep « office » alors que la commande « "C:\Program Files\Common Files\Microsoft Shared\ClickToRun\OfficeClickToRun.exe" scenario=install scenariosubtype=ARP sourcetype=None productstoremove=ProPlus2019Volume DisplayLevel=False » semble complètement autonome mais jai bien du mal a trouver/comprendre tous les paramètres !!!
Cordialement Patrick
De : WAPT <wapt-bounces@lists.tranquil.it mailto:wapt-bounces@lists.tranquil.it > De la part de TURETTI Mathieu Envoyé : mardi 31 mars 2020 11:40 À : wapt@lists.tranquil.it mailto:wapt@lists.tranquil.it Objet : Re: [Wapt] problème désinstallation office 2019
Bonjour,
Je suis aussi en train de valider mon paquet Office 2019. Il faut aussi copier setup.exe en local pour la désinstallation.
Il est encore loin dêtre optimisé (et je ne suis encore quun petit padawan en WAPT) mais voici ce que ça donne si ça peut aider :
# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = []
def install():
print('installing %s' % control.asrequirement())
print('arret des processus en cours')
for soft in ('WINWORD.EXE','POWERPNT.EXE','EXCEL.exe','MSPUB.EXE','MSACCESS.EXE','INFO PATH.EXE','lync.exe','ONENOTE.EXE','OUTLOOK.EXE','ONENOTEM.EXE','MSOSYNC.E XE','GROOVE.EXE','OfficeClickToRun.exe','IntegratedOffice.exe'):
if isrunning(soft):
print ("closing %s" % soft)
killalltasks(soft)
print('desinstallation des anciennes versions')
for soft in installed_softwares('O365ProPlusRetail - fr-fr'):
print('desinstallation d office 365')
uninstallcmd = u'setup.exe /configure uninstallALL.xml'
run(uninstallcmd,timeout=1800,accept_returncodes=[1641,3010,0])
print('copie des fichiers en local pour desinstallation')
if not isdir(r'C:\Program Files\wapt-files'):
mkdirs(r'C:\Program Files\wapt-files')
filecopyto(r'setup.exe',r'C:\Program Files\wapt-files\setup.exe')
filecopyto(r'uninstallALL.xml',r'C:\Program Files\wapt-files\uninstallALL.xml')
domainepc = get_domain_fromregistry()
print('debut d installation')
#installation d office 2019
if not uninstall_key_exists('ProPlus2019Volume - fr-fr'):
if domainepc == 'domaine1':
installcmd = u'setup.exe /configure Office2019-outlook-domaine1.xml'
else:
installcmd = u'setup.exe /configure Office2019-outlook-domaine2.xml'
print(installcmd)
print('installation d office 2019 sur domaine %s' % domainepc)
run(installcmd,timeout=1800,accept_returncodes=[1641,3010,0])
else:
print('Office 2019 deja installe sur le poste')
print('fin d install')
def uninstall():
print('uninstalling %s' % control.asrequirement())
for soft in ('WINWORD.EXE','POWERPNT.EXE','EXCEL.exe','MSPUB.EXE','MSACCESS.EXE','INFO PATH.EXE','lync.exe','ONENOTE.EXE','OUTLOOK.EXE','ONENOTEM.EXE','MSOSYNC.E XE','GROOVE.EXE','OfficeClickToRun.exe','IntegratedOffice.exe'):
if isrunning(soft):
print ("closing %s" % soft)
killalltasks(soft)
uninstallcmd = r'"C:\Program Files\wapt-files\setup.exe" /configure "C:\Program Files\wapt-files\uninstallALL.xml"'
print('désinstallation de Microsoft Office')
run(uninstallcmd,timeout=1800,accept_returncodes=[1641,3010,0])
print('fin de uninstall')
Cordialement,
Mathieu
De : WAPT <wapt-bounces@lists.tranquil.it mailto:wapt-bounces@lists.tranquil.it > De la part de Simon FONTENEAU Envoyé : mardi 31 mars 2020 10:38 À : wapt@lists.tranquil.it mailto:wapt@lists.tranquil.it Objet : Re: [Wapt] problème désinstallation office 2019
Lors de votre désinstallation le paquet n'est plus disponible (et donc les fichier ne sont pas dispo)
Lors de l'installation vous devez donc copier votre fichier "Configuration_SUPPRESS.xml" dans C:\Program Files par exemple.
dans uninstall vous devrez donc mentionner le fichier "Configuration_SUPPRESS.xml" dans C:\Program Files
Simon
Le 30/03/2020 à 17:41, Patrick BERTHELOT a écrit :
Bonjour,
Je prépare un package Office 2019, linstallation et le désinstallation se font sans problème depuis la console, mais par contre avec le self-service la désinstallation ne se fait pas, avez-vous une idée ? voici mon setup :
# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = []
def install():
print('Installing Microsoft Office 2019')
run(r"setup.exe /configure Configuration.xml")
def uninstall():
print('Uninstalling Microsoft Office 2019')
run(r"setup.exe /configure Configuration_SUPPRESS.xml")
Merci pour votre aide.
Cordialement Patrick
_______________________________________________ WAPT mailing list WAPT@lists.tranquil.it mailto:WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt