Skip to content

IBurnBackendBinderExtension Interface

Interface all Burn backend extensions implement.

MethodDescription
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

Called after output is bound into its final format.

public void PostBackendBind(
Data.IBindResult result
)
ParameterTypeDescription
resultData.IBindResult

Called before binding occurs.

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.

public Data.IResolveFileResult ResolveRelatedFile(
string source,
string relatedSource,
string type,
WixToolset.Data.SourceLineNumber sourceLineNumbers
)
ParameterTypeDescription
sourcestringPath to the source package.
relatedSourcestringExpected path to the related file.
typestringType of related file, such as “File” or “Cabinet”
sourceLineNumbersWixToolset.Data.SourceLineNumberSource line number of source package.

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.

public string ResolveUrl(
string url,
string fallbackUrl,
string packageId,
string payloadId,
string fileName
)
ParameterTypeDescription
urlstringThe value from the source code. May not actually be a URL.
fallbackUrlstringThe default URL if the extension does not return a value.
packageIdstringIdentifier of the package.
payloadIdstringIdentifier of the payload.
fileNamestringFilename of the payload.

string Url to override, or null to use default value.

Called right before the output is bound into its final format.

public void SymbolsFinalized(
WixToolset.Data.IntermediateSection section
)
ParameterTypeDescription
sectionWixToolset.Data.IntermediateSectionThe finalized intermediate section.

Called for each extension symbol that hasn’t been handled yet. Use IBurnBackendHelper to add data.

public bool TryProcessSymbol(
WixToolset.Data.IntermediateSection section,
WixToolset.Data.IntermediateSymbol symbol
)
ParameterTypeDescription
sectionWixToolset.Data.IntermediateSectionThe linked section.
symbolWixToolset.Data.IntermediateSymbolThe current symbol.

bool True if the extension handled the symbol, false otherwise. The Burn backend will warn on all unhandled symbols.