]> granicus.if.org Git - icinga2/commitdiff
Move NSClient++ installation step after all other wizard steps
authorGunnar Beutner <gunnar@beutner.name>
Mon, 15 Jun 2015 11:43:29 +0000 (13:43 +0200)
committerGunnar Beutner <gunnar@beutner.name>
Mon, 15 Jun 2015 12:17:33 +0000 (14:17 +0200)
refs #9263

agent/windows-setup-agent/SetupWizard.cs

index f550853f99a5095720a44a5ce669d1793c48756b..771015cd543ebda3a3e30af0c89dbd34b6043608 100644 (file)
@@ -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();