problème de suppression de raccourci
Posté : 01 déc. 2015 - 01:27
Bonjour,
Lors du test du paquet, le raccourci vers Sketchup 2015 est bien supprimé par le setup.py suivant :
from setuphelpers import *
uninstallkey = ["{933E4E07-16F2-4198-A3E3-8C29C9E5D757}"]
def install():
old_sketchup = installed_softwares('Sketchup 2015')
if old_sketchup:
print('Uninstalling Sketchup 2015')
run("MsiExec.exe /x{09F5B1BF-B252-4776-B256-98DFE0730984} /quiet")
remove_file(r'C:\ProgramData\Microsoft\Windows\Start Menu\Programs\- EDUCATION -\TECHNOLOGIE\SketchUp 2015.lnk')
print('installing kmr-sketchup2016')
run(r'"SketchUp2016-x64.msi" /q /norestart')
En utilisant la commande wapt-get build-upload, on obtient une IndentationError: unexpected indent.
Si on utilise le nom abrégé windows l'erreur se décale ce qui semble indiquer qu'un nombre de caractère maxi fixé à 64 caractères.
C:\Users\admin>wapt-get build-upload C:\waptdev\kmr-sketchup2016-wapt
Building C:\waptdev\kmr-sketchup2016-wapt
2015-12-01 10:40:03,072 CRITICAL Error importing C:\waptdev\kmr-sketchup2016-wap
t\setup.py : Traceback (most recent call last):
File "D:\wapt\common.py", line 634, in import_setup
py_mod = imp.load_source(modulename, setupfilename)
File "C:\waptdev\kmr-sketchup2016-wapt\setup.py", line 11
remove_file(r'C:\ProgramData\Microsoft\Windows\Start Menu\Programs\- EDUCATI
ON -\TECHNOLOGIE\SketchUp 2015.lnk')
^
IndentationError: unexpected indent
FATAL ERROR : IndentationError: unexpected indent (setup.py, line 11)
Cordialement,
David Rouet
Lors du test du paquet, le raccourci vers Sketchup 2015 est bien supprimé par le setup.py suivant :
from setuphelpers import *
uninstallkey = ["{933E4E07-16F2-4198-A3E3-8C29C9E5D757}"]
def install():
old_sketchup = installed_softwares('Sketchup 2015')
if old_sketchup:
print('Uninstalling Sketchup 2015')
run("MsiExec.exe /x{09F5B1BF-B252-4776-B256-98DFE0730984} /quiet")
remove_file(r'C:\ProgramData\Microsoft\Windows\Start Menu\Programs\- EDUCATION -\TECHNOLOGIE\SketchUp 2015.lnk')
print('installing kmr-sketchup2016')
run(r'"SketchUp2016-x64.msi" /q /norestart')
En utilisant la commande wapt-get build-upload, on obtient une IndentationError: unexpected indent.
Si on utilise le nom abrégé windows l'erreur se décale ce qui semble indiquer qu'un nombre de caractère maxi fixé à 64 caractères.
C:\Users\admin>wapt-get build-upload C:\waptdev\kmr-sketchup2016-wapt
Building C:\waptdev\kmr-sketchup2016-wapt
2015-12-01 10:40:03,072 CRITICAL Error importing C:\waptdev\kmr-sketchup2016-wap
t\setup.py : Traceback (most recent call last):
File "D:\wapt\common.py", line 634, in import_setup
py_mod = imp.load_source(modulename, setupfilename)
File "C:\waptdev\kmr-sketchup2016-wapt\setup.py", line 11
remove_file(r'C:\ProgramData\Microsoft\Windows\Start Menu\Programs\- EDUCATI
ON -\TECHNOLOGIE\SketchUp 2015.lnk')
^
IndentationError: unexpected indent
FATAL ERROR : IndentationError: unexpected indent (setup.py, line 11)
Cordialement,
David Rouet