aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/WixToolset.Core.Native/WixNativeExe.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/WixToolset.Core.Native/WixNativeExe.cs b/src/WixToolset.Core.Native/WixNativeExe.cs
index 92dcfdda..90ab0042 100644
--- a/src/WixToolset.Core.Native/WixNativeExe.cs
+++ b/src/WixToolset.Core.Native/WixNativeExe.cs
@@ -39,6 +39,11 @@ namespace WixToolset.Core.Native
39 39
40 public IEnumerable<string> Run() 40 public IEnumerable<string> Run()
41 { 41 {
42 if (!File.Exists(PathToWixNativeExe))
43 {
44 throw new FileNotFoundException($"Could not find internal piece of WiX Toolset at: {PathToWixNativeExe}", PathToWixNativeExe);
45 }
46
42 var wixNativeInfo = new ProcessStartInfo(PathToWixNativeExe, this.commandLine) 47 var wixNativeInfo = new ProcessStartInfo(PathToWixNativeExe, this.commandLine)
43 { 48 {
44 RedirectStandardInput = true, 49 RedirectStandardInput = true,