OSDN Git Service

AppliStation-All,インストール関連設定を追加。
[applistation/AppliStation.git] / na-get-lib / NaGet / Env.cs
index f470b93..fc3fc5d 100644 (file)
@@ -179,14 +179,32 @@ namespace NaGet
                \r
                #region インストールプロセス\r
                \r
-               static bool installOnBackground = true;\r
+               /// <summary>\r
+               /// インストーラをウイルススキャンするか?\r
+               /// </summary>\r
+               public static bool EnableScanInstallerFile {\r
+                       get {\r
+                               if (pref == null) LoadPref();\r
+                               return pref.EnableScanInstallerFile;\r
+                       }\r
+                       set {\r
+                               if (pref == null) LoadPref();\r
+                               pref.EnableScanInstallerFile = value;\r
+                       }\r
+               }\r
 \r
                /// <summary>\r
                /// インストールプロセスをバックグラウンドで行うか?\r
                /// </summary>\r
                public static bool InstallProcessOnBackground {\r
-                       get { return installOnBackground; }\r
-                       set { installOnBackground = value; }\r
+                       get {\r
+                               if (pref == null) LoadPref();\r
+                               return pref.InstallOnBackground;\r
+                       }\r
+                       set {\r
+                               if (pref == null) LoadPref();\r
+                               pref.EnableScanInstallerFile = value;\r
+                       }\r
                }\r
                \r
                \r