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


def install():
    bin_name = glob.glob("*.msi")[0]
    install_msi_if_needed(
        bin_name,
        min_version=control.get_software_version(),
        timeout=600,
    )

    create_programs_menu_shortcut("k6", makepath(systemdrive, programfiles, "k6", "k6.exe"))


def uninstall():
    remove_programs_menu_shortcut("k6")
