From 93b0ab78931bbbcfb2802af9be7745a70bf35123 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Mon, 15 Jun 2015 13:43:29 +0200 Subject: [PATCH] Move NSClient++ installation step after all other wizard steps refs #9263 --- agent/windows-setup-agent/SetupWizard.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/agent/windows-setup-agent/SetupWizard.cs b/agent/windows-setup-agent/SetupWizard.cs index f550853f9..771015cd5 100644 --- a/agent/windows-setup-agent/SetupWizard.cs +++ b/agent/windows-setup-agent/SetupWizard.cs @@ -269,6 +269,17 @@ namespace Icinga return; } + if (chkInstallNSCP.Checked) + { + SetConfigureStatus(85, "Waiting for NSClient++ installation to complete..."); + + Process proc = new Process(); + proc.StartInfo.FileName = "msiexec.exe"; + proc.StartInfo.Arguments = "/i \"" + Program.Icinga2InstallDir + "\\sbin\\NSCP-Win32.msi\""; + proc.Start(); + proc.WaitForExit(); + } + SetConfigureStatus(100, "Finished."); FinishConfigure(); -- 2.40.0