Bonjour
merci avec des doubles quotes c'est ok
je test dès que possible.
j'ai une autre blague pour le soft Arduino
Objectif :
Installation du setup, mais celui-ci a besoin d'inscrire un certificat dans la banque windows Ajout de Ardublock dans le dossier install Arduino\Tools\Ardublock\tool*.jar ces dossiers n'existe pas
Pour l'ajout du certificat voila ce que j'ai coller dans mon cmd :certutil -addstore "TrustedPublisher" driversx86.cer
le setup.py :
# -*- coding: utf-8 -*- from setuphelpers import *
uninstallkey = []
if isdir(makepath(programfiles32,'Arduino')): print 'Arduino' source_filename = 'cert.cmd' dest_filename = makepath(programfiles32,'Arduino',source_filename) filecopyto(source_filename,dest_filename) source_filename = 'driversx86.cer' dest_filename = makepath(programfiles32,'Arduino',source_filename) filecopyto(source_filename,dest_filename) import subprocess as sp sp.Popen(("cert.cmd", "c:\Program Files (X86)\Arduino\cert.cmd"))
def install(): print('installing chaumes-arduino-1.0.6-windows') run(r'"arduino-1.0.6-windows.exe" /S') copytree2(r'ArduBlockTool',r'c:\Program Files (X86)\Arduino\tools')
Si j'execute :
wapt-get install pathtomytemplate
il m'execute le script
Si vous avez des idées pour resoudre le problème, ce que je veus surtout c'est comprendre malgrer mes lacunes en Python
Le 20 mai 2016 à 15:48, blog@lesfourmisduweb.org blog@lesfourmisduweb.org a écrit :
Situ veux que ça fonctionne aussi sur les 32 il te faudrait plus faire :
uninstallstring = ['"%s" /S' % makepath(programfiles32,'Cura_15.04.5','uninstall.exe')]
Simon
Le 20/05/2016 15:30, Bastien HERMITTE a écrit :
Bonjour,
Je pense qu'il faut des double quotes autour du chemin vers le désinstalleur car il y a un espace dans le chemin : uninstallstring = [u'"c:\Program Files (x86)\Cura_15.04.5\uninstall.exe" /S']
Bastien
Le 20/05/2016 à 15:22, Olivier CATY a écrit :
Bonjour,
je rame dans le phyton mais je me soigne
c'est grave docteur :
Que pensez vous de mon petit setup.py qui ne fonctionemnt pas pour la désisntallation, Il y a urgence je perd mes cheveux :
# -*- coding: utf-8 -*- from setuphelpers import *
uninstallkey = []
uninstallstring = [u'c:\Program Files (x86)\Cura_15.04.5\uninstall.exe /S']
def install(): print('installing annajudic-cura_15.04.5') run(r'"Cura_15.04.5.exe" /S') --
17, boulevard de la Trémouille
CS 23502 - 21035 DIJON CEDEX
*Olivier CATY* Direction des lycées et de la formation initiale
Service maintenance informatique des lycées
Agent de l’équipe mobile de maintenance informatique régionale
WAPT mailing listWAPT@lists.tranquil.ithttp://lists.tranquil.it/listinfo/wapt
WAPT mailing listWAPT@lists.tranquil.ithttp://lists.tranquil.it/listinfo/wapt
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt