summaryrefslogtreecommitdiff
path: root/src/SMAPI.Installer/InteractiveInstaller.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2018-12-29 20:09:33 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2018-12-29 20:09:33 -0500
commitf046091fe637963fd6a8cc8c1324daf81b64899f (patch)
treeadeffec4a5d31503548ef5dead7d67b3bff9e694 /src/SMAPI.Installer/InteractiveInstaller.cs
parent82beefd8531467de318c1881afd15a258d489f37 (diff)
parentca18a2867b457fd6bfda71d9828884032ecadfb8 (diff)
downloadSMAPI-f046091fe637963fd6a8cc8c1324daf81b64899f.tar.gz
SMAPI-f046091fe637963fd6a8cc8c1324daf81b64899f.tar.bz2
SMAPI-f046091fe637963fd6a8cc8c1324daf81b64899f.zip
Merge branch 'develop' into stable
Diffstat (limited to 'src/SMAPI.Installer/InteractiveInstaller.cs')
-rw-r--r--src/SMAPI.Installer/InteractiveInstaller.cs9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/SMAPI.Installer/InteractiveInstaller.cs b/src/SMAPI.Installer/InteractiveInstaller.cs
index d5866c74..7148b1d9 100644
--- a/src/SMAPI.Installer/InteractiveInstaller.cs
+++ b/src/SMAPI.Installer/InteractiveInstaller.cs
@@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
-using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
@@ -13,6 +12,9 @@ using StardewModdingAPI.Internal.ConsoleWriting;
using StardewModdingAPI.Toolkit;
using StardewModdingAPI.Toolkit.Framework.ModScanning;
using StardewModdingAPI.Toolkit.Utilities;
+#if !SMAPI_FOR_WINDOWS
+using System.Diagnostics;
+#endif
namespace StardewModdingApi.Installer
{
@@ -20,7 +22,7 @@ namespace StardewModdingApi.Installer
internal class InteractiveInstaller
{
/*********
- ** Properties
+ ** Fields
*********/
/// <summary>The absolute path to the directory containing the files to copy into the game folder.</summary>
private readonly string BundlePath;
@@ -461,6 +463,8 @@ namespace StardewModdingApi.Installer
// mark file executable
// (MSBuild doesn't keep permission flags for files zipped in a build task.)
+ // (Note: exclude from Windows build because antivirus apps can flag the process start code as suspicious.)
+#if !SMAPI_FOR_WINDOWS
new Process
{
StartInfo = new ProcessStartInfo
@@ -470,6 +474,7 @@ namespace StardewModdingApi.Installer
CreateNoWindow = true
}
}.Start();
+#endif
}
// create mods directory (if needed)