mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 15:19:58 -05:00
18 lines
519 B
PowerShell
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;
|
|
}
|