PortValhalla/scripts/Windows/Software/winscp/Main.ps1

16 lines
614 B
PowerShell

using namespace Microsoft.Win32;
. "$PSScriptRoot/../../Scripts/AppAssociations.ps1";
. "$PSScriptRoot/../../Scripts/SoftwareManagement.ps1";
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
. "$PSScriptRoot/../../../Common/Scripts/System.ps1";
Start-SoftwareInstaller @args `
-Installer {
Install-ChocoPackage winscp;
} `
-Configurator {
Remove-DesktopIcon "WinSCP*";
Write-Host "Making WinSCP the default FTP program…";
Set-DefaultAppAssociation -Identifier "ftp" -ProgId "WinSCP.Url" -ApplicationName "WinSCP: SFTP, FTP, WebDAV, S3 and SCP client";
};