18 lines
637 B
PowerShell
18 lines
637 B
PowerShell
. "$PSScriptRoot/../../Scripts/SoftwareManagement.ps1";
|
|
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
|
. "$PSScriptRoot/../../../Common/Types/InstallerAction.ps1";
|
|
|
|
& {
|
|
$base = "$PSScriptRoot/../../../Common/Software/Oh My Posh/Manage.ps1";
|
|
|
|
Start-SoftwareInstaller @args `
|
|
-Installer {
|
|
Install-WingetPackage JanDeDobbeleer.OhMyPosh -ArgumentList "--scope","machine";
|
|
} `
|
|
-Configurator {
|
|
. $base -Action ([InstallerAction]::Configure) @args;
|
|
} `
|
|
-UserConfigurator {
|
|
. $base -Action ([InstallerAction]::ConfigureUser) @args;
|
|
};
|
|
} @args;
|