mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 07:10:15 -05:00
Fixes uninstall process to stop icinga service first
This commit is contained in:
parent
c56e5ad8b5
commit
ba1dc01c58
1 changed files with 2 additions and 0 deletions
|
|
@ -9,6 +9,8 @@ function Uninstall-IcingaAgent()
|
||||||
|
|
||||||
Write-Host 'Removing current installed Icinga Agent';
|
Write-Host 'Removing current installed Icinga Agent';
|
||||||
|
|
||||||
|
Stop-IcingaService 'icinga2';
|
||||||
|
|
||||||
$Uninstaller = Start-IcingaProcess -Executable 'MsiExec.exe' -Arguments ([string]::Format('{0} /q', $IcingaData.Uninstaller)) -FlushNewLine;
|
$Uninstaller = Start-IcingaProcess -Executable 'MsiExec.exe' -Arguments ([string]::Format('{0} /q', $IcingaData.Uninstaller)) -FlushNewLine;
|
||||||
|
|
||||||
if ($Uninstaller.ExitCode -ne 0) {
|
if ($Uninstaller.ExitCode -ne 0) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue