shortcut deletion problem
Published: Dec 1, 2015 - 1:27 AM
Hello,
During the package test, the shortcut to SketchUp 2015 is correctly removed by the following setup.py:
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')
Using the wapt-get build-upload command, we get an IndentationError: unexpected indent.
If we use the shortened Windows name, the error shifts, which seems to indicate a maximum number of characters set to 64.
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 -\TECHNOLOGY\SketchUp 2015.lnk')
^
IndentationError: unexpected indent
FATAL ERROR: IndentationError: unexpected indent (setup.py, line 11)
Kind regards,
David Rouet
During the package test, the shortcut to SketchUp 2015 is correctly removed by the following setup.py:
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')
Using the wapt-get build-upload command, we get an IndentationError: unexpected indent.
If we use the shortened Windows name, the error shifts, which seems to indicate a maximum number of characters set to 64.
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 -\TECHNOLOGY\SketchUp 2015.lnk')
^
IndentationError: unexpected indent
FATAL ERROR: IndentationError: unexpected indent (setup.py, line 11)
Kind regards,
David Rouet