tis-winscp

6.5.2-3
WinSCP is a SFTP client and FTP for Microsoft Windows
11537 downloads
Download
See build result See VirusTotal scan
tis-winscp icon
  • package : tis-winscp
  • name : WinSCP
  • version : 6.5.2-3
  • categories : System and network
  • maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ,Jordan ARNAUD,Amel FRADJ
  • editor : Martin Prikryl
  • licence : opensource_free,wapt_public
  • locale : all
  • target_os : windows
  • impacted_process : winscp
  • architecture : all
  • signature_date : 2025-06-23 14:01
  • size : 11.62 Mo
  • installed_size : 92.79 Mo
  • homepage : https://winscp.net
package           : tis-winscp
version           : 6.5.2-3
architecture      : all
section           : base
priority          : optional
name              : WinSCP
categories        : System and network
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ,Jordan ARNAUD,Amel FRADJ
description       : WinSCP is a SFTP client and FTP for Microsoft Windows
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.3
sources           : https://winscp.net/eng/download.php
installed_size    : 92794880
impacted_process  : winscp
description_fr    : WinSCP est un client SFTP et FTP pour Microsoft Windows
description_pl    : WinSCP to klient SFTP i FTP dla Microsoft Windows
description_de    : WinSCP ist ein SFTP-Client und FTP für Microsoft Windows
description_es    : WinSCP es un cliente SFTP y FTP para Microsoft Windows
description_pt    : WinSCP é um cliente SFTP e FTP para Microsoft Windows
description_it    : WinSCP è un client SFTP e FTP per Microsoft Windows
description_nl    : WinSCP is een SFTP-client en FTP voor Microsoft Windows
description_ru    : WinSCP - это клиент SFTP и FTP для Microsoft Windows
audit_schedule    : 
editor            : Martin Prikryl
keywords          : winscp,win,scp
licence           : opensource_free,wapt_public
homepage          : https://winscp.net
package_uuid      : b2c41167-bbf9-4083-8449-57a80251784b
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 5.1
max_os_version    : 
icon_sha256sum    : a59323e95e48c3999c5cd1aae045d11bbdc9725bc05e6b885d2dd9b50f992b45
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-06-23T14:01:18.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         : N7UBnoB2J/aOGz9wykZszV2Mg2nBwJep9fjOwnjk5DvekxbcMTFdi/iaJ706STmk1lw5jNg8CkDzeXJ1NWIBNRJuJg3H1DhqVoX369mlivxifKoyKsiaehCoSKI+Y9VeKbMueoI5WXr0o6/+GXDZMTSOBqL2bOgd3aGMc7YrB2+GqZ2rpr5nqYtDkJeZWuoayR1aIVpuOQaC523CrPpPfQxkTl6KJZgxfhLrXpvRDVLxIz+a7u5VWfyM46KP4JoO7IqLOln1bZ+x1ODmcrjLnbjOPrXm2nDUc1HRflyxL7FJbFGpIfXidytisMVD6sDCLW3uef+7a99pMwmZEIZWJA==
# -*- coding: utf-8 -*-
from setuphelpers import *

current_lang = get_language()
winscp_path = makepath(programfiles32, "WinSCP")

winscp_ini = rf"""[Setup]
Lang={current_lang}
Dir={winscp_path}
Group=WinSCP
NoIcons=0
SetupType=full
Components=main,shellext,pageant,puttygen,transl,transl\eng,transl\fr
Tasks=desktopicon,desktopicon\user,sendtohook,urlhandler
[Configuration\Interface\Updates]
Period=0"""

app_uninstallstring = makepath(winscp_path, "unins000.exe")
app_uninstallkey = "winscp3_is1"

def install():
    # Adapting the configuration file depending on running system
    open("winscp.ini", "w").write(winscp_ini)

    uninstall_msi_version()

    # Installing the package
    install_exe_if_needed(
        f"WinSCP-{control.get_software_version()}-Setup.exe",
        silentflags="/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /LOADINF=winscp.ini",
        key="winscp3_is1",
        min_version=control.get_software_version(),
    )

    # Adding QuietUninstallString
    quiet_uninstall_string = rf'"{app_uninstallstring}" /SILENT /NORESTART'
    register_uninstall(app_uninstallkey, quiet_uninstall_string=quiet_uninstall_string)
    

def uninstall_msi_version():

    killalltasks(ensure_list(control.impacted_process))

    for to_uninstall  in installed_softwares(control.name):
        if to_uninstall['uninstall_string'].lower().startswith("msiexec"):  # Verify if it's an MSI installation
            print("MSI version of WinSCP found: %s (%s)" % (to_uninstall["name"], to_uninstall["version"]))
            run(uninstall_cmd(to_uninstall['key']))
            wait_uninstallkey_absent(to_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

    base_url = "https://winscp.net/eng/download.php"

    # Getting latest version from official sources
    print(f"URL used is: {base_url}")
    for link in bs_find_all(base_url, "a", proxies=proxies):
        href = link.get('href', '')
        if ("WinSCP-" and "-Setup.exe") in href:
            url = "https://winscp.net" + href
            latest_bin = url.rsplit("/")[-2]
            latest_bin_extension = latest_bin.rsplit(".")[-1]
            version = latest_bin.split("-")[1]
            break

    for link in bs_find_all(url, "a", proxies=proxies):
        if latest_bin in link['href']:
            download_url = link['href']
            break

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

    expected_issuer = "Martin Prikryl"
    sign_name = waptlicences.check_exe_signing_certificate(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("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
        package_updated = True
    else:
        print("Software version up-to-date (%s)" % Version(version))

    #nettoyer les fichiers temporaires
    for f in glob.glob(f'*.{latest_bin_extension}'):
        if f != latest_bin:
            remove_file(f)

    control.set_software_version(get_version_from_binary(latest_bin))
    control.save_control_to_wapt()

    return package_updated
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
adde08ddea22f7b14681c49fb54479fcdfa92de93c4604fc10d0ce14f97aefed : WAPT/changelog.txt
b4b4d0a4adfad8af2853823b1ce81718e000adc0e443cb2934fc0d6f93c0d157 : WAPT/control
a59323e95e48c3999c5cd1aae045d11bbdc9725bc05e6b885d2dd9b50f992b45 : WAPT/icon.png
9bba02378a0e71fc5dbb20c50b1528987d8b67bd243f097e954206ed514a955a : WinSCP-6.5.2-Setup.exe
782bf094c6c5940ce95edba34bf4afba8d5f3b4710cae1c31b485847bbac3877 : luti.json
592c4c6c263b16df7209ea29db31c14fdfa924e88b9b0f50fe1666d378d26881 : setup.py
79018ee9b396d3911ebbf9949b7565a1a9cd1a444a84f47afb2738d72bb99d50 : update_package.py
https://winscp.net/docs/history