mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2026-02-03 20:29:32 -05:00
21 lines
431 B
PowerShell
21 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));
|
||
|
|
}
|