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

def install():
    bin_name = glob.glob("VeraCrypt_Setup_x64_*.msi")[0]
    properties = {
        "ACCEPTLICENSE": "YES",
    }

    install_msi_if_needed(
        bin_name,
        timeout=600,
        properties=properties,
        min_version=control.get_software_version(),
        accept_returncodes=[0,3010,1603]
    )

    install_msi_if_needed(
        bin_name,
        timeout=600,
        properties=properties,
        min_version=control.get_software_version(),
    )