# -*- coding: utf-8 -*-
from setuphelpers import *


def install():
    bin_name = glob.glob("veyon-*.exe")[0]
    silentflags = "/S"
    # if not "prof" in get_hostname():
    #     silentflags = "/S /NoMaster"

    install_exe_if_needed(
        bin_name,
        silentflags=silentflags,
        key="Veyon",
        min_version=control.get_software_version(),
        timeout=600,
    )
