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

uninstallkey = []


def install():
    print("installing tis-innosetup")

    version = control["version"].split("-", 1)[0]
    install_exe_if_needed("innosetup-%s.exe" % version, "/VERYSILENT /SUPPRESSMSGBOXES /NORESTART", key="Inno Setup 6_is1", min_version=version)

    # Kill at end of installation
    killalltasks("innosetup.exe")


