aboutsummaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
Diffstat (limited to 'src/api')
-rw-r--r--src/api/wix/WixToolset.Data/WarningMessages.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/api/wix/WixToolset.Data/WarningMessages.cs b/src/api/wix/WixToolset.Data/WarningMessages.cs
index f555fd93..0c026b68 100644
--- a/src/api/wix/WixToolset.Data/WarningMessages.cs
+++ b/src/api/wix/WixToolset.Data/WarningMessages.cs
@@ -673,6 +673,16 @@ namespace WixToolset.Data
673 return Message(null, Ids.InvalidEnvironmentVariable, "The {0} environment variable is set to an invalid value of '{1}'. The default value '{2}' will be used instead.", environmentVariable, value, defaultValue); 673 return Message(null, Ids.InvalidEnvironmentVariable, "The {0} environment variable is set to an invalid value of '{1}'. The default value '{2}' will be used instead.", environmentVariable, value, defaultValue);
674 } 674 }
675 675
676 public static Message WindowsInstallerFileTooLarge(SourceLineNumber sourceLineNumbers, string path, string fileDescription)
677 {
678 if (String.IsNullOrEmpty(fileDescription))
679 {
680 fileDescription = "MSI or cabinet";
681 }
682
683 return Message(sourceLineNumbers, Ids.WindowsInstallerFileTooLarge, "The Windows Installer does not support {0} files larger than 2GB in size. Reduce the size or number of files embedded in '{1}' or the installation will likely fail with an unexpected error.", fileDescription, path);
684 }
685
676 private static Message Message(SourceLineNumber sourceLineNumber, Ids id, string format, params object[] args) 686 private static Message Message(SourceLineNumber sourceLineNumber, Ids id, string format, params object[] args)
677 { 687 {
678 return new Message(sourceLineNumber, MessageLevel.Warning, (int)id, format, args); 688 return new Message(sourceLineNumber, MessageLevel.Warning, (int)id, format, args);
@@ -809,6 +819,7 @@ namespace WixToolset.Data
809 DetectConditionRecommended = 1153, 819 DetectConditionRecommended = 1153,
810 CollidingModularizationTypes = 1156, 820 CollidingModularizationTypes = 1156,
811 InvalidEnvironmentVariable = 1157, 821 InvalidEnvironmentVariable = 1157,
822 WindowsInstallerFileTooLarge = 1158,
812 UnavailableBundleConditionVariable = 1159, 823 UnavailableBundleConditionVariable = 1159,
813 } 824 }
814 } 825 }