tis-proton-vpn icon

Proton VPN

Paquet d’installation silencieuse pour Proton VPN

4.1.10-2

  • package: tis-proton-vpn
  • name: Proton VPN
  • version: 4.1.10-2
  • categories: Security
  • maintainer: WAPT Team,Tranquil IT,Amel FRADJ
  • licence: opensource_free,wapt_public
  • target_os: windows
  • impacted_process: ProtonVPNService,ProtonVPN
  • architecture: x64
  • signature_date:
  • size: 89.82 Mo
  • homepage : https://protonvpn.com/

package           : tis-proton-vpn
version           : 4.1.10-2
architecture      : x64
section           : base
priority          : optional
name              : Proton VPN
categories        : Security
maintainer        : WAPT Team,Tranquil IT,Amel FRADJ
description       : Official ProtonVPN Windows app
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 2.3
sources           : 
installed_size    : 
impacted_process  : ProtonVPNService,ProtonVPN
description_fr    : Application Windows officielle de ProtonVPN
description_pl    : Oficjalna aplikacja ProtonVPN na Windows
description_de    : Offizielle ProtonVPN Windows-Anwendung
description_es    : Aplicación oficial de ProtonVPN para Windows
description_pt    : Aplicação oficial da ProtonVPN para Windows
description_it    : Applicazione ufficiale ProtonVPN per Windows
description_nl    : Officiële Windows-app van ProtonVPN
description_ru    : Официальное приложение ProtonVPN для Windows
audit_schedule    : 
editor            : 
keywords          : 
licence           : opensource_free,wapt_public
homepage          : https://protonvpn.com/
package_uuid      : 0314b486-2508-4958-9896-818fc65f7cb9
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 10.0
max_os_version    : 
icon_sha256sum    : 607ec93d3b82c0a6920d6f158b4423732570e49e710d3d2814c675c463ba8014
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-04-09T14:11:14.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature         : p4ppJ1JtuZEb97BVuzqz0abscCBnxq3KCbS9+MZEo5g5na1ir8HrL9jay8F9jqeRfbBf+AI3vUyNp9QiW4RNQJCRiFlG3h090Nq4PqfClTRnuXX2IfvaVZmpwvbvBz54xlmGOzIkAK+7Ju2JEb4jLm5uQx6w48O+18tW98oSr9rHWIhWOiFarWsGr0RgOcs3PBBhmVIC7GKrGQmvB9p/t1L5VYumQbO+c0yoNk4jKTPuCvS3hxEZJjeT8OJnC/mxzvuK/1i1kvaOgxRRoCGWocH7PGIZg/ueoTiWvb6TSCX7RTUMEshns8rLq0Eft/nvm3xlejFjGWIa1tBgoMp1QA==

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



def install():
    # Declaring local variables
    bin_name = glob.glob('ProtonVPN_*.exe')[0]

    uninstall_older_version()

    # Installing the software
    install_exe_if_needed(bin_name,
        silentflags='/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /ALLUSERS /FORCECLOSEAPPLICATIONS',
        key='Proton VPN_is1',
        min_version=control.get_software_version(),
    )


def uninstall_older_version():

    killalltasks(ensure_list(control.impacted_process))

    for soft in installed_softwares('Proton VPN_is1'):
        uninstall_key = soft['key']
        if Version(soft['version']) < Version(control.get_software_version()):
            run(uninstall_cmd(uninstall_key))
            wait_uninstallkey_absent(uninstall_key)

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


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name

    git_repo = "ProtonVPN/win-app"
    url_api = "https://api.github.com/repos/%s/releases/latest" % git_repo

    os_dict = { 'windows-x64': 'x64.exe' }
    os_type = control.target_os + "-" + ensure_list(control.architecture)[0]

    # Getting latest version information from official sources
    print("API used is: %s" % url_api)
    json_load = wgets(url_api, proxies=proxies, as_json=True)

    for download in json_load["assets"]:
        if download["name"].endswith(os_dict[os_type]) :
            download_url = download["browser_download_url"]
            version = json_load["tag_name"].replace("v", "")
            latest_bin = download["name"]
            latest_bin_extension = latest_bin.rsplit('.', 1)[-1]
            break

    # Downloading latest binaries
    print(f"Latest {app_name} version is: {version}")
    print(f"Download URL is: {download_url}")
    if not isfile(latest_bin):
        print(f"Downloading: {latest_bin}")
        wget(download_url, latest_bin, proxies=proxies)
    else:
        print(f"Binary is present: {latest_bin}")

    expected_issuer = "Proton AG"
    sign_name = waptlicences.check_msi_signature(latest_bin)[0]
    if sign_name != expected_issuer:
        error(f'Bad issuer {sign_name} != {expected_issuer} ')

    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        print(f"Software version updated (from: {control.get_software_version()} to: {Version(version)})")
        package_updated = True
    else:
        print(f"Software version up-to-date ({Version(version)})")

    for f in glob.glob(f'*.{latest_bin_extension}'):
        if f != latest_bin:
            remove_file(f)

    control.set_software_version(version)
    control.save_control_to_wapt()

    return package_updated

cafe79bbd331282078ca546694d0299fb4db4dc721b021ea307010179c0462bf : ProtonVPN_v4.1.10_x64.exe
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
911ed17e334c6f31b8f26c3e466a0f062486f0f7f356428fadc7ff2569888d1c : WAPT/control
607ec93d3b82c0a6920d6f158b4423732570e49e710d3d2814c675c463ba8014 : WAPT/icon.png
cedc3c531849c6b517740c5f9e65071f4f4e133cc81b65eaf8403e80f9a501bf : luti.json
b95082f3fe16e3ba9cff432d23704340870cf9eacb8d55a9c530874afd97b614 : setup.py
19fc49e049c06d731df409c69bb8dbfa010b6d9d51275505d849b58a5bc5616c : update_package.py