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

17 lines
651 B
PowerShell
Raw Normal View History

2024-08-23 23:16:56 +00:00
& {
2024-09-23 01:33:17 +00:00
. "$PSScriptRoot/../../Scripts/SoftwareManagement.ps1";
2024-08-23 23:16:56 +00:00
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
. "$PSScriptRoot/../../../Common/Types/InstallerAction.ps1";
$base = "$PSScriptRoot/../../../Common/Software/vscode/Main.ps1";
2024-09-30 03:00:20 +00:00
Start-SoftwareInstaller @args `
2024-08-23 23:16:56 +00:00
-Installer {
Install-ChocoPackage vscode -ArgumentList "--params","/NoDesktopIcon";
Install-ChocoPackage vscodium -ArgumentList "--params","/NoDesktopIcon /AssociateWithFiles";
refreshenv;
} `
-UserConfigurator {
2024-09-30 03:00:20 +00:00
& $base ([InstallerAction]::ConfigureUser) @args;
2024-08-23 23:16:56 +00:00
};
2024-09-30 03:00:20 +00:00
} @args;