Nachfolgend finden Sie die setup.py-Datei für die Mblock-Software. Mblock basiert auf Scratch und ist eine Programmiersoftware für Mbots. Die Mbots-Module selbst basieren auf Arduino-Boards.
Beachten Sie, dass Sie nach der Installation beim ersten Start aufgefordert werden, einen Netzwerkzugriff zu definieren.
Und dann wären da noch die Installation der Arduino-Treiber und anderer Komponenten. Falls jemand das der Liste hinzufügen möchte….
Download-Link für die .exe-Datei: http://www.mblock.cc/
Code: Alle auswählen
# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = []
#uninstallkey = ['{1E9DFEBB-4088-4693-A521-C755318BD492}_is1']
#uninstallstring=""C:\Program Files\mBlock\unins000.exe" /SILENT"
#def install():
# print('installing aiz-mblock')
# run(r'"mBlock_win_V3.4.6.exe" /VERYSILENT')
def install():
versionpaquet = control['version'].split('-',1)[0]
print('installing aiz-mblock')
install_exe_if_needed("mBlock_win_V"+versionpaquet+".exe",
silentflags="/VERYSILENT",
key="{1E9DFEBB-4088-4693-A521-C755318BD492}_is1",
min_version=versionpaquet,
killbefore="mBlock.exe")
#suppression de la clé de désinstallation pour pouvoir faire une désinstallation silencieuse. Voir def uninstall():
uninstallkey.remove("{1E9DFEBB-4088-4693-A521-C755318BD492}_is1")
#suppression du raccourci bureau
remove_desktop_shortcut('mBlock')
#Pour une désinstallation silencieuse.
def uninstall():
print('uninstalling aiz-mblock')
run(r'"C:\Program Files\mBlock\unins000.exe" /VERYSILENT')
