tis-winscp icon

WinSCP

Silent install package for WinSCP

6.5.5-3
System and network
System and network

Preprod packages are packages built on LUTI. They remain in PREPROD usually for 5 days, after which a new VirusTotal scan is performed.
If the package passes this last check, it is promoted to PROD and published on the store.

  • package: tis-winscp
  • name: WinSCP
  • version: 6.5.5-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:
  • size: 11.66 Mo
  • installed_size: 92.79 Mo
  • homepage : https://winscp.net

package           : tis-winscp
version           : 6.5.5-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          : PREPROD
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      : 1d47ef16-3a77-4ada-bfa6-fc3f46b2aa04
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 5.1
max_os_version    : 
icon_sha256sum    : a59323e95e48c3999c5cd1aae045d11bbdc9725bc05e6b885d2dd9b50f992b45
signer            : test
signer_fingerprint: b82fc8ef4a4475c0f69ac168176c2bfc58f572eb716c4eadd65e4785c155dd8e
signature_date    : 2025-11-19T13:21:46.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         : ivfrK+2Wj/NMWke7lexKYl/8THcZclDA126DD3qG0FkVqqsFSgAuDm2+Mxic/h80tKWcL5dd1q/pYEq5djevzM/fdxPNmkG8ramSfgPbvpb9MNcMx+rmp6CMFgRaPzBWeeDc878kMFYOjEg3xSs90PlGmtdWvNdoKLNTSrfM+lhPT6MWn5PCMmntqFT9ji233jg83Eit6CNlv0YQeQgwkMhb8ruqRxtgU3OcTigiXkCT2KKbkdnO89L1dvm2Zla0ytAIeLeVByrOelhx2ZOIS1Euq9Gj3L+jMg5ExDCuhKXcymzDn6kNIe9+EnlVk+JREr0738m1lItMwXJAoJoJdQ==

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

01ca7fe94636e5a08fcb73849d3b5df25d51e2c82f4dd1a08f01798b25899819 : WAPT/certificate.crt
adde08ddea22f7b14681c49fb54479fcdfa92de93c4604fc10d0ce14f97aefed : WAPT/changelog.txt
0f7b78ea74ee0e7086d638ba00e0d3cdf99e43d54040585eb25a264a515af2a6 : WAPT/control
a59323e95e48c3999c5cd1aae045d11bbdc9725bc05e6b885d2dd9b50f992b45 : WAPT/icon.png
8c223402d933df4430f2c6e3cad17ed1db17710abfd13d62acc707ea480a092f : WinSCP-6.5.5-Setup.exe
e7b34fcbb58e896d8fbede5e0480abd816c69644cc2bdc681d4907c4d06f0f0a : luti.json
592c4c6c263b16df7209ea29db31c14fdfa924e88b9b0f50fe1666d378d26881 : setup.py
79018ee9b396d3911ebbf9949b7565a1a9cd1a444a84f47afb2738d72bb99d50 : update_package.py

https://winscp.net/docs/history