Downloads:

1,240,958

Downloads of v 5.9.4.20170323:

11,623

Last Update:

24 Mar 2017

Package Maintainer(s):

Software Author(s):

  • Martin Přikryl

Tags:

scp sftp ftp client admin

WinSCP (Install)

This is not the latest version of WinSCP (Install) available.

5.9.4.20170323 | Updated: 24 Mar 2017

Downloads:

1,240,958

Downloads of v 5.9.4.20170323:

11,623

Software Author(s):

  • Martin Přikryl

WinSCP (Install) 5.9.4.20170323

This is not the latest version of WinSCP (Install) available.

All Checks are Passing

2 Passing Test


Validation Testing Passed


Verification Testing Passed

Details

To install WinSCP (Install), run the following command from the command line or from PowerShell:

>

To upgrade WinSCP (Install), run the following command from the command line or from PowerShell:

>

To uninstall WinSCP (Install), run the following command from the command line or from PowerShell:

>

NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://chocolatey.org/api/v2. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Enter your internal repository url

(this should look similar to https://chocolatey.org/api/v2)

4. Choose your deployment method:


choco upgrade winscp.install -y --source="'STEP 3 URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade winscp.install -y --source="'STEP 3 URL'"
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Ensure winscp.install installed
  win_chocolatey:
    name: winscp.install
    state: present
    version: 5.9.4.20170323
    source: STEP 3 URL

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.

Coming early 2020! Central Managment Reporting available now! More information...


chocolatey_package 'winscp.install' do
  action    :install
  version  '5.9.4.20170323'
  source   'STEP 3 URL'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


Chocolatey::Ensure-Package
(
    Name: winscp.install,
    Version: 5.9.4.20170323,
    Source: STEP 3 URL
);

Requires Otter Chocolatey Extension. See docs at https://inedo.com/den/otter/chocolatey.


cChocoPackageInstaller winscp.install
{
   Name     = 'winscp.install'
   Ensure   = 'Present'
   Version  = '5.9.4.20170323'
   Source   = 'STEP 3 URL'
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'winscp.install':
  provider => 'chocolatey',
  ensure   => '5.9.4.20170323',
  source   => 'STEP 3 URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


salt '*' chocolatey.install winscp.install version="5.9.4.20170323" source="STEP 3 URL"

See docs at https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.chocolatey.html.

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

This package is likely a meta/virtual (*) or an installer (*.install) or portable (*.portable) application package.

  • Meta/virtual (*) - has a dependency on the *.install or the *.portable package - it is provided for discoverability and for other packages to take a dependency on.
  • Portable (*.portable/*.commandline (deprecated naming convention)/*.tool (deprecated naming convention)) - usually zips or archives that require no administrative access to install.
  • Install (*.install/*.app (deprecated naming convention)) - uses native installers, usually requires administrative access to install.

Learn more about chocolatey's distinction of installed versus portable apps and/or learn about this kind of package.

This package was approved as a trusted package on 24 Mar 2017.

Description

WinSCP is an open source free SFTP client, SCP client, FTPS client and FTP client for Windows. Its main function is file transfer between a local and a remote computer. Beyond this, WinSCP offers scripting and basic file manager functionality.

Documentation


tools\chocolateyInstall.ps1
$packageName = 'winscp.install'
$packageSearch = 'WinSCP 5.9.4'
$softwareVersion = '5.9.4'
$url = 'https://sourceforge.net/projects/winscp/files/WinSCP/5.9.4/WinSCP-5.9.4-Setup.exe'
$checksum = 'af062b32c907ee1d51de82cadb570171750a51e7dd3d953bb8f24282c3db642d'
$checksumType = 'sha256'
$validExitCodes = @(0)

$language = (Get-Culture).TwoLetterISOLanguageName.ToLower()
if ($language -eq $null) {
    $language = 'en'
}

$installerType = 'exe'
$silentArgs = "/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /LANG=$language"

Install-ChocolateyPackage -PackageName "$packageName" `
                          -FileType "$installerType" `
                          -SilentArgs "$silentArgs" `
                          -Url "$url" `
                          -ValidExitCodes $validExitCodes `
                          -Checksum "$checksum" `
                          -ChecksumType "$checksumType"

if ($language -ne 'en') {
  Write-Verbose "Retrieving list of translations"
  $url = "http://www.winscp.net/eng/translations.php"
  $f = Join-Path -Path $Env:Temp `
				 -ChildPath ([System.IO.Path]::GetRandomFileName())
  Get-WebFile -Url $url `
              -FileName $f `
              -Options $Options 3>$null
  $str = Get-Content $f -ReadCount 0 | Out-String
  Remove-Item $f
  
  Write-Verbose "Checking if language translation file is available."
  $compatLangs = [Regex]::Matches($str, "\w{2}(?=\.zip)")
  if ($compatLangs.Value -Contains $language) {
    $urlLang = 'http://winscp.net/translations/dll/' + $softwareVersion + '/' + $language + '.zip'
    Write-Host "[$packageName] Download file with translate '$language': $urlLang"
	$reg = Get-ItemProperty -Path @('HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*',
                                    'HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*',
                                    'HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*') `
                            -ErrorAction:SilentlyContinue `
           | Where-Object {$_.DisplayName -Like "$packageSearch"}
    $langFileName = "WinSCP.$language"
    $unzipLocation = $reg.InstallLocation
	
    Install-ChocolateyZipPackage -PackageName $packageName `
                                 -Url $urlLang `
                                 -UnzipLocation $unzipLocation

    Write-Host "[$packageName] *** If your language is not set automatically. Please select your language in Preferences -> Languages ***"
  } else {
    Write-Warning "Download file for translation language `"'$language'`" was not found."
    Write-Warning "Please help create a translation file for your language."
    Write-Warning "See winscp.net/translations.php for more information"
  }
}
tools\chocolateyUninstall.ps1
$packageName = 'winscp.install'
$packageSearch = 'WinSCP 5.9.4'
$installerType = 'exe'
$silentArgs = '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-'
$validExitCodes = @(0)

Get-ItemProperty -Path @( 'HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*',
                          'HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*',
                          'HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*' ) `
                 -ErrorAction:SilentlyContinue `
| Where-Object   { $_.DisplayName -like "$packageSearch" } `
| ForEach-Object { Uninstall-ChocolateyPackage -PackageName "$packageName" `
                                               -FileType "$installerType" `
                                               -SilentArgs "$($silentArgs)" `
                                               -File "$($_.UninstallString.Replace('"',''))" `
                                               -ValidExitCodes $validExitCodes }

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Version Downloads Last Updated Status
WinSCP (Install) 5.17.8 52791 Thursday, October 15, 2020 Approved
WinSCP (Install) 5.17.7 86665 Friday, July 24, 2020 Approved
WinSCP (Install) 5.17.6 53303 Thursday, May 28, 2020 Approved
WinSCP (Install) 5.17.5 46370 Monday, April 27, 2020 Approved
WinSCP (Install) 5.17.4 8386 Friday, April 24, 2020 Approved
WinSCP (Install) 5.17.3 42874 Wednesday, April 1, 2020 Approved
WinSCP (Install) 5.17.2.20200316 29296 Monday, March 16, 2020 Approved

Program

Package

  • Fix errors in install script

This package has no dependencies.

Discussion for the WinSCP (Install) Package

Ground Rules:

  • This discussion is only about WinSCP (Install) and the WinSCP (Install) package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or WinSCP (Install), or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus