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

r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()
{
   "key":"qBittorrent",
   "name":"qBittorrent",
   "version":"4.6.4.10",
   "install_date":"",
   "install_location":"",
   "uninstall_string":"\"C:\\Program Files\\qBittorrent\\uninst.exe\"",
   "publisher":"The qBittorrent project",
   "system_component":0,
   "win64":false
  }
"""
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls


def install():
    # Declaring local variables
    bin_name = glob.glob('qbittorrent_enhanced_*_x64_setup.exe')[0]
    # Installing the software
   
    install_exe_if_needed(bin_name,
        silentflags='/S',
        key='qBittorrent',
        min_version=control.get_software_version(),
    )



