tis-axcrypt

2.1.1609.0-16
AxCrypt is a software that allows to use strong encryption methods with Microsoft Windows. Integrated in Windows Explorer, it allows to compress, erase, encrypt and edit very simply.
2866 downloads
Download

  Description 

  • package : tis-axcrypt
  • version : 2.1.1609.0-16
  • architecture : all
  • categories : Utilities
  • maintainer : WAPT Team,Tranquil IT,Kenan KILICARSLAN,Jimmy PELÉ
  • description : AxCrypt is a software that allows to use strong encryption methods with Microsoft Windows. Integrated in Windows Explorer, it allows to compress, erase, encrypt and edit very simply.
  • locale : all
  • target_os : windows
  • min_os_version : 6.1
  • max_os_version :
  • min_wapt_version : 1.7
  • sources : https://www.axcrypt.net/download
  • installed_size :
  • impacted_process : AxCrypt
  • description_fr : AxCrypt est un logiciel qui permet d'utiliser les méthodes de chiffrement fortes avec Microsoft Windows. Intégré à Windows Explorer, il permet de compresser, d'effacer, de chiffrer et d'éditer très simplement.
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor : Svante Seleborg
  • licence : GPLv2
  • signature_date : 2021-01-26T14:07:58.495249
  • Homepage : https://www.axcrypt.net/
  • Depends :

  Setup.py 

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

uninstallkey = []

# Defining variables
bin_name_sub ='AxCrypt-%s-Setup.exe'
silent_args = '/S'
app_uninstallkey = '' # empty because it may change every versions
processes_to_kill = ['AxCrypt']
app_name = 'AxCrypt'


def install():
    # Initializing variables
    package_version = control.version.split('-', 1)[0]
    bin_name = bin_name_sub % package_version

    # Installing the package
    print('Installing: %s' % bin_name)
    install_exe_if_needed(bin_name,
        silentflags=silent_args,
        key=app_uninstallkey,
        min_version=package_version)


def uninstall():
    # Initializing variables
    count = 30 # 30x10=300sec maximum waiting

    # Uninstalling the package
    for uninstall in installed_softwares(name=app_name):
        killalltasks(processes_to_kill)
        print('Uninstalling: %s' % uninstall['name'])
        run_notfatal(uninstall_cmd(uninstall['key']))

    while installed_softwares(name=app_name):
        count -= 1
        if count == 0:
            error('Unable to uninstall: %s' % app_name)
        time.sleep(10)


def update_package():
    # Initializing variables
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    url = control.sources
    dl_url = "https://account.axcrypt.net/download/axcrypt-2-setup.exe"
    bin_temp = 'axcrypt-2-setup.exe'
    latest_bin = bin_temp
    version = '0.0'

    print("Download url is: %s" % dl_url)

    # Downloading latest binaries
    if not isfile(latest_bin):
        print('Downloading: %s' % latest_bin)
        wget(dl_url, latest_bin, proxies=proxies)

        # Checking version from file
        version_from_file = get_version_from_binary(latest_bin)
        if version != version_from_file:
            os.rename(latest_bin,bin_name_sub % version_from_file)
            version = version_from_file

        # Changing version of the package
        control.version = '%s-%s' % (version, control.version.split('-', 1)[-1])
        control.save_control_to_wapt()
        print('Changing package version to: %s in WAPT\\control' % control.version)

    # Deleting outdated binaries
    remove_outdated_binaries(version)




def get_proxies():
    import platform
    if platform.python_version_tuple()[0] == '3':
        from urllib.request import getproxies
    else:
        from urllib import getproxies
    return getproxies()

def get_proxies_from_wapt_console():
    proxies = {}
    if platform.system() == 'Windows':
        waptconsole_ini_path = makepath(user_local_appdata(), 'waptconsole', 'waptconsole.ini')
    else:
        waptconsole_ini_path = makepath(user_home_directory(), '.config', 'waptconsole', 'waptconsole.ini')
    if isfile(waptconsole_ini_path):
        proxy_wapt = inifile_readstring(waptconsole_ini_path, 'global', 'http_proxy')
        if proxy_wapt:
            proxies = {'http': proxy_wapt, 'https': proxy_wapt}
    return proxies

def get_version_from_binary(filename):
    if filename.endswith('.msi'):
        return get_msi_properties(filename)['ProductVersion']
    else:
        return get_file_properties(filename)['ProductVersion']

def remove_outdated_binaries(version, list_extensions=['exe','msi','deb','rpm','dmg','pkg'], list_filename_contain=None):
    if type(list_extensions) != list:
        list_extensions = [list_extensions]
    if list_filename_contain:
        if type(list_filename_contain) != list:
            list_filename_contain = [list_filename_contain]
    list_extensions = ['.' + ext for ext in list_extensions if ext[0] != '.']
    for file_ext in list_extensions:
        for bin_in_dir in glob.glob('*%s' % file_ext):
            if not version in bin_in_dir:
                remove_file(bin_in_dir)
            if list_filename_contain:
                for filename_contain in list_filename_contain:
                    if not filename_contain in bin_in_dir:
                        remove_file(bin_in_dir)


										

  Changelog 


Changelog software url : https://www.axcrypt.net/information/release-notes/

No changelog
  manifest.sha256 
[["AxCrypt-2.1.1609.0-Setup.exe","3f446b28fab4b59a5f00ac29032553ff7975409f74fbb177a4a44eb5f95706f8"],["setup.py","8c4924c571f9a39d9b9d29740e340dfc9f2b5e44cf493625341965ce8cf817f5"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/icon.png","2b9524010626e11ff98149158d738fb0311ac7b98683df681810a8a545aac9c8"],["WAPT/control","b138c425a89cb7db5151692b2b8380bd22df628ae00225db6743a7bb57585468"]]