From bcef34014baf45ada17200669bcc700afd134123 Mon Sep 17 00:00:00 2001 From: Jaex Date: Wed, 3 May 2017 17:07:35 +0300 Subject: [PATCH] Don't copy "Recorder-devices-setup.exe" and "ShareX_NativeMessagingHost.exe" on Windows Store job --- ShareX.Setup/Program.cs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/ShareX.Setup/Program.cs b/ShareX.Setup/Program.cs index a8a024e59..88ed29b8c 100644 --- a/ShareX.Setup/Program.cs +++ b/ShareX.Setup/Program.cs @@ -224,13 +224,17 @@ private static void CreateFolder(string source, string destination, SetupJobs jo Helpers.CopyFiles(Path.Combine(ParentDir, "Licenses"), "*.txt", Path.Combine(destination, "Licenses")); - if (!File.Exists(RecorderDevicesSetupPath)) + if (job != SetupJobs.CreateWindowsStoreFolder && job != SetupJobs.CreateWindowsStoreDebugFolder) { - CompileISSFile("Recorder-devices-setup.iss"); - } + if (!File.Exists(RecorderDevicesSetupPath)) + { + CompileISSFile("Recorder-devices-setup.iss"); + } - Helpers.CopyFile(RecorderDevicesSetupPath, destination); - Helpers.CopyFile(Path.Combine(NativeMessagingHostDir, "ShareX_NativeMessagingHost.exe"), destination); + Helpers.CopyFile(RecorderDevicesSetupPath, destination); + + Helpers.CopyFile(Path.Combine(NativeMessagingHostDir, "ShareX_NativeMessagingHost.exe"), destination); + } string[] languages = new string[] { "de", "es", "fr", "hu", "ko-KR", "nl-NL", "pt-BR", "ru", "tr", "vi-VN", "zh-CN", "zh-TW" };