Below is the setup.py file for the Mblock software. Based on Scratch, Mblock is a programming software for Mbots. The Mbots modules themselves are built around Arduino boards.
Note that after installation, on the first run it will ask you to define a network access.
And there's also the installation of Arduino drivers and other components to do. If anyone feels like adding that to the list...
Download link for the .exe file: http://www.mblock.cc/
Code: Select all
# -*- 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')
