From 1afc0bd5592ecf6e6547f36cfef25127b586f4c3 Mon Sep 17 00:00:00 2001 From: Bevan Weiss Date: Sat, 20 Jul 2024 13:39:08 +1000 Subject: Introduce early exception for overlength Windows Installer table name Signed-off-by: Bevan Weiss --- src/api/wix/WixToolset.Data/ErrorMessages.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/api') diff --git a/src/api/wix/WixToolset.Data/ErrorMessages.cs b/src/api/wix/WixToolset.Data/ErrorMessages.cs index d604e94f..f9a7d66d 100644 --- a/src/api/wix/WixToolset.Data/ErrorMessages.cs +++ b/src/api/wix/WixToolset.Data/ErrorMessages.cs @@ -2266,6 +2266,11 @@ namespace WixToolset.Data return Message(sourceLineNumbers, Ids.IllegalAttributeWhenNested, "The File element contains an attribute '{0}' that cannot be used in a File element that is a child of a Component element.", attributeName); } + public static Message OverlengthTableNameInProductOrMergeModule(SourceLineNumber sourceLineNumbers, string tableName) + { + return Message(sourceLineNumbers, Ids.OverlengthTableNameInProductOrMergeModule, "The table name '{0}' is invalid because the table name exceeds 31 characters in length. For more information, see: https://learn.microsoft.com/en-au/windows/win32/msi/table-names", tableName); + } + private static Message Message(SourceLineNumber sourceLineNumber, Ids id, string format, params object[] args) { return new Message(sourceLineNumber, MessageLevel.Error, (int)id, format, args); @@ -2667,6 +2672,7 @@ namespace WixToolset.Data MsiTransactionInvalidPackage2 = 412, ExpectedAttributeOrElementWithOtherAttribute = 413, ExpectedAttributeOrElementWithoutOtherAttribute = 414, + OverlengthTableNameInProductOrMergeModule = 415 } } } -- cgit v1.2.3-55-g6feb