diff options
Diffstat (limited to 'src/WixToolset.Core.Burn/Bundles/ProcessMsuPackageCommand.cs')
-rw-r--r-- | src/WixToolset.Core.Burn/Bundles/ProcessMsuPackageCommand.cs | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/WixToolset.Core.Burn/Bundles/ProcessMsuPackageCommand.cs b/src/WixToolset.Core.Burn/Bundles/ProcessMsuPackageCommand.cs new file mode 100644 index 00000000..fcfc780c --- /dev/null +++ b/src/WixToolset.Core.Burn/Bundles/ProcessMsuPackageCommand.cs | |||
@@ -0,0 +1,30 @@ | |||
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.Core.Burn.Bundles | ||
4 | { | ||
5 | using System; | ||
6 | using WixToolset.Data; | ||
7 | using WixToolset.Data.Rows; | ||
8 | |||
9 | /// <summary> | ||
10 | /// Processes the Msu packages to add properties and payloads from the Msu packages. | ||
11 | /// </summary> | ||
12 | internal class ProcessMsuPackageCommand | ||
13 | { | ||
14 | public RowDictionary<WixBundlePayloadRow> AuthoredPayloads { private get; set; } | ||
15 | |||
16 | public PackageFacade Facade { private get; set; } | ||
17 | |||
18 | public void Execute() | ||
19 | { | ||
20 | WixBundlePayloadRow packagePayload = this.AuthoredPayloads.Get(this.Facade.Package.PackagePayload); | ||
21 | |||
22 | if (String.IsNullOrEmpty(this.Facade.Package.CacheId)) | ||
23 | { | ||
24 | this.Facade.Package.CacheId = packagePayload.Hash; | ||
25 | } | ||
26 | |||
27 | this.Facade.Package.PerMachine = YesNoDefaultType.Yes; // MSUs are always per-machine. | ||
28 | } | ||
29 | } | ||
30 | } | ||