Add scripts for installing PowerShell

This commit is contained in:
Manuel Thalmann 2024-08-07 20:30:12 +02:00
parent 26ef9a12b9
commit 36336e332d
4 changed files with 129 additions and 0 deletions
scripts/Windows/Software/PowerShell

View file

@ -0,0 +1,21 @@
param (
$Action,
[hashtable] $Arguments
)
. "$PSScriptRoot/../../Scripts/Software.ps1";
. "$PSScriptRoot/../../Types/InstallerAction.ps1";
Start-SoftwareInstaller @PSBoundParameters `
-Installer {
param(
[scriptblock] $Installer
)
& $Installer -Action ([InstallerAction]::Configure);
} `
-Configurator {
. "$PSScriptRoot/../../../Common/Software/PowerShell/Manage.ps1" `
-Action ([InstallerAction]::Configure) `
-Arguments @{ Linux = $false };
};