]> 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 11:43:55 +0000 (13:43 +0200)
refs #9263

agent/windows-setup-agent/SetupWizard.cs

index 15952c76a83734fbef036be5b1a88a8ca363e578..6186f3311fe2a64c56dee515c883400e259bf075 100644 (file)
@@ -176,17 +176,6 @@ namespace Icinga
 
                private void ConfigureService()
                {
-                       if (chkInstallNSCP.Checked)
-                       {
-                               SetConfigureStatus(0, "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(0, "Updating configuration files...");
 
                        string output;
@@ -260,6 +249,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();