diff options
Diffstat (limited to 'src/WixToolset.Data/ErrorMessages.cs')
-rw-r--r-- | src/WixToolset.Data/ErrorMessages.cs | 58 |
1 files changed, 52 insertions, 6 deletions
diff --git a/src/WixToolset.Data/ErrorMessages.cs b/src/WixToolset.Data/ErrorMessages.cs index c4b74e4e..7924c2ab 100644 --- a/src/WixToolset.Data/ErrorMessages.cs +++ b/src/WixToolset.Data/ErrorMessages.cs | |||
@@ -493,6 +493,16 @@ namespace WixToolset.Data | |||
493 | return Message(sourceLineNumbers, Ids.ExpectedAttributeWithElement, "The {0} element must have attribute '{1}' when child element '{2}' is present.", elementName, attribute, childElementName); | 493 | return Message(sourceLineNumbers, Ids.ExpectedAttributeWithElement, "The {0} element must have attribute '{1}' when child element '{2}' is present.", elementName, attribute, childElementName); |
494 | } | 494 | } |
495 | 495 | ||
496 | public static Message ExpectedAttributeWithoutOtherAttribute(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string otherAttributeName) | ||
497 | { | ||
498 | return Message(sourceLineNumbers, Ids.ExpectedAttributeWithoutOtherAttributes, "The {0} element's {1} attribute was not found; it is required without attribute {2} present.", elementName, attributeName, otherAttributeName); | ||
499 | } | ||
500 | |||
501 | public static Message ExpectedAttributeWithoutOtherAttributes(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string otherAttributeName1, string otherAttributeName2) | ||
502 | { | ||
503 | return Message(sourceLineNumbers, Ids.ExpectedAttributeWithoutOtherAttributes, "The {0} element's {1} attribute was not found; it is required without attribute {2} or {3} present.", elementName, attributeName, otherAttributeName1, otherAttributeName2); | ||
504 | } | ||
505 | |||
496 | public static Message ExpectedBinaryCategory(SourceLineNumber sourceLineNumbers) | 506 | public static Message ExpectedBinaryCategory(SourceLineNumber sourceLineNumbers) |
497 | { | 507 | { |
498 | return Message(sourceLineNumbers, Ids.ExpectedBinaryCategory, "The Column element specifies a binary column but does not have the correct Category specified. Windows Installer requires binary columns to specify their category as binary. Please set the Category attribute's value to 'Binary'."); | 508 | return Message(sourceLineNumbers, Ids.ExpectedBinaryCategory, "The Column element specifies a binary column but does not have the correct Category specified. Windows Installer requires binary columns to specify their category as binary. Please set the Category attribute's value to 'Binary'."); |
@@ -1499,6 +1509,11 @@ namespace WixToolset.Data | |||
1499 | return Message(sourceLineNumbers, Ids.MissingOrInvalidModuleInstallerVersion, "The merge module '{0}' from file '{1}' is either missing or has an invalid installer version. The value read from the installer version in module's summary information was '{2}'. This should be a numeric value representing a valid installer version such as 200 or 301.", moduleId, mergeModuleFile, productInstallerVersion); | 1509 | return Message(sourceLineNumbers, Ids.MissingOrInvalidModuleInstallerVersion, "The merge module '{0}' from file '{1}' is either missing or has an invalid installer version. The value read from the installer version in module's summary information was '{2}'. This should be a numeric value representing a valid installer version such as 200 or 301.", moduleId, mergeModuleFile, productInstallerVersion); |
1500 | } | 1510 | } |
1501 | 1511 | ||
1512 | public static Message MissingPackagePayload(SourceLineNumber sourceLineNumbers, string packageId, string packageType) | ||
1513 | { | ||
1514 | return Message(sourceLineNumbers, Ids.MissingPackagePayload, "There is no payload defined for package '{0}'. This is specified on the {1}Package element or a child {1}PackagePayload element.", packageId, packageType); | ||
1515 | } | ||
1516 | |||
1502 | public static Message MissingTableDefinition(string tableName) | 1517 | public static Message MissingTableDefinition(string tableName) |
1503 | { | 1518 | { |
1504 | return Message(null, Ids.MissingTableDefinition, "Cannot find the table definitions for the '{0}' table. This is likely due to a typing error or missing extension. Please ensure all the necessary extensions are supplied on the command line with the -ext parameter.", tableName); | 1519 | return Message(null, Ids.MissingTableDefinition, "Cannot find the table definitions for the '{0}' table. This is likely due to a typing error or missing extension. Please ensure all the necessary extensions are supplied on the command line with the -ext parameter.", tableName); |
@@ -1539,6 +1554,21 @@ namespace WixToolset.Data | |||
1539 | return Message(sourceLineNumbers, Ids.MultipleIdentifiersFound, "Under a '{0}' element, multiple identifiers were found: '{1}' and '{2}'. All search elements under this element must have the same id.", elementName, identifier, mismatchIdentifier); | 1554 | return Message(sourceLineNumbers, Ids.MultipleIdentifiersFound, "Under a '{0}' element, multiple identifiers were found: '{1}' and '{2}'. All search elements under this element must have the same id.", elementName, identifier, mismatchIdentifier); |
1540 | } | 1555 | } |
1541 | 1556 | ||
1557 | public static Message MultiplePackagePayloads(SourceLineNumber sourceLineNumbers, string packageId, string packagePayloadId1, string packagePayloadId2) | ||
1558 | { | ||
1559 | return Message(sourceLineNumbers, Ids.MultiplePackagePayloads, "The package '{0}' has multiple PackagePayloads: '{1}' and '{2}'. This normally happens when the payload is defined on the package element and a child PackagePayload element.", packageId, packagePayloadId1, packagePayloadId2); | ||
1560 | } | ||
1561 | |||
1562 | public static Message MultiplePackagePayloads2(SourceLineNumber sourceLineNumbers) | ||
1563 | { | ||
1564 | return Message(sourceLineNumbers, Ids.MultiplePackagePayloads2, "The location of the package payload related to previous error."); | ||
1565 | } | ||
1566 | |||
1567 | public static Message MultiplePackagePayloads3(SourceLineNumber sourceLineNumbers) | ||
1568 | { | ||
1569 | return Message(sourceLineNumbers, Ids.MultiplePackagePayloads3, "The location of the package related to previous error."); | ||
1570 | } | ||
1571 | |||
1542 | public static Message MultiplePrimaryReferences(SourceLineNumber sourceLineNumbers, string crefChildType, string crefChildId, string crefParentType, string crefParentId, string conflictParentType, string conflictParentId) | 1572 | public static Message MultiplePrimaryReferences(SourceLineNumber sourceLineNumbers, string crefChildType, string crefChildId, string crefParentType, string crefParentId, string conflictParentType, string conflictParentId) |
1543 | { | 1573 | { |
1544 | return Message(sourceLineNumbers, Ids.MultiplePrimaryReferences, "Multiple primary references were found for {0} '{1}' in {2} '{3}' and {4} '{5}'.", crefChildType, crefChildId, crefParentType, crefParentId, conflictParentType, conflictParentId); | 1574 | return Message(sourceLineNumbers, Ids.MultiplePrimaryReferences, "Multiple primary references were found for {0} '{1}' in {2} '{3}' and {4} '{5}'.", crefChildType, crefChildId, crefParentType, crefParentId, conflictParentType, conflictParentId); |
@@ -1634,6 +1664,16 @@ namespace WixToolset.Data | |||
1634 | return Message(sourceLineNumbers, Ids.OverridableActionCollision2, "The location of the action related to previous error."); | 1664 | return Message(sourceLineNumbers, Ids.OverridableActionCollision2, "The location of the action related to previous error."); |
1635 | } | 1665 | } |
1636 | 1666 | ||
1667 | public static Message PackagePayloadUnsupported(SourceLineNumber sourceLineNumbers, string packageType) | ||
1668 | { | ||
1669 | return Message(sourceLineNumbers, Ids.PackagePayloadUnsupported, "The {0}PackagePayload element can only be used for {0}Packages.", packageType); | ||
1670 | } | ||
1671 | |||
1672 | public static Message PackagePayloadUnsupported2(SourceLineNumber sourceLineNumbers) | ||
1673 | { | ||
1674 | return Message(sourceLineNumbers, Ids.PackagePayloadUnsupported2, "The location of the package related to previous error."); | ||
1675 | } | ||
1676 | |||
1637 | public static Message ParentElementAttributeRequired(SourceLineNumber sourceLineNumbers, string parentElement, string parentAttribute, string childElement) | 1677 | public static Message ParentElementAttributeRequired(SourceLineNumber sourceLineNumbers, string parentElement, string parentAttribute, string childElement) |
1638 | { | 1678 | { |
1639 | return Message(sourceLineNumbers, Ids.ParentElementAttributeRequired, "The parent {0} element is missing the {1} attribute that is required for the {2} child element.", parentElement, parentAttribute, childElement); | 1679 | return Message(sourceLineNumbers, Ids.ParentElementAttributeRequired, "The parent {0} element is missing the {1} attribute that is required for the {2} child element.", parentElement, parentAttribute, childElement); |
@@ -1774,11 +1814,6 @@ namespace WixToolset.Data | |||
1774 | return Message(sourceLineNumbers, Ids.RelativePathForRegistryElement, "Cannot convert RelativePath into Registry elements."); | 1814 | return Message(sourceLineNumbers, Ids.RelativePathForRegistryElement, "Cannot convert RelativePath into Registry elements."); |
1775 | } | 1815 | } |
1776 | 1816 | ||
1777 | public static Message RemotePayloadUnsupported(SourceLineNumber sourceLineNumbers) | ||
1778 | { | ||
1779 | return Message(sourceLineNumbers, Ids.RemotePayloadUnsupported, "The RemotePayload element can only be used for ExePackage and MsuPackage payloads."); | ||
1780 | } | ||
1781 | |||
1782 | public static Message ReservedNamespaceViolation(SourceLineNumber sourceLineNumbers, string element, string attribute, string prefix) | 1817 | public static Message ReservedNamespaceViolation(SourceLineNumber sourceLineNumbers, string element, string attribute, string prefix) |
1783 | { | 1818 | { |
1784 | return Message(sourceLineNumbers, Ids.ReservedNamespaceViolation, "The {0}/@{1} attribute's value begins with the reserved prefix '{2}'. Some prefixes are reserved by the Windows Installer and WiX toolset for well-known values. Change your attribute's value to not begin with the same prefix.", element, attribute, prefix); | 1819 | return Message(sourceLineNumbers, Ids.ReservedNamespaceViolation, "The {0}/@{1} attribute's value begins with the reserved prefix '{2}'. Some prefixes are reserved by the Windows Installer and WiX toolset for well-known values. Change your attribute's value to not begin with the same prefix.", element, attribute, prefix); |
@@ -2024,6 +2059,11 @@ namespace WixToolset.Data | |||
2024 | return Message(sourceLineNumbers, Ids.UnexpectedElementWithAttribute, "The {0} element cannot have a child element '{1}' when attribute '{2}' is set.", elementName, childElementName, attribute); | 2059 | return Message(sourceLineNumbers, Ids.UnexpectedElementWithAttribute, "The {0} element cannot have a child element '{1}' when attribute '{2}' is set.", elementName, childElementName, attribute); |
2025 | } | 2060 | } |
2026 | 2061 | ||
2062 | public static Message UnexpectedElementWithAttribute(SourceLineNumber sourceLineNumbers, string elementName, string childElementName, string attribute1, string attribute2, string attribute3, string attribute4) | ||
2063 | { | ||
2064 | return Message(sourceLineNumbers, Ids.UnexpectedElementWithAttribute, "The {0} element cannot have a child element '{1}' when any of attributes '{2}', '{3}', '{4}', or '{5}' are set.", elementName, childElementName, attribute1, attribute2, attribute3, attribute4); | ||
2065 | } | ||
2066 | |||
2027 | public static Message UnexpectedElementWithAttributeValue(SourceLineNumber sourceLineNumbers, string elementName, string childElementName, string attribute, string attributeValue) | 2067 | public static Message UnexpectedElementWithAttributeValue(SourceLineNumber sourceLineNumbers, string elementName, string childElementName, string attribute, string attributeValue) |
2028 | { | 2068 | { |
2029 | return Message(sourceLineNumbers, Ids.UnexpectedElementWithAttributeValue, "The {0} element cannot have a child element '{1}' unless attribute '{2}' is set to '{3}'.", elementName, childElementName, attribute, attributeValue); | 2069 | return Message(sourceLineNumbers, Ids.UnexpectedElementWithAttributeValue, "The {0} element cannot have a child element '{1}' unless attribute '{2}' is set to '{3}'.", elementName, childElementName, attribute, attributeValue); |
@@ -2661,7 +2701,6 @@ namespace WixToolset.Data | |||
2661 | InvalidModuleOrBundleVersion = 380, | 2701 | InvalidModuleOrBundleVersion = 380, |
2662 | UnsupportedPlatformForElement = 381, | 2702 | UnsupportedPlatformForElement = 381, |
2663 | MissingMedia = 382, | 2703 | MissingMedia = 382, |
2664 | RemotePayloadUnsupported = 383, | ||
2665 | IllegalYesNoAlwaysValue = 384, | 2704 | IllegalYesNoAlwaysValue = 384, |
2666 | TooDeeplyIncluded = 385, | 2705 | TooDeeplyIncluded = 385, |
2667 | TooManyColumnsInRealTable = 386, | 2706 | TooManyColumnsInRealTable = 386, |
@@ -2680,6 +2719,13 @@ namespace WixToolset.Data | |||
2680 | UnknownSymbolType = 399, | 2719 | UnknownSymbolType = 399, |
2681 | IllegalInnerText = 400, | 2720 | IllegalInnerText = 400, |
2682 | ExpectedAttributeWithValueWithOtherAttribute = 401, | 2721 | ExpectedAttributeWithValueWithOtherAttribute = 401, |
2722 | PackagePayloadUnsupported = 402, | ||
2723 | PackagePayloadUnsupported2 = 403, | ||
2724 | MultiplePackagePayloads = 404, | ||
2725 | MultiplePackagePayloads2 = 405, | ||
2726 | MultiplePackagePayloads3 = 406, | ||
2727 | MissingPackagePayload = 407, | ||
2728 | ExpectedAttributeWithoutOtherAttributes = 408, | ||
2683 | } | 2729 | } |
2684 | } | 2730 | } |
2685 | } | 2731 | } |