diff options
| author | Bob Arnson <bob@firegiant.com> | 2021-01-31 19:23:33 -0500 |
|---|---|---|
| committer | Bob Arnson <bob@firegiant.com> | 2021-01-31 19:28:36 -0500 |
| commit | 0878f2e11bafb2f1e6f992fff6c49d859a4e569f (patch) | |
| tree | 4b464161af616a750ab5de98087407a86111ee74 /src/WixToolset.Core/Compiler_Bundle.cs | |
| parent | 9a6688a8d6ec05817451dc8706a0bc9db82b9d36 (diff) | |
| download | wix-0878f2e11bafb2f1e6f992fff6c49d859a4e569f.tar.gz wix-0878f2e11bafb2f1e6f992fff6c49d859a4e569f.tar.bz2 wix-0878f2e11bafb2f1e6f992fff6c49d859a4e569f.zip | |
Remove Burn Authenticode
Fixes https://github.com/wixtoolset/issues/issues/6301
Diffstat (limited to 'src/WixToolset.Core/Compiler_Bundle.cs')
| -rw-r--r-- | src/WixToolset.Core/Compiler_Bundle.cs | 84 |
1 files changed, 3 insertions, 81 deletions
diff --git a/src/WixToolset.Core/Compiler_Bundle.cs b/src/WixToolset.Core/Compiler_Bundle.cs index f0060a3e..944f089e 100644 --- a/src/WixToolset.Core/Compiler_Bundle.cs +++ b/src/WixToolset.Core/Compiler_Bundle.cs | |||
| @@ -292,9 +292,6 @@ namespace WixToolset.Core | |||
| 292 | case "OptionalUpdateRegistration": | 292 | case "OptionalUpdateRegistration": |
| 293 | this.ParseOptionalUpdateRegistrationElement(child, manufacturer, parentName, name); | 293 | this.ParseOptionalUpdateRegistrationElement(child, manufacturer, parentName, name); |
| 294 | break; | 294 | break; |
| 295 | case "Catalog": | ||
| 296 | this.ParseCatalogElement(child); | ||
| 297 | break; | ||
| 298 | case "Chain": | 295 | case "Chain": |
| 299 | if (chainSeen) | 296 | if (chainSeen) |
| 300 | { | 297 | { |
| @@ -485,59 +482,6 @@ namespace WixToolset.Core | |||
| 485 | } | 482 | } |
| 486 | 483 | ||
| 487 | /// <summary> | 484 | /// <summary> |
| 488 | /// Parse a Catalog element. | ||
| 489 | /// </summary> | ||
| 490 | /// <param name="node">Element to parse</param> | ||
| 491 | private void ParseCatalogElement(XElement node) | ||
| 492 | { | ||
| 493 | var sourceLineNumbers = Preprocessor.GetSourceLineNumbers(node); | ||
| 494 | Identifier id = null; | ||
| 495 | string sourceFile = null; | ||
| 496 | |||
| 497 | foreach (var attrib in node.Attributes()) | ||
| 498 | { | ||
| 499 | if (String.IsNullOrEmpty(attrib.Name.NamespaceName) || CompilerCore.WixNamespace == attrib.Name.Namespace) | ||
| 500 | { | ||
| 501 | switch (attrib.Name.LocalName) | ||
| 502 | { | ||
| 503 | case "Id": | ||
| 504 | id = this.Core.GetAttributeIdentifier(sourceLineNumbers, attrib); | ||
| 505 | break; | ||
| 506 | case "SourceFile": | ||
| 507 | sourceFile = this.Core.GetAttributeValue(sourceLineNumbers, attrib); | ||
| 508 | break; | ||
| 509 | default: | ||
| 510 | this.Core.UnexpectedAttribute(node, attrib); | ||
| 511 | break; | ||
| 512 | } | ||
| 513 | } | ||
| 514 | } | ||
| 515 | |||
| 516 | if (null == id) | ||
| 517 | { | ||
| 518 | this.Core.Write(ErrorMessages.ExpectedAttribute(sourceLineNumbers, node.Name.LocalName, "Id")); | ||
| 519 | } | ||
| 520 | |||
| 521 | if (null == sourceFile) | ||
| 522 | { | ||
| 523 | this.Core.Write(ErrorMessages.ExpectedAttribute(sourceLineNumbers, node.Name.LocalName, "SourceFile")); | ||
| 524 | } | ||
| 525 | |||
| 526 | this.Core.ParseForExtensionElements(node); | ||
| 527 | |||
| 528 | // Create catalog row | ||
| 529 | if (!this.Core.EncounteredError) | ||
| 530 | { | ||
| 531 | this.CreatePayloadRow(sourceLineNumbers, id, Path.GetFileName(sourceFile), sourceFile, null, ComplexReferenceParentType.Container, Compiler.BurnUXContainerId, ComplexReferenceChildType.Unknown, null, YesNoDefaultType.Yes, YesNoType.Yes, null, null, null); | ||
| 532 | |||
| 533 | this.Core.AddSymbol(new WixBundleCatalogSymbol(sourceLineNumbers, id) | ||
| 534 | { | ||
| 535 | PayloadRef = id.Id, | ||
| 536 | }); | ||
| 537 | } | ||
| 538 | } | ||
| 539 | |||
| 540 | /// <summary> | ||
| 541 | /// Parse a Container element. | 485 | /// Parse a Container element. |
| 542 | /// </summary> | 486 | /// </summary> |
| 543 | /// <param name="node">Element to parse</param> | 487 | /// <param name="node">Element to parse</param> |
| @@ -1369,7 +1313,6 @@ namespace WixToolset.Core | |||
| 1369 | 1313 | ||
| 1370 | var sourceLineNumbers = Preprocessor.GetSourceLineNumbers(node); | 1314 | var sourceLineNumbers = Preprocessor.GetSourceLineNumbers(node); |
| 1371 | var compressed = YesNoDefaultType.Default; | 1315 | var compressed = YesNoDefaultType.Default; |
| 1372 | var enableSignatureVerification = YesNoType.No; | ||
| 1373 | id = null; | 1316 | id = null; |
| 1374 | string name = null; | 1317 | string name = null; |
| 1375 | string sourceFile = null; | 1318 | string sourceFile = null; |
| @@ -1400,9 +1343,6 @@ namespace WixToolset.Core | |||
| 1400 | case "DownloadUrl": | 1343 | case "DownloadUrl": |
| 1401 | downloadUrl = this.Core.GetAttributeValue(sourceLineNumbers, attrib); | 1344 | downloadUrl = this.Core.GetAttributeValue(sourceLineNumbers, attrib); |
| 1402 | break; | 1345 | break; |
| 1403 | case "EnableSignatureVerification": | ||
| 1404 | enableSignatureVerification = this.Core.GetAttributeYesNoValue(sourceLineNumbers, attrib); | ||
| 1405 | break; | ||
| 1406 | case "DpiAwareness": | 1346 | case "DpiAwareness": |
| 1407 | if (node.Name.LocalName != "BootstrapperApplicationDll") | 1347 | if (node.Name.LocalName != "BootstrapperApplicationDll") |
| 1408 | { | 1348 | { |
| @@ -1457,7 +1397,7 @@ namespace WixToolset.Core | |||
| 1457 | return false; | 1397 | return false; |
| 1458 | } | 1398 | } |
| 1459 | 1399 | ||
| 1460 | this.CreatePayloadRow(sourceLineNumbers, id, name, sourceFile, downloadUrl, parentType, parentId, previousType, previousId, compressed, enableSignatureVerification, null, null, null); | 1400 | this.CreatePayloadRow(sourceLineNumbers, id, name, sourceFile, downloadUrl, parentType, parentId, previousType, previousId, compressed, null, null, null); |
| 1461 | 1401 | ||
| 1462 | return true; | 1402 | return true; |
| 1463 | } | 1403 | } |
| @@ -1473,12 +1413,6 @@ namespace WixToolset.Core | |||
| 1473 | { | 1413 | { |
| 1474 | switch (attrib.Name.LocalName) | 1414 | switch (attrib.Name.LocalName) |
| 1475 | { | 1415 | { |
| 1476 | case "CertificatePublicKey": | ||
| 1477 | remotePayload.CertificatePublicKey = this.Core.GetAttributeValue(sourceLineNumbers, attrib); | ||
| 1478 | break; | ||
| 1479 | case "CertificateThumbprint": | ||
| 1480 | remotePayload.CertificateThumbprint = this.Core.GetAttributeValue(sourceLineNumbers, attrib); | ||
| 1481 | break; | ||
| 1482 | case "Description": | 1416 | case "Description": |
| 1483 | remotePayload.Description = this.Core.GetAttributeValue(sourceLineNumbers, attrib); | 1417 | remotePayload.Description = this.Core.GetAttributeValue(sourceLineNumbers, attrib); |
| 1484 | break; | 1418 | break; |
| @@ -1546,13 +1480,12 @@ namespace WixToolset.Core | |||
| 1546 | /// <param name="previousType"></param> | 1480 | /// <param name="previousType"></param> |
| 1547 | /// <param name="previousId"></param> | 1481 | /// <param name="previousId"></param> |
| 1548 | /// <param name="compressed"></param> | 1482 | /// <param name="compressed"></param> |
| 1549 | /// <param name="enableSignatureVerification"></param> | ||
| 1550 | /// <param name="displayName"></param> | 1483 | /// <param name="displayName"></param> |
| 1551 | /// <param name="description"></param> | 1484 | /// <param name="description"></param> |
| 1552 | /// <param name="remotePayload"></param> | 1485 | /// <param name="remotePayload"></param> |
| 1553 | /// <returns></returns> | 1486 | /// <returns></returns> |
| 1554 | private WixBundlePayloadSymbol CreatePayloadRow(SourceLineNumber sourceLineNumbers, Identifier id, string name, string sourceFile, string downloadUrl, ComplexReferenceParentType parentType, | 1487 | private WixBundlePayloadSymbol CreatePayloadRow(SourceLineNumber sourceLineNumbers, Identifier id, string name, string sourceFile, string downloadUrl, ComplexReferenceParentType parentType, |
| 1555 | Identifier parentId, ComplexReferenceChildType previousType, Identifier previousId, YesNoDefaultType compressed, YesNoType enableSignatureVerification, string displayName, string description, | 1488 | Identifier parentId, ComplexReferenceChildType previousType, Identifier previousId, YesNoDefaultType compressed, string displayName, string description, |
| 1556 | RemotePayload remotePayload) | 1489 | RemotePayload remotePayload) |
| 1557 | { | 1490 | { |
| 1558 | WixBundlePayloadSymbol symbol = null; | 1491 | WixBundlePayloadSymbol symbol = null; |
| @@ -1568,7 +1501,6 @@ namespace WixToolset.Core | |||
| 1568 | UnresolvedSourceFile = sourceFile, // duplicate of sourceFile but in a string column so it won't get resolved to a full path during binding. | 1501 | UnresolvedSourceFile = sourceFile, // duplicate of sourceFile but in a string column so it won't get resolved to a full path during binding. |
| 1569 | DisplayName = displayName, | 1502 | DisplayName = displayName, |
| 1570 | Description = description, | 1503 | Description = description, |
| 1571 | EnableSignatureValidation = (YesNoType.Yes == enableSignatureVerification) | ||
| 1572 | }); | 1504 | }); |
| 1573 | 1505 | ||
| 1574 | if (null != remotePayload) | 1506 | if (null != remotePayload) |
| @@ -1576,8 +1508,6 @@ namespace WixToolset.Core | |||
| 1576 | symbol.Description = remotePayload.Description; | 1508 | symbol.Description = remotePayload.Description; |
| 1577 | symbol.DisplayName = remotePayload.ProductName; | 1509 | symbol.DisplayName = remotePayload.ProductName; |
| 1578 | symbol.Hash = remotePayload.Hash; | 1510 | symbol.Hash = remotePayload.Hash; |
| 1579 | symbol.PublicKey = remotePayload.CertificatePublicKey; | ||
| 1580 | symbol.Thumbprint = remotePayload.CertificateThumbprint; | ||
| 1581 | symbol.FileSize = remotePayload.Size; | 1511 | symbol.FileSize = remotePayload.Size; |
| 1582 | symbol.Version = remotePayload.Version; | 1512 | symbol.Version = remotePayload.Version; |
| 1583 | } | 1513 | } |
| @@ -2120,7 +2050,6 @@ namespace WixToolset.Core | |||
| 2120 | string protocol = null; | 2050 | string protocol = null; |
| 2121 | var installSize = CompilerConstants.IntegerNotSet; | 2051 | var installSize = CompilerConstants.IntegerNotSet; |
| 2122 | string msuKB = null; | 2052 | string msuKB = null; |
| 2123 | var enableSignatureVerification = YesNoType.No; | ||
| 2124 | var compressed = YesNoDefaultType.Default; | 2053 | var compressed = YesNoDefaultType.Default; |
| 2125 | var enableFeatureSelection = YesNoType.NotSet; | 2054 | var enableFeatureSelection = YesNoType.NotSet; |
| 2126 | var forcePerMachine = YesNoType.NotSet; | 2055 | var forcePerMachine = YesNoType.NotSet; |
| @@ -2249,9 +2178,6 @@ namespace WixToolset.Core | |||
| 2249 | case "Compressed": | 2178 | case "Compressed": |
| 2250 | compressed = this.Core.GetAttributeYesNoDefaultValue(sourceLineNumbers, attrib); | 2179 | compressed = this.Core.GetAttributeYesNoDefaultValue(sourceLineNumbers, attrib); |
| 2251 | break; | 2180 | break; |
| 2252 | case "EnableSignatureVerification": | ||
| 2253 | enableSignatureVerification = this.Core.GetAttributeYesNoValue(sourceLineNumbers, attrib); | ||
| 2254 | break; | ||
| 2255 | case "Slipstream": | 2181 | case "Slipstream": |
| 2256 | slipstream = this.Core.GetAttributeYesNoValue(sourceLineNumbers, attrib); | 2182 | slipstream = this.Core.GetAttributeYesNoValue(sourceLineNumbers, attrib); |
| 2257 | allowed = (packageType == WixBundlePackageType.Msp); | 2183 | allowed = (packageType == WixBundlePackageType.Msp); |
| @@ -2480,7 +2406,7 @@ namespace WixToolset.Core | |||
| 2480 | { | 2406 | { |
| 2481 | // We create the package contents as a payload with this package as the parent | 2407 | // We create the package contents as a payload with this package as the parent |
| 2482 | this.CreatePayloadRow(sourceLineNumbers, id, name, sourceFile, downloadUrl, ComplexReferenceParentType.Package, id, | 2408 | this.CreatePayloadRow(sourceLineNumbers, id, name, sourceFile, downloadUrl, ComplexReferenceParentType.Package, id, |
| 2483 | ComplexReferenceChildType.Unknown, null, compressed, enableSignatureVerification, displayName, description, remotePayload); | 2409 | ComplexReferenceChildType.Unknown, null, compressed, displayName, description, remotePayload); |
| 2484 | 2410 | ||
| 2485 | this.Core.AddSymbol(new WixChainItemSymbol(sourceLineNumbers, id)); | 2411 | this.Core.AddSymbol(new WixChainItemSymbol(sourceLineNumbers, id)); |
| 2486 | 2412 | ||
| @@ -3301,10 +3227,6 @@ namespace WixToolset.Core | |||
| 3301 | 3227 | ||
| 3302 | private class RemotePayload | 3228 | private class RemotePayload |
| 3303 | { | 3229 | { |
| 3304 | public string CertificatePublicKey { get; set; } | ||
| 3305 | |||
| 3306 | public string CertificateThumbprint { get; set; } | ||
| 3307 | |||
| 3308 | public string Description { get; set; } | 3230 | public string Description { get; set; } |
| 3309 | 3231 | ||
| 3310 | public string Hash { get; set; } | 3232 | public string Hash { get; set; } |
