PortValhalla/scripts/Windows/Software/WinSCP/Manage.ps1

17 lines
614 B
PowerShell
Raw Normal View History

2024-08-07 16:30:14 +00:00
using namespace Microsoft.Win32;
. "$PSScriptRoot/../../Scripts/AppAssociations.ps1";
2024-09-23 01:33:17 +00:00
. "$PSScriptRoot/../../Scripts/SoftwareManagement.ps1";
2024-08-07 19:05:32 +00:00
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
2024-08-08 12:21:55 +00:00
. "$PSScriptRoot/../../../Common/Scripts/System.ps1";
2024-08-07 16:30:14 +00:00
2024-09-30 03:00:20 +00:00
Start-SoftwareInstaller @args `
2024-08-07 16:30:14 +00:00
-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";
};