tis-proton-vpn icon

Proton VPN

Paquet d’installation silencieuse pour Proton VPN

4.1.13-2

  • package: tis-proton-vpn
  • name: Proton VPN
  • version: 4.1.13-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: 113.64 Mo
  • homepage : https://protonvpn.com/

package           : tis-proton-vpn
version           : 4.1.13-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      : 182b571b-e356-4658-a5b5-b65c7aff7ef8
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-05-26T03:00:22.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         : wnd8vzBX+IgGdtnyXba/Y9XqChCRCi6ZK4+S1cHsh21V0PHOosa2zcPnuXA+28px3JFc7lbRdDmCXhsa1cIMUqUFXLDB84n5a8cKFubE19SchcakFVhViaXzOTbC3xQrKbx7o/SquH8ShTGbYBjHDH3uiobHdexOBPc3zTeyHRDU8/xTGxftKbQAHR+eXLkdHnuGIswE2ISvTTW4oqDYoOhr5KtCpHg/b9MBJ2JPN+aJU6lIGlbLuLZ6NYmfoIKD+QqPE3DxU22jz8d9QPW7KJ0aANIWhjoo482nJn7Cz8AiiaCsEiJxiE+oxBreflXdGj45G/Tsh2XLJbFdZaCWUg==

# -*- 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

cd2c6bc19821c5deaf02c7b62d56d8f5b79fe1a8ca3102905194f17bd6d52ef6 : ProtonVPN_v4.1.13_x64.exe
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
34155dd37d758f41dadd60050ff64c55d9a0ff78239f06c1915b8586c065365a : WAPT/control
607ec93d3b82c0a6920d6f158b4423732570e49e710d3d2814c675c463ba8014 : WAPT/icon.png
f88183ab7c8a1af9068aa6a82ace4e84bb11ce4e8ac4f07fe74c1a98b1594645 : luti.json
b95082f3fe16e3ba9cff432d23704340870cf9eacb8d55a9c530874afd97b614 : setup.py
19fc49e049c06d731df409c69bb8dbfa010b6d9d51275505d849b58a5bc5616c : update_package.py