# -*- coding: utf-8 -*-
from setuphelpers import *
# registry key(s) where WAPT will find how to remove the application(s)
uninstallkey = []
# command(s) to launch to remove the application(s)
uninstallstring = []
def install():
print('installing Arduino_R1_1.0.5')
destdir = makepath(programfiles32,'Arduino')
remove_tree(destdir)
registry_delete(HKEY_LOCAL_MACHINE, r'SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Arduino', r'UninstallString')
copytree2(r'R1Arduino_1.0.5',r'c:\logiciel\R1Arduino_1.0.5')
run('certutil.exe -addstore ""TrustedPublisher"" driversx86.cer')
run(r'"dpinst-amd64.exe" /SW /SE')
alors que la commande c:\dpinst-amd64.exe" /SW /SE exécutée manuel, fonctionnement.