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 {
|
2024-10-06 19:25:34 +00:00
|
|
|
Install-ChocoPackage vscode -ArgumentList "--params", "/NoDesktopIcon";
|
|
|
|
Install-ChocoPackage vscodium -ArgumentList "--params", "/NoDesktopIcon /AssociateWithFiles";
|
2024-08-23 23:16:56 +00:00
|
|
|
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;
|