diff options
| author | Rob Mensching <rob@firegiant.com> | 2022-03-16 10:30:35 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2022-03-17 06:50:22 -0700 |
| commit | 581c320e04949300d6c3bee71fb5fc1a557f9263 (patch) | |
| tree | 485247f29fbd8f7a8272250b4e361292ce016ca3 /src/api | |
| parent | b279d9c6d38058ff60b8461b35f33d5c056334c9 (diff) | |
| download | wix-581c320e04949300d6c3bee71fb5fc1a557f9263.tar.gz wix-581c320e04949300d6c3bee71fb5fc1a557f9263.tar.bz2 wix-581c320e04949300d6c3bee71fb5fc1a557f9263.zip | |
Warn when an MSI or cabinet installed by an MSI is too large
Fixes 6408
Diffstat (limited to 'src/api')
| -rw-r--r-- | src/api/wix/WixToolset.Data/WarningMessages.cs | 11 |
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 | } |
