Skip to content

Commit 508f841

Browse files
committed
Fixes MsiExec calls to longer cause reboots of the host
1 parent 6ae3538 commit 508f841

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

doc/100-General/10-Changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
1515

1616
* [#659](https://github.com/Icinga/icinga-powershell-framework/pull/659) Fixes configuration writer which publishes invalid Icinga plain configuration files
1717
* [#660](https://github.com/Icinga/icinga-powershell-framework/pull/660) Fixes `Update-Icinga` not updating to the latest available version for a component and specifying `-Version` is updating to the latest one instead of the given one instead
18+
* [#661](https://github.com/Icinga/icinga-powershell-framework/pull/661) Fixes Icinga Agent installation and uninstallation, which could cause unintended automatic reboots
1819
* [#662](https://github.com/Icinga/icinga-powershell-framework/pull/662) Fixes JEA-Profiles always being updated during `Update-Icinga` calls, even when no component or non JEA related components were updated
1920

2021
## 1.11.0 (2023-08-01)

lib/core/icingaagent/installer/Install-IcingaAgent.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function Install-IcingaAgent()
7878

7979
$IcingaInstaller = $args[0];
8080
$InstallTarget = $args[1];
81-
$InstallProcess = Start-IcingaProcess -Executable 'MsiExec.exe' -Arguments ([string]::Format('/quiet /i "{0}" {1}', $IcingaInstaller.InstallerPath, $InstallTarget)) -FlushNewLines;
81+
$InstallProcess = Start-IcingaProcess -Executable 'MsiExec.exe' -Arguments ([string]::Format('/quiet /norestart /i "{0}" {1}', $IcingaInstaller.InstallerPath, $InstallTarget)) -FlushNewLines;
8282

8383
Start-Sleep -Seconds 2;
8484
Optimize-IcingaForWindowsMemory;

lib/core/icingaagent/installer/Uninstall-IcingaAgent.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function Uninstall-IcingaAgent()
2626
Use-Icinga -Minimal;
2727

2828
$IcingaData = $args[0];
29-
$Uninstaller = Start-IcingaProcess -Executable 'MsiExec.exe' -Arguments ([string]::Format('{0} /q', $IcingaData.Uninstaller)) -FlushNewLine;
29+
$Uninstaller = Start-IcingaProcess -Executable 'MsiExec.exe' -Arguments ([string]::Format('{0} /q /norestart', $IcingaData.Uninstaller)) -FlushNewLine;
3030

3131
Start-Sleep -Seconds 2;
3232
Optimize-IcingaForWindowsMemory;

lib/core/repository/Install-IcingaComponent.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ function Install-IcingaComponent()
378378

379379
$DownloadDestination = $args[0];
380380
$InstallTarget = $args[1];
381-
$InstallProcess = Start-IcingaProcess -Executable 'MsiExec.exe' -Arguments ([string]::Format('/quiet /i "{0}" {1}', $DownloadDestination, $InstallTarget)) -FlushNewLines;
381+
$InstallProcess = Start-IcingaProcess -Executable 'MsiExec.exe' -Arguments ([string]::Format('/quiet /norestart /i "{0}" {1}', $DownloadDestination, $InstallTarget)) -FlushNewLines;
382382

383383
Start-Sleep -Seconds 2;
384384
Optimize-IcingaForWindowsMemory;

0 commit comments

Comments
 (0)