IBurnBackendBinderExtension Interface
Interface all Burn backend extensions implement.
Methods
Section titled “Methods”| Method | Description |
|---|---|
| PostBackendBind(result) | Called after output is bound into its final format. |
| PreBackendBind() | Called before binding occurs. |
| ResolveRelatedFile(source, relatedSource, type, sourceLineNumbers) | Called to find a file related to another source in the authoring. For example, most often used to find cabinets and uncompressed files for an MSI package. |
| ResolveUrl(url, fallbackUrl, packageId, payloadId, fileName) | Called to customize the DownloadUrl provided in source cde. |
| SymbolsFinalized(section) | Called right before the output is bound into its final format. |
| TryProcessSymbol(section, symbol) | Called for each extension symbol that hasn’t been handled yet. Use IBurnBackendHelper to add data. |
WixToolset.Extensibility.dll version 5.0.0+41e11442b2ca93e444b60213b5ae99dcbab787d8 |
PostBackendBind(result) Method
Section titled “PostBackendBind(result) Method”Called after output is bound into its final format.
Declaration
Section titled “Declaration”public void PostBackendBind( Data.IBindResult result)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| result | Data.IBindResult |
PreBackendBind() Method
Section titled “PreBackendBind() Method”Called before binding occurs.
Declaration
Section titled “Declaration”public void PreBackendBind()ResolveRelatedFile(source, relatedSource, type, sourceLineNumbers) Method
Section titled “ResolveRelatedFile(source, relatedSource, type, sourceLineNumbers) Method”Called to find a file related to another source in the authoring. For example, most often used to find cabinets and uncompressed files for an MSI package.
Declaration
Section titled “Declaration”public Data.IResolveFileResult ResolveRelatedFile( string source, string relatedSource, string type, WixToolset.Data.SourceLineNumber sourceLineNumbers)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| source | string | Path to the source package. |
| relatedSource | string | Expected path to the related file. |
| type | string | Type of related file, such as “File” or “Cabinet” |
| sourceLineNumbers | WixToolset.Data.SourceLineNumber | Source line number of source package. |
Return value
Section titled “Return value”Data.IResolveFileResult IResolveFileResult if the related file was found, or null for default handling.
ResolveUrl(url, fallbackUrl, packageId, payloadId, fileName) Method
Section titled “ResolveUrl(url, fallbackUrl, packageId, payloadId, fileName) Method”Called to customize the DownloadUrl provided in source cde.
Declaration
Section titled “Declaration”public string ResolveUrl( string url, string fallbackUrl, string packageId, string payloadId, string fileName)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| url | string | The value from the source code. May not actually be a URL. |
| fallbackUrl | string | The default URL if the extension does not return a value. |
| packageId | string | Identifier of the package. |
| payloadId | string | Identifier of the payload. |
| fileName | string | Filename of the payload. |
Return value
Section titled “Return value”string Url to override, or null to use default value.
SymbolsFinalized(section) Method
Section titled “SymbolsFinalized(section) Method”Called right before the output is bound into its final format.
Declaration
Section titled “Declaration”public void SymbolsFinalized( WixToolset.Data.IntermediateSection section)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| section | WixToolset.Data.IntermediateSection | The finalized intermediate section. |
TryProcessSymbol(section, symbol) Method
Section titled “TryProcessSymbol(section, symbol) Method”Called for each extension symbol that hasn’t been handled yet. Use IBurnBackendHelper to add data.
Declaration
Section titled “Declaration”public bool TryProcessSymbol( WixToolset.Data.IntermediateSection section, WixToolset.Data.IntermediateSymbol symbol)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| section | WixToolset.Data.IntermediateSection | The linked section. |
| symbol | WixToolset.Data.IntermediateSymbol | The current symbol. |
Return value
Section titled “Return value”bool True if the extension handled the symbol, false otherwise. The Burn backend will warn on all unhandled symbols.