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


def install():
    package_version = control.get_software_version()
    shortversion = package_version.split(".")[0]
    bin_name = glob.glob("GDevelop*.exe")[0]

    install_exe_if_needed(
        bin_name,
        silentflags="/S /ALLUSERS",
        key="c2a9b91e-8206-5b4e-b81d-9aa27463c28e",
        min_version=control.get_software_version()
    )
