tis-axcrypt

2.1.1606.0-11
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.
4945 downloads
Download
default icon

  Description 

  • package : tis-axcrypt
  • version : 2.1.1606.0-11
  • 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_wapt_version : 1.7
  • sources :
  • installed_size :
  • impacted_process : AxCrypt.exe
  • 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 : GPL 2
  • signature_date : 2020-11-20T12:32:36.892684
  • Homepage : https://www.axcrypt.net/

  Setup.py 

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

uninstallkey = []

# Defining variables
bin_name_to_substitute='AxCrypt-%s-Setup.exe'
silent_args = '/S'
app_uninstallkey = '' # because it may change every versions


def install():
    # Initializing variables
    package_version = control.version.split('-',1)[0]
    bin_name = bin_name_to_substitute % 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():
    #set variables
    package_version = control.version.split('-')[0]
    processes_to_kill = control.impacted_process.split(',')
    app_name = control.name

    print('closing %s' % app_name)
    killalltasks(processes_to_kill)
    print('uninstalling %s' % app_name)
    # Uninstalling
    for uninstall in installed_softwares(name=app_name):
        print('Uninstalling: %s' % uninstall['name'])
        run(uninstall_cmd(uninstall['key']))


def update_package():
    print('Download/Update package content from upstream binary sources')

    # Initializing variables
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name
    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_to_substitute % version_from_file)
            version = version_from_file

        # Changing version of the package
        control.version = '%s-%s'%(version,int(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 



No changelog.txt.
									
  manifest.sha256