tis-proton-vpn icon

Proton VPN

Paquet d’installation silencieuse pour Proton VPN

4.2.1-2

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

package           : tis-proton-vpn
version           : 4.2.1-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      : 59f6a73c-2e7c-4cb2-bd3a-cf15c3783cab
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-08-02T22:06:44.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         : xHN5aCAFpRhXkPPpcWnCSBuqBAoIfwqsLIwv/+NoHF9ktmCwiR/015cQX+Qa7ounFui9IZTANeEvlTwBt9EbYd1zjbdkCfg65IVFAL11LZt0jiEYrTh78g//UiAJyQ/O5DEaxRJkFeIVWuIuSMhglO1F3IGNq5Wu0AnME2WGQoXlAi0pcXJKajAo/6uKKHAnviSp7c7bx4LgwSw0jkiSoTxqsvDXfGnkiXfEHLKfMzbrS5SFQYBHuGTZ45e19azTvqI5GUYOmdGEUTOBqOiWrDFgy1TdhO3m9cE8wsZRDLBB8ivNh1DiZKLOyuGVizPgatZUfgSePVmlvLMyXLIbAg==

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

5b9106c65673527c22f09fdcfdc46b1fec51f9a22b0db832b6b65902a5404aab : ProtonVPN_v4.2.1_x64.exe
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
a14a68f44ccaad6784044d3fae12f314e0cdef9360a66c2a47df78336fdfb2e2 : WAPT/control
607ec93d3b82c0a6920d6f158b4423732570e49e710d3d2814c675c463ba8014 : WAPT/icon.png
21ee58337624d6d90ee79576b3d73a4f9cbae2e5493bd9d293b92dba9fe85e21 : luti.json
b95082f3fe16e3ba9cff432d23704340870cf9eacb8d55a9c530874afd97b614 : setup.py
19fc49e049c06d731df409c69bb8dbfa010b6d9d51275505d849b58a5bc5616c : update_package.py