Skip to main content

IWindowsInstallerDecompilerHelper Interface

Interface provided to help Windows Installer decompiler extensions.

Methods

MethodDescription
AddElementToRoot(name, content)Creates an element from the standard WiX Toolset namespace and adds it to the root document.
AddElementToRoot(name, content)Creates an element with the specified name and adds it to the root document.
AddElementToRoot(element)Adds an existing element to the root document.
CreateElement(name, content)Creates an element from the standard WiX Toolset namespace.
GetIndexedElement(row)Get an element index by a row's table and primary keys.
GetIndexedElement(table, primaryKey)Get an element index by table and primary key.
GetIndexedElement(table, primaryKey1, primaryKey2)Get an element index by table and primary keys.
GetIndexedElement(table, primaryKey1, primaryKey2, primaryKey3)Get an element index by table and primary keys.
GetIndexedElement(table, primaryKeys)Get an element index by table and primary keys.
IndexElement(row, element)Index an element by a row's table and primary keys.
IndexElement(table, primaryKey, element)Index an element by table and primary key.
IndexElement(table, primaryKey1, primaryKey2, element)Index an element by table and primary keys.
IndexElement(table, primaryKey1, primaryKey2, primaryKey3, element)Index an element by table and primary keys.
IndexElement(table, primaryKeys, element)Index an element by table and primary keys.

Properties

PropertyDescription
RootElementGets or sets the root element of the decompiled output.

WixToolset.Extensibility.dll version 5.0.2+aa65968c419420d32e3e1b647aea0082f5ca5b78

AddElementToRoot(name, content) Method

Creates an element from the standard WiX Toolset namespace and adds it to the root document.

Declaration

public System.Xml.Linq.XElement AddElementToRoot(
string name,
System.Object[] content
)

Parameters

ParameterTypeDescription
namestringName of the element to create and add.
contentSystem.Object[]Optional content to add to the new element.

Return value

System.Xml.Linq.XElement Element in the standard namespace.

AddElementToRoot(name, content) Method

Creates an element with the specified name and adds it to the root document.

Declaration

public System.Xml.Linq.XElement AddElementToRoot(
System.Xml.Linq.XName name,
System.Object[] content
)

Parameters

ParameterTypeDescription
nameSystem.Xml.Linq.XNameName of the element to create and add.
contentSystem.Object[]Optional content to add to the new element.

Return value

System.Xml.Linq.XElement Element in the standard namespace.

AddElementToRoot(element) Method

Adds an existing element to the root document.

Declaration

public System.Xml.Linq.XElement AddElementToRoot(
System.Xml.Linq.XElement element
)

Parameters

ParameterTypeDescription
elementSystem.Xml.Linq.XElementElement to add.

Return value

System.Xml.Linq.XElement Same element provided.

CreateElement(name, content) Method

Creates an element from the standard WiX Toolset namespace.

Declaration

public System.Xml.Linq.XElement CreateElement(
string name,
System.Object[] content
)

Parameters

ParameterTypeDescription
namestringName of the element to create.
contentSystem.Object[]Optional content to add to the new element.

Return value

System.Xml.Linq.XElement Element in the standard namespace.

GetIndexedElement(row) Method

Get an element index by a row's table and primary keys.

Declaration

public System.Xml.Linq.XElement GetIndexedElement(
WixToolset.Data.WindowsInstaller.Row row
)

Parameters

ParameterTypeDescription
rowWixToolset.Data.WindowsInstaller.RowRow to get element.

Return value

System.Xml.Linq.XElement Element indexed for the row or null if not found.

GetIndexedElement(table, primaryKey) Method

Get an element index by table and primary key.

Declaration

public System.Xml.Linq.XElement GetIndexedElement(
string table,
string primaryKey
)

Parameters

ParameterTypeDescription
tablestringTable name for indexed element.
primaryKeystringPrimary key for indexed element.

Return value

