aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/WarningMessages.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Data/WarningMessages.cs')
-rw-r--r--src/WixToolset.Data/WarningMessages.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/WixToolset.Data/WarningMessages.cs b/src/WixToolset.Data/WarningMessages.cs
index a1df1282..1ea0f3ea 100644
--- a/src/WixToolset.Data/WarningMessages.cs
+++ b/src/WixToolset.Data/WarningMessages.cs
@@ -232,6 +232,11 @@ namespace WixToolset.Data
232 return Message(sourceLineNumbers, Ids.DiscouragedAllUsersValue, "Bundles require a package to be either per-machine or per-user. The MSI '{0}' ALLUSERS Property is set to '2' which may change from per-user to per-machine at install time. The Bundle will assume the package is per-{1} and will not work correctly if that changes. If possible, remove the Property with Id='ALLUSERS' and use Package/@InstallScope attribute instead.", path, machineOrUser); 232 return Message(sourceLineNumbers, Ids.DiscouragedAllUsersValue, "Bundles require a package to be either per-machine or per-user. The MSI '{0}' ALLUSERS Property is set to '2' which may change from per-user to per-machine at install time. The Bundle will assume the package is per-{1} and will not work correctly if that changes. If possible, remove the Property with Id='ALLUSERS' and use Package/@InstallScope attribute instead.", path, machineOrUser);
233 } 233 }
234 234
235 public static Message DetectConditionRecommended(SourceLineNumber sourceLineNumbers, string elementName)
236 {
237 return Message(sourceLineNumbers, Ids.DetectConditionRecommended, "The {0}/@DetectCondition attribute is recommended so the package is only installed when absent.", elementName);
238 }
239
235 public static Message DownloadUrlNotSupportedForAttachedContainers(SourceLineNumber sourceLineNumbers, string containerId) 240 public static Message DownloadUrlNotSupportedForAttachedContainers(SourceLineNumber sourceLineNumbers, string containerId)
236 { 241 {
237 return Message(sourceLineNumbers, Ids.DownloadUrlNotSupportedForAttachedContainers, "The Container '{0}' is attached but included a @DownloadUrl attribute. Attached Containers cannot be downloaded so the download URL is being ignored.", containerId); 242 return Message(sourceLineNumbers, Ids.DownloadUrlNotSupportedForAttachedContainers, "The Container '{0}' is attached but included a @DownloadUrl attribute. Attached Containers cannot be downloaded so the download URL is being ignored.", containerId);
@@ -792,6 +797,7 @@ namespace WixToolset.Data
792 SymbolNotTranslatedToOutput = 1150, 797 SymbolNotTranslatedToOutput = 1150,
793 MsiTransactionLimitations = 1151, 798 MsiTransactionLimitations = 1151,
794 PathCanonicalized = 1152, 799 PathCanonicalized = 1152,
800 DetectConditionRecommended = 1153,
795 } 801 }
796 } 802 }
797} 803}