src/WingetCreateCore/Common/PackageParser.cs
/// <summary>
/// Updates the metadata from an existing installer node with the metadata from a new installer node.
/// </summary>
/// <param name="existingInstaller">Existing installer node.</param>
/// <param name="newInstaller">New installer node.</param>
Updates the metadata from an existing installer node with the metadata from a new installer node.
Updates the metadata from an existing installer node with the metadata from a new installer node .
private static void UpdateInstallerMetadata(Installer existingInstaller, Installer newInstaller)
        {
            existingInstaller.Architecture = newInstaller.Architecture;
            existingInstaller.InstallerUrl = newInstaller.InstallerUrl;
            existingInstaller.InstallerSha256 = newInstaller.InstallerSha256;
            existingInstaller.SignatureSha256 = newInstaller.SignatureSha256;
            existingInstaller.ProductCode = newInstaller.ProductCode;
            existingInstaller.MinimumOSVersion = newInstaller.MinimumOSVersion;
            existingInstaller.PackageFamilyName = newInstaller.PackageFamilyName;
            existingInstaller.Platform = newInstaller.Platform;
        }
private static void UpdateInstallerMetadata ( Installer existingInstaller , Installer newInstaller ) { existingInstaller . Architecture = newInstaller . Architecture ; existingInstaller . InstallerUrl = newInstaller . InstallerUrl ; existingInstaller . InstallerSha256 = newInstaller . InstallerSha256 ; existingInstaller . SignatureSha256 = newInstaller . SignatureSha256 ; existingInstaller . ProductCode = newInstaller . ProductCode ; existingInstaller . MinimumOSVersion = newInstaller . MinimumOSVersion ; existingInstaller . PackageFamilyName = newInstaller . PackageFamilyName ; existingInstaller . Platform = newInstaller . Platform ; }
Updates the metadata from an existing installer node with the metadata from a new installer node.
Updates the metadata from an existing installer node with the metadata from a new installer node .
existingInstaller
Installer
Existing installer node.
Existing installer node .
newInstaller
Installer
New installer node.
New installer node .