// 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. namespace WixToolset.Core.Burn.Bundles { using System; using WixToolset.Data; using WixToolset.Data.Rows; /// /// Initializes package state from the Exe contents. /// internal class ProcessExePackageCommand { public RowDictionary AuthoredPayloads { private get; set; } public PackageFacade Facade { private get; set; } /// /// Processes the Exe packages to add properties and payloads from the Exe packages. /// public void Execute() { WixBundlePayloadRow packagePayload = this.AuthoredPayloads.Get(this.Facade.Package.PackagePayload); if (String.IsNullOrEmpty(this.Facade.Package.CacheId)) { this.Facade.Package.CacheId = packagePayload.Hash; } this.Facade.Package.Version = packagePayload.Version; } } }