icinga-powershell-framework/lib/core/installer/tools/StepSelection.psm1
2021-08-06 15:08:53 +02:00

18 lines
519 B
PowerShell

function Get-IcingaForWindowsInstallerStepSelection()
{
param (
[string]$InstallerStep
);
if ([string]::IsNullOrEmpty($InstallerStep)) {
$InstallerStep = Get-IcingaForWindowsManagementConsoleMenu;
} else {
$InstallerStep = Get-IcingaForWindowsManagementConsoleAlias -Command $InstallerStep;
}
if ($global:Icinga.InstallWizard.Config.ContainsKey($InstallerStep)) {
return $global:Icinga.InstallWizard.Config[$InstallerStep].Selection;
}
return $null;
}