aboutsummaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
Diffstat (limited to 'src/api')
-rw-r--r--src/api/wix/WixToolset.Data/ErrorMessages.cs2088
1 files changed, 89 insertions, 1999 deletions
diff --git a/src/api/wix/WixToolset.Data/ErrorMessages.cs b/src/api/wix/WixToolset.Data/ErrorMessages.cs
index f3add0a1..21bdaada 100644
--- a/src/api/wix/WixToolset.Data/ErrorMessages.cs
+++ b/src/api/wix/WixToolset.Data/ErrorMessages.cs
@@ -8,336 +8,19 @@ namespace WixToolset.Data
8 8
9 public static class ErrorMessages 9 public static class ErrorMessages
10 { 10 {
11 public static Message ActionCircularDependency(SourceLineNumber sourceLineNumbers, string sequenceTableName, string actionName1, string actionName2)
12 {
13 return Message(sourceLineNumbers, Ids.ActionCircularDependency, "The {0} table contains an action '{1}' that is scheduled to come before or after action '{2}', which is also scheduled to come before or after action '{1}'. Please remove this circular dependency by changing the Before or After attribute for one of the actions.", sequenceTableName, actionName1, actionName2);
14 }
15
16 public static Message ActionCollision(SourceLineNumber sourceLineNumbers, string sequenceTableName, string actionName)
17 {
18 return Message(sourceLineNumbers, Ids.ActionCollision, "The {0} table contains an action '{1}' that is declared in two different locations. Please remove one of the actions or set the Overridable='yes' attribute on one of their elements.", sequenceTableName, actionName);
19 }
20
21 public static Message ActionCollision2(SourceLineNumber sourceLineNumbers)
22 {
23 return Message(sourceLineNumbers, Ids.ActionCollision2, "The location of the action related to previous error.");
24 }
25
26 public static Message ActionScheduledRelativeToItself(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string attributeValue)
27 {
28 return Message(sourceLineNumbers, Ids.ActionScheduledRelativeToItself, "The {0}/@{1} attribute's value '{2}' is invalid because it would make this action dependent upon itself. Please change the value to the name of a different action.", elementName, attributeName, attributeValue);
29 }
30
31 public static Message ActionScheduledRelativeToTerminationAction(SourceLineNumber sourceLineNumbers, string sequenceTableName, string actionName1, string actionName2)
32 {
33 return Message(sourceLineNumbers, Ids.ActionScheduledRelativeToTerminationAction, "The {0} table contains an action '{1}' that is scheduled to come before or after action '{2}', which is a special action which only occurs when the installer terminates. These special actions can be identified by their negative sequence numbers. Please schedule the action '{1}' to come before or after a different action.", sequenceTableName, actionName1, actionName2);
34 }
35
36 public static Message ActionScheduledRelativeToTerminationAction2(SourceLineNumber sourceLineNumbers)
37 {
38 return Message(sourceLineNumbers, Ids.ActionScheduledRelativeToTerminationAction2, "The location of the special termination action related to previous error(s).");
39 }
40
41 public static Message AdditionalArgumentUnexpected(string argument)
42 {
43 return Message(null, Ids.AdditionalArgumentUnexpected, "Additional argument '{0}' was unexpected. Remove the argument and add the '-?' switch for more information.", argument);
44 }
45
46 public static Message AdminImageRequired(string productCode)
47 {
48 return Message(null, Ids.AdminImageRequired, "Source information is required for the product '{0}'. If you ran torch.exe with both target and updated .msi files, you must first perform an administrative installation of both .msi files then pass -a when running torch.exe.", productCode);
49 }
50
51 public static Message AdvertiseStateMustMatch(SourceLineNumber sourceLineNumbers, string advertiseState, string parentAdvertiseState)
52 {
53 return Message(sourceLineNumbers, Ids.AdvertiseStateMustMatch, "The advertise state of this element: '{0}', does not match the advertise state set on the parent element: '{1}'.", advertiseState, parentAdvertiseState);
54 }
55
56 public static Message AppIdIncompatibleAdvertiseState(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value, string parentValue)
57 {
58 return Message(sourceLineNumbers, Ids.AppIdIncompatibleAdvertiseState, "The {0}/@(1) attribute's value, '{2}' does not match the advertise state on its parent element: '{3}'. (Note: AppIds nested under Fragment, Module, or Package elements must be advertised.)", elementName, attributeName, value, parentValue);
59 }
60
61 public static Message BaselineRequired()
62 {
63 return Message(null, Ids.BaselineRequired, "No baseline was specified for one of the transforms specified. A baseline is required for all transforms in a patch.");
64 }
65
66 public static Message BinderFileManagerMissingFile(SourceLineNumber sourceLineNumbers, string exceptionMessage)
67 {
68 return Message(sourceLineNumbers, Ids.BinderFileManagerMissingFile, "{0}", exceptionMessage);
69 }
70
71 public static Message BothUpgradeCodesRequired()
72 {
73 return Message(null, Ids.BothUpgradeCodesRequired, "Both the target and updated package authoring must define the Package/@UpgradeCode attribute if the transform validates the UpgradeCode (default). Either define the Package/@UpgradeCode attribute in both the target and updated authoring, or set the Validate/@UpgradeCode attribute to 'no' in the patch authoring.");
74 }
75
76 public static Message BundleTooNew(string bundleExecutable, long bundleVersion)
77 {
78 return Message(null, Ids.BundleTooNew, "Unable to read bundle executable '{0}', because this bundle was created with a newer version of WiX (bundle version '{1}'). You must use a newer version of WiX in order to read this bundle.", bundleExecutable, bundleVersion);
79 }
80
81 public static Message CabExtractionFailed(string cabName, string directoryName)
82 {
83 return Message(null, Ids.CabExtractionFailed, "Failed to extract cab '{0}' to directory '{1}'. This is most likely due to a lack of available disk space on the destination drive.", cabName, directoryName);
84 }
85
86 public static Message CabExtractionFailed(string cabName, string mergeModulePath, string directoryName)
87 {
88 return Message(null, Ids.CabExtractionFailed, "Failed to extract cab '{0}' from merge module '{1}' to directory '{2}'. This is most likely due to a lack of available disk space on the destination drive.", cabName, mergeModulePath, directoryName);
89 }
90
91 public static Message CabFileDoesNotExist(string cabName, string mergeModulePath, string directoryName)
92 {
93 return Message(null, Ids.CabFileDoesNotExist, "Attempted to extract cab '{0}' from merge module '{1}' to directory '{2}'. The cab file was not found. This usually means that you have a merge module without a cabinet inside it.", cabName, mergeModulePath, directoryName);
94 }
95
96 public static Message CannotAuthorSpecialProperties(SourceLineNumber sourceLineNumbers, string propertyName)
97 {
98 return Message(sourceLineNumbers, Ids.CannotAuthorSpecialProperties, "The {0} property was specified. Special MSI properties cannot be authored. Use the attributes on the Property element instead.", propertyName);
99 }
100
101 public static Message CannotDefaultComponentId(SourceLineNumber sourceLineNumbers)
102 {
103 return Message(sourceLineNumbers, Ids.CannotDefaultComponentId, "The Component/@Id attribute was not found; it is required when there is no valid keypath to use as the default id value.");
104 }
105
106 public static Message CannotDefaultMismatchedAdvertiseStates(SourceLineNumber sourceLineNumbers)
107 {
108 return Message(sourceLineNumbers, Ids.CannotDefaultMismatchedAdvertiseStates, "MIME element cannot be marked as the default when its advertise state differs from its parent element. Ensure that the advertise state of the MIME element matches its parents element or remove the Mime/@Advertise attribute completely.");
109 }
110
111 public static Message CannotFindFile(SourceLineNumber sourceLineNumbers, string fileId, string fileName, string filePath)
112 {
113 return Message(sourceLineNumbers, Ids.CannotFindFile, "The file with id '{0}' and name '{1}' could not be found with source path: '{2}'.", fileId, fileName, filePath);
114 }
115
116 public static Message CanNotHaveTwoParents(SourceLineNumber sourceLineNumbers, string directorySearch, string parentAttribute, string parentElement)
117 {
118 return Message(sourceLineNumbers, Ids.CanNotHaveTwoParents, "The DirectorySearchRef {0} can not have a Parent attribute {1} and also be nested under parent element {2}", directorySearch, parentAttribute, parentElement);
119 }
120
121 public static Message CannotOpenMergeModule(SourceLineNumber sourceLineNumbers, string mergeModuleIdentifier, string mergeModuleFile)
122 {
123 return Message(sourceLineNumbers, Ids.CannotOpenMergeModule, "Cannot open the merge module '{0}' from file '{1}'.", mergeModuleIdentifier, mergeModuleFile);
124 }
125
126 public static Message CannotReundefineVariable(SourceLineNumber sourceLineNumbers, string variableName)
127 {
128 return Message(sourceLineNumbers, Ids.CannotReundefineVariable, "The variable '{0}' cannot be undefined because its already undefined.", variableName);
129 }
130 11
131 public static Message CheckBoxValueOnlyValidWithCheckBox(SourceLineNumber sourceLineNumbers, string elementName, string controlType)
132 {
133 return Message(sourceLineNumbers, Ids.CheckBoxValueOnlyValidWithCheckBox, "A {0} element was specified with Type='{1}' and a CheckBoxValue. Check box values can only be specified with Type='CheckBox'.", elementName, controlType);
134 }
135
136 public static Message CircularSearchReference(string chain)
137 {
138 return Message(null, Ids.CircularSearchReference, "A circular reference of search ordering constraints was detected: {0}. Search ordering references must form a directed acyclic graph.", chain);
139 }
140 12
141 public static Message CommandLineCommandRequired()
142 {
143 return Message(null, Ids.CommandLineCommandRequired, "A command is required. Add -h for list of available subcommands.");
144 }
145 13
146 public static Message CommandLineCommandRequired(string command)
147 {
148 return Message(null, Ids.CommandLineCommandRequired, "A subcommand is required for the \"{0}\" command. Add -h for list of available commands.", command);
149 }
150 14
151 public static Message ComponentExpectedFeature(SourceLineNumber sourceLineNumbers, string component, string type, string target)
152 {
153 return Message(sourceLineNumbers, Ids.ComponentExpectedFeature, "The component '{0}' is not assigned to a feature. The component's {1} '{2}' requires it to be assigned to at least one feature.", component, type, target);
154 }
155 15
156 public static Message ComponentMultipleKeyPaths(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value, string fileElementName, string registryElementName, string odbcDataSourceElementName)
157 {
158 return Message(sourceLineNumbers, Ids.ComponentMultipleKeyPaths, "The {0} element has multiple key paths set. The key path may only be set to '{2}' in extension elements that support it or one of the following locations: {0}/@{1}, {3}/@{1}, {4}/@{1}, or {5}/@{1}.", elementName, attributeName, value, fileElementName, registryElementName, odbcDataSourceElementName);
159 }
160 16
161 public static Message ComponentReferencedTwice(SourceLineNumber sourceLineNumbers, string crefChildId)
162 {
163 return Message(sourceLineNumbers, Ids.ComponentReferencedTwice, "Component {0} cannot be contained in a Module twice.", crefChildId);
164 }
165 17
166 public static Message ConditionExpected(SourceLineNumber sourceLineNumbers, string elementName)
167 {
168 return Message(sourceLineNumbers, Ids.ConditionExpected, "The {0} element's inner text cannot be an empty string or completely whitespace. If you don't want a condition, then simply remove the entire {0} element.", elementName);
169 }
170 18
171 public static Message CorruptFileFormat(string path, string format) 19 public static Message CorruptFileFormat(string path, string format)
172 { 20 {
173 return Message(null, Ids.CorruptFileFormat, "Attempted to load corrupt file from path: {0}. The file with format {1} contained unexpected content. Ensure the correct path was provided and that the file has not been incorrectly modified.", path, format.ToLowerInvariant()); 21 return Message(null, Ids.CorruptFileFormat, "Attempted to load corrupt file from path: {0}. The file with format {1} contained unexpected content. Ensure the correct path was provided and that the file has not been incorrectly modified.", path, format.ToLowerInvariant());
174 } 22 }
175 23
176 public static Message CouldNotDetermineProductCodeFromTransformSummaryInfo()
177 {
178 return Message(null, Ids.CouldNotDetermineProductCodeFromTransformSummaryInfo, "Could not determine ProductCode from transform summary information.");
179 }
180
181 public static Message CreateCabAddFileFailed()
182 {
183 return Message(null, Ids.CreateCabAddFileFailed, "An error (E_FAIL) was returned while creating a CAB file. The most common cause of this error is attempting to create a CAB file larger than 2GB. You can reduce the size of your installation package, use a higher compression level, or split your files into more than one CAB file.");
184 }
185
186 public static Message CreateCabInsufficientDiskSpace()
187 {
188 return Message(null, Ids.CreateCabInsufficientDiskSpace, "An error (ERROR_DISK_FULL) was returned while creating a CAB file. This means you have insufficient disk space. Clear disk space and try again.");
189 }
190
191 public static Message CubeFileNotFound(string cubeFile)
192 {
193 return Message(null, Ids.CubeFileNotFound, "The cube file '{0}' cannot be found. This file is required for MSI validation.", cubeFile);
194 }
195
196 public static Message CustomActionMultipleSources(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string attributeName1, string attributeName2, string attributeName3, string attributeName4, string attributeName5)
197 {
198 return Message(sourceLineNumbers, Ids.CustomActionMultipleSources, "The {0}/@{1} attribute cannot coexist with a previously specified attribute on this element. The {0} element may only have one of the following source attributes specified at a time: {2}, {3}, {4}, {5}, or {6}.", elementName, attributeName, attributeName1, attributeName2, attributeName3, attributeName4, attributeName5);
199 }
200
201 public static Message CustomActionMultipleTargets(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string attributeName1, string attributeName2, string attributeName3, string attributeName4, string attributeName5, string attributeName6, string attributeName7)
202 {
203 return Message(sourceLineNumbers, Ids.CustomActionMultipleTargets, "The {0}/@{1} attribute cannot coexist with a previously specified attribute on this element. The {0} element may only have one of the following target attributes specified at a time: {2}, {3}, {4}, {5}, {6}, {7}, or {8}.", elementName, attributeName, attributeName1, attributeName2, attributeName3, attributeName4, attributeName5, attributeName6, attributeName7);
204 }
205
206 public static Message CustomActionSequencedInModule(SourceLineNumber sourceLineNumbers, string sequenceTableName, string actionName)
207 {
208 return Message(sourceLineNumbers, Ids.CustomActionSequencedInModule, "The {0} table contains a custom action '{1}' that has a sequence number specified. The Sequence attribute is not allowed for custom actions in a merge module. Please remove the action or use the Before or After attributes to specify where this action should be sequenced relative to another action.", sequenceTableName, actionName);
209 }
210
211 public static Message CustomTableIllegalColumnWidth(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, int value)
212 {
213 return Message(sourceLineNumbers, Ids.CustomTableIllegalColumnWidth, "The {0}/@{1} attribute's value, '{2}', is not a valid column width. Valid column widths are 2 or 4.", elementName, attributeName, value);
214 }
215
216 public static Message CustomTableMissingPrimaryKey(SourceLineNumber sourceLineNumbers)
217 {
218 return Message(sourceLineNumbers, Ids.CustomTableMissingPrimaryKey, "The CustomTable is missing a Column element with the PrimaryKey attribute set to 'yes'. At least one column must be marked as the primary key.");
219 }
220
221 public static Message CustomTableNameTooLong(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value)
222 {
223 return Message(sourceLineNumbers, Ids.CustomTableNameTooLong, "The {0}/@{1} attribute's value, '{2}', is too long for a table name. It cannot be more than than 31 characters long.", elementName, attributeName, value);
224 }
225
226 public static Message DatabaseSchemaMismatch(SourceLineNumber sourceLineNumbers, string tableName)
227 {
228 return Message(sourceLineNumbers, Ids.DatabaseSchemaMismatch, "The table definition of '{0}' in the target database does not match the table definition in the updated database. A transform requires that the target database schema match the updated database schema.", tableName);
229 }
230
231 public static Message DirectoryPathRequired(string parameter)
232 {
233 return Message(null, Ids.DirectoryPathRequired, "The parameter '{0}' must be followed by a directory path.", parameter);
234 }
235
236 public static Message DisallowedMsiProperty(SourceLineNumber sourceLineNumbers, string property, string illegalValueList)
237 {
238 return Message(sourceLineNumbers, Ids.DisallowedMsiProperty, "The '{0}' MsiProperty is controlled by the bootstrapper and cannot be authored. (Illegal properties are: {1}.) Remove the MsiProperty element.", property, illegalValueList);
239 }
240
241 public static Message DuplicateCabinetName(SourceLineNumber sourceLineNumbers, string cabinetName)
242 {
243 return Message(sourceLineNumbers, Ids.DuplicateCabinetName, "Duplicate cabinet name '{0}' found.", cabinetName);
244 }
245
246 public static Message DuplicateCabinetName2(SourceLineNumber sourceLineNumbers, string cabinetName)
247 {
248 return Message(sourceLineNumbers, Ids.DuplicateCabinetName2, "Duplicate cabinet name '{0}' error related to previous error.", cabinetName);
249 }
250
251 public static Message DuplicateComponentGuids(SourceLineNumber sourceLineNumbers, string componentId, string guid, string type, string keyPath)
252 {
253 return Message(sourceLineNumbers, Ids.DuplicateComponentGuids, "Component/@Id='{0}' with {2} '{3}' has a @Guid value '{1}' that duplicates another component in this package. It is recommended to give each component its own unique GUID.", componentId, guid, type, keyPath);
254 }
255
256 public static Message DuplicateContextValue(SourceLineNumber sourceLineNumbers, string contextValue)
257 {
258 return Message(sourceLineNumbers, Ids.DuplicateContextValue, "The context value '{0}' was duplicated. Context values must be distinct.", contextValue);
259 }
260
261 public static Message DuplicatedUiLocalization(SourceLineNumber sourceLineNumbers, string controlName, string dialogName)
262 {
263 return Message(sourceLineNumbers, Ids.DuplicatedUiLocalization, "The localization for control {0} in dialog {1} is duplicated. Only one localization per control is allowed.", controlName, dialogName);
264 }
265
266 public static Message DuplicatedUiLocalization(SourceLineNumber sourceLineNumbers, string dialogName)
267 {
268 return Message(sourceLineNumbers, Ids.DuplicatedUiLocalization, "The localization for dialog {0} is duplicated. Only one localization per dialog is allowed.", dialogName);
269 }
270
271 public static Message DuplicateExtensionPreprocessorType(string extension, string variablePrefix, string collidingExtension)
272 {
273 return Message(null, Ids.DuplicateExtensionPreprocessorType, "The extension '{0}' uses the same preprocessor variable prefix, '{1}', as previously loaded extension '{2}'. Please remove one of the extensions or rename the prefix to avoid the collision.", extension, variablePrefix, collidingExtension);
274 }
275
276 public static Message DuplicateExtensionTable(string extension, string tableName)
277 {
278 return Message(null, Ids.DuplicateExtensionTable, "The extension '{0}' contains a definition for table '{1}' that collides with a previously loaded table definition. Please remove one of the conflicting extensions or rename one of the tables to avoid the collision.", extension, tableName);
279 }
280
281 public static Message DuplicateExtensionXmlSchemaNamespace(string extension, string extensionXmlSchemaNamespace, string collidingExtension)
282 {
283 return Message(null, Ids.DuplicateExtensionXmlSchemaNamespace, "The extension '{0}' uses the same xml schema namespace, '{1}', as previously loaded extension '{2}'. Please either remove one of the extensions or rename the xml schema namespace to avoid the collision.", extension, extensionXmlSchemaNamespace, collidingExtension);
284 }
285
286 public static Message DuplicateFileId(string fileId)
287 {
288 return Message(null, Ids.DuplicateFileId, "Multiple files with ID '{0}' exist. Windows Installer does not support file IDs that differ only by case. Change the file IDs to be unique.", fileId);
289 }
290
291 public static Message DuplicateLocalizationIdentifier(SourceLineNumber sourceLineNumbers, string localizationId)
292 {
293 return Message(sourceLineNumbers, Ids.DuplicateLocalizationIdentifier, "The localization identifier '{0}' has been duplicated in multiple locations. A common cause is a bundle .wixproj that automatically loads .wxl files that are intended for the bootstrapper application. You can turn off that behavior by setting the EnableDefaultEmbeddedResourceItems property to false.", localizationId);
294 }
295
296 public static Message DuplicateModuleCaseInsensitiveFileIdentifier(SourceLineNumber sourceLineNumbers, string moduleId, string fileId1, string fileId2)
297 {
298 return Message(sourceLineNumbers, Ids.DuplicateModuleCaseInsensitiveFileIdentifier, "The merge module '{0}' contains 2 or more file identifiers that only differ by case: '{1}' and '{2}'. The WiX toolset extracts merge module files to the file system using these identifiers. Since most file systems are not case-sensitive a collision is likely. Please contact the owner of the merge module for a fix.", moduleId, fileId1, fileId2);
299 }
300
301 public static Message DuplicateModuleFileIdentifier(SourceLineNumber sourceLineNumbers, string moduleId, string fileId)
302 {
303 return Message(sourceLineNumbers, Ids.DuplicateModuleFileIdentifier, "The merge module '{0}' contains a file identifier, '{1}', that is duplicated either in another merge module or in a File/@Id attribute. File identifiers must be unique. Please change one of the file identifiers to a different value.", moduleId, fileId);
304 }
305
306 public static Message DuplicatePrimaryKey(SourceLineNumber sourceLineNumbers, string primaryKey, string tableName)
307 {
308 return Message(sourceLineNumbers, Ids.DuplicatePrimaryKey, "The primary key '{0}' is duplicated in table '{1}'. Please remove one of the entries or rename a part of the primary key to avoid the collision.", primaryKey, tableName);
309 }
310
311 public static Message DuplicateProviderDependencyKey(string providerKey, string packageId)
312 {
313 return Message(null, Ids.DuplicateProviderDependencyKey, "The provider dependency key '{0}' was already imported from the package with Id '{1}'. Please remove the Provides element with the key '{0}' from the package authoring.", providerKey, packageId);
314 }
315
316 public static Message DuplicateSourcesForOutput(string sourceList, string outputFile)
317 {
318 return Message(null, Ids.DuplicateSourcesForOutput, "Multiple source files ({0}) have resulted in the same output file '{1}'. This is likely because the source files only differ in extension or path. Rename the source files to avoid this problem.", sourceList, outputFile);
319 }
320
321 public static Message DuplicateTransform(string transform)
322 {
323 return Message(null, Ids.DuplicateTransform, "The transform {0} was included twice on the command line. Each transform can be applied to a patch only once.", transform);
324 }
325
326 public static Message DuplicateVariableDefinition(string variableName, string variableValue, string variableCollidingValue)
327 {
328 return Message(null, Ids.DuplicateVariableDefinition, "The variable '{0}' with value '{1}' was previously declared with value '{2}'.", variableName, variableValue, variableCollidingValue);
329 }
330
331 public static Message ExampleGuid(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value)
332 {
333 return Message(sourceLineNumbers, Ids.ExampleGuid, "The {0}/@{1} attribute's value, '{2}', is not a legal Guid value. A Guid needs to be generated and put in place of '{2}' in the source file.", elementName, attributeName, value);
334 }
335
336 public static Message ExpectedArgument(string argument)
337 {
338 return Message(null, Ids.ExpectedArgument, "{0} is expected to be followed by a value. See -? for additional detail.", argument);
339 }
340
341 public static Message ExpectedAttribute(SourceLineNumber sourceLineNumbers, string elementName, string attributeName) 24 public static Message ExpectedAttribute(SourceLineNumber sourceLineNumbers, string elementName, string attributeName)
342 { 25 {
343 return Message(sourceLineNumbers, Ids.ExpectedAttribute, "The {0}/@{1} attribute was not found; it is required.", elementName, attributeName); 26 return Message(sourceLineNumbers, Ids.ExpectedAttribute, "The {0}/@{1} attribute was not found; it is required.", elementName, attributeName);
@@ -363,46 +46,6 @@ namespace WixToolset.Data
363 return Message(sourceLineNumbers, Ids.ExpectedAttribute, "The {0}/@{1} attribute was not found; it is required unless the attribute {2} has a value of '{3}'.", elementName, attributeName, otherAttributeName, otherAttributeValue, otherAttributeValueUnless); 46 return Message(sourceLineNumbers, Ids.ExpectedAttribute, "The {0}/@{1} attribute was not found; it is required unless the attribute {2} has a value of '{3}'.", elementName, attributeName, otherAttributeName, otherAttributeValue, otherAttributeValueUnless);
364 } 47 }
365 48
366 public static Message ExpectedAttributeInElementOrParent(SourceLineNumber sourceLineNumbers, string elementName, string attributeName)
367 {
368 return Message(sourceLineNumbers, Ids.ExpectedAttributeInElementOrParent, "The {0}/@{1} attribute was not found or empty; it is required unless it is specified in the parent element.", elementName, attributeName);
369 }
370
371 public static Message ExpectedAttributeInElementOrParent(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string parentElementName)
372 {
373 return Message(sourceLineNumbers, Ids.ExpectedAttributeInElementOrParent, "The {0}/@{1} attribute was not found or empty; it is required, or it can be specified in the parent {2} element.", elementName, attributeName, parentElementName);
374 }
375
376 public static Message ExpectedAttributeInElementOrParent(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string parentElementName, string parentAttributeName)
377 {
378 return Message(sourceLineNumbers, Ids.ExpectedAttributeInElementOrParent, "The {0}/@{1} attribute was not found or empty; it is required, or it can be specified in the parent {2}/@{3} attribute.", elementName, attributeName, parentElementName, parentAttributeName);
379 }
380
381 public static Message ExpectedAttributeWithValueWithOtherAttribute(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string attributeName2)
382 {
383 return Message(sourceLineNumbers, Ids.ExpectedAttributeWithValueWithOtherAttribute, "The {0}/@{1} attribute is required to have a value when attribute {2} is present.", elementName, attributeName, attributeName2);
384 }
385
386 public static Message ExpectedAttributeOrElement(SourceLineNumber sourceLineNumbers, string parentElement, string attribute, string childElement)
387 {
388 return Message(sourceLineNumbers, Ids.ExpectedAttributeOrElement, "Element '{0}' missing attribute '{1}' or child element '{2}'. Exactly one of those is required.", parentElement, attribute, childElement);
389 }
390
391 public static Message ExpectedAttributeOrElementWithOtherAttribute(SourceLineNumber sourceLineNumbers, string parentElement, string attribute, string childElement, string otherAttribute)
392 {
393 return Message(sourceLineNumbers, Ids.ExpectedAttributeOrElementWithOtherAttribute, "Element '{0}' missing attribute '{1}' or child element '{2}'. Exactly one of those is required when attribute '{3}' is specified.", parentElement, attribute, childElement, otherAttribute);
394 }
395
396 public static Message ExpectedAttributeOrElementWithOtherAttribute(SourceLineNumber sourceLineNumbers, string parentElement, string attribute, string childElement, string otherAttribute, string otherAttributeValue)
397 {
398 return Message(sourceLineNumbers, Ids.ExpectedAttributeOrElementWithOtherAttribute, "Element '{0}' missing attribute '{1}' or child element '{2}'. Exactly one of those is required when attribute '{3}' is specified with value '{4}'.", parentElement, attribute, childElement, otherAttribute, otherAttributeValue);
399 }
400
401 public static Message ExpectedAttributeOrElementWithoutOtherAttribute(SourceLineNumber sourceLineNumbers, string parentElement, string attribute, string childElement, string otherAttribute)
402 {
403 return Message(sourceLineNumbers, Ids.ExpectedAttributeOrElementWithoutOtherAttribute, "Element '{0}' missing attribute '{1}' or child element '{2}'. Exactly one of those is required when attribute '{3}' is not specified.", parentElement, attribute, childElement, otherAttribute);
404 }
405
406 public static Message ExpectedAttributes(SourceLineNumber sourceLineNumbers, string elementName, string attributeName1, string attributeName2) 49 public static Message ExpectedAttributes(SourceLineNumber sourceLineNumbers, string elementName, string attributeName1, string attributeName2)
407 { 50 {
408 return Message(sourceLineNumbers, Ids.ExpectedAttributes, "The {0} element's {1} or {2} attribute was not found; one of these is required.", elementName, attributeName1, attributeName2); 51 return Message(sourceLineNumbers, Ids.ExpectedAttributes, "The {0} element's {1} or {2} attribute was not found; one of these is required.", elementName, attributeName1, attributeName2);
@@ -448,54 +91,54 @@ namespace WixToolset.Data
448 return Message(sourceLineNumbers, Ids.ExpectedAttributesWithOtherAttribute, "The {0} element's {1} or {2} attribute was not found; one of these is required when attribute {3} has a value of '{4}'.", elementName, attributeName1, attributeName2, otherAttributeName, otherAttributeValue); 91 return Message(sourceLineNumbers, Ids.ExpectedAttributesWithOtherAttribute, "The {0} element's {1} or {2} attribute was not found; one of these is required when attribute {3} has a value of '{4}'.", elementName, attributeName1, attributeName2, otherAttributeName, otherAttributeValue);
449 } 92 }
450 93
451 public static Message ExpectedAttributesWithoutOtherAttribute(SourceLineNumber sourceLineNumbers, string elementName, string attributeName1, string attributeName2, string otherAttributeName) 94 public static Message ExpectedAttributeInElementOrParent(SourceLineNumber sourceLineNumbers, string elementName, string attributeName)
452 { 95 {
453 return Message(sourceLineNumbers, Ids.ExpectedAttributesWithoutOtherAttribute, "The {0} element's {1} or {2} attribute was not found; one of these is required without attribute {3} present.", elementName, attributeName1, attributeName2, otherAttributeName); 96 return Message(sourceLineNumbers, Ids.ExpectedAttributeInElementOrParent, "The {0}/@{1} attribute was not found or empty; it is required unless it is specified in the parent element.", elementName, attributeName);
454 } 97 }
455 98
456 public static Message ExpectedAttributeWhenElementNotUnderElement(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string parentElementName) 99 public static Message ExpectedAttributeInElementOrParent(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string parentElementName)
457 { 100 {
458 return Message(sourceLineNumbers, Ids.ExpectedAttributeWhenElementNotUnderElement, "The '{0}/@{1}' attribute was not found; it is required when element '{0}' is not nested under a '{2}' element.", elementName, attributeName, parentElementName); 101 return Message(sourceLineNumbers, Ids.ExpectedAttributeInElementOrParent, "The {0}/@{1} attribute was not found or empty; it is required, or it can be specified in the parent {2} element.", elementName, attributeName, parentElementName);
459 } 102 }
460 103
461 public static Message ExpectedAttributeWithElement(SourceLineNumber sourceLineNumbers, string elementName, string attribute, string childElementName) 104 public static Message ExpectedAttributeInElementOrParent(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string parentElementName, string parentAttributeName)
462 { 105 {
463 return Message(sourceLineNumbers, Ids.ExpectedAttributeWithElement, "The {0} element must have attribute '{1}' when child element '{2}' is present.", elementName, attribute, childElementName); 106 return Message(sourceLineNumbers, Ids.ExpectedAttributeInElementOrParent, "The {0}/@{1} attribute was not found or empty; it is required, or it can be specified in the parent {2}/@{3} attribute.", elementName, attributeName, parentElementName, parentAttributeName);
464 } 107 }
465 108
466 public static Message ExpectedAttributeWithoutOtherAttribute(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string otherAttributeName) 109 public static Message ExpectedAttributeWithValueWithOtherAttribute(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string attributeName2)
467 { 110 {
468 return Message(sourceLineNumbers, Ids.ExpectedAttributeWithoutOtherAttributes, "The {0} element's {1} attribute was not found; it is required without attribute {2} present.", elementName, attributeName, otherAttributeName); 111 return Message(sourceLineNumbers, Ids.ExpectedAttributeWithValueWithOtherAttribute, "The {0}/@{1} attribute is required to have a value when attribute {2} is present.", elementName, attributeName, attributeName2);
469 } 112 }
470 113
471 public static Message ExpectedAttributeWithoutOtherAttributes(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string otherAttributeName1, string otherAttributeName2) 114 public static Message ExpectedAttributeOrElementWithOtherAttribute(SourceLineNumber sourceLineNumbers, string parentElement, string attribute, string childElement, string otherAttribute)
472 { 115 {
473 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); 116 return Message(sourceLineNumbers, Ids.ExpectedAttributeOrElementWithOtherAttribute, "Element '{0}' missing attribute '{1}' or child element '{2}'. Exactly one of those is required when attribute '{3}' is specified.", parentElement, attribute, childElement, otherAttribute);
474 } 117 }
475 118
476 public static Message ExpectedBinaryCategory(SourceLineNumber sourceLineNumbers) 119 public static Message ExpectedAttributeOrElementWithOtherAttribute(SourceLineNumber sourceLineNumbers, string parentElement, string attribute, string childElement, string otherAttribute, string otherAttributeValue)
477 { 120 {
478 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'."); 121 return Message(sourceLineNumbers, Ids.ExpectedAttributeOrElementWithOtherAttribute, "Element '{0}' missing attribute '{1}' or child element '{2}'. Exactly one of those is required when attribute '{3}' is specified with value '{4}'.", parentElement, attribute, childElement, otherAttribute, otherAttributeValue);
479 } 122 }
480 123
481 public static Message ExpectedClientPatchIdInWixMsp() 124 public static Message ExpectedAttributeOrElementWithoutOtherAttribute(SourceLineNumber sourceLineNumbers, string parentElement, string attribute, string childElement, string otherAttribute)
482 { 125 {
483 return Message(null, Ids.ExpectedClientPatchIdInWixMsp, "The WixMsp is missing the client patch ID. Recompile the patch source files with the latest WiX toolset."); 126 return Message(sourceLineNumbers, Ids.ExpectedAttributeOrElementWithoutOtherAttribute, "Element '{0}' missing attribute '{1}' or child element '{2}'. Exactly one of those is required when attribute '{3}' is not specified.", parentElement, attribute, childElement, otherAttribute);
484 } 127 }
485 128
486 public static Message ExpectedDecompiler(string identifier) 129 public static Message ExpectedAttributesWithoutOtherAttribute(SourceLineNumber sourceLineNumbers, string elementName, string attributeName1, string attributeName2, string otherAttributeName)
487 { 130 {
488 return Message(null, Ids.ExpectedDecompiler, "No decompiler was provided. {0} requires a decompiler.", identifier); 131 return Message(sourceLineNumbers, Ids.ExpectedAttributesWithoutOtherAttribute, "The {0} element's {1} or {2} attribute was not found; one of these is required without attribute {3} present.", elementName, attributeName1, attributeName2, otherAttributeName);
489 } 132 }
490 133
491 public static Message ExpectedDirectory(string directory) 134 public static Message ExpectedAttributeWhenElementNotUnderElement(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string parentElementName)
492 { 135 {
493 return Message(null, Ids.ExpectedDirectory, "The directory '{0}' could not be found.", directory); 136 return Message(sourceLineNumbers, Ids.ExpectedAttributeWhenElementNotUnderElement, "The '{0}/@{1}' attribute was not found; it is required when element '{0}' is not nested under a '{2}' element.", elementName, attributeName, parentElementName);
494 } 137 }
495 138
496 public static Message ExpectedDirectoryGotFile(string option, string path) 139 public static Message ExpectedAttributeWithoutOtherAttribute(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string otherAttributeName)
497 { 140 {
498 return Message(null, Ids.ExpectedDirectoryGotFile, "The {0} option requires a directory, but the provided path is a file: {1}", option, path); 141 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 } 142 }
500 143
501 public static Message ExpectedElement(SourceLineNumber sourceLineNumbers, string elementName) 144 public static Message ExpectedElement(SourceLineNumber sourceLineNumbers, string elementName)
@@ -523,101 +166,11 @@ namespace WixToolset.Data
523 return Message(sourceLineNumbers, Ids.ExpectedElement, "A {0} element must have at least one child element of type {1}, {2}, {3}, or {4}.", elementName, childName1, childName2, childName3, childName4); 166 return Message(sourceLineNumbers, Ids.ExpectedElement, "A {0} element must have at least one child element of type {1}, {2}, {3}, or {4}.", elementName, childName1, childName2, childName3, childName4);
524 } 167 }
525 168
526 public static Message ExpectedEndElement(SourceLineNumber sourceLineNumbers, string elementName)
527 {
528 return Message(sourceLineNumbers, Ids.ExpectedEndElement, "The end element matching the '{0}' start element was not found.", elementName);
529 }
530
531 public static Message ExpectedEndforeach(SourceLineNumber sourceLineNumbers)
532 {
533 return Message(sourceLineNumbers, Ids.ExpectedEndforeach, "A <?foreach?> statement was found that had no matching <?endforeach?>.");
534 }
535
536 public static Message ExpectedExpressionAfterNot(SourceLineNumber sourceLineNumbers, string expression)
537 {
538 return Message(sourceLineNumbers, Ids.ExpectedExpressionAfterNot, "Expecting an argument for 'NOT' in expression '{0}'.", expression);
539 }
540
541 public static Message ExpectedFileGotDirectory(string option, string path)
542 {
543 return Message(null, Ids.ExpectedFileGotDirectory, "The {0} option requires a file, but the provided path is a directory: {1}", option, path);
544 }
545
546 public static Message ExpectedMediaCabinet(SourceLineNumber sourceLineNumbers, string fileId, int diskId)
547 {
548 return Message(sourceLineNumbers, Ids.ExpectedMediaCabinet, "The file '{0}' should be compressed but is not part of a compressed media. Files will be compressed if either the File/@Compressed or Package/@Compressed attributes are set to 'yes'. This can be fixed by setting the Media/@Cabinet attribute for media '{1}'.", fileId, diskId);
549 }
550
551 public static Message ExpectedMediaRowsInWixMsp()
552 {
553 return Message(null, Ids.ExpectedMediaRowsInWixMsp, "The WixMsp has no media rows defined.");
554 }
555
556 public static Message ExpectedParentWithAttribute(SourceLineNumber sourceLineNumbers, string parentElement, string attribute, string grandparentElement) 169 public static Message ExpectedParentWithAttribute(SourceLineNumber sourceLineNumbers, string parentElement, string attribute, string grandparentElement)
557 { 170 {
558 return Message(sourceLineNumbers, Ids.ExpectedParentWithAttribute, "When the {0}/@{1} attribute is specified, the {0} element must be nested under a {2} element.", parentElement, attribute, grandparentElement); 171 return Message(sourceLineNumbers, Ids.ExpectedParentWithAttribute, "When the {0}/@{1} attribute is specified, the {0} element must be nested under a {2} element.", parentElement, attribute, grandparentElement);
559 } 172 }
560 173
561 public static Message ExpectedPatchIdInWixMsp()
562 {
563 return Message(null, Ids.ExpectedPatchIdInWixMsp, "The WixMsp is missing the patch ID.");
564 }
565
566 public static Message ExpectedSignedCabinetName(SourceLineNumber sourceLineNumbers)
567 {
568 return Message(sourceLineNumbers, Ids.ExpectedSignedCabinetName, "The Media/@Cabinet attribute was not found; it is required when this element contains a DigitalSignature child element. This is because Windows Installer can only verify the digital signatures of external cabinets. Please either remove the DigitalSignature element or specify a valid external cabinet name via the Cabinet attribute.");
569 }
570
571 public static Message ExpectedTableInMergeModule(string identifier)
572 {
573 return Message(null, Ids.ExpectedTableInMergeModule, "The table '{0}' was expected but was missing.", identifier);
574 }
575
576 public static Message ExpectedVariable(SourceLineNumber sourceLineNumbers, string expression)
577 {
578 return Message(sourceLineNumbers, Ids.ExpectedVariable, "A required variable was missing in the expression '{0}'.", expression);
579 }
580
581 public static Message ExpectedBindVariableValue(string variableId)
582 {
583 return Message(null, Ids.ExpectedBindVariableValue, "The bind variable '{0}' was declared without a value. Please specify a value for the variable.", variableId);
584 }
585
586 public static Message FamilyNameTooLong(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value, int length)
587 {
588 return Message(sourceLineNumbers, Ids.FamilyNameTooLong, "The {0}/@{1} attribute's value, '{2}', is {3} characters long. This is too long for a family name because the maximum allowed length is 8 characters long.", elementName, attributeName, value, length);
589 }
590
591 public static Message FeatureCannotFavorAndDisallowAdvertise(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value, string otherAttributeName, string otherValue)
592 {
593 return Message(sourceLineNumbers, Ids.FeatureCannotFavorAndDisallowAdvertise, "The {0}/@{1} attribute's value, '{2}', cannot coexist with the {3} attribute's value of '{4}'. These options would ask the installer to disallow the advertised state for this feature while at the same time favoring it.", elementName, attributeName, value, otherAttributeName, otherValue);
594 }
595
596 public static Message FeatureCannotFollowParentAndFavorLocalOrSource(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string otherAttributeName, string otherValue)
597 {
598 return Message(sourceLineNumbers, Ids.FeatureCannotFollowParentAndFavorLocalOrSource, "The {0}/@{1} attribute cannot be specified if the {2} attribute's value is '{3}'. These options would ask the installer to force this feature to follow the parent installation state and simultaneously favor a particular installation state just for this feature.", elementName, attributeName, otherAttributeName, otherValue);
599 }
600
601 public static Message FeatureConfigurableDirectoryNotUppercase(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value)
602 {
603 return Message(sourceLineNumbers, Ids.FeatureConfigurableDirectoryNotUppercase, "The {0}/@{1} attribute's value, '{2}', contains lowercase characters. Since this directory is user-configurable, it needs to be a public property. This means the value must be completely uppercase.", elementName, attributeName, value);
604 }
605
606 public static Message FeatureNameTooLong(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string attributeValue)
607 {
608 return Message(sourceLineNumbers, Ids.FeatureNameTooLong, "The {0}/@{1} attribute with value '{2}', is too long for a feature name. Due to limitations in the Windows Installer, feature names cannot be longer than 38 characters in length.", elementName, attributeName, attributeValue);
609 }
610
611 public static Message FileIdentifierNotFound(SourceLineNumber sourceLineNumbers, string fileIdentifier)
612 {
613 return Message(sourceLineNumbers, Ids.FileIdentifierNotFound, "The file row with identifier '{0}' could not be found.", fileIdentifier);
614 }
615
616 public static Message FileInUse(SourceLineNumber sourceLineNumbers, string file)
617 {
618 return Message(sourceLineNumbers, Ids.FileInUse, "The process can not access the file '{0}' because it is being used by another process.", file);
619 }
620
621 public static Message FileNotFound(SourceLineNumber sourceLineNumbers, string file) 174 public static Message FileNotFound(SourceLineNumber sourceLineNumbers, string file)
622 { 175 {
623 return Message(sourceLineNumbers, Ids.FileNotFound, "Cannot find the file '{0}'.", file); 176 return Message(sourceLineNumbers, Ids.FileNotFound, "Cannot find the file '{0}'.", file);
@@ -635,86 +188,16 @@ namespace WixToolset.Data
635 return Message(sourceLineNumbers, Ids.FileNotFound, "Cannot find the {0}file '{1}'. The following paths were checked: {2}", fileTypePrefix, file, combinedCheckedPaths); 188 return Message(sourceLineNumbers, Ids.FileNotFound, "Cannot find the {0}file '{1}'. The following paths were checked: {2}", fileTypePrefix, file, combinedCheckedPaths);
636 } 189 }
637 190
638 public static Message FileOrDirectoryPathRequired(string parameter)
639 {
640 return Message(null, Ids.FileOrDirectoryPathRequired, "The parameter '{0}' must be followed by a file or directory path. To specify a directory path the string must end with a backslash, for example: \"C:\\Path\\\".", parameter);
641 }
642
643 public static Message FilePathRequired(string filePurpose)
644 {
645 return Message(null, Ids.FilePathRequired, "The path to the {0} is required.", filePurpose);
646 }
647
648 public static Message FilePathRequired(string parameter, string filePurpose)
649 {
650 return Message(null, Ids.FilePathRequired, "The parameter '{0}' must be followed by a file path for the {1}.", parameter, filePurpose);
651 }
652
653 public static Message FileTooLarge(SourceLineNumber sourceLineNumbers, string fileName)
654 {
655 return Message(sourceLineNumbers, Ids.FileTooLarge, "'{0}' is too large, file size must be less than 2147483648.", fileName);
656 }
657
658 public static Message FileWriteError(string path, string error)
659 {
660 return Message(null, Ids.FileWriteError, "Error writing to the path: '{0}'. Error message: '{1}'", path, error);
661 }
662
663 public static Message FinishCabFailed()
664 {
665 return Message(null, Ids.FinishCabFailed, "An error (E_FAIL) was returned while finalizing a CAB file. This most commonly happens when creating a CAB file with more than 65535 files in it or a compressed size greater than 2GB. Either reduce the number of files in your installation package or split your installation package's files into more than one CAB file using the Media element.");
666 }
667
668 public static Message FullTempDirectory(string prefix, string directory)
669 {
670 return Message(null, Ids.FullTempDirectory, "Unable to create temporary file. A common cause is that too many files that have names beginning with '{0}' are present. Delete any unneeded files in the '{1}' directory and try again.", prefix, directory);
671 }
672
673 public static Message GACAssemblyIdentityWarning(SourceLineNumber sourceLineNumbers, string fileName, string assemblyName)
674 {
675 return Message(sourceLineNumbers, Ids.GACAssemblyIdentityWarning, "The destination name of file '{0}' does not match its assembly name '{1}' in your authoring. This will cause an installation failure for this assembly, because it will be installed to the Global Assembly Cache. To fix this error, update File/@Name of file '{0}' to be the actual name of the assembly.", fileName, assemblyName);
676 }
677
678 public static Message GacAssemblyNoStrongName(SourceLineNumber sourceLineNumbers, string assemblyName, string componentName)
679 {
680 return Message(sourceLineNumbers, Ids.GacAssemblyNoStrongName, "Assembly {0} in component {1} has no strong name and has been marked to be placed in the GAC. All assemblies installed to the GAC must have a valid strong name.", assemblyName, componentName);
681 }
682
683 public static Message GenericReadNotAllowed(SourceLineNumber sourceLineNumbers) 191 public static Message GenericReadNotAllowed(SourceLineNumber sourceLineNumbers)
684 { 192 {
685 return Message(sourceLineNumbers, Ids.GenericReadNotAllowed, "Permission elements cannot have GenericRead as the only permission specified. Include at least one other permission."); 193 return Message(sourceLineNumbers, Ids.GenericReadNotAllowed, "Permission elements cannot have GenericRead as the only permission specified. Include at least one other permission.");
686 } 194 }
687 195
688 public static Message GuidContainsLowercaseLetters(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value)
689 {
690 return Message(sourceLineNumbers, Ids.GuidContainsLowercaseLetters, "The {0}/@{1} attribute's value, '{2}', is a mixed-case guid. All letters in a guid value should be uppercase.", elementName, attributeName, value);
691 }
692
693 public static Message HarvestSourceNotSpecified()
694 {
695 return Message(null, Ids.HarvestSourceNotSpecified, "A harvest source must be specified after the harvest type and can be followed by harvester arguments.");
696 }
697
698 public static Message IdentifierNotFound(string type, string identifier)
699 {
700 return Message(null, Ids.IdentifierNotFound, "An expected identifier ('{1}', of type '{0}') was not found.", type, identifier);
701 }
702
703 public static Message IdentifierTooLongError(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value, int maxLength)
704 {
705 return Message(sourceLineNumbers, Ids.IdentifierTooLongError, "The {0}/@{1} attribute's value, '{2}', is too long. {0}/@{1} attribute's must be {3} characters long or less.", elementName, attributeName, value, maxLength);
706 }
707
708 public static Message IllegalAttributeExceptOnElement(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string expectedElementName) 196 public static Message IllegalAttributeExceptOnElement(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string expectedElementName)
709 { 197 {
710 return Message(sourceLineNumbers, Ids.IllegalAttributeExceptOnElement, "The {1} attribute can only be specified on the {2} element.", elementName, attributeName, expectedElementName); 198 return Message(sourceLineNumbers, Ids.IllegalAttributeExceptOnElement, "The {1} attribute can only be specified on the {2} element.", elementName, attributeName, expectedElementName);
711 } 199 }
712 200
713 public static Message IllegalAttributeInMergeModule(SourceLineNumber sourceLineNumbers, string elementName, string attributeName)
714 {
715 return Message(sourceLineNumbers, Ids.IllegalAttributeInMergeModule, "The {0}/@{1} attribute cannot be specified in a merge module.", elementName, attributeName);
716 }
717
718 public static Message IllegalAttributeValue(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value, params string[] legalValues) 201 public static Message IllegalAttributeValue(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value, params string[] legalValues)
719 { 202 {
720 return Message(sourceLineNumbers, Ids.IllegalAttributeValue, "The {0}/@{1} attribute's value, '{2}', is not one of the legal options: '{3}'.", elementName, attributeName, value, String.Join(", ", legalValues)); 203 return Message(sourceLineNumbers, Ids.IllegalAttributeValue, "The {0}/@{1} attribute's value, '{2}', is not one of the legal options: '{3}'.", elementName, attributeName, value, String.Join(", ", legalValues));
@@ -725,11 +208,6 @@ namespace WixToolset.Data
725 return Message(sourceLineNumbers, Ids.IllegalAttributeValueWhenNested, "The {0}/@{1} attribute value, '{2}', cannot be specified when the {0} element is nested underneath a {3} element.", elementName, attributeName, attrivuteValue, parentElementName); 208 return Message(sourceLineNumbers, Ids.IllegalAttributeValueWhenNested, "The {0}/@{1} attribute value, '{2}', cannot be specified when the {0} element is nested underneath a {3} element.", elementName, attributeName, attrivuteValue, parentElementName);
726 } 209 }
727 210
728 public static Message IllegalAttributeValueWithIllegalList(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value, string illegalValueList)
729 {
730 return Message(sourceLineNumbers, Ids.IllegalAttributeValueWithIllegalList, "The {0}/@{1} attribute's value, '{2}', is one of the illegal options: {3}.", elementName, attributeName, value, illegalValueList);
731 }
732
733 public static Message IllegalAttributeValueWithLegalList(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value, string legalValueList) 211 public static Message IllegalAttributeValueWithLegalList(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value, string legalValueList)
734 { 212 {
735 return Message(sourceLineNumbers, Ids.IllegalAttributeValueWithLegalList, "The {0}/@{1} attribute's value, '{2}', is not one of the legal options: {3}.", elementName, attributeName, value, legalValueList); 213 return Message(sourceLineNumbers, Ids.IllegalAttributeValueWithLegalList, "The {0}/@{1} attribute's value, '{2}', is not one of the legal options: {3}.", elementName, attributeName, value, legalValueList);
@@ -755,21 +233,11 @@ namespace WixToolset.Data
755 return Message(sourceLineNumbers, Ids.IllegalAttributeValueWithoutOtherAttribute, "The {0}/@{1} attribute's value, '{2}', cannot be specified without attribute {3} present.", elementName, attributeName, attributeValue, otherAttributeName); 233 return Message(sourceLineNumbers, Ids.IllegalAttributeValueWithoutOtherAttribute, "The {0}/@{1} attribute's value, '{2}', cannot be specified without attribute {3} present.", elementName, attributeName, attributeValue, otherAttributeName);
756 } 234 }
757 235
758 public static Message IllegalAttributeWhenAdvertised(SourceLineNumber sourceLineNumbers, string elementName, string attributeName)
759 {
760 return Message(sourceLineNumbers, Ids.IllegalAttributeWhenAdvertised, "The {0}/@{1} attribute cannot be specified because the element is advertised.", elementName, attributeName);
761 }
762
763 public static Message IllegalAttributeWhenNested(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string parentElement) 236 public static Message IllegalAttributeWhenNested(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string parentElement)
764 { 237 {
765 return Message(sourceLineNumbers, Ids.IllegalAttributeWhenNested, "The {0}/@{1} attribute cannot be specified when the {0} element is nested underneath a {2} element. If this {0} is a member of a ComponentGroup where ComponentGroup/@{1} is set, then the {0}/@{1} attribute should be removed.", elementName, attributeName, parentElement); 238 return Message(sourceLineNumbers, Ids.IllegalAttributeWhenNested, "The {0}/@{1} attribute cannot be specified when the {0} element is nested underneath a {2} element. If this {0} is a member of a ComponentGroup where ComponentGroup/@{1} is set, then the {0}/@{1} attribute should be removed.", elementName, attributeName, parentElement);
766 } 239 }
767 240
768 public static Message IllegalAttributeWithInnerText(SourceLineNumber sourceLineNumbers, string elementName, string attributeName)
769 {
770 return Message(sourceLineNumbers, Ids.IllegalAttributeWithInnerText, "The {0}/@{1} attribute cannot be specified when the element has body text as well. Specify either the attribute or the body, but not both.", elementName, attributeName);
771 }
772
773 public static Message IllegalAttributeWithOtherAttribute(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string otherAttributeName) 241 public static Message IllegalAttributeWithOtherAttribute(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string otherAttributeName)
774 { 242 {
775 return Message(sourceLineNumbers, Ids.IllegalAttributeWithOtherAttribute, "The {0}/@{1} attribute cannot be specified when attribute {2} is present.", elementName, attributeName, otherAttributeName); 243 return Message(sourceLineNumbers, Ids.IllegalAttributeWithOtherAttribute, "The {0}/@{1} attribute cannot be specified when attribute {2} is present.", elementName, attributeName, otherAttributeName);
@@ -820,47 +288,6 @@ namespace WixToolset.Data
820 return Message(sourceLineNumbers, Ids.IllegalAttributeWithoutOtherAttributes, "The {0}/@{1} attribute can only be specified with one of the following attributes: {2}, {3}, {4}, or {5} present.", elementName, attributeName, otherAttributeName1, otherAttributeName2, otherAttributeName3, otherAttributeName4); 288 return Message(sourceLineNumbers, Ids.IllegalAttributeWithoutOtherAttributes, "The {0}/@{1} attribute can only be specified with one of the following attributes: {2}, {3}, {4}, or {5} present.", elementName, attributeName, otherAttributeName1, otherAttributeName2, otherAttributeName3, otherAttributeName4);
821 } 289 }
822 290
823 public static Message IllegalBinderClassName()
824 {
825 return Message(null, Ids.IllegalBinderClassName, "Illegal binder class name specified for -binder command line option.");
826 }
827
828 public static Message IllegalCabbingThreadCount(string numThreads)
829 {
830 return Message(null, Ids.IllegalCabbingThreadCount, "Illegal number of threads to create cabinets: '{0}' for -ct <N> command line option. Specify the number of threads to use like -ct 2.", numThreads);
831 }
832
833 public static Message IllegalCharactersInPath(string pathName)
834 {
835 return Message(null, Ids.IllegalCharactersInPath, "Illegal characters in path '{0}'. Ensure you provided a valid path to the file.", pathName);
836 }
837
838 public static Message IllegalCodepage(int codepage)
839 {
840 return Message(null, Ids.IllegalCodepage, "The code page '{0}' is not a valid Windows code page. Update the database's code page by modifying one of the following attributes: Package/@Codepage, Module/@Codepage, Patch/@Codepage, or WixLocalization/@Codepage.", codepage);
841 }
842
843 public static Message IllegalCodepage(SourceLineNumber sourceLineNumbers, int codepage)
844 {
845 return Message(sourceLineNumbers, Ids.IllegalCodepage, "The code page '{0}' is not a valid Windows code page. Update the database's code page by modifying one of the following attributes: Package/@Codepage, Module/@Codepage, Patch/@Codepage, or WixLocalization/@Codepage.", codepage);
846 }
847
848 public static Message IllegalCodepageAttribute(SourceLineNumber sourceLineNumbers, string codepage, string elementName, string attributeName)
849 {
850 return Message(sourceLineNumbers, Ids.IllegalCodepageAttribute, "The code page '{0}' is not a valid Windows code page. Please check the {1}/@{2} attribute value in your source file.", codepage, elementName, attributeName);
851 }
852
853 public static Message IllegalColumnName(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value)
854 {
855 return Message(sourceLineNumbers, Ids.IllegalColumnName, "The {0}/@{1} attribute's value, '{2}', is not a legal column name. It will collide with the sentinel values used in the _TransformView table.", elementName, attributeName, value);
856 }
857
858 public static Message IllegalCommandLineArgumentValue(string arg, string value, IEnumerable<string> validValues)
859 {
860 var combinedValidValues = String.Join(", ", validValues);
861 return Message(null, Ids.IllegalCommandLineArgumentValue, "The argument {0} value '{1}' is invalid. Use one of the following values {2}", arg, value, combinedValidValues);
862 }
863
864 public static Message IllegalComponentWithAutoGeneratedGuid(SourceLineNumber sourceLineNumbers) 291 public static Message IllegalComponentWithAutoGeneratedGuid(SourceLineNumber sourceLineNumbers)
865 { 292 {
866 return Message(sourceLineNumbers, Ids.IllegalComponentWithAutoGeneratedGuid, "The Component/@Guid attribute's value '*' is not valid for this component because it does not meet the criteria for having an automatically generated guid. Components using a Directory as a KeyPath or containing ODBCDataSource child elements cannot use an automatically generated guid. Make sure your component doesn't have a Directory as the KeyPath and move any ODBCDataSource child elements to components with explicit component guids."); 293 return Message(sourceLineNumbers, Ids.IllegalComponentWithAutoGeneratedGuid, "The Component/@Guid attribute's value '*' is not valid for this component because it does not meet the criteria for having an automatically generated guid. Components using a Directory as a KeyPath or containing ODBCDataSource child elements cannot use an automatically generated guid. Make sure your component doesn't have a Directory as the KeyPath and move any ODBCDataSource child elements to components with explicit component guids.");
@@ -871,16 +298,6 @@ namespace WixToolset.Data
871 return Message(sourceLineNumbers, Ids.IllegalComponentWithAutoGeneratedGuid, "The Component/@Guid attribute's value '*' is not valid for this component because it does not meet the criteria for having an automatically generated guid. Components with registry keypaths and files cannot use an automatically generated guid. Create multiple components, each with one file and/or one registry value keypath, to use automatically generated guids.", registryKeyPath); 298 return Message(sourceLineNumbers, Ids.IllegalComponentWithAutoGeneratedGuid, "The Component/@Guid attribute's value '*' is not valid for this component because it does not meet the criteria for having an automatically generated guid. Components with registry keypaths and files cannot use an automatically generated guid. Create multiple components, each with one file and/or one registry value keypath, to use automatically generated guids.", registryKeyPath);
872 } 299 }
873 300
874 public static Message IllegalCompressionLevel(SourceLineNumber sourceLineNumbers, string compressionLevel)
875 {
876 return Message(sourceLineNumbers, Ids.IllegalCompressionLevel, "The compression level '{0}' is not valid. Valid values are 'none', 'low', 'medium', 'high', and 'mszip'.", compressionLevel);
877 }
878
879 public static Message IllegalDefineStatement(SourceLineNumber sourceLineNumbers, string defineStatement)
880 {
881 return Message(sourceLineNumbers, Ids.IllegalDefineStatement, "The define statement '<?define {0}?>' is not well-formed. Define statements should be in the form <?define variableName = \"variable value\"?>.", defineStatement);
882 }
883
884 public static Message IllegalEmptyAttributeValue(SourceLineNumber sourceLineNumbers, string elementName, string attributeName) 301 public static Message IllegalEmptyAttributeValue(SourceLineNumber sourceLineNumbers, string elementName, string attributeName)
885 { 302 {
886 return Message(sourceLineNumbers, Ids.IllegalEmptyAttributeValue, "The {0}/@{1} attribute's value cannot be an empty string. If a value is not required, simply remove the entire attribute.", elementName, attributeName); 303 return Message(sourceLineNumbers, Ids.IllegalEmptyAttributeValue, "The {0}/@{1} attribute's value cannot be an empty string. If a value is not required, simply remove the entire attribute.", elementName, attributeName);
@@ -891,41 +308,11 @@ namespace WixToolset.Data
891 return Message(sourceLineNumbers, Ids.IllegalEmptyAttributeValue, "The {0}/@{1} attribute's value cannot be an empty string. To use the default value \"{2}\", simply remove the entire attribute.", elementName, attributeName, defaultValue); 308 return Message(sourceLineNumbers, Ids.IllegalEmptyAttributeValue, "The {0}/@{1} attribute's value cannot be an empty string. To use the default value \"{2}\", simply remove the entire attribute.", elementName, attributeName, defaultValue);
892 } 309 }
893 310
894 public static Message IllegalEnvironmentVariable(string environmentVariable, string value)
895 {
896 return Message(null, Ids.IllegalEnvironmentVariable, "The {0} environment variable is set to an invalid value of '{1}'.", environmentVariable, value);
897 }
898
899 public static Message IllegalFamilyName(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value)
900 {
901 return Message(sourceLineNumbers, Ids.IllegalFamilyName, "The {0}/@{1} attribute's value, '{2}', contains illegal characters for a family name. Legal values include letters, numbers, and underscores.", elementName, attributeName, value);
902 }
903
904 public static Message IllegalFileCompressionAttributes(SourceLineNumber sourceLineNumbers) 311 public static Message IllegalFileCompressionAttributes(SourceLineNumber sourceLineNumbers)
905 { 312 {
906 return Message(sourceLineNumbers, Ids.IllegalFileCompressionAttributes, "Cannot have both the MsidbFileAttributesCompressed and MsidbFileAttributesNoncompressed options set in a file attributes column."); 313 return Message(sourceLineNumbers, Ids.IllegalFileCompressionAttributes, "Cannot have both the MsidbFileAttributesCompressed and MsidbFileAttributesNoncompressed options set in a file attributes column.");
907 } 314 }
908 315
909 public static Message IllegalForeach(SourceLineNumber sourceLineNumbers, string foreachStatement)
910 {
911 return Message(sourceLineNumbers, Ids.IllegalForeach, "The foreach statement '{0}' is illegal. The proper format for foreach is <?foreach varName in valueList?>.", foreachStatement);
912 }
913
914 public static Message IllegalGeneratedGuidComponentUnversionedKeypath(SourceLineNumber sourceLineNumbers)
915 {
916 return Message(sourceLineNumbers, Ids.IllegalGeneratedGuidComponentUnversionedKeypath, "The Component/@Guid attribute's value '*' is not valid for this component because it does not meet the criteria for having an automatically generated guid. Components with more than one file cannot use an automatically generated guid unless a versioned file is the keypath and the other files are unversioned. This component's keypath is not versioned. Create multiple components to use automatically generated guids.");
917 }
918
919 public static Message IllegalGeneratedGuidComponentVersionedNonkeypath(SourceLineNumber sourceLineNumbers)
920 {
921 return Message(sourceLineNumbers, Ids.IllegalGeneratedGuidComponentVersionedNonkeypath, "The Component/@Guid attribute's value '*' is not valid for this component because it does not meet the criteria for having an automatically generated guid. Components with more than one file cannot use an automatically generated guid unless a versioned file is the keypath and the other files are unversioned. This component has a non-keypath file that is versioned. Create multiple components to use automatically generated guids.");
922 }
923
924 public static Message IllegalGuidValue(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value)
925 {
926 return Message(sourceLineNumbers, Ids.IllegalGuidValue, "The {0}/@{1} attribute's value, '{2}', is not a legal guid value.", elementName, attributeName, value);
927 }
928
929 public static Message IllegalIdentifier(SourceLineNumber sourceLineNumbers, string elementName, string value) 316 public static Message IllegalIdentifier(SourceLineNumber sourceLineNumbers, string elementName, string value)
930 { 317 {
931 return Message(sourceLineNumbers, Ids.IllegalIdentifier, "The {0} element's value, '{1}', is not a legal identifier. Identifiers may contain ASCII characters A-Z, a-z, digits, underscores (_), or periods (.). Every identifier must begin with either a letter or an underscore.", elementName, value); 318 return Message(sourceLineNumbers, Ids.IllegalIdentifier, "The {0} element's value, '{1}', is not a legal identifier. Identifiers may contain ASCII characters A-Z, a-z, digits, underscores (_), or periods (.). Every identifier must begin with either a letter or an underscore.", elementName, value);
@@ -946,21 +333,6 @@ namespace WixToolset.Data
946 return Message(sourceLineNumbers, Ids.IllegalIdentifier, "The {0}/@{1} attribute's value '{2}' contains an illegal identifier '{3}'. Identifiers may contain ASCII characters A-Z, a-z, digits, underscores (_), or periods (.). Every identifier must begin with either a letter or an underscore.", elementName, attributeName, value, identifier); 333 return Message(sourceLineNumbers, Ids.IllegalIdentifier, "The {0}/@{1} attribute's value '{2}' contains an illegal identifier '{3}'. Identifiers may contain ASCII characters A-Z, a-z, digits, underscores (_), or periods (.). Every identifier must begin with either a letter or an underscore.", elementName, attributeName, value, identifier);
947 } 334 }
948 335
949 public static Message IllegalIdentifierLooksLikeFormatted(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value)
950 {
951 return Message(sourceLineNumbers, Ids.IllegalIdentifierLooksLikeFormatted, "The {0}/@{1} attribute's value, '{2}', is not a legal identifier. The {0}/@{1} attribute does not support formatted string values, such as property names enclosed in brackets ([LIKETHIS]). The value must be the identifier of another element, such as the Directory/@Id attribute value.", elementName, attributeName, value);
952 }
953
954 public static Message IllegalInlineLocVariable(SourceLineNumber sourceLineNumbers, string variableName, string variableValue)
955 {
956 return Message(sourceLineNumbers, Ids.IllegalInlineLocVariable, "The localization variable '{0}' specifies an illegal inline default value of '{1}'. Localization variables cannot specify default values inline, instead the value should be specified in a WiX localization (.wxl) file.", variableName, variableValue);
957 }
958
959 public static Message IllegalIntegerInExpression(SourceLineNumber sourceLineNumbers, string expression)
960 {
961 return Message(sourceLineNumbers, Ids.IllegalIntegerInExpression, "An illegal number was found in the expression '{0}'.", expression);
962 }
963
964 public static Message IllegalIntegerValue(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value) 336 public static Message IllegalIntegerValue(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value)
965 { 337 {
966 return Message(sourceLineNumbers, Ids.IllegalIntegerValue, "The {0}/@{1} attribute's value, '{2}', is not a legal integer value. Legal integer values are from -2,147,483,648 to 2,147,483,647.", elementName, attributeName, value); 338 return Message(sourceLineNumbers, Ids.IllegalIntegerValue, "The {0}/@{1} attribute's value, '{2}', is not a legal integer value. Legal integer values are from -2,147,483,648 to 2,147,483,647.", elementName, attributeName, value);
@@ -976,94 +348,24 @@ namespace WixToolset.Data
976 return Message(sourceLineNumbers, Ids.IllegalLongFilename, "The {0}/@{1} attribute's value '{2}' contains a invalid filename '{3}'. Legal filenames contain no more than 260 characters and must contain at least one non-period character. Any character except for the follow may be used: \\ ? | > < : / * \".", elementName, attributeName, value, filename); 348 return Message(sourceLineNumbers, Ids.IllegalLongFilename, "The {0}/@{1} attribute's value '{2}' contains a invalid filename '{3}'. Legal filenames contain no more than 260 characters and must contain at least one non-period character. Any character except for the follow may be used: \\ ? | > < : / * \".", elementName, attributeName, value, filename);
977 } 349 }
978 350
979 public static Message IllegalLongValue(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value)
980 {
981 return Message(sourceLineNumbers, Ids.IllegalLongValue, "The {0}/@{1} attribute's value, '{2}', is not a legal long value. Legal long values are from -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807.", elementName, attributeName, value);
982 }
983
984 public static Message IllegalModuleExclusionLanguageAttributes(SourceLineNumber sourceLineNumbers)
985 {
986 return Message(sourceLineNumbers, Ids.IllegalModuleExclusionLanguageAttributes, "Cannot set both ExcludeLanguage and ExcludeExceptLanguage attributes on a ModuleExclusion element.");
987 }
988
989 public static Message IllegalParentAttributeWhenNested(SourceLineNumber sourceLineNumbers, string parentElementName, string parentAttributeName, string childElement) 351 public static Message IllegalParentAttributeWhenNested(SourceLineNumber sourceLineNumbers, string parentElementName, string parentAttributeName, string childElement)
990 { 352 {
991 return Message(sourceLineNumbers, Ids.IllegalParentAttributeWhenNested, "The {0}/@{1} attribute cannot be specified when a {2} element is nested underneath the {0} element.", parentElementName, parentAttributeName, childElement); 353 return Message(sourceLineNumbers, Ids.IllegalParentAttributeWhenNested, "The {0}/@{1} attribute cannot be specified when a {2} element is nested underneath the {0} element.", parentElementName, parentAttributeName, childElement);
992 } 354 }
993 355
994 public static Message IllegalPathForGeneratedComponentGuid(SourceLineNumber sourceLineNumbers, string componentName, string keyFilePath)
995 {
996 return Message(sourceLineNumbers, Ids.IllegalPathForGeneratedComponentGuid, "The component '{0}' has a key file with path '{1}'. Since this path is not rooted in one of the standard directories (like ProgramFilesFolder), this component does not fit the criteria for having an automatically generated guid. (This error may also occur if a path contains a likely standard directory such as nesting a directory with name \"Common Files\" under ProgramFilesFolder.)", componentName, keyFilePath);
997 }
998
999 public static Message IllegalPropertyCustomActionAttributes(SourceLineNumber sourceLineNumbers)
1000 {
1001 return Message(sourceLineNumbers, Ids.IllegalPropertyCustomActionAttributes, "The CustomAction sets a property but its Execute attribute is not 'immediate' (the default). Property-setting custom actions cannot be deferred.\"");
1002 }
1003
1004 public static Message IllegalRelativeLongFilename(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value) 356 public static Message IllegalRelativeLongFilename(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value)
1005 { 357 {
1006 return Message(sourceLineNumbers, Ids.IllegalRelativeLongFilename, "The {0}/@{1} attribute's value, '{2}', is not a valid relative long name because it contains illegal characters. Legal relative long names contain no more than 260 characters and must contain at least one non-period character. Any character except for the follow may be used: ? | > < : / * \".", elementName, attributeName, value); 358 return Message(sourceLineNumbers, Ids.IllegalRelativeLongFilename, "The {0}/@{1} attribute's value, '{2}', is not a valid relative long name because it contains illegal characters. Legal relative long names contain no more than 260 characters and must contain at least one non-period character. Any character except for the follow may be used: ? | > < : / * \".", elementName, attributeName, value);
1007 } 359 }
1008 360
1009 public static Message IllegalRootDirectory(SourceLineNumber sourceLineNumbers, string directoryId) 361 public static Message TooManyElements(SourceLineNumber sourceLineNumbers, string elementName, string childElementName, int expectedInstances)
1010 {
1011 return Message(sourceLineNumbers, Ids.IllegalRootDirectory, "The Directory with Id '{0}' is not a valid root directory. There may only be a single root directory per product or module and its Id attribute value must be 'TARGETDIR' and its Name attribute value must be 'SourceDir'.", directoryId);
1012 }
1013
1014 public static Message IllegalSearchIdForParentDepth(SourceLineNumber sourceLineNumbers, string id, string parentId)
1015 {
1016 return Message(sourceLineNumbers, Ids.IllegalSearchIdForParentDepth, "When the parent DirectorySearch/@Depth attribute is greater than 1 for the DirectorySearch '{1}', the FileSearch/@Id attribute must be absent for FileSearch '{0}' unless the parent DirectorySearch/@AssignToProperty attribute value is 'yes'. Remove the FileSearch/@Id attribute for '{0}' to resolve this issue.", id, parentId);
1017 }
1018
1019 public static Message IllegalShortFilename(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value)
1020 {
1021 return Message(sourceLineNumbers, Ids.IllegalShortFilename, "The {0}/@{1} attribute's value, '{2}', is not a valid 8.3-compliant name. Legal names contain no more than 8 non-period characters followed by an optional period and extension of no more than 3 non-period characters. Any character except for the follow may be used: \\ ? | > < : / * \" + , ; = [ ] (space).", elementName, attributeName, value);
1022 }
1023
1024 public static Message IllegalSuppressWarningId(string suppressedId)
1025 {
1026 return Message(null, Ids.IllegalSuppressWarningId, "Illegal value '{0}' for the -sw<N> command line option. Specify a particular warning number, like '-sw6' to suppress the warning with ID 6, or '-sw' alone to suppress all warnings.", suppressedId);
1027 }
1028
1029 public static Message IllegalTargetDirDefaultDir(SourceLineNumber sourceLineNumbers, string defaultDir)
1030 {
1031 return Message(sourceLineNumbers, Ids.IllegalTargetDirDefaultDir, "The 'TARGETDIR' directory has an illegal DefaultDir value of '{0}'. The DefaultDir value is created from the *Name attributes of the Directory element. The TARGETDIR directory is a special directory which must have its Name attribute set to 'SourceDir'.", defaultDir);
1032 }
1033
1034 public static Message IllegalTerminalServerCustomActionAttributes(SourceLineNumber sourceLineNumbers)
1035 {
1036 return Message(sourceLineNumbers, Ids.IllegalTerminalServerCustomActionAttributes, "The CustomAction/@TerminalServerAware attribute's value is 'yes' but the Execute attribute is not 'deferred,' 'rollback,' or 'commit.' Terminal-Server-aware custom actions must be deferred, rollback, or commit custom actions. For more information, see https://learn.microsoft.com/en-us/windows/win32/msi/terminalserver .\"");
1037 }
1038
1039 public static Message IllegalValidationArguments()
1040 {
1041 return Message(null, Ids.IllegalValidationArguments, "You may only specify a single default type using -t or specify custom validation using -serr and -val.");
1042 }
1043
1044 public static Message IllegalVersionValue(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value)
1045 {
1046 return Message(sourceLineNumbers, Ids.IllegalVersionValue, "The {0}/@{1} attribute's value, '{2}', is not a valid version. Specify a four-part version or semantic version, such as '#.#.#.#' or '#.#.#-label.#'.", elementName, attributeName, value);
1047 }
1048
1049 public static Message IllegalWarningIdAsError(string warningId)
1050 {
1051 return Message(null, Ids.IllegalWarningIdAsError, "Illegal value '{0}' for the -wx<N> command line option. Specify a particular warning number, like '-wx6' to display the warning with ID 6 as an error, or '-wx' alone to suppress all warnings.", warningId);
1052 }
1053
1054 public static Message IllegalBindVariablePrefix(SourceLineNumber sourceLineNumbers, string variableId)
1055 {
1056 return Message(sourceLineNumbers, Ids.IllegalBindVariablePrefix, "The bind variable $(wix.{0}) uses an illegal prefix '$'. Please use the '!' prefix instead.", variableId);
1057 }
1058
1059 public static Message IllegalYesNoAlwaysValue(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value)
1060 { 362 {
1061 return Message(sourceLineNumbers, Ids.IllegalYesNoAlwaysValue, "The {0}/@{1} attribute's value, '{2}', is not a legal yes/no/always value. The only legal values are 'always', 'no' or 'yes'.", elementName, attributeName, value); 363 return Message(sourceLineNumbers, Ids.TooManyElements, "The {0} element contains an unexpected child element '{1}'. The '{1}' element may only occur {2} time(s) under the {0} element.", elementName, childElementName, expectedInstances);
1062 } 364 }
1063 365
1064 public static Message IllegalYesNoDefaultValue(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value) 366 public static Message IdentifierTooLongError(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value, int maxLength)
1065 { 367 {
1066 return Message(sourceLineNumbers, Ids.IllegalYesNoDefaultValue, "The {0}/@{1} attribute's value, '{2}', is not a legal yes/no/default value. The only legal values are 'default', 'no' or 'yes'.", elementName, attributeName, value); 368 return Message(sourceLineNumbers, Ids.IdentifierTooLongError, "The {0}/@{1} attribute's value, '{2}', is too long. {0}/@{1} attribute's must be {3} characters long or less.", elementName, attributeName, value, maxLength);
1067 } 369 }
1068 370
1069 public static Message IllegalYesNoValue(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value) 371 public static Message IllegalYesNoValue(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value)
@@ -1071,41 +373,6 @@ namespace WixToolset.Data
1071 return Message(sourceLineNumbers, Ids.IllegalYesNoValue, "The {0}/@{1} attribute's value, '{2}', is not a legal yes/no value. The only legal values are 'no' and 'yes'.", elementName, attributeName, value); 373 return Message(sourceLineNumbers, Ids.IllegalYesNoValue, "The {0}/@{1} attribute's value, '{2}', is not a legal yes/no value. The only legal values are 'no' and 'yes'.", elementName, attributeName, value);
1072 } 374 }
1073 375
1074 public static Message ImplicitComponentKeyPath(SourceLineNumber sourceLineNumbers, string componentId)
1075 {
1076 return Message(sourceLineNumbers, Ids.ImplicitComponentKeyPath, "The component '{0}' does not have an explicit key path specified. If the ordering of the elements under the Component element changes, the key path will also change. To prevent accidental changes, the key path should be set to 'yes' in one of the following locations: Component/@KeyPath, File/@KeyPath, ODBCDataSource/@KeyPath, or Registry/@KeyPath.", componentId);
1077 }
1078
1079 public static Message InlineDirectorySyntaxRequiresPath(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value, string identifier)
1080 {
1081 return Message(sourceLineNumbers, Ids.InlineDirectorySyntaxRequiresPath, "The {0}/@{1} attribute's value '{2}' only specifies a directory reference. The inline directory syntax requires that at least one directory be specified in addition to the value. For example, use '{3}:\\foo\\' to add a 'foo' directory.", elementName, attributeName, value, identifier);
1082 }
1083
1084 public static Message InsecureBundleFilename(string filename)
1085 {
1086 return Message(null, Ids.InsecureBundleFilename, "The file name '{0}' creates an insecure bundle. Windows will load unnecessary compatibility shims into a bundle with that file name. These compatibility shims can be DLL hijacked allowing attackers to compromise your customers' computer. Choose a different bundle file name.", filename);
1087 }
1088
1089 public static Message InsertInvalidSequenceActionOrder(SourceLineNumber sourceLineNumbers, string sequenceTableName, string actionNameBefore, string actionNameAfter, string actionNameNew)
1090 {
1091 return Message(sourceLineNumbers, Ids.InsertInvalidSequenceActionOrder, "Invalid order of actions {1} and {2} in sequence table {0}. Action {3} must occur after {1} and before {2}, but {2} is currently sequenced after {1}. Please fix the ordering or explicitly supply a location for the action {3}.", sequenceTableName, actionNameBefore, actionNameAfter, actionNameNew);
1092 }
1093
1094 public static Message InsertSequenceNoSpace(SourceLineNumber sourceLineNumbers, string sequenceTableName, string actionNameBefore, string actionNameAfter, string actionNameNew)
1095 {
1096 return Message(sourceLineNumbers, Ids.InsertSequenceNoSpace, "Not enough space exists to sequence action {3} in table {0}. It must be sequenced after {1} and before {2}, but those two actions are currently sequenced next to each other. Please move one of those actions to allow {3} to be inserted between them.", sequenceTableName, actionNameBefore, actionNameAfter, actionNameNew);
1097 }
1098
1099 public static Message InsufficientVersion(SourceLineNumber sourceLineNumbers, Version currentVersion, Version requiredVersion)
1100 {
1101 return Message(sourceLineNumbers, Ids.InsufficientVersion, "The current version of the toolset is {0}, but version {1} is required.", currentVersion, requiredVersion);
1102 }
1103
1104 public static Message InsufficientVersion(SourceLineNumber sourceLineNumbers, Version currentVersion, Version requiredVersion, string extension)
1105 {
1106 return Message(sourceLineNumbers, Ids.InsufficientVersion, "The current version of the extension '{2}' is {0}, but version {1} is required.", currentVersion, requiredVersion, extension);
1107 }
1108
1109 public static Message IntegralValueOutOfRange(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, int value, int minimum, int maximum) 376 public static Message IntegralValueOutOfRange(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, int value, int minimum, int maximum)
1110 { 377 {
1111 return Message(sourceLineNumbers, Ids.IntegralValueOutOfRange, "The {0}/@{1} attribute's value, '{2}', is not in the range of legal values. Legal values for this attribute are from {3} to {4}.", elementName, attributeName, value, minimum, maximum); 378 return Message(sourceLineNumbers, Ids.IntegralValueOutOfRange, "The {0}/@{1} attribute's value, '{2}', is not in the range of legal values. Legal values for this attribute are from {3} to {4}.", elementName, attributeName, value, minimum, maximum);
@@ -1126,201 +393,11 @@ namespace WixToolset.Data
1126 return Message(sourceLineNumbers, Ids.IntegralValueSentinelCollision, "The long integral value {0} collides with a sentinel value in the compiler code.", value); 393 return Message(sourceLineNumbers, Ids.IntegralValueSentinelCollision, "The long integral value {0} collides with a sentinel value in the compiler code.", value);
1127 } 394 }
1128 395
1129 public static Message InvalidAddedFileRowWithoutSequence(SourceLineNumber sourceLineNumbers, string fileRowId)
1130 {
1131 return Message(sourceLineNumbers, Ids.InvalidAddedFileRowWithoutSequence, "A row has been added to the File table with id '{1}' that does not have a sequence number assigned to it. Create your transform from a pair of msi's instead of xml outputs to get sequences assigned to your File table's rows.", fileRowId);
1132 }
1133
1134 public static Message InvalidAssemblyFile(SourceLineNumber sourceLineNumbers, string assemblyFile, string moreInformation)
1135 {
1136 return Message(sourceLineNumbers, Ids.InvalidAssemblyFile, "The assembly file '{0}' appears to be invalid. Please ensure this is a valid assembly file and that the user has the appropriate access rights to this file. More information: {1}", assemblyFile, moreInformation);
1137 }
1138
1139 public static Message InvalidBundle(string bundleExecutable)
1140 {
1141 return Message(null, Ids.InvalidBundle, "Unable to read bundle executable '{0}'. This is not a valid WiX bundle.", bundleExecutable);
1142 }
1143
1144 public static Message InvalidCabinetTemplate(SourceLineNumber sourceLineNumbers, string cabinetTemplate)
1145 {
1146 return Message(sourceLineNumbers, Ids.InvalidCabinetTemplate, "CabinetTemplate attribute's value '{0}' must contain '{{0}}' and should contain no more than 8 characters followed by an optional extension of no more than 3 characters. Any character except for the follow may be used: \\ ? | > < : / * \" + , ; = [ ] (space). The Windows Installer team has recommended following the 8.3 format for external cabinet files and any other naming scheme is officially unsupported (which means it is not guaranteed to work on all platforms).", cabinetTemplate);
1147 }
1148
1149 public static Message InvalidCommandLineFileName(string fileName, string error)
1150 {
1151 return Message(null, Ids.InvalidCommandLineFileName, "Invalid file name specified on the command line: '{0}'. Error message: '{1}'", fileName, error);
1152 }
1153
1154 public static Message InvalidBundleCondition(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string condition)
1155 {
1156 return Message(sourceLineNumbers, Ids.InvalidBundleCondition, "The {0}/@{1} attribute's value '{2}' is not a valid bundle condition.", elementName, attributeName, condition);
1157 }
1158
1159 public static Message InvalidDateTimeFormat(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value)
1160 {
1161 return Message(sourceLineNumbers, Ids.InvalidDateTimeFormat, "The {0}/@{1} attribute's value '{2}' is not a valid date/time value. A date/time value should follow the format YYYY-MM-DDTHH:mm:ss and be a valid date and time between 1980 and 2043, inclusive.", elementName, attributeName, value);
1162 }
1163
1164 public static Message InvalidDocumentElement(SourceLineNumber sourceLineNumbers, string elementName, string fileType, string expectedElementName) 396 public static Message InvalidDocumentElement(SourceLineNumber sourceLineNumbers, string elementName, string fileType, string expectedElementName)
1165 { 397 {
1166 return Message(sourceLineNumbers, Ids.InvalidDocumentElement, "The document element name '{0}' is invalid. A WiX {1} file must use '{2}' as the document element name.", elementName, fileType, expectedElementName); 398 return Message(sourceLineNumbers, Ids.InvalidDocumentElement, "The document element name '{0}' is invalid. A WiX {1} file must use '{2}' as the document element name.", elementName, fileType, expectedElementName);
1167 } 399 }
1168 400
1169 public static Message InvalidEmbeddedUIFileName(SourceLineNumber sourceLineNumbers, string codepage)
1170 {
1171 return Message(sourceLineNumbers, Ids.InvalidEmbeddedUIFileName, "The EmbeddedUI/@Name attribute value, '{0}', does not contain an extension. Windows Installer will not load an embedded UI DLL without an extension. Include an extension or just omit the Name attribute so it defaults to the file name portion of the Source attribute value.", codepage);
1172 }
1173
1174 public static Message CouldNotFindExtensionInPaths(string extensionPath, IEnumerable<string> checkedPaths)
1175 {
1176 return Message(null, Ids.InvalidExtension, "The extension '{0}' could not be found. Checked paths: {1}", extensionPath, String.Join(", ", checkedPaths));
1177 }
1178
1179 public static Message InvalidExtension(string extension)
1180 {
1181 return Message(null, Ids.InvalidExtension, "The extension '{0}' could not be loaded.", extension);
1182 }
1183
1184 public static Message InvalidExtension(string extension, string invalidReason)
1185 {
1186 return Message(null, Ids.InvalidExtension, "The extension '{0}' could not be loaded because of the following reason: {1}", extension, invalidReason);
1187 }
1188
1189 public static Message InvalidExtension(string extension, string extensionType, string expectedType)
1190 {
1191 return Message(null, Ids.InvalidExtension, "The extension '{0}' is the wrong type: '{1}'. The expected type was '{2}'.", extension, extensionType, expectedType);
1192 }
1193
1194 public static Message InvalidExtension(string extension, string extensionType, string expectedType1, string expectedType2)
1195 {
1196 return Message(null, Ids.InvalidExtension, "The extension '{0}' is the wrong type: '{1}'. The expected type was '{2}' or '{3}'.", extension, extensionType, expectedType1, expectedType2);
1197 }
1198
1199 public static Message InvalidExtensionType(string extension, string attributeType)
1200 {
1201 return Message(null, Ids.InvalidExtensionType, "Either '{1}' was not defined in the assembly or the type defined in extension '{0}' could not be loaded.", extension, attributeType);
1202 }
1203
1204 public static Message InvalidExtensionType(string extension, string className, string expectedType)
1205 {
1206 return Message(null, Ids.InvalidExtensionType, "The extension type '{1}' in extension '{0}' does not inherit from the expected class '{2}'.", extension, className, expectedType);
1207 }
1208
1209 public static Message InvalidExtensionType(string extension, string className, string exceptionType, string exceptionMessage)
1210 {
1211 return Message(null, Ids.InvalidExtensionType, "The type '{1}' in extension '{0}' could not be loaded. Exception type '{2}' returned the following message: {3}", extension, className, exceptionType, exceptionMessage);
1212 }
1213
1214 public static Message InvalidFileName(SourceLineNumber sourceLineNumbers, string fileName)
1215 {
1216 return Message(sourceLineNumbers, Ids.InvalidFileName, "Invalid file name '{0}'.", fileName);
1217 }
1218
1219 public static Message InvalidIdt(SourceLineNumber sourceLineNumbers, string idtFile)
1220 {
1221 return Message(sourceLineNumbers, Ids.InvalidIdt, "There was an error importing the file '{0}'.", idtFile);
1222 }
1223
1224 public static Message InvalidIdt(SourceLineNumber sourceLineNumbers, string idtFile, string tableName)
1225 {
1226 return Message(sourceLineNumbers, Ids.InvalidIdt, "There was an error importing table '{1}' from file '{0}'.", idtFile, tableName);
1227 }
1228
1229 public static Message InvalidKeyColumn(string tableName, string columnName, string foreignTableName, int foreignColumnNumber)
1230 {
1231 return Message(null, Ids.InvalidKeyColumn, "The definition for the '{0}' table's '{1}' column is an invalid foreign key relationship to the {2} table's column number {3}. It is not a valid foreign key table column number because it is too small (less than 1) or greater than the count of columns in the foreign table's definition.", tableName, columnName, foreignTableName, foreignColumnNumber);
1232 }
1233
1234 public static Message InvalidKeypathChange(SourceLineNumber sourceLineNumbers, string component, string transformPath)
1235 {
1236 return Message(sourceLineNumbers, Ids.InvalidKeypathChange, "Component '{0}' has a changed keypath in the transform '{1}'. Patches cannot change the keypath of a component.", component, transformPath);
1237 }
1238
1239 public static Message InvalidManifestContent(SourceLineNumber sourceLineNumbers, string fileName)
1240 {
1241 return Message(sourceLineNumbers, Ids.InvalidManifestContent, "The manifest '{0}' does not have the required assembly/assemblyIdentity element.", fileName);
1242 }
1243
1244 public static Message InvalidMergeLanguage(SourceLineNumber sourceLineNumbers, string mergeId, string mergeLanguage)
1245 {
1246 return Message(sourceLineNumbers, Ids.InvalidMergeLanguage, "The Merge element '{0}' specified an invalid language '{1}'. Verify that localization tokens are being properly resolved to a numeric LCID.", mergeId, mergeLanguage);
1247 }
1248
1249 public static Message InvalidFourPartVersion(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string version)
1250 {
1251 return Message(sourceLineNumbers, Ids.InvalidFourPartVersion, "Invalid {0}/@Version '{1}'. {0} version has a max value of \"65535.65535.65535.65535\" and must be all numeric.", elementName, version);
1252 }
1253
1254 public static Message InvalidPlatformValue(SourceLineNumber sourceLineNumbers, string value)
1255 {
1256 return Message(sourceLineNumbers, Ids.InvalidPlatformValue, "The Platform attribute has an invalid value {0}. Possible values are x86, x64, or arm64.", value);
1257 }
1258
1259 public static Message InvalidPreprocessorFunction(SourceLineNumber sourceLineNumbers, string variable)
1260 {
1261 return Message(sourceLineNumbers, Ids.InvalidPreprocessorFunction, "Ill-formed preprocessor function '${0}'. Functions must have a prefix (like 'fun.'), a name at least 1 character long, and matching opening and closing parentheses.", variable);
1262 }
1263
1264 public static Message InvalidPreprocessorFunctionAutoVersion(SourceLineNumber sourceLineNumbers)
1265 {
1266 return Message(sourceLineNumbers, Ids.InvalidPreprocessorFunctionAutoVersion, "Invalid AutoVersion template specified.");
1267 }
1268
1269 public static Message InvalidPreprocessorPragma(SourceLineNumber sourceLineNumbers, string variable)
1270 {
1271 return Message(sourceLineNumbers, Ids.InvalidPreprocessorPragma, "Malformed preprocessor pragma '{0}'. Pragmas must have a prefix, a name of at least 1 character long, and be followed by optional arguments.", variable);
1272 }
1273
1274 public static Message InvalidPreprocessorVariable(SourceLineNumber sourceLineNumbers, string variable)
1275 {
1276 return Message(sourceLineNumbers, Ids.InvalidPreprocessorVariable, "Ill-formed preprocessor variable '$({0})'. Variables must have a prefix (like 'var.', 'env.', or 'sys.') and a name at least 1 character long. If the literal string '$({0})' is desired, use '$$({0})'.", variable);
1277 }
1278
1279 public static Message InvalidRemoveComponent(SourceLineNumber sourceLineNumbers, string component, string feature, string transformPath)
1280 {
1281 return Message(sourceLineNumbers, Ids.InvalidRemoveComponent, "Removing component '{0}' from feature '{1}' is not supported. Either the component was removed or the guid changed in the transform '{2}'. Add the component back, undo the change to the component guid, or remove the entire feature.", component, feature, transformPath);
1282 }
1283
1284 public static Message InvalidSequenceTable(string sequenceTableName)
1285 {
1286 return Message(null, Ids.InvalidSequenceTable, "Found an invalid sequence table '{0}'.", sequenceTableName);
1287 }
1288
1289 public static Message InvalidStringForCodepage(SourceLineNumber sourceLineNumbers, string codepage)
1290 {
1291 return Message(sourceLineNumbers, Ids.InvalidStringForCodepage, "A string was provided with characters that are not available in the specified database code page '{0}'. Either change these characters to ones that exist in the database's code page, or update the database's code page by modifying one of the following attributes: Package/@Codepage, Module/@Codepage, Patch/@Codepage, or WixLocalization/@Codepage.", codepage);
1292 }
1293
1294 public static Message InvalidStubExe(string filename)
1295 {
1296 return Message(null, Ids.InvalidStubExe, "Stub executable '{0}' is not a valid Win32 executable.", filename);
1297 }
1298
1299 public static Message InvalidSubExpression(SourceLineNumber sourceLineNumbers, string subExpression, string expression)
1300 {
1301 return Message(sourceLineNumbers, Ids.InvalidSubExpression, "Found invalid subexpression '{0}' in expression '{1}'.", subExpression, expression);
1302 }
1303
1304 public static Message InvalidSummaryInfoCodePage(SourceLineNumber sourceLineNumbers, int codePage)
1305 {
1306 return Message(sourceLineNumbers, Ids.InvalidSummaryInfoCodePage, "The code page '{0}' is invalid for summary information. You must specify an ANSI code page.", codePage);
1307 }
1308
1309 public static Message InvalidValidatorMessageType(string type)
1310 {
1311 return Message(null, Ids.InvalidValidatorMessageType, "Unknown validation message type '{0}'.", type);
1312 }
1313
1314 public static Message InvalidVariableDefinition(string variableDefinition)
1315 {
1316 return Message(null, Ids.InvalidVariableDefinition, "The variable definition '{0}' is not valid. Variable definitions should be in the form -dname=value where the value is optional.", variableDefinition);
1317 }
1318
1319 public static Message InvalidWixTransform(string fileName)
1320 {
1321 return Message(null, Ids.InvalidWixTransform, "The file '{0}' is not a valid WiX Transform.", fileName);
1322 }
1323
1324 public static Message InvalidWixXmlNamespace(SourceLineNumber sourceLineNumbers, string wixElementName, string wixNamespace) 401 public static Message InvalidWixXmlNamespace(SourceLineNumber sourceLineNumbers, string wixElementName, string wixNamespace)
1325 { 402 {
1326 return Message(sourceLineNumbers, Ids.InvalidWixXmlNamespace, "The {0} element has no namespace. Please make the {0} element look like the following: <{0} xmlns=\"{1}\">.", wixElementName, wixNamespace); 403 return Message(sourceLineNumbers, Ids.InvalidWixXmlNamespace, "The {0} element has no namespace. Please make the {0} element look like the following: <{0} xmlns=\"{1}\">.", wixElementName, wixNamespace);
@@ -1331,644 +408,175 @@ namespace WixToolset.Data
1331 return Message(sourceLineNumbers, Ids.InvalidWixXmlNamespace, "The {0} element has an incorrect namespace of '{1}'. Please make the {0} element look like the following: <{0} xmlns=\"{2}\">.", wixElementName, elementNamespace, wixNamespace); 408 return Message(sourceLineNumbers, Ids.InvalidWixXmlNamespace, "The {0} element has an incorrect namespace of '{1}'. Please make the {0} element look like the following: <{0} xmlns=\"{2}\">.", wixElementName, elementNamespace, wixNamespace);
1332 } 409 }
1333 410
1334 public static Message InvalidXml(SourceLineNumber sourceLineNumbers, string fileType, string detail)
1335 {
1336 return Message(sourceLineNumbers, Ids.InvalidXml, "Not a valid {0} file; detail: {1}", fileType, detail);
1337 }
1338
1339 public static Message LocalizationVariableUnknown(SourceLineNumber sourceLineNumbers, string variableId)
1340 {
1341 return Message(sourceLineNumbers, Ids.LocalizationVariableUnknown, "The localization variable !(loc.{0}) is unknown. Please ensure the variable is defined.", variableId);
1342 }
1343
1344 public static Message MaximumCabinetSizeForLargeFileSplittingTooLarge(SourceLineNumber sourceLineNumbers, int maximumCabinetSizeForLargeFileSplitting, int maxValueOfMaxCabSizeForLargeFileSplitting)
1345 {
1346 return Message(sourceLineNumbers, Ids.MaximumCabinetSizeForLargeFileSplittingTooLarge, "'{0}' is too large. Reduce the size of maximum cabinet size for large file splitting. The maximum permitted value is '{1}' MB.", maximumCabinetSizeForLargeFileSplitting, maxValueOfMaxCabSizeForLargeFileSplitting);
1347 }
1348
1349 public static Message MaximumUncompressedMediaSizeTooLarge(SourceLineNumber sourceLineNumbers, int maximumUncompressedMediaSize)
1350 {
1351 return Message(sourceLineNumbers, Ids.MaximumUncompressedMediaSizeTooLarge, "'{0}' is too large. Reduce the size of maximum uncompressed media size.", maximumUncompressedMediaSize);
1352 }
1353
1354 public static Message MediaEmbeddedCabinetNameTooLong(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value, int length)
1355 {
1356 return Message(sourceLineNumbers, Ids.MediaEmbeddedCabinetNameTooLong, "The {0}/@{1} attribute's value, '{2}', is {3} characters long. The name is too long for an embedded cabinet. It cannot be more than than 62 characters long.", elementName, attributeName, value, length);
1357 }
1358
1359 public static Message MediaTableCollision(SourceLineNumber sourceLineNumbers)
1360 {
1361 return Message(sourceLineNumbers, Ids.MediaTableCollision, "Only one of Media and MediaTemplate tables should be authored.");
1362 }
1363
1364 public static Message MergeExcludedModule(SourceLineNumber sourceLineNumbers, string mergeId, string otherMergeId)
1365 {
1366 return Message(sourceLineNumbers, Ids.MergeExcludedModule, "The module '{0}' cannot be merged because it excludes or is excluded by the merge module with signature '{1}'.", mergeId, otherMergeId);
1367 }
1368
1369 public static Message MergeFeatureRequired(SourceLineNumber sourceLineNumbers, string tableName, string primaryKeys, string mergeModuleFile, string mergeId)
1370 {
1371 return Message(sourceLineNumbers, Ids.MergeFeatureRequired, "The {0} table contains a row with primary key(s) '{1}' which requires a feature to properly merge from the merge module '{2}'. Nest a MergeRef element with an Id attribute set to the value '{3}' under a Feature element to fix this error.", tableName, primaryKeys, mergeModuleFile, mergeId);
1372 }
1373
1374 public static Message MergeLanguageFailed(SourceLineNumber sourceLineNumbers, short language, string mergeModuleFile)
1375 {
1376 return Message(sourceLineNumbers, Ids.MergeLanguageFailed, "The language '{0}' is supported but uses an invalid language transform in the merge module '{1}'.", language, mergeModuleFile);
1377 }
1378
1379 public static Message MergeLanguageUnsupported(SourceLineNumber sourceLineNumbers, short language, string mergeModuleFile)
1380 {
1381 return Message(sourceLineNumbers, Ids.MergeLanguageUnsupported, "Could not locate language '{0}' (or a transform for this language) in the merge module '{1}'. This is likely due to an incorrectly authored Merge/@Language attribute.", language, mergeModuleFile);
1382 }
1383
1384 public static Message MergeModuleExpectedFeature(SourceLineNumber sourceLineNumbers, string mergeId)
1385 {
1386 return Message(sourceLineNumbers, Ids.MergeModuleExpectedFeature, "The merge module '{0}' is not assigned to a feature. All merge modules must be assigned to at least one feature.", mergeId);
1387 }
1388
1389 public static Message MergePlatformMismatch(SourceLineNumber sourceLineNumbers, string mergeModuleFile)
1390 {
1391 return Message(sourceLineNumbers, Ids.MergePlatformMismatch, "'{0}' is a 64-bit merge module but the product consuming it is 32-bit. 32-bit products can consume only 32-bit merge modules.", mergeModuleFile);
1392 }
1393
1394 public static Message MissingBundleInformation(string friendlyName)
1395 {
1396 return Message(null, Ids.MissingBundleInformation, "The Bundle is missing {0} data, and cannot continue.", friendlyName);
1397 }
1398
1399 public static Message MissingBundleSearch(SourceLineNumber sourceLineNumbers, string searchId)
1400 {
1401 return Message(sourceLineNumbers, Ids.MissingBundleSearch, "Bundle Search with id '{0}' has no corresponding implementation symbol.", searchId);
1402 }
1403
1404 public static Message MissingDependencyVersion(string packageId)
1405 {
1406 return Message(null, Ids.MissingDependencyVersion, "The provider dependency version was not authored for the package with Id '{0}'. Please author the Provides/@Version attribute for this package.", packageId);
1407 }
1408
1409 public static Message MissingEntrySection()
1410 {
1411 return Message(null, Ids.MissingEntrySection, "Could not find entry section in provided list of intermediates. Supported entry section types are: Package, Bundle, Patch, Module.");
1412 }
1413
1414 public static Message MissingEntrySection(string sectionType)
1415 {
1416 return Message(null, Ids.MissingEntrySection, "Could not find entry section in provided list of intermediates. Expected section of type '{0}'.", sectionType);
1417 }
1418
1419 public static Message MissingManifestForWin32Assembly(SourceLineNumber sourceLineNumbers, string file, string manifest)
1420 {
1421 return Message(sourceLineNumbers, Ids.MissingManifestForWin32Assembly, "File '{0}' is marked as a Win32 assembly but it refers to assembly manifest '{1}' that is not present in this product.", file, manifest);
1422 }
1423
1424 public static Message MissingMedia(SourceLineNumber sourceLineNumbers, int diskId)
1425 {
1426 return Message(sourceLineNumbers, Ids.MissingMedia, "There is no media defined for disk id '{0}'. You must author either <Media Id='{0}' ...> or <MediaTemplate ...>.", diskId);
1427 }
1428
1429 public static Message MissingOrInvalidModuleInstallerVersion(SourceLineNumber sourceLineNumbers, string moduleId, string mergeModuleFile, string productInstallerVersion)
1430 {
1431 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);
1432 }
1433
1434 public static Message MissingPackagePayload(SourceLineNumber sourceLineNumbers, string packageId, string packageType)
1435 {
1436 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);
1437 }
1438
1439 public static Message MissingTableDefinition(string tableName)
1440 {
1441 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);
1442 }
1443
1444 public static Message MissingTypeLibFile(SourceLineNumber sourceLineNumbers, string elementName, string fileElementName)
1445 {
1446 return Message(sourceLineNumbers, Ids.MissingTypeLibFile, "The {0} element is non-advertised and therefore requires a parent {1} element.", elementName, fileElementName);
1447 }
1448
1449 public static Message MissingValidatorExtension()
1450 {
1451 return Message(null, Ids.MissingValidatorExtension, "The validator requires at least one extension. Add \"ValidatorExtension, Wix\" for the default implementation.");
1452 }
1453
1454 public static Message MsiTransactionInvalidPackage(SourceLineNumber sourceLineNumbers, string packageId, string packageType)
1455 {
1456 return Message(sourceLineNumbers, Ids.MsiTransactionInvalidPackage, "Invalid package '{0}' in MSI transaction. It is type '{1}' but must be Msi or Msp.", packageId, packageType);
1457 }
1458
1459 public static Message MsiTransactionInvalidPackage2(SourceLineNumber sourceLineNumbers)
1460 {
1461 return Message(sourceLineNumbers, Ids.MsiTransactionInvalidPackage2, "Location of rollback boundary related to previous error.");
1462 }
1463
1464 public static Message MsiTransactionX86BeforeX64Package(SourceLineNumber sourceLineNumbers, string x64PackageId, string x86PackageId)
1465 {
1466 return Message(sourceLineNumbers, Ids.MsiTransactionX86BeforeX64Package, "Package '{0}' is x64 but Package '{1}' is x86. MSI transactions must install all x64 packages before any x86 package.", x64PackageId, x86PackageId);
1467 }
1468
1469 public static Message MsiTransactionX86BeforeX64Package2(SourceLineNumber sourceLineNumbers)
1470 {
1471 return Message(sourceLineNumbers, Ids.MsiTransactionX86BeforeX64Package2, "Location of x86 package related to previous error.");
1472 }
1473
1474 public static Message MultipleEntrySections(SourceLineNumber sourceLineNumbers, string sectionName1, string sectionName2)
1475 {
1476 return Message(sourceLineNumbers, Ids.MultipleEntrySections, "Multiple entry sections '{0}' and '{1}' found. Only one entry section may be present in a single target.", sectionName1, sectionName2);
1477 }
1478
1479 public static Message MultipleEntrySections2(SourceLineNumber sourceLineNumbers)
1480 {
1481 return Message(sourceLineNumbers, Ids.MultipleEntrySections2, "Location of entry section related to previous error.");
1482 }
1483
1484 public static Message MultipleFilesMatchedWithOutputSpecification(string sourceSpecification, string sourceList)
1485 {
1486 return Message(null, Ids.MultipleFilesMatchedWithOutputSpecification, "A per-source file output specification has been provided ('{0}'), but multiple source files match the source specification ({1}). Specifying a unique output requires that only a single source file match.", sourceSpecification, sourceList);
1487 }
1488
1489 public static Message MultipleIdentifiersFound(SourceLineNumber sourceLineNumbers, string elementName, string identifier, string mismatchIdentifier)
1490 {
1491 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);
1492 }
1493
1494 public static Message MultiplePackagePayloads(SourceLineNumber sourceLineNumbers, string packageId, string packagePayloadId1, string packagePayloadId2)
1495 {
1496 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);
1497 }
1498
1499 public static Message MultiplePackagePayloads2(SourceLineNumber sourceLineNumbers)
1500 {
1501 return Message(sourceLineNumbers, Ids.MultiplePackagePayloads2, "The location of the package payload related to previous error.");
1502 }
1503
1504 public static Message MultiplePackagePayloads3(SourceLineNumber sourceLineNumbers)
1505 {
1506 return Message(sourceLineNumbers, Ids.MultiplePackagePayloads3, "The location of the package related to previous error.");
1507 }
1508
1509 public static Message MultiplePrimaryReferences(SourceLineNumber sourceLineNumbers, string crefChildType, string crefChildId, string crefParentType, string crefParentId, string conflictParentType, string conflictParentId)
1510 {
1511 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);
1512 }
1513
1514 public static Message MustSpecifyOutputWithMoreThanOneInput()
1515 {
1516 return Message(null, Ids.MustSpecifyOutputWithMoreThanOneInput, "You must specify an output file using the \"-o\" or \"-out\" switch when you provide more than one input file.");
1517 }
1518
1519 public static Message NeedSequenceBeforeOrAfter(SourceLineNumber sourceLineNumbers, string elementName)
1520 {
1521 return Message(sourceLineNumbers, Ids.NeedSequenceBeforeOrAfter, "A {0} element must have a Before attribute, After attribute, or a Sequence attribute.", elementName);
1522 }
1523
1524 public static Message NewRowAddedInTable(SourceLineNumber sourceLineNumbers, string productCode, string tableName, string rowId)
1525 {
1526 return Message(sourceLineNumbers, Ids.NewRowAddedInTable, "Product '{0}': Table '{1}' has a new row '{2}' added. This makes the patch not uninstallable.", productCode, tableName, rowId);
1527 }
1528
1529 public static Message NoDataForColumn(SourceLineNumber sourceLineNumbers, string columnName, string tableName)
1530 {
1531 return Message(sourceLineNumbers, Ids.NoDataForColumn, "There is no data for column '{0}' in a contained row of custom table '{1}'. A non-null value must be supplied for this column.", columnName, tableName);
1532 }
1533
1534 public static Message NoDifferencesInTransform(SourceLineNumber sourceLineNumbers)
1535 {
1536 return Message(sourceLineNumbers, Ids.NoDifferencesInTransform, "The transform being built did not contain any differences so it could not be created.");
1537 }
1538
1539 public static Message NoFirstControlSpecified(SourceLineNumber sourceLineNumbers, string dialogName)
1540 {
1541 return Message(sourceLineNumbers, Ids.NoFirstControlSpecified, "The '{0}' dialog element does not have a valid tabbable control. You must either have a tabbable control that is not marked TabSkip='yes', or you must mark a control TabSkip='no'. If you have a page with no tabbable controls (a progress page, for example), you might want to set the first Text control to be TabSkip='no'.", dialogName);
1542 }
1543
1544 public static Message NonterminatedPreprocessorInstruction(SourceLineNumber sourceLineNumbers, string beginInstruction, string endInstruction)
1545 {
1546 return Message(sourceLineNumbers, Ids.NonterminatedPreprocessorInstruction, "Found a <?{0}?> processing instruction without a matching <?{1}?> after it.", beginInstruction, endInstruction);
1547 }
1548
1549 public static Message NoUniqueActionSequenceNumber(SourceLineNumber sourceLineNumbers, string sequenceTableName, string actionName1, string actionName2)
1550 {
1551 return Message(sourceLineNumbers, Ids.NoUniqueActionSequenceNumber, "The {0} table contains an action '{1}' which cannot have a unique sequence number because it is scheduled before or after action '{2}'. There is not enough room before or after this action to assign a unique sequence number. Please schedule one of the actions differently so that it will be in a position with more sequence numbers available. Please note that sequence numbers must be an integer in the range 1 - 32767 (inclusive).", sequenceTableName, actionName1, actionName2);
1552 }
1553
1554 public static Message NoUniqueActionSequenceNumber2(SourceLineNumber sourceLineNumbers)
1555 {
1556 return Message(sourceLineNumbers, Ids.NoUniqueActionSequenceNumber2, "The location of the sequenced action related to previous error.");
1557 }
1558
1559 public static Message OrderingReferenceLoopDetected(SourceLineNumber sourceLineNumbers, string loopList)
1560 {
1561 return Message(sourceLineNumbers, Ids.OrderingReferenceLoopDetected, "A circular reference of ordering dependencies was detected. The infinite loop includes: {0}. Ordering dependency references must form a directed acyclic graph.", loopList);
1562 }
1563
1564 public static Message OrphanedComponent(SourceLineNumber sourceLineNumbers, string componentName)
1565 {
1566 return Message(sourceLineNumbers, Ids.OrphanedComponent, "Found orphaned Component '{0}'. If this is a Package, every Component must have at least one parent Feature. To include a Component in a Module, you must include it directly as a Component element of the Module element or indirectly via ComponentRef, ComponentGroup, or ComponentGroupRef elements.", componentName);
1567 }
1568
1569 public static Message OutputCodepageMismatch(SourceLineNumber sourceLineNumbers, int beforeCodepage, int afterCodepage)
1570 {
1571 return Message(sourceLineNumbers, Ids.OutputCodepageMismatch, "The code pages of the outputs do not match. One output's code page is '{0}' while the other is '{1}'.", beforeCodepage, afterCodepage);
1572 }
1573
1574 public static Message OutputCodepageMismatch2(SourceLineNumber sourceLineNumbers)
1575 {
1576 return Message(sourceLineNumbers, Ids.OutputCodepageMismatch2, "The location of the mismatched code page related to the previous warning.");
1577 }
1578
1579 public static Message OutputTargetNotSpecified()
1580 {
1581 return Message(null, Ids.OutputTargetNotSpecified, "The '-out' or '-o' parameter must specify a file path.");
1582 }
1583
1584 public static Message OutputTypeMismatch(SourceLineNumber sourceLineNumbers, string beforeOutputType, string afterOutputType)
1585 {
1586 return Message(sourceLineNumbers, Ids.OutputTypeMismatch, "The types of the outputs do not match. One output's type is '{0}' while the other is '{1}'.", beforeOutputType, afterOutputType);
1587 }
1588
1589 public static Message OverridableActionCollision(SourceLineNumber sourceLineNumbers, string sequenceTableName, string actionName)
1590 {
1591 return Message(sourceLineNumbers, Ids.OverridableActionCollision, "The {0} table contains an action '{1}' that is declared overridable in two different locations. Please remove one of the actions or the Overridable='yes' attribute from one of the actions.", sequenceTableName, actionName);
1592 }
1593
1594 public static Message OverridableActionCollision2(SourceLineNumber sourceLineNumbers)
1595 {
1596 return Message(sourceLineNumbers, Ids.OverridableActionCollision2, "The location of the action related to previous error.");
1597 }
1598
1599 public static Message PackagePayloadUnsupported(SourceLineNumber sourceLineNumbers, string packageType)
1600 {
1601 return Message(sourceLineNumbers, Ids.PackagePayloadUnsupported, "The {0}PackagePayload element can only be used for {0}Packages.", packageType);
1602 }
1603
1604 public static Message PackagePayloadUnsupported2(SourceLineNumber sourceLineNumbers)
1605 {
1606 return Message(sourceLineNumbers, Ids.PackagePayloadUnsupported2, "The location of the package related to previous error.");
1607 }
1608
1609 public static Message ParentElementAttributeRequired(SourceLineNumber sourceLineNumbers, string parentElement, string parentAttribute, string childElement)
1610 {
1611 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);
1612 }
1613
1614 public static Message PatchNotRemovable()
1615 {
1616 return Message(null, Ids.PatchNotRemovable, "This patch is not uninstallable. The 'Patch' element's attribute 'AllowRemoval' should be set to 'no'.");
1617 }
1618
1619 public static Message PatchWithoutTransforms()
1620 {
1621 return Message(null, Ids.PatchWithoutTransforms, "No transforms were provided to attach to the patch.");
1622 }
1623
1624 public static Message PatchWithoutValidTransforms()
1625 {
1626 return Message(null, Ids.PatchWithoutValidTransforms, "No valid transforms were provided to attach to the patch. Check to make sure the transforms you passed on the command line have a matching baseline authored in the patch. Also, make sure there are differences between your target and upgrade.");
1627 }
1628
1629 public static Message PathCannotContainQuote(string fileName)
1630 {
1631 return Message(null, Ids.PathCannotContainQuote, "Path '{0}' contains a literal quote character. Quotes are often accidentally introduced when trying to refer to a directory path with spaces in it, such as \"C:\\Out Directory\\\" -- the backslash before the quote acts an escape character. The correct representation for that path is: \"C:\\Out Directory\\\\\".", fileName);
1632 }
1633
1634 public static Message PathTooLong(SourceLineNumber sourceLineNumbers, string fileName)
1635 {
1636 return Message(sourceLineNumbers, Ids.PathTooLong, "'{0}' is too long, the fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.", fileName);
1637 }
1638
1639 public static Message PayloadMustBeRelativeToCache(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string attributeValue) 411 public static Message PayloadMustBeRelativeToCache(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string attributeValue)
1640 { 412 {
1641 return Message(sourceLineNumbers, Ids.PayloadMustBeRelativeToCache, "The {0}/@{1} attribute's value, '{2}', is not a relative path.", elementName, attributeName, attributeValue); 413 return Message(sourceLineNumbers, Ids.PayloadMustBeRelativeToCache, "The {0}/@{1} attribute's value, '{2}', is not a relative path.", elementName, attributeName, attributeValue);
1642 } 414 }
1643 415
1644 public static Message PerUserButAllUsersEquals1(SourceLineNumber sourceLineNumbers, string path)
1645 {
1646 return Message(sourceLineNumbers, Ids.PerUserButAllUsersEquals1, "The MSI '{0}' is explicitly marked to not elevate so it must be a per-user package but the ALLUSERS Property is set to '1' creating a per-machine package. Remove the Property with Id='ALLUSERS' and use Package/@Scope attribute to be explicit instead.", path);
1647 }
1648
1649 public static Message PreprocessorError(SourceLineNumber sourceLineNumbers, string message)
1650 {
1651 return Message(sourceLineNumbers, Ids.PreprocessorError, "{0}", message);
1652 }
1653
1654 public static Message PreprocessorExtensionEvaluateFunctionFailed(SourceLineNumber sourceLineNumbers, string prefix, string function, string args, string message)
1655 {
1656 return Message(sourceLineNumbers, Ids.PreprocessorExtensionEvaluateFunctionFailed, "In the preprocessor extension that handles prefix '{0}' while trying to call function '{1}({2})' and exception has occurred : {3}", prefix, function, args, message);
1657 }
1658
1659 public static Message PreprocessorExtensionForParameterMissing(SourceLineNumber sourceLineNumbers, string parameterName, string parameterPrefix)
1660 {
1661 return Message(sourceLineNumbers, Ids.PreprocessorExtensionForParameterMissing, "Could not find the preprocessor extension for parameter '{0}'. A preprocessor extension is expected because the parameter prefix, '{1}', is not one of the standard types: 'env', 'res', 'sys', or 'var'.", parameterName, parameterPrefix);
1662 }
1663
1664 public static Message PreprocessorExtensionGetVariableValueFailed(SourceLineNumber sourceLineNumbers, string prefix, string variable, string message)
1665 {
1666 return Message(sourceLineNumbers, Ids.PreprocessorExtensionGetVariableValueFailed, "In the preprocessor extension that handles prefix '{0}' while trying to get the value for variable '{1}' and exception has occured : {2}", prefix, variable, message);
1667 }
1668
1669 public static Message PreprocessorExtensionPragmaFailed(SourceLineNumber sourceLineNumbers, string pragma, string message)
1670 {
1671 return Message(sourceLineNumbers, Ids.PreprocessorExtensionPragmaFailed, "Exception thrown while processing pragma '{0}'. The exception's message is: {1}", pragma, message);
1672 }
1673
1674 public static Message PreprocessorIllegalForeachVariable(SourceLineNumber sourceLineNumbers, string variableName)
1675 {
1676 return Message(sourceLineNumbers, Ids.PreprocessorIllegalForeachVariable, "The variable named '{0}' is not allowed in a foreach expression.", variableName);
1677 }
1678
1679 public static Message PreprocessorMissingParameterPrefix(SourceLineNumber sourceLineNumbers, string parameterName)
1680 {
1681 return Message(sourceLineNumbers, Ids.PreprocessorMissingParameterPrefix, "Could not find the prefix in parameter name: '{0}'.", parameterName);
1682 }
1683
1684 public static Message ProductCodeInvalidForTransform(SourceLineNumber sourceLineNumbers)
1685 {
1686 return Message(sourceLineNumbers, Ids.ProductCodeInvalidForTransform, "The value '*' is not valid for the ProductCode when used in a transform or in a patch. Copy the ProductCode from your target product MSI into the Package/@ProductCode attribute value for your product authoring.");
1687 }
1688
1689 public static Message ProgIdNestedTooDeep(SourceLineNumber sourceLineNumbers)
1690 {
1691 return Message(sourceLineNumbers, Ids.ProgIdNestedTooDeep, "ProgId elements may not be nested more than 1 level deep.");
1692 }
1693
1694 public static Message RadioButtonBitmapAndIconDisallowed(SourceLineNumber sourceLineNumbers)
1695 {
1696 return Message(sourceLineNumbers, Ids.RadioButtonBitmapAndIconDisallowed, "RadioButtonGroup elements that contain RadioButton elements with Bitmap or Icon attributes set to \"yes\" can only be specified under a Control element. Move your RadioButtonGroup element as a child of the appropriate Control element.");
1697 }
1698
1699 public static Message RadioButtonTypeInconsistent(SourceLineNumber sourceLineNumbers)
1700 {
1701 return Message(sourceLineNumbers, Ids.RadioButtonTypeInconsistent, "All RadioButton elements in a RadioButtonGroup must be consistent with their use of the Bitmap, Icon, and Text attributes. Ensure all of the RadioButton elements in this group have the same attribute specified.");
1702 }
1703
1704 public static Message ReadOnlyOutputFile(string filePath)
1705 {
1706 return Message(null, Ids.ReadOnlyOutputFile, "Unable to output to file '{0}' because it is marked as read-only.", filePath);
1707 }
1708
1709 public static Message RealTableMissingPrimaryKeyColumn(SourceLineNumber sourceLineNumbers, string tableName) 416 public static Message RealTableMissingPrimaryKeyColumn(SourceLineNumber sourceLineNumbers, string tableName)
1710 { 417 {
1711 return Message(sourceLineNumbers, Ids.RealTableMissingPrimaryKeyColumn, "The table '{0}' does not contain any primary key columns. At least one column must be marked as the primary key to ensure this table can be patched.", tableName); 418 return Message(sourceLineNumbers, Ids.RealTableMissingPrimaryKeyColumn, "The table '{0}' does not contain any primary key columns. At least one column must be marked as the primary key to ensure this table can be patched.", tableName);
1712 } 419 }
1713 420
1714 public static Message RecursiveAction(string action, string tableName) 421 public static Message StreamNameTooLong(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value, int length, int maximumLength)
1715 {
1716 return Message(null, Ids.RecursiveAction, "The action '{0}' is recursively placed in the '{1}' table.", action, tableName);
1717 }
1718
1719 public static Message ReferenceLoopDetected(SourceLineNumber sourceLineNumbers, string loopList)
1720 {
1721 return Message(sourceLineNumbers, Ids.ReferenceLoopDetected, "A circular reference of groups was detected. The infinite loop includes: {0}. Group references must form a directed acyclic graph.", loopList);
1722 }
1723
1724 public static Message RegistryMultipleValuesWithoutMultiString(SourceLineNumber sourceLineNumbers, string registryElementName, string valueAttributeName, string registryValueElementName, string typeAttributeName)
1725 {
1726 return Message(sourceLineNumbers, Ids.RegistryMultipleValuesWithoutMultiString, "The {0}/@{1} attribute and a {0}/{2} element cannot both be specified. Only one may be specified if the {3} attribute's value is not 'multiString'.", registryElementName, valueAttributeName, registryValueElementName, typeAttributeName);
1727 }
1728
1729 public static Message RegistryNameValueIncorrect(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value)
1730 {
1731 return Message(sourceLineNumbers, Ids.RegistryNameValueIncorrect, "The {0}/@{1} attribute's value, '{2}', is incorrect. It should not contain values of '+', '-', or '*' when the {0}/@Value attribute is empty. Instead, use the proper element and attributes: for Name='+' use RegistryKey/@Action='createKey', for Name='-' use RemoveRegistryKey/@Action='removeOnUninstall', for Name='*' use RegistryKey/@Action='createAndRemoveOnUninstall'.", elementName, attributeName, value);
1732 }
1733
1734 public static Message RegistryRootInvalid(SourceLineNumber sourceLineNumbers)
1735 {
1736 return Message(sourceLineNumbers, Ids.RegistryRootInvalid, "Registry/@Root attribute is invalid on a nested Registry element. Either remove the Root attribute or move the Registry element so it is not nested under another Registry element.");
1737 }
1738
1739 public static Message RegistrySubElementCannotBeRemoved(SourceLineNumber sourceLineNumbers, string registryElementName, string registryValueElementName, string actionAttributeName, string removeValue, string removeKeyOnInstallValue)
1740 {
1741 return Message(sourceLineNumbers, Ids.RegistrySubElementCannotBeRemoved, "The {0}/{1} element cannot be specified if the {2} attribute's value is '{3}' or '{4}'.", registryElementName, registryValueElementName, actionAttributeName, removeValue, removeKeyOnInstallValue);
1742 }
1743
1744 public static Message RelativePathForRegistryElement(SourceLineNumber sourceLineNumbers)
1745 {
1746 return Message(sourceLineNumbers, Ids.RelativePathForRegistryElement, "Cannot convert RelativePath into Registry elements.");
1747 }
1748
1749 public static Message ReservedBurnNamespaceViolation(SourceLineNumber sourceLineNumbers, string element, string attribute, string prefix)
1750 {
1751 return Message(sourceLineNumbers, Ids.ReservedNamespaceViolation, "The {0}/@{1} attribute's value begins with the reserved prefix '{2}'. Some prefixes are reserved by the WiX toolset for well-known values. Change your attribute's value to not begin with the same prefix.", element, attribute, prefix);
1752 }
1753
1754 public static Message ReservedNamespaceViolation(SourceLineNumber sourceLineNumbers, string element, string attribute, string prefix)
1755 {
1756 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);
1757 }
1758
1759 public static Message RootFeatureCannotFollowParent(SourceLineNumber sourceLineNumbers)
1760 {
1761 return Message(sourceLineNumbers, Ids.RootFeatureCannotFollowParent, "The Feature element specifies a root feature with an illegal InstallDefault value of 'followParent'. Root features cannot follow their parent feature's install state because they don't have a parent feature. Please remove or change the value of the InstallDefault attribute.");
1762 }
1763
1764 public static Message SameFileIdDifferentSource(SourceLineNumber sourceLineNumbers, string fileId, string sourcePath1, string sourcePath2)
1765 {
1766 return Message(sourceLineNumbers, Ids.SameFileIdDifferentSource, "Two different source paths '{1}' and '{2}' were detected for the same file identifier '{0}'. You must either author these under Media elements with different Id attribute values or in different patches.", fileId, sourcePath1, sourcePath2);
1767 }
1768
1769 public static Message SamePatchBaselineId(SourceLineNumber sourceLineNumbers, string id)
1770 {
1771 return Message(sourceLineNumbers, Ids.SamePatchBaselineId, "The PatchBaseline/@Id attribute value '{0}' is a child of multiple Media elements. This prevents transforms from being resolved to distinct media. Change the PatchBaseline/@Id attribute values to be unique.", id);
1772 }
1773
1774 public static Message SchemaValidationFailed(SourceLineNumber sourceLineNumbers, string validationError, int lineNumber, int linePosition)
1775 {
1776 return Message(sourceLineNumbers, Ids.SchemaValidationFailed, "Schema validation failed with the following error at line {1}, column {2}: {0}", validationError, lineNumber, linePosition);
1777 }
1778
1779 public static Message SearchElementRequired(SourceLineNumber sourceLineNumbers, string elementName)
1780 {
1781 return Message(sourceLineNumbers, Ids.SearchElementRequired, "A '{0}' element must have a search element as a child.", elementName);
1782 }
1783
1784 public static Message SearchElementRequiredWithAttribute(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string attributeValue)
1785 {
1786 return Message(sourceLineNumbers, Ids.SearchElementRequiredWithAttribute, "A {0} element must have a search element as a child when the {0}/@{1} attribute has the value '{2}'.", elementName, attributeName, attributeValue);
1787 }
1788
1789 public static Message SearchPropertyNotUppercase(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value)
1790 {
1791 return Message(sourceLineNumbers, Ids.SearchPropertyNotUppercase, "The {0}/@{1} attribute's value, '{2}', cannot contain lowercase characters. Since this is a search property, it must also be a public property. This means the Property/@Id value must be completely uppercase.", elementName, attributeName, value);
1792 }
1793
1794 public static Message SecurePropertyNotUppercase(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string propertyId)
1795 {
1796 return Message(sourceLineNumbers, Ids.SecurePropertyNotUppercase, "The {0}/@{1} attribute's value, '{2}', cannot contain lowercase characters. Since this is a secure property, it must also be a public property. This means the Property/@Id value must be completely uppercase.", elementName, attributeName, propertyId);
1797 }
1798
1799 public static Message SignedEmbeddedCabinet(SourceLineNumber sourceLineNumbers)
1800 {
1801 return Message(sourceLineNumbers, Ids.SignedEmbeddedCabinet, "The DigitalSignature element cannot be nested under a Media element which specifies EmbedCab='yes'. This is because Windows Installer can only verify the digital signatures of external cabinets. Please either remove the DigitalSignature element or change the value of the Media/@EmbedCab attribute to 'no'.");
1802 }
1803
1804 public static Message SingleExtensionSupported()
1805 {
1806 return Message(null, Ids.SingleExtensionSupported, "Multiple extensions were specified on the command line, only a single extension is supported.");
1807 }
1808
1809 public static Message SpecifiedBinderNotFound(string binderClass)
1810 {
1811 return Message(null, Ids.SpecifiedBinderNotFound, "The specified binder class '{0}' was not found in any extensions.", binderClass);
1812 }
1813
1814 public static Message SplitCabinetCopyRegistrationFailed(string newCabName, string firstCabName)
1815 { 422 {
1816 return Message(null, Ids.SplitCabinetCopyRegistrationFailed, "Failed to register the copy command for cabinet '{0}' formed by splitting cabinet '{1}'.", newCabName, firstCabName); 423 return Message(sourceLineNumbers, Ids.StreamNameTooLong, "The {0}/@{1} attribute's value, '{2}', is {3} characters long. This is too long because it will be used to create a stream name. It cannot be more than than {4} characters long.", elementName, attributeName, value, length, maximumLength);
1817 } 424 }
1818 425
1819 public static Message SplitCabinetNameCollision(string newCabName, string firstCabName) 426 public static Message StreamNameTooLong(SourceLineNumber sourceLineNumbers, string tableName, string streamName, int streamLength)
1820 { 427 {
1821 return Message(null, Ids.SplitCabinetNameCollision, "The cabinet name '{0}' collides with the new cabinet formed by splitting cabinet '{1}', consider renaming cabinet '{0}'.", newCabName, firstCabName); 428 return Message(sourceLineNumbers, Ids.StreamNameTooLong, "The binary value in table '{0}' will be stored with a stream name, '{1}', that is {2} characters long. This is too long because the maximum allowed length for a stream name is 62 characters long. Since the stream name is created by concatenating the table name and values of the primary key for a row (delimited by periods), this error can be resolved by shortening a value that is part of the primary key.", tableName, streamName, streamLength);
1822 } 429 }
1823 430
1824 public static Message StandardActionRelativelyScheduledInModule(SourceLineNumber sourceLineNumbers, string sequenceTableName, string actionName) 431 public static Message UnableToConvertFieldToNumber(string value)
1825 { 432 {
1826 return Message(sourceLineNumbers, Ids.StandardActionRelativelyScheduledInModule, "The {0} table contains a standard action '{1}' that does not have a sequence number specified. The Sequence attribute is required for standard actions in a merge module. Please remove the action or use the Sequence attribute.", sequenceTableName, actionName); 433 return Message(null, Ids.UnableToConvertFieldToNumber, "Unable to convert intermediate symbol field value '{0}' to a number. This means the intermediate is corrupt or of an unsupported version.", value);
1827 } 434 }
1828 435
1829 public static Message StreamNameTooLong(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value, int length, int maximumLength) 436 public static Message UnexpectedAttribute(SourceLineNumber sourceLineNumbers, string elementName, string attributeName)
1830 { 437 {
1831 return Message(sourceLineNumbers, Ids.StreamNameTooLong, "The {0}/@{1} attribute's value, '{2}', is {3} characters long. This is too long because it will be used to create a stream name. It cannot be more than than {4} characters long.", elementName, attributeName, value, length, maximumLength); 438 return Message(sourceLineNumbers, Ids.UnexpectedAttribute, "The {0} element contains an unexpected attribute '{1}'.", elementName, attributeName);
1832 } 439 }
1833 440
1834 public static Message StreamNameTooLong(SourceLineNumber sourceLineNumbers, string tableName, string streamName, int streamLength) 441 public static Message UnexpectedElement(SourceLineNumber sourceLineNumbers, string elementName, string childElementName)
1835 { 442 {
1836 return Message(sourceLineNumbers, Ids.StreamNameTooLong, "The binary value in table '{0}' will be stored with a stream name, '{1}', that is {2} characters long. This is too long because the maximum allowed length for a stream name is 62 characters long. Since the stream name is created by concatenating the table name and values of the primary key for a row (delimited by periods), this error can be resolved by shortening a value that is part of the primary key.", tableName, streamName, streamLength); 443 return Message(sourceLineNumbers, Ids.UnexpectedElement, "The {0} element contains an unexpected child element '{1}'.", elementName, childElementName);
1837 } 444 }
1838 445
1839 public static Message StubMissingWixburnSection(string filename) 446 public static Message UnexpectedException(Exception exception)
1840 { 447 {
1841 return Message(null, Ids.StubMissingWixburnSection, "Stub executable '{0}' does not contain a .wixburn data section.", filename); 448 return Message(null, Ids.UnexpectedException, exception.ToString());
1842 } 449 }
1843 450
1844 public static Message StubWixburnSectionTooSmall(string filename) 451 public static Message UnexpectedException(string message, string type, string stackTrace)
1845 { 452 {
1846 return Message(null, Ids.StubWixburnSectionTooSmall, "Stub executable '{0}' .wixburn data section is too small to store the Burn container header.", filename); 453 return Message(null, Ids.UnexpectedException, "{0}\r\n\r\nException Type: {1}\r\n\r\nStack Trace:\r\n{2}", message, type, stackTrace);
1847 } 454 }
1848 455
1849 public static Message SuppressNonoverridableAction(SourceLineNumber sourceLineNumbers, string sequenceTableName, string actionName) 456 public static Message UnexpectedFileFormat(string path, string expectedFormat, string actualFormat)
1850 { 457 {
1851 return Message(sourceLineNumbers, Ids.SuppressNonoverridableAction, "The {0} table contains an action '{1}' that cannot be suppressed because it is not declared overridable in the base definition. Please stop suppressing the action or make it overridable in its base declaration.", sequenceTableName, actionName); 458 return Message(null, Ids.UnexpectedFileFormat, "Unexpected file format loaded from path: {0}. The file was expected to be a {1} but was actually: {2}. Ensure the correct path was provided.", path, expectedFormat.ToLowerInvariant(), actualFormat.ToLowerInvariant());
1852 } 459 }
1853 460
1854 public static Message SuppressNonoverridableAction2(SourceLineNumber sourceLineNumbers) 461 public static Message UnsupportedPlatformForElement(SourceLineNumber sourceLineNumbers, string platform, string elementName)
1855 { 462 {
1856 return Message(sourceLineNumbers, Ids.SuppressNonoverridableAction2, "The location of the non-overridable definition of the action related to previous error."); 463 return Message(sourceLineNumbers, Ids.UnsupportedPlatformForElement, "The element {1} does not support platform '{0}'. Consider removing the element or using the preprocessor to conditionally include the element based on the platform.", platform, elementName);
1857 } 464 }
1858 465
1859 public static Message TabbableControlNotAllowedInBillboard(SourceLineNumber sourceLineNumbers, string elementName, string controlType) 466 public static Message VersionMismatch(SourceLineNumber sourceLineNumbers, string fileType, string version, string expectedVersion)
1860 { 467 {
1861 return Message(sourceLineNumbers, Ids.TabbableControlNotAllowedInBillboard, "A {0} element was specified with Type='{1}' and TabSkip='no'. Tabbable controls are not allowed in Billboards.", elementName, controlType); 468 return Message(sourceLineNumbers, Ids.VersionMismatch, "The {0} file format version {1} is not compatible with the expected {0} file format version {2}.", fileType, version, expectedVersion);
1862 } 469 }
1863 470
1864 public static Message TableDecompilationUnimplemented(string tableName) 471 public static Message UnknownSymbolType(string symbolName)
1865 { 472 {
1866 return Message(null, Ids.TableDecompilationUnimplemented, "Decompilation of the {0} table has not been implemented by its extension.", tableName); 473 return Message(null, Ids.UnknownSymbolType, "Could not deserialize symbol of type type '{0}' because it is not a standard symbol type or one provided by a loaded extension.", symbolName);
1867 } 474 }
1868 475
1869 public static Message TableNameTooLong(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value) 476 public static Message IllegalAttributeWhenNested(SourceLineNumber sourceLineNumbers, string attributeName)
1870 { 477 {
1871 return Message(sourceLineNumbers, Ids.TableNameTooLong, "The {0}/@{1} attribute's value, '{2}', is too long for a table name. It cannot be more than than 31 characters long.", elementName, attributeName, value); 478 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);
1872 } 479 }
1873 480
1874 public static Message TooDeeplyIncluded(SourceLineNumber sourceLineNumbers, int depth) 481 public static Message CommandLineCommandRequired()
1875 { 482 {
1876 return Message(sourceLineNumbers, Ids.TooDeeplyIncluded, "Include files cannot be nested more deeply than {0} times. Make sure included files don't accidentally include themselves.", depth); 483 return Message(null, Ids.CommandLineCommandRequired, "A command is required. Add -h for list of available subcommands.");
1877 } 484 }
1878 485
1879 public static Message TooManyChildren(SourceLineNumber sourceLineNumbers, string elementName, string childElementName) 486 public static Message CommandLineCommandRequired(string command)
1880 { 487 {
1881 return Message(sourceLineNumbers, Ids.TooManyChildren, "The {0} element contains multiple {1} child elements. There can only be one {1} child element per {0} element.", elementName, childElementName); 488 return Message(null, Ids.CommandLineCommandRequired, "A subcommand is required for the \"{0}\" command. Add -h for list of available commands.", command);
1882 } 489 }
1883 490
1884 public static Message TooManyColumnsInRealTable(string tableName, int columnCount, int supportedColumnCount) 491 public static Message CubeFileNotFound(string cubeFile)
1885 { 492 {
1886 return Message(null, Ids.TooManyColumnsInRealTable, "The table '{0}' contains {1} columns which is not supported by Windows Installer. Windows Installer supports a maximum of {2} columns.", tableName, columnCount, supportedColumnCount); 493 return Message(null, Ids.CubeFileNotFound, "The cube file '{0}' cannot be found. This file is required for MSI validation.", cubeFile);
1887 } 494 }
1888 495
1889 public static Message TooManyElements(SourceLineNumber sourceLineNumbers, string elementName, string childElementName, int expectedInstances) 496 public static Message DuplicatePrimaryKey(SourceLineNumber sourceLineNumbers, string primaryKey, string tableName)
1890 { 497 {
1891 return Message(sourceLineNumbers, Ids.TooManyElements, "The {0} element contains an unexpected child element '{1}'. The '{1}' element may only occur {2} time(s) under the {0} element.", elementName, childElementName, expectedInstances); 498 return Message(sourceLineNumbers, Ids.DuplicatePrimaryKey, "The primary key '{0}' is duplicated in table '{1}'. Please remove one of the entries or rename a part of the primary key to avoid the collision.", primaryKey, tableName);
1892 } 499 }
1893 500
1894 public static Message TooManySearchElements(SourceLineNumber sourceLineNumbers, string elementName) 501 public static Message FilePathRequired(string filePurpose)
1895 { 502 {
1896 return Message(sourceLineNumbers, Ids.TooManySearchElements, "Only one search element can appear under a '{0}' element.", elementName); 503 return Message(null, Ids.FilePathRequired, "The path to the {0} is required.", filePurpose);
1897 } 504 }
1898 505
1899 public static Message TransformSchemaMismatch() 506 public static Message FilePathRequired(string parameter, string filePurpose)
1900 { 507 {
1901 return Message(null, Ids.TransformSchemaMismatch, "The transform schema does not match the database schema. The transform may have been generated from a different database."); 508 return Message(null, Ids.FilePathRequired, "The parameter '{0}' must be followed by a file path for the {1}.", parameter, filePurpose);
1902 } 509 }
1903 510
1904 public static Message TypeSpecificationForExtensionRequired(string parameter) 511 public static Message IdentifierNotFound(string type, string identifier)
1905 { 512 {
1906 return Message(null, Ids.TypeSpecificationForExtensionRequired, "The parameter '{0}' must be followed by the extension's type specification. The type specification should be a fully qualified class and assembly identity, for example: \"MyNamespace.MyClass,myextension.dll\".", parameter); 513 return Message(null, Ids.IdentifierNotFound, "An expected identifier ('{1}', of type '{0}') was not found.", type, identifier);
1907 } 514 }
1908 515
1909 public static Message UnableToGetAuthenticodeCertOfFile(string filePath, string moreInformation) 516 public static Message IllegalCharactersInPath(string pathName)
1910 { 517 {
1911 return Message(null, Ids.UnableToGetAuthenticodeCertOfFile, "Unable to get the authenticode certificate of '{0}'. More information: {1}", filePath, moreInformation); 518 return Message(null, Ids.IllegalCharactersInPath, "Illegal characters in path '{0}'. Ensure you provided a valid path to the file.", pathName);
1912 } 519 }
1913 520
1914 public static Message UnableToGetAuthenticodeCertOfFileDownlevelOS(string filePath, string moreInformation) 521 public static Message IllegalCodepage(int codepage)
1915 { 522 {
1916 return Message(null, Ids.UnableToGetAuthenticodeCertOfFileDownlevelOS, "Unable to get the authenticode certificate of '{0}'. The cryptography API has limitations on Windows XP and Windows Server 2003. More information: {1}", filePath, moreInformation); 523 return Message(null, Ids.IllegalCodepage, "The code page '{0}' is not a valid Windows code page. Update the database's code page by modifying one of the following attributes: Package/@Codepage, Module/@Codepage, Patch/@Codepage, or WixLocalization/@Codepage.", codepage);
1917 } 524 }
1918 525
1919 public static Message UnableToConvertFieldToNumber(string value) 526 public static Message IllegalCodepage(SourceLineNumber sourceLineNumbers, int codepage)
1920 { 527 {
1921 return Message(null, Ids.UnableToConvertFieldToNumber, "Unable to convert intermediate symbol field value '{0}' to a number. This means the intermediate is corrupt or of an unsupported version.", value); 528 return Message(sourceLineNumbers, Ids.IllegalCodepage, "The code page '{0}' is not a valid Windows code page. Update the database's code page by modifying one of the following attributes: Package/@Codepage, Module/@Codepage, Patch/@Codepage, or WixLocalization/@Codepage.", codepage);
1922 } 529 }
1923 530
1924 public static Message UnableToOpenModule(SourceLineNumber sourceLineNumbers, string modulePath, string message) 531 public static Message IllegalCommandLineArgumentValue(string arg, string value, IEnumerable<string> validValues)
1925 { 532 {
1926 return Message(sourceLineNumbers, Ids.UnableToOpenModule, "Unable to open merge module '{0}'. Check to make sure the module language is correct. '{1}'", modulePath, message); 533 var combinedValidValues = String.Join(", ", validValues);
534 return Message(null, Ids.IllegalCommandLineArgumentValue, "The argument {0} value '{1}' is invalid. Use one of the following values {2}", arg, value, combinedValidValues);
1927 } 535 }
1928 536
1929 public static Message UnableToReadPackageInformation(SourceLineNumber sourceLineNumbers, string packagePath, string detailedErrorMessage) 537 public static Message IllegalEnvironmentVariable(string environmentVariable, string value)
1930 { 538 {
1931 return Message(sourceLineNumbers, Ids.UnableToReadPackageInformation, "Unable to read package '{0}'. {1}", packagePath, detailedErrorMessage); 539 return Message(null, Ids.IllegalEnvironmentVariable, "The {0} environment variable is set to an invalid value of '{1}'.", environmentVariable, value);
1932 } 540 }
1933 541
1934 public static Message UnauthorizedAccess(string filePath) 542 public static Message IllegalGuidValue(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value)
1935 { 543 {
1936 return Message(null, Ids.UnauthorizedAccess, "Access to the path '{0}' is denied.", filePath); 544 return Message(sourceLineNumbers, Ids.IllegalGuidValue, "The {0}/@{1} attribute's value, '{2}', is not a legal guid value.", elementName, attributeName, value);
1937 } 545 }
1938 546
1939 public static Message UndefinedPreprocessorFunction(SourceLineNumber sourceLineNumbers, string variableName) 547 public static Message IllegalVersionValue(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value)
1940 { 548 {
1941 return Message(sourceLineNumbers, Ids.UndefinedPreprocessorFunction, "Undefined preprocessor function '$({0})'.", variableName); 549 return Message(sourceLineNumbers, Ids.IllegalVersionValue, "The {0}/@{1} attribute's value, '{2}', is not a valid version. Specify a four-part version or semantic version, such as '#.#.#.#' or '#.#.#-label.#'.", elementName, attributeName, value);
1942 } 550 }
1943 551
1944 public static Message UndefinedPreprocessorVariable(SourceLineNumber sourceLineNumbers, string variableName) 552 public static Message InvalidFileName(SourceLineNumber sourceLineNumbers, string fileName)
1945 { 553 {
1946 return Message(sourceLineNumbers, Ids.UndefinedPreprocessorVariable, "Undefined preprocessor variable '$({0})'.", variableName); 554 return Message(sourceLineNumbers, Ids.InvalidFileName, "Invalid file name '{0}'.", fileName);
1947 } 555 }
1948 556
1949 public static Message UnexpectedAttribute(SourceLineNumber sourceLineNumbers, string elementName, string attributeName) 557 public static Message InvalidIdt(SourceLineNumber sourceLineNumbers, string idtFile)
1950 { 558 {
1951 return Message(sourceLineNumbers, Ids.UnexpectedAttribute, "The {0} element contains an unexpected attribute '{1}'.", elementName, attributeName); 559 return Message(sourceLineNumbers, Ids.InvalidIdt, "There was an error importing the file '{0}'.", idtFile);
1952 } 560 }
1953 561
1954 public static Message UnexpectedColumnCount(SourceLineNumber sourceLineNumbers, string tableName) 562 public static Message InvalidIdt(SourceLineNumber sourceLineNumbers, string idtFile, string tableName)
1955 { 563 {
1956 return Message(sourceLineNumbers, Ids.UnexpectedColumnCount, "A parsed row has more fields that contain data for table '{0}' than are defined. This is potentially because a standard table is being redefined as a custom table or is based on an older table schema.", tableName); 564 return Message(sourceLineNumbers, Ids.InvalidIdt, "There was an error importing table '{1}' from file '{0}'.", idtFile, tableName);
1957 } 565 }
1958 566
1959 public static Message UnexpectedContentNode(SourceLineNumber sourceLineNumbers, string elementName, string unexpectedNodeType) 567 public static Message InvalidValidatorMessageType(string type)
1960 { 568 {
1961 return Message(sourceLineNumbers, Ids.UnexpectedContentNode, "The {0} element contains an unexpected xml node of type {1}.", elementName, unexpectedNodeType); 569 return Message(null, Ids.InvalidValidatorMessageType, "Unknown validation message type '{0}'.", type);
1962 } 570 }
1963 571
1964 public static Message UnexpectedCustomTableColumn(SourceLineNumber sourceLineNumbers, string column) 572 public static Message InvalidXml(SourceLineNumber sourceLineNumbers, string fileType, string detail)
1965 { 573 {
1966 return Message(sourceLineNumbers, Ids.UnexpectedCustomTableColumn, "The custom table column '{0}' is unknown.", column); 574 return Message(sourceLineNumbers, Ids.InvalidXml, "Not a valid {0} file; detail: {1}", fileType, detail);
1967 } 575 }
1968 576
1969 public static Message UnexpectedElement(SourceLineNumber sourceLineNumbers, string elementName, string childElementName) 577 public static Message MissingTableDefinition(string tableName)
1970 { 578 {
1971 return Message(sourceLineNumbers, Ids.UnexpectedElement, "The {0} element contains an unexpected child element '{1}'.", elementName, childElementName); 579 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);
1972 } 580 }
1973 581
1974 public static Message UnexpectedElementWithAttribute(SourceLineNumber sourceLineNumbers, string elementName, string childElementName, string attribute) 582 public static Message UnexpectedElementWithAttribute(SourceLineNumber sourceLineNumbers, string elementName, string childElementName, string attribute)
@@ -1991,21 +599,6 @@ namespace WixToolset.Data
1991 return Message(sourceLineNumbers, Ids.UnexpectedElementWithAttributeValue, "The {0} element cannot have a child element '{1}' unless attribute '{2}' is set to '{3}' or '{4}'.", elementName, childElementName, attribute, attributeValue1, attributeValue2); 599 return Message(sourceLineNumbers, Ids.UnexpectedElementWithAttributeValue, "The {0} element cannot have a child element '{1}' unless attribute '{2}' is set to '{3}' or '{4}'.", elementName, childElementName, attribute, attributeValue1, attributeValue2);
1992 } 600 }
1993 601
1994 public static Message UnexpectedEmptySubexpression(SourceLineNumber sourceLineNumbers, string expression)
1995 {
1996 return Message(sourceLineNumbers, Ids.UnexpectedEmptySubexpression, "The empty subexpression is unexpected in the expression '{0}'.", expression);
1997 }
1998
1999 public static Message UnexpectedException(Exception exception)
2000 {
2001 return Message(null, Ids.UnexpectedException, exception.ToString());
2002 }
2003
2004 public static Message UnexpectedException(string message, string type, string stackTrace)
2005 {
2006 return Message(null, Ids.UnexpectedException, "{0}\r\n\r\nException Type: {1}\r\n\r\nStack Trace:\r\n{2}", message, type, stackTrace);
2007 }
2008
2009 public static Message UnexpectedExternalUIMessage(string message) 602 public static Message UnexpectedExternalUIMessage(string message)
2010 { 603 {
2011 return Message(null, Ids.UnexpectedExternalUIMessage, "Error executing unknown ICE action. The following string format was not expected by the external UI message logger: \"{0}\".", message); 604 return Message(null, Ids.UnexpectedExternalUIMessage, "Error executing unknown ICE action. The following string format was not expected by the external UI message logger: \"{0}\".", message);
@@ -2016,116 +609,6 @@ namespace WixToolset.Data
2016 return Message(null, Ids.UnexpectedExternalUIMessage, "Error executing ICE action '{1}'. The following string format was not expected by the external UI message logger: \"{0}\".", message, action); 609 return Message(null, Ids.UnexpectedExternalUIMessage, "Error executing ICE action '{1}'. The following string format was not expected by the external UI message logger: \"{0}\".", message, action);
2017 } 610 }
2018 611
2019 public static Message UnexpectedFileExtension(string fileName, string expectedExtensions)
2020 {
2021 return Message(null, Ids.UnexpectedFileExtension, "The file '{0}' has an unexpected extension. Expected one of the following: '{1}'.", fileName, expectedExtensions);
2022 }
2023
2024 public static Message UnexpectedFileFormat(string path, string expectedFormat, string actualFormat)
2025 {
2026 return Message(null, Ids.UnexpectedFileFormat, "Unexpected file format loaded from path: {0}. The file was expected to be a {1} but was actually: {2}. Ensure the correct path was provided.", path, expectedFormat.ToLowerInvariant(), actualFormat.ToLowerInvariant());
2027 }
2028
2029 public static Message UnexpectedGroupChild(string parentType, string parentId, string childType, string childId)
2030 {
2031 return Message(null, Ids.UnexpectedGroupChild, "A group parent ('{0}'/'{1}') had an unexpected child ('{2}'/'{3}').", parentType, parentId, childType, childId);
2032 }
2033
2034 public static Message UnexpectedLiteral(SourceLineNumber sourceLineNumbers, string expression)
2035 {
2036 return Message(sourceLineNumbers, Ids.UnexpectedLiteral, "An unexpected literal was found in the expression '{0}'.", expression);
2037 }
2038
2039 public static Message UnexpectedPreprocessorOperator(SourceLineNumber sourceLineNumbers, string op)
2040 {
2041 return Message(sourceLineNumbers, Ids.UnexpectedPreprocessorOperator, "The operator '{0}' is unexpected.", op);
2042 }
2043
2044 public static Message UnexpectedTableInMergeModule(SourceLineNumber sourceLineNumbers, string tableName)
2045 {
2046 return Message(sourceLineNumbers, Ids.UnexpectedTableInMergeModule, "An unexpected row in the '{0}' table was found in this merge module. Merge modules cannot contain the '{0}' table.", tableName);
2047 }
2048
2049 public static Message UnexpectedTableInPatch(SourceLineNumber sourceLineNumbers, string tableName)
2050 {
2051 return Message(sourceLineNumbers, Ids.UnexpectedTableInPatch, "An unexpected row in the '{0}' table was found in this patch. Patches cannot contain the '{0}' table.", tableName);
2052 }
2053
2054 public static Message UnhandledExtensionAttribute(SourceLineNumber sourceLineNumbers, string elementName, string extensionAttributeName, string extensionNamespace)
2055 {
2056 return Message(sourceLineNumbers, Ids.UnhandledExtensionAttribute, "The {0} element contains an unhandled extension attribute '{1}'. Please ensure that the extension for attributes in the '{2}' namespace has been provided.", elementName, extensionAttributeName, extensionNamespace);
2057 }
2058
2059 public static Message UnhandledExtensionElement(SourceLineNumber sourceLineNumbers, string elementName, string extensionElementName, string extensionNamespace)
2060 {
2061 return Message(sourceLineNumbers, Ids.UnhandledExtensionElement, "The {0} element contains an unhandled extension element '{1}'. Please ensure that the extension for elements in the '{2}' namespace has been provided.", elementName, extensionElementName, extensionNamespace);
2062 }
2063
2064 public static Message UniqueFileSearchIdRequired(SourceLineNumber sourceLineNumbers, string id, string elementName)
2065 {
2066 return Message(sourceLineNumbers, Ids.UniqueFileSearchIdRequired, "The DirectorySearch element '{0}' requires that the child {1} element has a unique Id when the DirectorySearch/@AssignToProperty attribute is set to 'yes'.", id, elementName);
2067 }
2068
2069 public static Message UnknownCustomTableColumnType(SourceLineNumber sourceLineNumbers, string columnType)
2070 {
2071 return Message(sourceLineNumbers, Ids.UnknownCustomTableColumnType, "Encountered an unknown custom table column type '{0}'.", columnType);
2072 }
2073
2074 public static Message UnmatchedParenthesisInExpression(SourceLineNumber sourceLineNumbers, string expression)
2075 {
2076 return Message(sourceLineNumbers, Ids.UnmatchedParenthesisInExpression, "The parenthesis don't match in the expression '{0}'.", expression);
2077 }
2078
2079 public static Message UnmatchedPreprocessorInstruction(SourceLineNumber sourceLineNumbers, string beginInstruction, string endInstruction)
2080 {
2081 return Message(sourceLineNumbers, Ids.UnmatchedPreprocessorInstruction, "Found a <?{1}?> processing instruction without a matching <?{0}?> before it.", beginInstruction, endInstruction);
2082 }
2083
2084 public static Message UnmatchedQuotesInExpression(SourceLineNumber sourceLineNumbers, string expression)
2085 {
2086 return Message(sourceLineNumbers, Ids.UnmatchedQuotesInExpression, "The quotes don't match in the expression '{0}'.", expression);
2087 }
2088
2089 public static Message UnresolvedBindReference(SourceLineNumber sourceLineNumbers, string BindRef)
2090 {
2091 return Message(sourceLineNumbers, Ids.UnresolvedBindReference, "Unresolved bind-time variable {0}.", BindRef);
2092 }
2093
2094 public static Message UnresolvedReference(SourceLineNumber sourceLineNumbers, string symbolName)
2095 {
2096 return Message(sourceLineNumbers, Ids.UnresolvedReference, "The identifier '{0}' could not be found. Ensure you have typed the reference correctly and that all the necessary inputs are provided to the linker.", symbolName);
2097 }
2098
2099 public static Message UnresolvedReference(SourceLineNumber sourceLineNumbers, string symbolName, WixToolset.Data.AccessModifier accessModifier)
2100 {
2101 return Message(sourceLineNumbers, Ids.UnresolvedReference, "The identifier '{0}' is inaccessible due to its protection level.", symbolName, accessModifier);
2102 }
2103
2104 public static Message UnsupportedAllUsersValue(SourceLineNumber sourceLineNumbers, string path, string value)
2105 {
2106 return Message(sourceLineNumbers, Ids.UnsupportedAllUsersValue, "The MSI '{0}' set the ALLUSERS Property to '{0}' which is not supported. Remove the Property with Id='ALLUSERS' and use Package/@Scope attribute instead.", path, value);
2107 }
2108
2109 public static Message UnsupportedExtensionAttribute(SourceLineNumber sourceLineNumbers, string elementName, string extensionElementName)
2110 {
2111 return Message(sourceLineNumbers, Ids.UnsupportedExtensionAttribute, "The {0} element contains an unsupported extension attribute '{1}'. The {0} element does not currently support extension attributes. Is the {1} attribute using the correct XML namespace?", elementName, extensionElementName);
2112 }
2113
2114 public static Message UnsupportedExtensionElement(SourceLineNumber sourceLineNumbers, string elementName, string extensionElementName)
2115 {
2116 return Message(sourceLineNumbers, Ids.UnsupportedExtensionElement, "The {0} element contains an unsupported extension element '{1}'. The {0} element does not currently support extension elements. Is the {1} element using the correct XML namespace?", elementName, extensionElementName);
2117 }
2118
2119 public static Message UnsupportedPlatformForElement(SourceLineNumber sourceLineNumbers, string platform, string elementName)
2120 {
2121 return Message(sourceLineNumbers, Ids.UnsupportedPlatformForElement, "The element {1} does not support platform '{0}'. Consider removing the element or using the preprocessor to conditionally include the element based on the platform.", platform, elementName);
2122 }
2123
2124 public static Message ValidationError(SourceLineNumber sourceLineNumbers, string ice, string message)
2125 {
2126 return Message(sourceLineNumbers, Ids.ValidationError, "{0}: {1}", ice, message);
2127 }
2128
2129 public static Message ValidationFailedDueToInvalidPackage() 612 public static Message ValidationFailedDueToInvalidPackage()
2130 { 613 {
2131 return Message(null, Ids.ValidationFailedDueToInvalidPackage, "Failed to open package for validation. The most common cause of this error is validating an x64 package on an x86 system. To fix this error, run validation on an x64 system or disable validation."); 614 return Message(null, Ids.ValidationFailedDueToInvalidPackage, "Failed to open package for validation. The most common cause of this error is validating an x64 package on an x86 system. To fix this error, run validation on an x64 system or disable validation.");
@@ -2146,31 +629,6 @@ namespace WixToolset.Data
2146 return Message(null, Ids.ValidationFailedToOpenDatabase, "Failed to open the database. During validation, this most commonly happens when attempting to open a database using an unsupported code page or a file that is not a valid Windows Installer database. Please use a different code page in Module/@Codepage, Package/@SummaryCodepage, Package/@Codepage, or WixLocalization/@Codepage; or make sure you provide the path to a valid Windows Installer database."); 629 return Message(null, Ids.ValidationFailedToOpenDatabase, "Failed to open the database. During validation, this most commonly happens when attempting to open a database using an unsupported code page or a file that is not a valid Windows Installer database. Please use a different code page in Module/@Codepage, Package/@SummaryCodepage, Package/@Codepage, or WixLocalization/@Codepage; or make sure you provide the path to a valid Windows Installer database.");
2147 } 630 }
2148 631
2149 public static Message ValueAndMaskMustBeSameLength(SourceLineNumber sourceLineNumbers)
2150 {
2151 return Message(sourceLineNumbers, Ids.ValueAndMaskMustBeSameLength, "The FileTypeMask/@Value and FileTypeMask/@Mask attributes must be the same length.");
2152 }
2153
2154 public static Message ValueNotSupported(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string attributeValue)
2155 {
2156 return Message(sourceLineNumbers, Ids.ValueNotSupported, "The {0}/@{1} attribute's value, '{2}, is not supported by the Windows Installer.", elementName, attributeName, attributeValue);
2157 }
2158
2159 public static Message VariableDeclarationCollision(SourceLineNumber sourceLineNumbers, string variableName, string variableValue, string variableCollidingValue)
2160 {
2161 return Message(sourceLineNumbers, Ids.VariableDeclarationCollision, "The variable '{0}' with value '{1}' was previously declared with value '{2}'.", variableName, variableValue, variableCollidingValue);
2162 }
2163
2164 public static Message VersionIndependentProgIdsCannotHaveIcons(SourceLineNumber sourceLineNumbers)
2165 {
2166 return Message(sourceLineNumbers, Ids.VersionIndependentProgIdsCannotHaveIcons, "Version independent ProgIds cannot have Icons. Remove the Icon and/or IconIndex attributes from your ProgId element.");
2167 }
2168
2169 public static Message VersionMismatch(SourceLineNumber sourceLineNumbers, string fileType, string version, string expectedVersion)
2170 {
2171 return Message(sourceLineNumbers, Ids.VersionMismatch, "The {0} file format version {1} is not compatible with the expected {0} file format version {2}.", fileType, version, expectedVersion);
2172 }
2173
2174 public static Message Win32Exception(int nativeErrorCode, string message) 632 public static Message Win32Exception(int nativeErrorCode, string message)
2175 { 633 {
2176 return Message(null, Ids.Win32Exception, "An unexpected Win32 exception with error code 0x{0:X} occurred: {1}", nativeErrorCode, message); 634 return Message(null, Ids.Win32Exception, "An unexpected Win32 exception with error code 0x{0:X} occurred: {1}", nativeErrorCode, message);
@@ -2181,66 +639,6 @@ namespace WixToolset.Data
2181 return Message(null, Ids.Win32Exception, "An unexpected Win32 exception with error code 0x{0:X} occurred while accessing file '{1}': {2}", nativeErrorCode, file, message); 639 return Message(null, Ids.Win32Exception, "An unexpected Win32 exception with error code 0x{0:X} occurred while accessing file '{1}': {2}", nativeErrorCode, file, message);
2182 } 640 }
2183 641
2184 public static Message WixFileNotFound(string file)
2185 {
2186 return Message(null, Ids.WixFileNotFound, "The file '{0}' cannot be found.", file);
2187 }
2188
2189 public static Message BindVariableCollision(SourceLineNumber sourceLineNumbers, string variableId)
2190 {
2191 return Message(sourceLineNumbers, Ids.BindVariableCollision, "The bind variable '{0}' is declared in more than one location. Please remove one of the declarations.", variableId);
2192 }
2193
2194 public static Message BindVariableUnknown(SourceLineNumber sourceLineNumbers, string variableId)
2195 {
2196 return Message(sourceLineNumbers, Ids.BindVariableUnknown, "The bind variable !(wix.{0}) is unknown. Please ensure the variable is declared on the command line for wix.exe, via a WixVariable element, or inline using the syntax !(wix.{0}=some value which doesn't contain parentheses).", variableId);
2197 }
2198
2199 public static Message NoSourceFiles()
2200 {
2201 return Message(null, Ids.NoSourceFiles, "No source files specified.");
2202 }
2203
2204 public static Message WixiplSourceFileIsExclusive()
2205 {
2206 return Message(null, Ids.WixiplSourceFileIsExclusive, "When an intermediate post link source file is specified, it must be the only source file provided.");
2207 }
2208
2209 public static Message IntermediatesMustBeCompiled(string invalidIntermediates)
2210 {
2211 return Message(null, Ids.IntermediatesMustBeCompiled, "Intermediates being linked must have been compiled. Intermediates with these ids were not compiled: {0}", invalidIntermediates);
2212 }
2213
2214 public static Message IntermediatesMustBeResolved(string invalidIntermediate)
2215 {
2216 return Message(null, Ids.IntermediatesMustBeResolved, "Intermediates being bound must have been resolved. This intermediate was not resolved: {0}", invalidIntermediate);
2217 }
2218
2219 public static Message UnknownSymbolType(string symbolName)
2220 {
2221 return Message(null, Ids.UnknownSymbolType, "Could not deserialize symbol of type type '{0}' because it is not a standard symbol type or one provided by a loaded extension.", symbolName);
2222 }
2223
2224 public static Message IllegalInnerText(SourceLineNumber sourceLineNumbers, string elementName, string innerText)
2225 {
2226 return Message(sourceLineNumbers, Ids.IllegalInnerText, "The {0} element contains illegal inner text: '{1}'.", elementName, innerText);
2227 }
2228
2229 public static Message IllegalInnerText(SourceLineNumber sourceLineNumbers, string elementName, string innerText, string attributeName)
2230 {
2231 return Message(sourceLineNumbers, Ids.IllegalInnerText, "The {0} element contains inner text which is obsolete. Use the {1} attribute instead.", elementName, attributeName);
2232 }
2233
2234 public static Message IllegalAttributeWhenNested(SourceLineNumber sourceLineNumbers, string attributeName)
2235 {
2236 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);
2237 }
2238
2239 public static Message OverlengthTableNameInProductOrMergeModule(SourceLineNumber sourceLineNumbers, string tableName)
2240 {
2241 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);
2242 }
2243
2244 private static Message Message(SourceLineNumber sourceLineNumber, Ids id, string format, params object[] args) 642 private static Message Message(SourceLineNumber sourceLineNumber, Ids id, string format, params object[] args)
2245 { 643 {
2246 return new Message(sourceLineNumber, MessageLevel.Error, (int)id, format, args); 644 return new Message(sourceLineNumber, MessageLevel.Error, (int)id, format, args);
@@ -2259,385 +657,77 @@ namespace WixToolset.Data
2259 UnexpectedAttribute = 4, 657 UnexpectedAttribute = 4,
2260 UnexpectedElement = 5, 658 UnexpectedElement = 5,
2261 IllegalEmptyAttributeValue = 6, 659 IllegalEmptyAttributeValue = 6,
2262 InsufficientVersion = 7,
2263 IllegalIntegerValue = 8, 660 IllegalIntegerValue = 8,
2264 IllegalGuidValue = 9, 661 IllegalGuidValue = 9,
2265 ExpectedAttribute = 10, 662 ExpectedAttribute = 10,
2266 SecurePropertyNotUppercase = 11,
2267 SearchPropertyNotUppercase = 12,
2268 StreamNameTooLong = 13, 663 StreamNameTooLong = 13,
2269 IllegalIdentifier = 14, 664 IllegalIdentifier = 14,
2270 IllegalYesNoValue = 15, 665 IllegalYesNoValue = 15,
2271 CommandLineCommandRequired = 16, 666 CommandLineCommandRequired = 16,
2272 CabExtractionFailed = 17,
2273 AppIdIncompatibleAdvertiseState = 18,
2274 IllegalAttributeWhenAdvertised = 19,
2275 ConditionExpected = 20,
2276 IllegalAttributeValue = 21, 667 IllegalAttributeValue = 21,
2277 CustomActionMultipleSources = 22,
2278 CustomActionMultipleTargets = 23,
2279 IllegalShortFilename = 26,
2280 IllegalLongFilename = 27, 668 IllegalLongFilename = 27,
2281 TableNameTooLong = 28,
2282 FeatureConfigurableDirectoryNotUppercase = 29,
2283 FeatureCannotFavorAndDisallowAdvertise = 30,
2284 FeatureCannotFollowParentAndFavorLocalOrSource = 31,
2285 MediaEmbeddedCabinetNameTooLong = 32,
2286 RegistrySubElementCannotBeRemoved = 33,
2287 RegistryMultipleValuesWithoutMultiString = 34,
2288 IllegalAttributeWithOtherAttribute = 35, 669 IllegalAttributeWithOtherAttribute = 35,
2289 IllegalAttributeWithOtherAttributes = 36, 670 IllegalAttributeWithOtherAttributes = 36,
2290 IllegalAttributeWithoutOtherAttributes = 37, 671 IllegalAttributeWithoutOtherAttributes = 37,
2291 IllegalAttributeValueWithoutOtherAttribute = 38, 672 IllegalAttributeValueWithoutOtherAttribute = 38,
2292 IntegralValueSentinelCollision = 39, 673 IntegralValueSentinelCollision = 39,
2293 ExampleGuid = 40,
2294 TooManyChildren = 41,
2295 ComponentMultipleKeyPaths = 42,
2296 ExpectedAttributes = 44, 674 ExpectedAttributes = 44,
2297 ExpectedAttributesWithOtherAttribute = 45, 675 ExpectedAttributesWithOtherAttribute = 45,
2298 ExpectedAttributesWithoutOtherAttribute = 46, 676 ExpectedAttributesWithoutOtherAttribute = 46,
2299 MissingTypeLibFile = 47,
2300 InvalidDocumentElement = 48, 677 InvalidDocumentElement = 48,
2301 ExpectedAttributeInElementOrParent = 49, 678 ExpectedAttributeInElementOrParent = 49,
2302 UnauthorizedAccess = 50,
2303 IllegalModuleExclusionLanguageAttributes = 51,
2304 NoFirstControlSpecified = 52,
2305 NoDataForColumn = 53,
2306 ValueAndMaskMustBeSameLength = 54,
2307 TooManySearchElements = 55,
2308 IllegalAttributeExceptOnElement = 56, 679 IllegalAttributeExceptOnElement = 56,
2309 SearchElementRequired = 57,
2310 MultipleIdentifiersFound = 58,
2311 AdvertiseStateMustMatch = 59,
2312 DuplicateContextValue = 60,
2313 RelativePathForRegistryElement = 61,
2314 IllegalAttributeWhenNested = 62, 680 IllegalAttributeWhenNested = 62,
2315 ExpectedElement = 63, 681 ExpectedElement = 63,
2316 RegistryRootInvalid = 64,
2317 IllegalYesNoDefaultValue = 65,
2318 IllegalAttributeInMergeModule = 66,
2319 GenericReadNotAllowed = 67, 682 GenericReadNotAllowed = 67,
2320 IllegalAttributeWithInnerText = 68,
2321 SearchElementRequiredWithAttribute = 69,
2322 CannotAuthorSpecialProperties = 70,
2323 NeedSequenceBeforeOrAfter = 72,
2324 ValueNotSupported = 73,
2325 TabbableControlNotAllowedInBillboard = 74,
2326 CheckBoxValueOnlyValidWithCheckBox = 75,
2327 CabFileDoesNotExist = 76,
2328 RadioButtonTypeInconsistent = 77,
2329 RadioButtonBitmapAndIconDisallowed = 78,
2330 IllegalSuppressWarningId = 79,
2331 PreprocessorIllegalForeachVariable = 80,
2332 PreprocessorMissingParameterPrefix = 81,
2333 PreprocessorExtensionForParameterMissing = 82,
2334 CannotFindFile = 83,
2335 BinderFileManagerMissingFile = 84,
2336 InvalidFileName = 85, 683 InvalidFileName = 85,
2337 ReferenceLoopDetected = 86,
2338 GuidContainsLowercaseLetters = 87,
2339 InvalidDateTimeFormat = 88,
2340 MultipleEntrySections = 89,
2341 MultipleEntrySections2 = 90,
2342 MissingEntrySection = 93,
2343 UnresolvedReference = 94,
2344 MultiplePrimaryReferences = 95,
2345 ComponentReferencedTwice = 96,
2346 DuplicateModuleFileIdentifier = 97,
2347 DuplicateModuleCaseInsensitiveFileIdentifier = 98,
2348 ImplicitComponentKeyPath = 99,
2349 DuplicateLocalizationIdentifier = 100,
2350 LocalizationVariableUnknown = 102,
2351 FileNotFound = 103, 684 FileNotFound = 103,
2352 InvalidXml = 104, 685 InvalidXml = 104,
2353 ProgIdNestedTooDeep = 105,
2354 CanNotHaveTwoParents = 106,
2355 SchemaValidationFailed = 107,
2356 IllegalVersionValue = 108, 686 IllegalVersionValue = 108,
2357 CustomTableNameTooLong = 109,
2358 CustomTableIllegalColumnWidth = 110,
2359 CustomTableMissingPrimaryKey = 111,
2360 TypeSpecificationForExtensionRequired = 113,
2361 FilePathRequired = 114, 687 FilePathRequired = 114,
2362 DirectoryPathRequired = 115,
2363 FileOrDirectoryPathRequired = 116,
2364 PathCannotContainQuote = 117,
2365 AdditionalArgumentUnexpected = 118,
2366 RegistryNameValueIncorrect = 119,
2367 FamilyNameTooLong = 120,
2368 IllegalFamilyName = 121,
2369 IllegalLongValue = 122,
2370 IntegralValueOutOfRange = 123, 688 IntegralValueOutOfRange = 123,
2371 DuplicateExtensionXmlSchemaNamespace = 125,
2372 DuplicateExtensionTable = 126,
2373 DuplicateExtensionPreprocessorType = 127,
2374 FileInUse = 128,
2375 CannotOpenMergeModule = 129,
2376 DuplicatePrimaryKey = 130, 689 DuplicatePrimaryKey = 130,
2377 FileIdentifierNotFound = 131,
2378 InvalidAssemblyFile = 132,
2379 ExpectedEndElement = 133,
2380 IllegalCodepage = 134, 690 IllegalCodepage = 134,
2381 ExpectedMediaCabinet = 135,
2382 InvalidIdt = 136, 691 InvalidIdt = 136,
2383 InvalidSequenceTable = 137,
2384 ExpectedDirectory = 138,
2385 ComponentExpectedFeature = 139,
2386 RecursiveAction = 140,
2387 VersionMismatch = 141, 692 VersionMismatch = 141,
2388 UnexpectedContentNode = 142,
2389 UnexpectedColumnCount = 143,
2390 InvalidExtension = 144,
2391 InvalidSubExpression = 145,
2392 UnmatchedPreprocessorInstruction = 146,
2393 NonterminatedPreprocessorInstruction = 147,
2394 ExpectedExpressionAfterNot = 148,
2395 InvalidPreprocessorVariable = 149,
2396 UndefinedPreprocessorVariable = 150,
2397 IllegalDefineStatement = 151,
2398 VariableDeclarationCollision = 152,
2399 CannotReundefineVariable = 153,
2400 IllegalForeach = 154,
2401 IllegalParentAttributeWhenNested = 155, 693 IllegalParentAttributeWhenNested = 155,
2402 ExpectedEndforeach = 156,
2403 UnmatchedQuotesInExpression = 158,
2404 UnmatchedParenthesisInExpression = 159,
2405 ExpectedVariable = 160,
2406 UnexpectedLiteral = 161,
2407 IllegalIntegerInExpression = 162,
2408 UnexpectedPreprocessorOperator = 163,
2409 UnexpectedEmptySubexpression = 164,
2410 UnexpectedCustomTableColumn = 165,
2411 UnknownCustomTableColumnType = 166,
2412 IllegalFileCompressionAttributes = 167, 694 IllegalFileCompressionAttributes = 167,
2413 OverridableActionCollision = 168,
2414 OverridableActionCollision2 = 169,
2415 ActionCollision = 170,
2416 ActionCollision2 = 171,
2417 SuppressNonoverridableAction = 172,
2418 SuppressNonoverridableAction2 = 173,
2419 CustomActionSequencedInModule = 174,
2420 StandardActionRelativelyScheduledInModule = 175,
2421 ActionCircularDependency = 176,
2422 ActionScheduledRelativeToTerminationAction = 177,
2423 ActionScheduledRelativeToTerminationAction2 = 178,
2424 NoUniqueActionSequenceNumber = 179,
2425 NoUniqueActionSequenceNumber2 = 180,
2426 ActionScheduledRelativeToItself = 181,
2427 MissingTableDefinition = 182, 695 MissingTableDefinition = 182,
2428 UnexpectedTableInMergeModule = 184,
2429 MergeExcludedModule = 186,
2430 MergeFeatureRequired = 187,
2431 MergeLanguageFailed = 188,
2432 MergeLanguageUnsupported = 189,
2433 TableDecompilationUnimplemented = 190,
2434 CannotDefaultMismatchedAdvertiseStates = 191,
2435 VersionIndependentProgIdsCannotHaveIcons = 192,
2436 IllegalAttributeValueWithOtherAttribute = 193, 696 IllegalAttributeValueWithOtherAttribute = 193,
2437 InvalidMergeLanguage = 194,
2438 BindVariableCollision = 195,
2439 ExpectedBindVariableValue = 196,
2440 BindVariableUnknown = 197,
2441 IllegalBindVariablePrefix = 198,
2442 InvalidWixXmlNamespace = 199, 697 InvalidWixXmlNamespace = 199,
2443 UnhandledExtensionElement = 200,
2444 UnhandledExtensionAttribute = 201,
2445 UnsupportedExtensionAttribute = 202,
2446 UnsupportedExtensionElement = 203,
2447 ValidationError = 204,
2448 IllegalRootDirectory = 205,
2449 IllegalTargetDirDefaultDir = 206,
2450 TooManyElements = 207, 698 TooManyElements = 207,
2451 ExpectedBinaryCategory = 208,
2452 RootFeatureCannotFollowParent = 209,
2453 FeatureNameTooLong = 210,
2454 SignedEmbeddedCabinet = 211,
2455 ExpectedSignedCabinetName = 212,
2456 IllegalInlineLocVariable = 213,
2457 MergeModuleExpectedFeature = 215,
2458 Win32Exception = 216, 699 Win32Exception = 216,
2459 UnexpectedExternalUIMessage = 217, 700 UnexpectedExternalUIMessage = 217,
2460 IllegalCabbingThreadCount = 218,
2461 IllegalEnvironmentVariable = 219, 701 IllegalEnvironmentVariable = 219,
2462 InvalidKeyColumn = 220,
2463 CollidingModularizationTypes = 221, 702 CollidingModularizationTypes = 221,
2464 CubeFileNotFound = 222, 703 CubeFileNotFound = 222,
2465 OutputTypeMismatch = 224,
2466 RealTableMissingPrimaryKeyColumn = 225, 704 RealTableMissingPrimaryKeyColumn = 225,
2467 IllegalColumnName = 226,
2468 NoDifferencesInTransform = 227,
2469 OutputCodepageMismatch = 228,
2470 OutputCodepageMismatch2 = 229,
2471 IllegalComponentWithAutoGeneratedGuid = 230, 705 IllegalComponentWithAutoGeneratedGuid = 230,
2472 IllegalPathForGeneratedComponentGuid = 231,
2473 IllegalTerminalServerCustomActionAttributes = 232,
2474 IllegalPropertyCustomActionAttributes = 233,
2475 InvalidPreprocessorFunction = 234,
2476 UndefinedPreprocessorFunction = 235,
2477 PreprocessorExtensionEvaluateFunctionFailed = 236,
2478 PreprocessorExtensionGetVariableValueFailed = 237,
2479 InvalidManifestContent = 238,
2480 InvalidWixTransform = 239,
2481 UnexpectedFileExtension = 240,
2482 UnexpectedTableInPatch = 241,
2483 InvalidKeypathChange = 243,
2484 MissingValidatorExtension = 244,
2485 InvalidValidatorMessageType = 245, 706 InvalidValidatorMessageType = 245,
2486 PatchWithoutTransforms = 246,
2487 SingleExtensionSupported = 247,
2488 DuplicateTransform = 248,
2489 BaselineRequired = 249,
2490 PreprocessorError = 250,
2491 ExpectedArgument = 251,
2492 PatchWithoutValidTransforms = 252,
2493 ExpectedDecompiler = 253,
2494 ExpectedTableInMergeModule = 254,
2495 UnexpectedElementWithAttributeValue = 255, 707 UnexpectedElementWithAttributeValue = 255,
2496 ExpectedPatchIdInWixMsp = 256,
2497 ExpectedMediaRowsInWixMsp = 257,
2498 WixFileNotFound = 258,
2499 ExpectedClientPatchIdInWixMsp = 259,
2500 NewRowAddedInTable = 260,
2501 PatchNotRemovable = 261,
2502 PathTooLong = 262,
2503 FileTooLarge = 263,
2504 InvalidPlatformParameter = 264, 708 InvalidPlatformParameter = 264,
2505 InvalidPlatformValue = 265,
2506 IllegalValidationArguments = 266,
2507 OrphanedComponent = 267,
2508 IllegalCommandLineArgumentValue = 268, 709 IllegalCommandLineArgumentValue = 268,
2509 ProductCodeInvalidForTransform = 269,
2510 InsertInvalidSequenceActionOrder = 270,
2511 InsertSequenceNoSpace = 271,
2512 MissingManifestForWin32Assembly = 272,
2513 UnableToOpenModule = 273,
2514 ExpectedAttributeWhenElementNotUnderElement = 274, 710 ExpectedAttributeWhenElementNotUnderElement = 274,
2515 IllegalIdentifierLooksLikeFormatted = 275,
2516 IllegalCodepageAttribute = 276,
2517 IllegalCompressionLevel = 277,
2518 TransformSchemaMismatch = 278,
2519 DatabaseSchemaMismatch = 279,
2520 ExpectedDirectoryGotFile = 280,
2521 ExpectedFileGotDirectory = 281,
2522 GacAssemblyNoStrongName = 282,
2523 FileWriteError = 283,
2524 InvalidCommandLineFileName = 284,
2525 ExpectedParentWithAttribute = 285, 711 ExpectedParentWithAttribute = 285,
2526 IllegalWarningIdAsError = 286,
2527 ExpectedAttributeOrElement = 287,
2528 DuplicateVariableDefinition = 288,
2529 InvalidVariableDefinition = 289,
2530 DuplicateCabinetName = 290,
2531 DuplicateCabinetName2 = 291,
2532 InvalidAddedFileRowWithoutSequence = 292,
2533 DuplicateFileId = 293,
2534 FullTempDirectory = 294,
2535 CreateCabAddFileFailed = 296,
2536 CreateCabInsufficientDiskSpace = 297,
2537 UnresolvedBindReference = 298,
2538 GACAssemblyIdentityWarning = 299,
2539 IllegalCharactersInPath = 300, 712 IllegalCharactersInPath = 300,
2540 ValidationFailedToOpenDatabase = 301, 713 ValidationFailedToOpenDatabase = 301,
2541 MustSpecifyOutputWithMoreThanOneInput = 302,
2542 IllegalSearchIdForParentDepth = 303,
2543 IdentifierTooLongError = 304, 714 IdentifierTooLongError = 304,
2544 InvalidRemoveComponent = 305,
2545 FinishCabFailed = 306,
2546 InvalidExtensionType = 307,
2547 ValidationFailedDueToMultilanguageMergeModule = 309, 715 ValidationFailedDueToMultilanguageMergeModule = 309,
2548 ValidationFailedDueToInvalidPackage = 310, 716 ValidationFailedDueToInvalidPackage = 310,
2549 InvalidStringForCodepage = 311,
2550 InvalidEmbeddedUIFileName = 312,
2551 UniqueFileSearchIdRequired = 313,
2552 IllegalAttributeValueWhenNested = 314, 717 IllegalAttributeValueWhenNested = 314,
2553 AdminImageRequired = 315,
2554 SamePatchBaselineId = 316,
2555 SameFileIdDifferentSource = 317,
2556 HarvestSourceNotSpecified = 318,
2557 OutputTargetNotSpecified = 319,
2558 BothUpgradeCodesRequired = 322,
2559 IllegalBinderClassName = 323,
2560 SpecifiedBinderNotFound = 324,
2561 UnableToGetAuthenticodeCertOfFile = 327,
2562 UnableToGetAuthenticodeCertOfFileDownlevelOS = 328,
2563 ReadOnlyOutputFile = 329,
2564 CannotDefaultComponentId = 330,
2565 ParentElementAttributeRequired = 331,
2566 PreprocessorExtensionPragmaFailed = 333,
2567 InvalidPreprocessorPragma = 334,
2568 InvalidStubExe = 338,
2569 StubMissingWixburnSection = 339,
2570 StubWixburnSectionTooSmall = 340,
2571 MissingBundleInformation = 341,
2572 UnexpectedGroupChild = 342,
2573 OrderingReferenceLoopDetected = 343,
2574 IdentifierNotFound = 344, 718 IdentifierNotFound = 344,
2575 MergePlatformMismatch = 345,
2576 IllegalRelativeLongFilename = 346, 719 IllegalRelativeLongFilename = 346,
2577 IllegalAttributeValueWithLegalList = 347, 720 IllegalAttributeValueWithLegalList = 347,
2578 IllegalAttributeValueWithIllegalList = 348,
2579 InvalidSummaryInfoCodePage = 349,
2580 ValidationFailedDueToLowMsiEngine = 350, 721 ValidationFailedDueToLowMsiEngine = 350,
2581 DuplicateSourcesForOutput = 351,
2582 UnableToReadPackageInformation = 352,
2583 MultipleFilesMatchedWithOutputSpecification = 353,
2584 InvalidBundle = 354,
2585 BundleTooNew = 355,
2586 MediaTableCollision = 357,
2587 InvalidCabinetTemplate = 358,
2588 MaximumUncompressedMediaSizeTooLarge = 359,
2589 ReservedNamespaceViolation = 362,
2590 PerUserButAllUsersEquals1 = 363,
2591 UnsupportedAllUsersValue = 364,
2592 DisallowedMsiProperty = 365,
2593 MissingOrInvalidModuleInstallerVersion = 366,
2594 IllegalGeneratedGuidComponentUnversionedKeypath = 367,
2595 IllegalGeneratedGuidComponentVersionedNonkeypath = 368,
2596 DuplicateComponentGuids = 369,
2597 DuplicateProviderDependencyKey = 370,
2598 MissingDependencyVersion = 371,
2599 UnexpectedElementWithAttribute = 372, 722 UnexpectedElementWithAttribute = 372,
2600 ExpectedAttributeWithElement = 373,
2601 DuplicatedUiLocalization = 374,
2602 MaximumCabinetSizeForLargeFileSplittingTooLarge = 375,
2603 SplitCabinetCopyRegistrationFailed = 376,
2604 SplitCabinetNameCollision = 377,
2605 InvalidPreprocessorFunctionAutoVersion = 379,
2606 InvalidFourPartVersion = 380,
2607 UnsupportedPlatformForElement = 381, 723 UnsupportedPlatformForElement = 381,
2608 MissingMedia = 382,
2609 IllegalYesNoAlwaysValue = 384,
2610 TooDeeplyIncluded = 385,
2611 TooManyColumnsInRealTable = 386,
2612 InlineDirectorySyntaxRequiresPath = 387,
2613 InsecureBundleFilename = 388,
2614 PayloadMustBeRelativeToCache = 389, 724 PayloadMustBeRelativeToCache = 389,
2615 MsiTransactionX86BeforeX64Package = 390,
2616 NoSourceFiles = 391,
2617 WixiplSourceFileIsExclusive = 392,
2618 UnableToConvertFieldToNumber = 393, 725 UnableToConvertFieldToNumber = 393,
2619 CouldNotDetermineProductCodeFromTransformSummaryInfo = 394,
2620 IntermediatesMustBeCompiled = 395,
2621 IntermediatesMustBeResolved = 396,
2622 MissingBundleSearch = 397,
2623 CircularSearchReference = 398,
2624 UnknownSymbolType = 399, 726 UnknownSymbolType = 399,
2625 IllegalInnerText = 400,
2626 ExpectedAttributeWithValueWithOtherAttribute = 401, 727 ExpectedAttributeWithValueWithOtherAttribute = 401,
2627 PackagePayloadUnsupported = 402,
2628 PackagePayloadUnsupported2 = 403,
2629 MultiplePackagePayloads = 404,
2630 MultiplePackagePayloads2 = 405,
2631 MultiplePackagePayloads3 = 406,
2632 MissingPackagePayload = 407,
2633 ExpectedAttributeWithoutOtherAttributes = 408, 728 ExpectedAttributeWithoutOtherAttributes = 408,
2634 InvalidBundleCondition = 409,
2635 MsiTransactionX86BeforeX64Package2 = 410,
2636 MsiTransactionInvalidPackage = 411,
2637 MsiTransactionInvalidPackage2 = 412,
2638 ExpectedAttributeOrElementWithOtherAttribute = 413, 729 ExpectedAttributeOrElementWithOtherAttribute = 413,
2639 ExpectedAttributeOrElementWithoutOtherAttribute = 414, 730 ExpectedAttributeOrElementWithoutOtherAttribute = 414,
2640 OverlengthTableNameInProductOrMergeModule = 415
2641 } 731 }
2642 } 732 }
2643} 733}