Skip to content

PackageInfo Class

Default implementation of «see T:WixToolset.Mba.Core.IPackageInfo» .

MethodDescription
GetCacheTypeAttribute(node, attributeName)Parse the cache type attribute.
GetPackageTypeAttribute(node, attributeName)Parse the package type attribute
GetRelatedBundleAsPackage(id, relationType, perMachine, version)Create «see T:WixToolset.Mba.Core.IPackageInfo» from a related bundle.
GetUpdateBundleAsPackage(id)Create «see T:WixToolset.Mba.Core.IPackageInfo» from an update bundle.
ParsePackagesFromXml(root)Parse packages from BootstrapperApplicationData.xml.
PropertyDescription
CacheType
CustomData
Description
DisplayInternalUICondition
DisplayName
Id
InstallCondition
Permanent
PrereqLicenseFile
PrereqLicenseUrl
PrereqPackage
PrimaryPackageType
ProductCode
RepairCondition
Type
UpgradeCode
Version
Vital
WixToolset.Mba.Core.dll version 4.0.5+b9b2f1b4c69a1b509d487dc950b30b4ec9b0d040

GetCacheTypeAttribute(node, attributeName) Method

Section titled “GetCacheTypeAttribute(node, attributeName) Method”

Parse the cache type attribute.

public static System.Nullable<WixToolset.Mba.Core.BOOTSTRAPPER_CACHE_TYPE> GetCacheTypeAttribute(
System.Xml.XPath.XPathNavigator node,
string attributeName
)
ParameterTypeDescription
nodeSystem.Xml.XPath.XPathNavigatorPackage node
attributeNamestringAttribute name

System.Nullable<WixToolset.Mba.Core.BOOTSTRAPPER_CACHE_TYPE> The cache type

GetPackageTypeAttribute(node, attributeName) Method

Section titled “GetPackageTypeAttribute(node, attributeName) Method”

Parse the package type attribute

public static System.Nullable<WixToolset.Mba.Core.PackageType> GetPackageTypeAttribute(
System.Xml.XPath.XPathNavigator node,
string attributeName
)
ParameterTypeDescription
nodeSystem.Xml.XPath.XPathNavigatorPackage node
attributeNamestringAttribute name

System.Nullable<WixToolset.Mba.Core.PackageType> The package type

GetRelatedBundleAsPackage(id, relationType, perMachine, version) Method

Section titled “GetRelatedBundleAsPackage(id, relationType, perMachine, version) Method”

Create «see T:WixToolset.Mba.Core.IPackageInfo» from a related bundle.

public static IPackageInfo GetRelatedBundleAsPackage(
string id,
RelationType relationType,
bool perMachine,
string version
)
ParameterTypeDescription
idstringPackage id
relationTypeRelationTypeRelation type
perMachineboolWhether the related bundle is per-machine
versionstringThe related bundle’s version

IPackageInfo The package info

Create «see T:WixToolset.Mba.Core.IPackageInfo» from an update bundle.

public static IPackageInfo GetUpdateBundleAsPackage(
string id
)
ParameterTypeDescription
idstringPackage id

IPackageInfo The package info

Parse packages from BootstrapperApplicationData.xml.

public static System.Collections.Generic.IDictionary<System.String,WixToolset.Mba.Core.IPackageInfo> ParsePackagesFromXml(
System.Xml.XPath.XPathNavigator root
)
ParameterTypeDescription
rootSystem.Xml.XPath.XPathNavigatorThe root node.

System.Collections.Generic.IDictionary<System.String,WixToolset.Mba.Core.IPackageInfo> A dictionary of the packages by Id.

public BOOTSTRAPPER_CACHE_TYPE CacheType { get; set; }
public System.Object CustomData { get; set; }
public string Description { get; set; }
public string DisplayInternalUICondition { get; set; }
public string DisplayName { get; set; }
public string Id { get; set; }
public string InstallCondition { get; set; }
public bool Permanent { get; set; }
public string PrereqLicenseFile { get; set; }
public string PrereqLicenseUrl { get; set; }
public bool PrereqPackage { get; set; }
public PrimaryPackageType PrimaryPackageType { get; set; }
public string ProductCode { get; set; }
public string RepairCondition { get; set; }
public PackageType Type { get; set; }
public string UpgradeCode { get; set; }
public string Version { get; set; }
public bool Vital { get; set; }