Skip to main content

PackageInfo Class

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

Methods​

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.

Properties​

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.6+73c897383236ddbbbc6ba257634013c1269ceec2

GetCacheTypeAttribute(node, attributeName) Method​

Parse the cache type attribute.

Declaration​

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

Parameters​

ParameterTypeDescription
nodeSystem.Xml.XPath.XPathNavigatorPackage node
attributeNamestringAttribute name

Return value​

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

GetPackageTypeAttribute(node, attributeName) Method​

Parse the package type attribute

Declaration​

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

Parameters​

ParameterTypeDescription
nodeSystem.Xml.XPath.XPathNavigatorPackage node
attributeNamestringAttribute name

Return value​

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

GetRelatedBundleAsPackage(id, relationType, perMachine, version) Method​

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

Declaration​

public static IPackageInfo GetRelatedBundleAsPackage(
string id,
RelationType relationType,
bool perMachine,
string version
)

Parameters​

ParameterTypeDescription
idstringPackage id
relationTypeRelationTypeRelation type
perMachineboolWhether the related bundle is per-machine
versionstringThe related bundle's version

Return value​

IPackageInfo The package info

GetUpdateBundleAsPackage(id) Method​

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

Declaration​

public static IPackageInfo GetUpdateBundleAsPackage(
string id
)

Parameters​

ParameterTypeDescription
idstringPackage id

Return value​

IPackageInfo The package info

ParsePackagesFromXml(root) Method​

Parse packages from BootstrapperApplicationData.xml.

Declaration​

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

Parameters​

ParameterTypeDescription
rootSystem.Xml.XPath.XPathNavigatorThe root node.

Return value​

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

CacheType Property​

Declaration​

public BOOTSTRAPPER_CACHE_TYPE CacheType { get; set; } 

CustomData Property​

Declaration​

public System.Object CustomData { get; set; } 

Description Property​

Declaration​

public string Description { get; set; } 

DisplayInternalUICondition Property​

Declaration​

public string DisplayInternalUICondition { get; set; } 

DisplayName Property​

Declaration​

public string DisplayName { get; set; } 

Id Property​

Declaration​

public string Id { get; set; } 

InstallCondition Property​

Declaration​

public string InstallCondition { get; set; } 

Permanent Property​

Declaration​

public bool Permanent { get; set; } 

PrereqLicenseFile Property​

Declaration​

public string PrereqLicenseFile { get; set; } 

PrereqLicenseUrl Property​

Declaration​

public string PrereqLicenseUrl { get; set; } 

PrereqPackage Property​

Declaration​

public bool PrereqPackage { get; set; } 

PrimaryPackageType Property​

Declaration​

public PrimaryPackageType PrimaryPackageType { get; set; } 

ProductCode Property​

Declaration​

public string ProductCode { get; set; } 

RepairCondition Property​

Declaration​

public string RepairCondition { get; set; } 

Type Property​

Declaration​

public PackageType Type { get; set; } 

UpgradeCode Property​

Declaration​

public string UpgradeCode { get; set; } 

Version Property​

Declaration​

public string Version { get; set; } 

Vital Property​

Declaration​

public bool Vital { get; set; }