aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2018-10-03 14:01:55 -0700
committerRob Mensching <rob@firegiant.com>2018-10-03 14:03:02 -0700
commit989686d2fdb3b46ed3c411f03ebdcdeeb9f42e15 (patch)
tree67f7d86ee8d23c65ce11c9654dec6f2c46e5b948
parentbf2a6a42ec4fb3296a291e996903def23d9d5b31 (diff)
downloadwix-989686d2fdb3b46ed3c411f03ebdcdeeb9f42e15.tar.gz
wix-989686d2fdb3b46ed3c411f03ebdcdeeb9f42e15.tar.bz2
wix-989686d2fdb3b46ed3c411f03ebdcdeeb9f42e15.zip
Add better error message when wixnative.exe cannot be found
-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,