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


def install():
    # Initializing variables
    bin_name = glob.glob("*TortoiseGit-*")[0]

    # Installing the package
    print("Installing: %s" % bin_name)
    install_msi_if_needed(
        bin_name,
        min_version=control.get_software_version(),
    )


def session_setup():
    print("Disabling: auto-update-check")
    registry_set(HKEY_CURRENT_USER, r"SOFTWARE\TortoiseGit", "VersionCheck", 0, type=REG_DWORD)
