icinga-powershell-framework/lib/core/installer/tools/StepSelection.psm1

19 lines
519 B
PowerShell
Raw Normal View History

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;
}