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