Add better error message when wixnative.exe cannot be found
Rob Mensching committed
Oct 3, 2018 at 14:01 UTC
989686d2fdb3b46ed3c411f03ebdcdeeb9f42e15
1 file changed
+5
src/WixToolset.Core.Native/WixNativeExe.cs
+5
@@ -39,6 +39,11 @@ namespace WixToolset.Core.Native
39
40
public IEnumerable<string> Run()
41
{
42
+ if (!File.Exists(PathToWixNativeExe))
43
+ {
44
+ throw new FileNotFoundException($"Could not find internal piece of WiX Toolset at: {PathToWixNativeExe}", PathToWixNativeExe);
45
+ }
46
+
47
var wixNativeInfo = new ProcessStartInfo(PathToWixNativeExe, this.commandLine)
48
{
49
RedirectStandardInput = true,