2024-08-07 16:30:14 +00:00
|
|
|
using namespace Microsoft.Win32;
|
|
|
|
|
|
|
|
param(
|
|
|
|
$Action,
|
|
|
|
[hashtable] $Arguments
|
|
|
|
)
|
|
|
|
|
|
|
|
. "$PSScriptRoot/../../Scripts/AppAssociations.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
|
|
|
|
|
|
|
Start-SoftwareInstaller @PSBoundParameters `
|
|
|
|
-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";
|
|
|
|
};
|