| 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. |
| 2 | |
| 3 | namespace WixToolset.BootstrapperApplicationApi |
| 4 | { |
| 5 | using System.Collections.Generic; |
| 6 | |
| 7 | /// <summary> |
| 8 | /// BA manifest data. |
| 9 | /// </summary> |
| 10 | public interface IBundleInfo |
| 11 | { |
| 12 | /// <summary> |
| 13 | /// The name of the variable that contains the path to the bundle's log. |
| 14 | /// </summary> |
| 15 | string LogVariable { get; } |
| 16 | |
| 17 | /// <summary> |
| 18 | /// Bundle/@Name |
| 19 | /// </summary> |
| 20 | string Name { get; } |
| 21 | |
| 22 | /// <summary> |
| 23 | /// Variables that were marked with bal:Overridable="yes". |
| 24 | /// </summary> |
| 25 | IOverridableVariables OverridableVariables { get; } |
| 26 | |
| 27 | /// <summary> |
| 28 | /// The packages in the bundle's chain. |
| 29 | /// </summary> |
| 30 | IDictionary<string, IPackageInfo> Packages { get; } |
| 31 | |
| 32 | /// <summary> |
| 33 | /// Whether the bundle is per-machine or per-user. |
| 34 | /// </summary> |
| 35 | bool PerMachine { get; } |
| 36 | |
| 37 | /// <summary> |
| 38 | /// Adds a related bundle as a package. |
| 39 | /// </summary> |
| 40 | /// <param name="productCode"></param> |
| 41 | /// <param name="relationType"></param> |
| 42 | /// <param name="perMachine"></param> |
| 43 | /// <param name="version"></param> |
| 44 | /// <returns>The created <see cref="IPackageInfo"/>.</returns> |
| 45 | IPackageInfo AddRelatedBundleAsPackage(string productCode, RelationType relationType, bool perMachine, string version); |
| 46 | |
| 47 | /// <summary> |
| 48 | /// Adds an update bundle as a package. |
| 49 | /// </summary> |
| 50 | /// <param name="packageId">Package id added as update bundle.</param> |
| 51 | /// <returns>The created <see cref="IPackageInfo"/>.</returns> |
| 52 | IPackageInfo AddUpdateBundleAsPackage(string packageId); |
| 53 | } |
| 54 | } |