OSDN Git Service

na-get-lib,exeのインストーラもパッケージリストの<SilentInstallArguments>要素を指定することでサイレントインストールできるようにした。
[applistation/AppliStation.git] / na-get-lib / NaGet.SubCommands / NaGetInstall.cs
index 0e5dd72..e000ff7 100644 (file)
@@ -118,9 +118,15 @@ namespace NaGet.SubCommands
                        }\r
                        \r
                        foreach (Installation inst in Installations) {\r
-                               RaiseTaskSetEvent(NaGetTaskSetEventType.STARTED_TASKSET, inst.ToString());\r
+                               string installTaskMsg = inst.ToString();\r
+                               if (inst.Silent && (!inst.SupportsSilentOnly)) {\r
+                                       installTaskMsg += " (\83T\83C\83\8c\83\93\83g\83C\83\93\83X\83g\81[\83\8b)";\r
+                               }\r
+                               \r
+                               RaiseTaskSetEvent(NaGetTaskSetEventType.STARTED_TASKSET, installTaskMsg);\r
                                \r
                                try {\r
+                                       \r
                                        inst.ErrorDataReceived += this.ReceivedErrorData;\r
                                        inst.OutputDataReceived += this.ReceivedOutputData;\r
                                        int exitCode = inst.Install();\r
@@ -136,7 +142,7 @@ namespace NaGet.SubCommands
                                }\r
                                currentTaskSetIndex ++;\r
                                \r
-                               RaiseTaskSetEvent(NaGetTaskSetEventType.COMPLETED_TASKSET, inst.ToString());\r
+                               RaiseTaskSetEvent(NaGetTaskSetEventType.COMPLETED_TASKSET, installTaskMsg);\r
                                \r
                                if (cancelCalled) {\r
                                        RaiseTaskSetEvent(NaGetTaskSetEventType.CANCELED, "\83p\83b\83P\81[\83W\82Ì\83C\83\93\83X\83g\81[\83\8b\8f\88\97\9d\82ª\83L\83\83\83\93\83Z\83\8b\82³\82ê\82Ü\82µ\82½");\r