mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2026-02-03 12:19:29 -05:00
20 lines
431 B
PowerShell
20 lines
431 B
PowerShell
function Set-IcingaForWindowsManagementConsoleClosing()
|
|
{
|
|
param (
|
|
[switch]$Completed = $FALSE
|
|
);
|
|
|
|
if ($null -eq $Global:Icinga) {
|
|
return;
|
|
}
|
|
|
|
if ($Global:Icinga.ContainsKey('InstallWizard') -eq $FALSE) {
|
|
return;
|
|
}
|
|
|
|
if ($Global:Icinga.InstallWizard.ContainsKey('Closing') -eq $FALSE) {
|
|
return;
|
|
}
|
|
|
|
$global:Icinga.InstallWizard.Closing = (-Not ([bool]$Completed));
|
|
}
|