diff options
| author | Rob Mensching <rob@firegiant.com> | 2018-10-03 14:01:55 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2018-10-03 14:03:02 -0700 |
| commit | 989686d2fdb3b46ed3c411f03ebdcdeeb9f42e15 (patch) | |
| tree | 67f7d86ee8d23c65ce11c9654dec6f2c46e5b948 /src | |
| parent | bf2a6a42ec4fb3296a291e996903def23d9d5b31 (diff) | |
| download | wix-989686d2fdb3b46ed3c411f03ebdcdeeb9f42e15.tar.gz wix-989686d2fdb3b46ed3c411f03ebdcdeeb9f42e15.tar.bz2 wix-989686d2fdb3b46ed3c411f03ebdcdeeb9f42e15.zip | |
Add better error message when wixnative.exe cannot be found
Diffstat (limited to 'src')
| -rw-r--r-- | src/WixToolset.Core.Native/WixNativeExe.cs | 5 |
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, |
