diff options
| author | Rob Mensching <rob@firegiant.com> | 2020-06-03 02:19:16 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2020-06-03 02:23:16 -0700 |
| commit | 9317f7c8ea709da55e4602eaaba06952bbf315b7 (patch) | |
| tree | 51e8348f891041dcc160a6b79e8965ca6a908b9d /src/WixToolset.Core.WindowsInstaller/Bind/GenerateDatabaseCommand.cs | |
| parent | d529525a1e331f3ef9ec2707791c99bd78fdd82f (diff) | |
| download | wix-9317f7c8ea709da55e4602eaaba06952bbf315b7.tar.gz wix-9317f7c8ea709da55e4602eaaba06952bbf315b7.tar.bz2 wix-9317f7c8ea709da55e4602eaaba06952bbf315b7.zip | |
Redesign CustomTable tuples to support resolving binary columns
Diffstat (limited to 'src/WixToolset.Core.WindowsInstaller/Bind/GenerateDatabaseCommand.cs')
| -rw-r--r-- | src/WixToolset.Core.WindowsInstaller/Bind/GenerateDatabaseCommand.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/Bind/GenerateDatabaseCommand.cs b/src/WixToolset.Core.WindowsInstaller/Bind/GenerateDatabaseCommand.cs index eff94e80..6edbdd1c 100644 --- a/src/WixToolset.Core.WindowsInstaller/Bind/GenerateDatabaseCommand.cs +++ b/src/WixToolset.Core.WindowsInstaller/Bind/GenerateDatabaseCommand.cs | |||
| @@ -314,18 +314,19 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 314 | break; | 314 | break; |
| 315 | 315 | ||
| 316 | case ColumnType.Object: | 316 | case ColumnType.Object: |
| 317 | if (null != row[i]) | 317 | var path = row.FieldAsString(i); |
| 318 | if (null != path) | ||
| 318 | { | 319 | { |
| 319 | needStream = true; | 320 | needStream = true; |
| 320 | try | 321 | try |
| 321 | { | 322 | { |
| 322 | record.SetStream(i + 1, row.FieldAsString(i)); | 323 | record.SetStream(i + 1, path); |
| 323 | } | 324 | } |
| 324 | catch (Win32Exception e) | 325 | catch (Win32Exception e) |
| 325 | { | 326 | { |
| 326 | if (0xA1 == e.NativeErrorCode) // ERROR_BAD_PATHNAME | 327 | if (0xA1 == e.NativeErrorCode) // ERROR_BAD_PATHNAME |
| 327 | { | 328 | { |
| 328 | throw new WixException(ErrorMessages.FileNotFound(row.SourceLineNumbers, row.FieldAsString(i))); | 329 | throw new WixException(ErrorMessages.FileNotFound(row.SourceLineNumbers, path)); |
| 329 | } | 330 | } |
| 330 | else | 331 | else |
| 331 | { | 332 | { |