System.Xml.Linq.XElement Element indexed for the table and primary key or null if not found.

GetIndexedElement(table, primaryKey1, primaryKey2) Method

Get an element index by table and primary keys.

Declaration

public System.Xml.Linq.XElement GetIndexedElement(
string table,
string primaryKey1,
string primaryKey2
)

Parameters

ParameterTypeDescription
tablestringTable name for indexed element.
primaryKey1stringPrimary key for first column indexed element.
primaryKey2stringPrimary key for second column indexed element.

Return value

System.Xml.Linq.XElement Element indexed for the table and primary keys or null if not found.

GetIndexedElement(table, primaryKey1, primaryKey2, primaryKey3) Method

Get an element index by table and primary keys.

Declaration

public System.Xml.Linq.XElement GetIndexedElement(
string table,
string primaryKey1,
string primaryKey2,
string primaryKey3
)

Parameters

ParameterTypeDescription
tablestringTable name for indexed element.
primaryKey1stringPrimary key for first column indexed element.
primaryKey2stringPrimary key for second column indexed element.
primaryKey3stringPrimary key for third column indexed element.

Return value

System.Xml.Linq.XElement Element indexed for the table and primary keys or null if not found.

GetIndexedElement(table, primaryKeys) Method

Get an element index by table and primary keys.

Declaration

public System.Xml.Linq.XElement GetIndexedElement(
string table,
System.String[] primaryKeys
)

Parameters

ParameterTypeDescription
tablestringTable name for indexed element.
primaryKeysSystem.String[]Primary keys for indexed element.

Return value

System.Xml.Linq.XElement Element indexed for the table and primary keys or null if not found.

IndexElement(row, element) Method

Index an element by a row's table and primary keys.

Declaration

public void IndexElement(
WixToolset.Data.WindowsInstaller.Row row,
System.Xml.Linq.XElement element
)

Parameters

ParameterTypeDescription
rowWixToolset.Data.WindowsInstaller.RowRow to index element.
elementSystem.Xml.Linq.XElementElement to index.

IndexElement(table, primaryKey, element) Method

Index an element by table and primary key.

Declaration

public void IndexElement(
string table,
string primaryKey,
System.Xml.Linq.XElement element
)

Parameters

ParameterTypeDescription
tablestringTable name to index element.
primaryKeystringPrimary key to index element.
elementSystem.Xml.Linq.XElementElement to index.

IndexElement(table, primaryKey1, primaryKey2, element) Method

Index an element by table and primary keys.

Declaration

public void IndexElement(
string table,
string primaryKey1,
string primaryKey2,
System.Xml.Linq.XElement element
)

Parameters

ParameterTypeDescription
tablestringTable name to index element.
primaryKey1stringFirst column's primary key to index element.
primaryKey2stringSecond column's primary key to index element.
elementSystem.Xml.Linq.XElementElement to index.

IndexElement(table, primaryKey1, primaryKey2, primaryKey3, element) Method

Index an element by table and primary keys.

Declaration

public void IndexElement(
string table,
string primaryKey1,
string primaryKey2,
string primaryKey3,
System.Xml.Linq.XElement element
)

Parameters

ParameterTypeDescription
tablestringTable name to index element.
primaryKey1stringFirst column's primary key to index element.
primaryKey2stringSecond column's primary key to index element.
primaryKey3stringThird column's primary key to index element.
elementSystem.Xml.Linq.XElementElement to index.

IndexElement(table, primaryKeys, element) Method

Index an element by table and primary keys.

Declaration

public void IndexElement(
string table,
System.String[] primaryKeys,
System.Xml.Linq.XElement element
)

Parameters

ParameterTypeDescription
tablestringTable name to index element.
primaryKeysSystem.String[]Column's primary key to index element.
elementSystem.Xml.Linq.XElementElement to index.

RootElement Property

Gets or sets the root element of the decompiled output.

Declaration

public System.Xml.Linq.XElement RootElement { get; set; }