main
cs 2,678 lines 187 KB
Raw
1 // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
2
3 namespace WixToolset.Data
4 {
5 using System;
6 using System.Collections.Generic;
7 using System.Resources;
8
9 public static class ErrorMessages
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
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
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
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
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
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
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
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
171 public static Message CorruptFileFormat(string path, string format)
172 {
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());
174 }
175
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 DuplicateCommandLineOptionInExtension(string arg)
252 {
253 return Message(null, Ids.DuplicateCommandLineOptionInExtension, "The command line option '{0}' has already been loaded by another Heat extension.", arg);
254 }
255
256 public static Message DuplicateComponentGuids(SourceLineNumber sourceLineNumbers, string componentId, string guid, string type, string keyPath)
257 {
258 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);
259 }
260
261 public static Message DuplicateContextValue(SourceLineNumber sourceLineNumbers, string contextValue)
262 {
263 return Message(sourceLineNumbers, Ids.DuplicateContextValue, "The context value '{0}' was duplicated. Context values must be distinct.", contextValue);
264 }
265
266 public static Message DuplicatedUiLocalization(SourceLineNumber sourceLineNumbers, string controlName, string dialogName)
267 {
268 return Message(sourceLineNumbers, Ids.DuplicatedUiLocalization, "The localization for control {0} in dialog {1} is duplicated. Only one localization per control is allowed.", controlName, dialogName);
269 }
270
271 public static Message DuplicatedUiLocalization(SourceLineNumber sourceLineNumbers, string dialogName)
272 {
273 return Message(sourceLineNumbers, Ids.DuplicatedUiLocalization, "The localization for dialog {0} is duplicated. Only one localization per dialog is allowed.", dialogName);
274 }
275
276 public static Message DuplicateExtensionPreprocessorType(string extension, string variablePrefix, string collidingExtension)
277 {
278 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);
279 }
280
281 public static Message DuplicateExtensionTable(string extension, string tableName)
282 {
283 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);
284 }
285
286 public static Message DuplicateExtensionXmlSchemaNamespace(string extension, string extensionXmlSchemaNamespace, string collidingExtension)
287 {
288 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);
289 }
290
291 public static Message DuplicateFileId(string fileId)
292 {
293 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);
294 }
295
296 public static Message DuplicateLocalizationIdentifier(SourceLineNumber sourceLineNumbers, string localizationId)
297 {
298 return Message(sourceLineNumbers, Ids.DuplicateLocalizationIdentifier, "The localization identifier '{0}' has been duplicated in multiple locations. Please resolve the conflict.", localizationId);
299 }
300
301 public static Message DuplicateModuleCaseInsensitiveFileIdentifier(SourceLineNumber sourceLineNumbers, string moduleId, string fileId1, string fileId2)
302 {
303 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);
304 }
305
306 public static Message DuplicateModuleFileIdentifier(SourceLineNumber sourceLineNumbers, string moduleId, string fileId)
307 {
308 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);
309 }
310
311 public static Message DuplicatePrimaryKey(SourceLineNumber sourceLineNumbers, string primaryKey, string tableName)
312 {
313 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);
314 }
315
316 public static Message DuplicateProviderDependencyKey(string providerKey, string packageId)
317 {
318 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);
319 }
320
321 public static Message DuplicateSourcesForOutput(string sourceList, string outputFile)
322 {
323 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);
324 }
325
326 public static Message DuplicateTransform(string transform)
327 {
328 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);
329 }
330
331 public static Message DuplicateVariableDefinition(string variableName, string variableValue, string variableCollidingValue)
332 {
333 return Message(null, Ids.DuplicateVariableDefinition, "The variable '{0}' with value '{1}' was previously declared with value '{2}'.", variableName, variableValue, variableCollidingValue);
334 }
335
336 public static Message ExampleGuid(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value)
337 {
338 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);
339 }
340
341 public static Message ExpectedArgument(string argument)
342 {
343 return Message(null, Ids.ExpectedArgument, "{0} is expected to be followed by a value. See -? for additional detail.", argument);
344 }
345
346 public static Message ExpectedAttribute(SourceLineNumber sourceLineNumbers, string elementName, string attributeName)
347 {
348 return Message(sourceLineNumbers, Ids.ExpectedAttribute, "The {0}/@{1} attribute was not found; it is required.", elementName, attributeName);
349 }
350
351 public static Message ExpectedAttribute(SourceLineNumber sourceLineNumbers, string elementName, string attribute1Name, string attribute2Name, bool eitherOr)
352 {
353 return Message(sourceLineNumbers, Ids.ExpectedAttribute, "The {0} element must have a value for exactly one of the {1} or {2} attributes.", elementName, attribute1Name, attribute2Name, eitherOr);
354 }
355
356 public static Message ExpectedAttribute(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string otherAttributeName)
357 {
358 return Message(sourceLineNumbers, Ids.ExpectedAttribute, "The {0}/@{1} attribute was not found; it is required when attribute {2} is specified.", elementName, attributeName, otherAttributeName);
359 }
360
361 public static Message ExpectedAttribute(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string otherAttributeName, string otherAttributeValue)
362 {
363 return Message(sourceLineNumbers, Ids.ExpectedAttribute, "The {0}/@{1} attribute was not found; it is required when attribute {2} has a value of '{3}'.", elementName, attributeName, otherAttributeName, otherAttributeValue);
364 }
365
366 public static Message ExpectedAttribute(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string otherAttributeName, string otherAttributeValue, bool otherAttributeValueUnless)
367 {
368 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);
369 }
370
371 public static Message ExpectedAttributeInElementOrParent(SourceLineNumber sourceLineNumbers, string elementName, string attributeName)
372 {
373 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);
374 }
375
376 public static Message ExpectedAttributeInElementOrParent(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string parentElementName)
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} element.", elementName, attributeName, parentElementName);
379 }
380
381 public static Message ExpectedAttributeInElementOrParent(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string parentElementName, string parentAttributeName)
382 {
383 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);
384 }
385
386 public static Message ExpectedAttributeWithValueWithOtherAttribute(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string attributeName2)
387 {
388 return Message(sourceLineNumbers, Ids.ExpectedAttributeWithValueWithOtherAttribute, "The {0}/@{1} attribute is required to have a value when attribute {2} is present.", elementName, attributeName, attributeName2);
389 }
390
391 public static Message ExpectedAttributeOrElement(SourceLineNumber sourceLineNumbers, string parentElement, string attribute, string childElement)
392 {
393 return Message(sourceLineNumbers, Ids.ExpectedAttributeOrElement, "Element '{0}' missing attribute '{1}' or child element '{2}'. Exactly one of those is required.", parentElement, attribute, childElement);
394 }
395
396 public static Message ExpectedAttributeOrElementWithOtherAttribute(SourceLineNumber sourceLineNumbers, string parentElement, string attribute, string childElement, string otherAttribute)
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.", parentElement, attribute, childElement, otherAttribute);
399 }
400
401 public static Message ExpectedAttributeOrElementWithOtherAttribute(SourceLineNumber sourceLineNumbers, string parentElement, string attribute, string childElement, string otherAttribute, string otherAttributeValue)
402 {
403 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);
404 }
405
406 public static Message ExpectedAttributeOrElementWithoutOtherAttribute(SourceLineNumber sourceLineNumbers, string parentElement, string attribute, string childElement, string otherAttribute)
407 {
408 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);
409 }
410
411 public static Message ExpectedAttributes(SourceLineNumber sourceLineNumbers, string elementName, string attributeName1, string attributeName2)
412 {
413 return Message(sourceLineNumbers, Ids.ExpectedAttributes, "The {0} element's {1} or {2} attribute was not found; one of these is required.", elementName, attributeName1, attributeName2);
414 }
415
416 public static Message ExpectedAttributes(SourceLineNumber sourceLineNumbers, string elementName, string attributeName1, string attributeName2, string attributeName3)
417 {
418 return Message(sourceLineNumbers, Ids.ExpectedAttributes, "The {0} element's {1}, {2}, or {3} attribute was not found; one of these is required.", elementName, attributeName1, attributeName2, attributeName3);
419 }
420
421 public static Message ExpectedAttributes(SourceLineNumber sourceLineNumbers, string elementName, string attributeName1, string attributeName2, string attributeName3, string attributeName4)
422 {
423 return Message(sourceLineNumbers, Ids.ExpectedAttributes, "The {0} element's {1}, {2}, {3}, or {4} attribute was not found; one of these is required.", elementName, attributeName1, attributeName2, attributeName3, attributeName4);
424 }
425
426 public static Message ExpectedAttributes(SourceLineNumber sourceLineNumbers, string elementName, string attributeName1, string attributeName2, string attributeName3, string attributeName4, string attributeName5)
427 {
428 return Message(sourceLineNumbers, Ids.ExpectedAttributes, "The {0} element's {1}, {2}, {3}, {4}, or {5} attribute was not found; one of these is required.", elementName, attributeName1, attributeName2, attributeName3, attributeName4, attributeName5);
429 }
430
431 public static Message ExpectedAttributes(SourceLineNumber sourceLineNumbers, string elementName, string attributeName1, string attributeName2, string attributeName3, string attributeName4, string attributeName5, string attributeName6)
432 {
433 return Message(sourceLineNumbers, Ids.ExpectedAttributes, "The {0} element's {1}, {2}, {3}, {4}, {5}, or {6} attribute was not found; one of these is required.", elementName, attributeName1, attributeName2, attributeName3, attributeName4, attributeName5, attributeName6);
434 }
435
436 public static Message ExpectedAttributes(SourceLineNumber sourceLineNumbers, string elementName, string attributeName1, string attributeName2, string attributeName3, string attributeName4, string attributeName5, string attributeName6, string attributeName7)
437 {
438 return Message(sourceLineNumbers, Ids.ExpectedAttributes, "The {0} element's {1}, {2}, {3}, {4}, {5}, {6}, or {7} attribute was not found; one of these is required.", elementName, attributeName1, attributeName2, attributeName3, attributeName4, attributeName5, attributeName6, attributeName7);
439 }
440
441 public static Message ExpectedAttributesWithOtherAttribute(SourceLineNumber sourceLineNumbers, string elementName, string attributeName1, string attributeName2)
442 {
443 return Message(sourceLineNumbers, Ids.ExpectedAttributesWithOtherAttribute, "The {0} element's {1} or {2} attribute was not found; at least one of these attributes must be specified.", elementName, attributeName1, attributeName2);
444 }
445
446 public static Message ExpectedAttributesWithOtherAttribute(SourceLineNumber sourceLineNumbers, string elementName, string attributeName1, string attributeName2, string otherAttributeName)
447 {
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} is present.", elementName, attributeName1, attributeName2, otherAttributeName);
449 }
450
451 public static Message ExpectedAttributesWithOtherAttribute(SourceLineNumber sourceLineNumbers, string elementName, string attributeName1, string attributeName2, string otherAttributeName, string otherAttributeValue)
452 {
453 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);
454 }
455
456 public static Message ExpectedAttributesWithoutOtherAttribute(SourceLineNumber sourceLineNumbers, string elementName, string attributeName1, string attributeName2, string otherAttributeName)
457 {
458 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);
459 }
460
461 public static Message ExpectedAttributeWhenElementNotUnderElement(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string parentElementName)
462 {
463 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);
464 }
465
466 public static Message ExpectedAttributeWithElement(SourceLineNumber sourceLineNumbers, string elementName, string attribute, string childElementName)
467 {
468 return Message(sourceLineNumbers, Ids.ExpectedAttributeWithElement, "The {0} element must have attribute '{1}' when child element '{2}' is present.", elementName, attribute, childElementName);
469 }
470
471 public static Message ExpectedAttributeWithoutOtherAttribute(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string otherAttributeName)
472 {
473 return Message(sourceLineNumbers, Ids.ExpectedAttributeWithoutOtherAttributes, "The {0} element's {1} attribute was not found; it is required without attribute {2} present.", elementName, attributeName, otherAttributeName);
474 }
475
476 public static Message ExpectedAttributeWithoutOtherAttributes(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string otherAttributeName1, string otherAttributeName2)
477 {
478 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);
479 }
480
481 public static Message ExpectedBinaryCategory(SourceLineNumber sourceLineNumbers)
482 {
483 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'.");
484 }
485
486 public static Message ExpectedClientPatchIdInWixMsp()
487 {
488 return Message(null, Ids.ExpectedClientPatchIdInWixMsp, "The WixMsp is missing the client patch ID. Recompile the patch source files with the latest WiX toolset.");
489 }
490
491 public static Message ExpectedDecompiler(string identifier)
492 {
493 return Message(null, Ids.ExpectedDecompiler, "No decompiler was provided. {0} requires a decompiler.", identifier);
494 }
495
496 public static Message ExpectedDirectory(string directory)
497 {
498 return Message(null, Ids.ExpectedDirectory, "The directory '{0}' could not be found.", directory);
499 }
500
501 public static Message ExpectedDirectoryGotFile(string option, string path)
502 {
503 return Message(null, Ids.ExpectedDirectoryGotFile, "The {0} option requires a directory, but the provided path is a file: {1}", option, path);
504 }
505
506 public static Message ExpectedElement(SourceLineNumber sourceLineNumbers, string elementName)
507 {
508 return Message(sourceLineNumbers, Ids.ExpectedElement, "A {0} element must have at least one child element.", elementName);
509 }
510
511 public static Message ExpectedElement(SourceLineNumber sourceLineNumbers, string elementName, string childName)
512 {
513 return Message(sourceLineNumbers, Ids.ExpectedElement, "A {0} element must have at least one child element of type {1}.", elementName, childName);
514 }
515
516 public static Message ExpectedElement(SourceLineNumber sourceLineNumbers, string elementName, string childName1, string childName2)
517 {
518 return Message(sourceLineNumbers, Ids.ExpectedElement, "A {0} element must have at least one child element of type {1} or {2}.", elementName, childName1, childName2);
519 }
520
521 public static Message ExpectedElement(SourceLineNumber sourceLineNumbers, string elementName, string childName1, string childName2, string childName3)
522 {
523 return Message(sourceLineNumbers, Ids.ExpectedElement, "A {0} element must have at least one child element of type {1}, {2}, or {3}.", elementName, childName1, childName2, childName3);
524 }
525
526 public static Message ExpectedElement(SourceLineNumber sourceLineNumbers, string elementName, string childName1, string childName2, string childName3, string childName4)
527 {
528 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);
529 }
530
531 public static Message ExpectedEndElement(SourceLineNumber sourceLineNumbers, string elementName)
532 {
533 return Message(sourceLineNumbers, Ids.ExpectedEndElement, "The end element matching the '{0}' start element was not found.", elementName);
534 }
535
536 public static Message ExpectedEndforeach(SourceLineNumber sourceLineNumbers)
537 {
538 return Message(sourceLineNumbers, Ids.ExpectedEndforeach, "A <?foreach?> statement was found that had no matching <?endforeach?>.");
539 }
540
541 public static Message ExpectedExpressionAfterNot(SourceLineNumber sourceLineNumbers, string expression)
542 {
543 return Message(sourceLineNumbers, Ids.ExpectedExpressionAfterNot, "Expecting an argument for 'NOT' in expression '{0}'.", expression);
544 }
545
546 public static Message ExpectedFileGotDirectory(string option, string path)
547 {
548 return Message(null, Ids.ExpectedFileGotDirectory, "The {0} option requires a file, but the provided path is a directory: {1}", option, path);
549 }
550
551 public static Message ExpectedMediaCabinet(SourceLineNumber sourceLineNumbers, string fileId, int diskId)
552 {
553 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);
554 }
555
556 public static Message ExpectedMediaRowsInWixMsp()
557 {
558 return Message(null, Ids.ExpectedMediaRowsInWixMsp, "The WixMsp has no media rows defined.");
559 }
560
561 public static Message ExpectedParentWithAttribute(SourceLineNumber sourceLineNumbers, string parentElement, string attribute, string grandparentElement)
562 {
563 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);
564 }
565
566 public static Message ExpectedPatchIdInWixMsp()
567 {
568 return Message(null, Ids.ExpectedPatchIdInWixMsp, "The WixMsp is missing the patch ID.");
569 }
570
571 public static Message ExpectedRowInPatchCreationPackage(string tableName)
572 {
573 return Message(null, Ids.ExpectedRowInPatchCreationPackage, "Could not find a row in the '{0}' table for this patch creation package. Patch creation packages must contain at least one row in the '{0}' table.", tableName);
574 }
575
576 public static Message ExpectedSignedCabinetName(SourceLineNumber sourceLineNumbers)
577 {
578 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.");
579 }
580
581 public static Message ExpectedTableInMergeModule(string identifier)
582 {
583 return Message(null, Ids.ExpectedTableInMergeModule, "The table '{0}' was expected but was missing.", identifier);
584 }
585
586 public static Message ExpectedVariable(SourceLineNumber sourceLineNumbers, string expression)
587 {
588 return Message(sourceLineNumbers, Ids.ExpectedVariable, "A required variable was missing in the expression '{0}'.", expression);
589 }
590
591 public static Message ExpectedBindVariableValue(string variableId)
592 {
593 return Message(null, Ids.ExpectedBindVariableValue, "The bind variable '{0}' was declared without a value. Please specify a value for the variable.", variableId);
594 }
595
596 public static Message FamilyNameTooLong(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value, int length)
597 {
598 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);
599 }
600
601 public static Message FeatureCannotFavorAndDisallowAdvertise(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value, string otherAttributeName, string otherValue)
602 {
603 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);
604 }
605
606 public static Message FeatureCannotFollowParentAndFavorLocalOrSource(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string otherAttributeName, string otherValue)
607 {
608 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);
609 }
610
611 public static Message FeatureConfigurableDirectoryNotUppercase(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value)
612 {
613 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);
614 }
615
616 public static Message FeatureNameTooLong(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string attributeValue)
617 {
618 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);
619 }
620
621 public static Message FileIdentifierNotFound(SourceLineNumber sourceLineNumbers, string fileIdentifier)
622 {
623 return Message(sourceLineNumbers, Ids.FileIdentifierNotFound, "The file row with identifier '{0}' could not be found.", fileIdentifier);
624 }
625
626 public static Message FileInUse(SourceLineNumber sourceLineNumbers, string file)
627 {
628 return Message(sourceLineNumbers, Ids.FileInUse, "The process can not access the file '{0}' because it is being used by another process.", file);
629 }
630
631 public static Message FileNotFound(SourceLineNumber sourceLineNumbers, string file)
632 {
633 return Message(sourceLineNumbers, Ids.FileNotFound, "Cannot find the file '{0}'.", file);
634 }
635
636 public static Message FileNotFound(SourceLineNumber sourceLineNumbers, string file, string fileType)
637 {
638 return Message(sourceLineNumbers, Ids.FileNotFound, "Cannot find the {0} file '{1}'.", fileType, file);
639 }
640
641 public static Message FileNotFound(SourceLineNumber sourceLineNumbers, string file, string fileType, IEnumerable<string> checkedPaths)
642 {
643 var combinedCheckedPaths = String.Join(", ", checkedPaths);
644 var fileTypePrefix = String.IsNullOrEmpty(fileType) ? String.Empty : fileType + " ";
645 return Message(sourceLineNumbers, Ids.FileNotFound, "Cannot find the {0}file '{1}'. The following paths were checked: {2}", fileTypePrefix, file, combinedCheckedPaths);
646 }
647
648 public static Message FileOrDirectoryPathRequired(string parameter)
649 {
650 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);
651 }
652
653 public static Message FilePathRequired(string filePurpose)
654 {
655 return Message(null, Ids.FilePathRequired, "The path to the {0} is required.", filePurpose);
656 }
657
658 public static Message FilePathRequired(string parameter, string filePurpose)
659 {
660 return Message(null, Ids.FilePathRequired, "The parameter '{0}' must be followed by a file path for the {1}.", parameter, filePurpose);
661 }
662
663 public static Message FileTooLarge(SourceLineNumber sourceLineNumbers, string fileName)
664 {
665 return Message(sourceLineNumbers, Ids.FileTooLarge, "'{0}' is too large, file size must be less than 2147483648.", fileName);
666 }
667
668 public static Message FileWriteError(string path, string error)
669 {
670 return Message(null, Ids.FileWriteError, "Error writing to the path: '{0}'. Error message: '{1}'", path, error);
671 }
672
673 public static Message FinishCabFailed()
674 {
675 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.");
676 }
677
678 public static Message FullTempDirectory(string prefix, string directory)
679 {
680 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);
681 }
682
683 public static Message GACAssemblyIdentityWarning(SourceLineNumber sourceLineNumbers, string fileName, string assemblyName)
684 {
685 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);
686 }
687
688 public static Message GacAssemblyNoStrongName(SourceLineNumber sourceLineNumbers, string assemblyName, string componentName)
689 {
690 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);
691 }
692
693 public static Message GenericReadNotAllowed(SourceLineNumber sourceLineNumbers)
694 {
695 return Message(sourceLineNumbers, Ids.GenericReadNotAllowed, "Permission elements cannot have GenericRead as the only permission specified. Include at least one other permission.");
696 }
697
698 public static Message GuidContainsLowercaseLetters(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value)
699 {
700 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);
701 }
702
703 public static Message HarvestSourceNotSpecified()
704 {
705 return Message(null, Ids.HarvestSourceNotSpecified, "A harvest source must be specified after the harvest type and can be followed by harvester arguments.");
706 }
707
708 public static Message HarvestTypeNotFound()
709 {
710 return Message(null, Ids.HarvestTypeNotFound, "The harvest type was not found in the list of loaded Heat extensions.");
711 }
712
713 public static Message HarvestTypeNotFound(string harvestType)
714 {
715 return Message(null, Ids.HarvestTypeNotFound, "The harvest type '{0}' was specified. Harvest types cannot start with a '-'. Remove the '-' to specify a valid harvest type.", harvestType);
716 }
717
718 public static Message IdentifierNotFound(string type, string identifier)
719 {
720 return Message(null, Ids.IdentifierNotFound, "An expected identifier ('{1}', of type '{0}') was not found.", type, identifier);
721 }
722
723 public static Message IdentifierTooLongError(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value, int maxLength)
724 {
725 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);
726 }
727
728 public static Message IllegalAttributeExceptOnElement(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string expectedElementName)
729 {
730 return Message(sourceLineNumbers, Ids.IllegalAttributeExceptOnElement, "The {1} attribute can only be specified on the {2} element.", elementName, attributeName, expectedElementName);
731 }
732
733 public static Message IllegalAttributeInMergeModule(SourceLineNumber sourceLineNumbers, string elementName, string attributeName)
734 {
735 return Message(sourceLineNumbers, Ids.IllegalAttributeInMergeModule, "The {0}/@{1} attribute cannot be specified in a merge module.", elementName, attributeName);
736 }
737
738 public static Message IllegalAttributeValue(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value, params string[] legalValues)
739 {
740 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));
741 }
742
743 public static Message IllegalAttributeValueWhenNested(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string attrivuteValue, string parentElementName)
744 {
745 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);
746 }
747
748 public static Message IllegalAttributeValueWithIllegalList(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value, string illegalValueList)
749 {
750 return Message(sourceLineNumbers, Ids.IllegalAttributeValueWithIllegalList, "The {0}/@{1} attribute's value, '{2}', is one of the illegal options: {3}.", elementName, attributeName, value, illegalValueList);
751 }
752
753 public static Message IllegalAttributeValueWithLegalList(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value, string legalValueList)
754 {
755 return Message(sourceLineNumbers, Ids.IllegalAttributeValueWithLegalList, "The {0}/@{1} attribute's value, '{2}', is not one of the legal options: {3}.", elementName, attributeName, value, legalValueList);
756 }
757
758 public static Message IllegalAttributeValueWithOtherAttribute(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string attributeValue, string otherAttributeName)
759 {
760 return Message(sourceLineNumbers, Ids.IllegalAttributeValueWithOtherAttribute, "The {0}/@{1} attribute's value, '{2}', cannot be specified with attribute {3} present.", elementName, attributeName, attributeValue, otherAttributeName);
761 }
762
763 public static Message IllegalAttributeValueWithOtherAttribute(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string attributeValue, string otherAttributeName, string otherAttributeValue)
764 {
765 return Message(sourceLineNumbers, Ids.IllegalAttributeValueWithOtherAttribute, "The {0}/@{1} attribute's value, '{2}', cannot be specified with attribute {3} present with value '{4}'.", elementName, attributeName, attributeValue, otherAttributeName, otherAttributeValue);
766 }
767
768 public static Message IllegalAttributeValueWithoutOtherAttribute(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string attributeValue, string otherAttributeName, string otherAttributeValue)
769 {
770 return Message(sourceLineNumbers, Ids.IllegalAttributeValueWithoutOtherAttribute, "The {0}/@{1} attribute's value, '{2}', can only be specified with attribute {3} present with value '{4}'.", elementName, attributeName, attributeValue, otherAttributeName, otherAttributeValue);
771 }
772
773 public static Message IllegalAttributeValueWithoutOtherAttribute(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string attributeValue, string otherAttributeName)
774 {
775 return Message(sourceLineNumbers, Ids.IllegalAttributeValueWithoutOtherAttribute, "The {0}/@{1} attribute's value, '{2}', cannot be specified without attribute {3} present.", elementName, attributeName, attributeValue, otherAttributeName);
776 }
777
778 public static Message IllegalAttributeWhenAdvertised(SourceLineNumber sourceLineNumbers, string elementName, string attributeName)
779 {
780 return Message(sourceLineNumbers, Ids.IllegalAttributeWhenAdvertised, "The {0}/@{1} attribute cannot be specified because the element is advertised.", elementName, attributeName);
781 }
782
783 public static Message IllegalAttributeWhenNested(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string parentElement)
784 {
785 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);
786 }
787
788 public static Message IllegalAttributeWithInnerText(SourceLineNumber sourceLineNumbers, string elementName, string attributeName)
789 {
790 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);
791 }
792
793 public static Message IllegalAttributeWithOtherAttribute(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string otherAttributeName)
794 {
795 return Message(sourceLineNumbers, Ids.IllegalAttributeWithOtherAttribute, "The {0}/@{1} attribute cannot be specified when attribute {2} is present.", elementName, attributeName, otherAttributeName);
796 }
797
798 public static Message IllegalAttributeWithOtherAttribute(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string otherAttributeName, string otherAttributeValue)
799 {
800 return Message(sourceLineNumbers, Ids.IllegalAttributeWithOtherAttribute, "The {0}/@{1} attribute cannot be specified when attribute {2} is present with value '{3}'.", elementName, attributeName, otherAttributeName, otherAttributeValue);
801 }
802
803 public static Message IllegalAttributeWithOtherAttributes(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string otherAttributeName1, string otherAttributeName2)
804 {
805 return Message(sourceLineNumbers, Ids.IllegalAttributeWithOtherAttributes, "The {0}/@{1} attribute cannot be specified when attribute {2} or {3} is also present.", elementName, attributeName, otherAttributeName1, otherAttributeName2);
806 }
807
808 public static Message IllegalAttributeWithOtherAttributes(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string otherAttributeName1, string otherAttributeName2, string otherAttributeName3)
809 {
810 return Message(sourceLineNumbers, Ids.IllegalAttributeWithOtherAttributes, "The {0}/@{1} attribute cannot be specified when attribute {2}, {3}, or {4} is also present.", elementName, attributeName, otherAttributeName1, otherAttributeName2, otherAttributeName3);
811 }
812
813 public static Message IllegalAttributeWithOtherAttributes(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string otherAttributeName1, string otherAttributeName2, string otherAttributeName3, string otherAttributeName4)
814 {
815 return Message(sourceLineNumbers, Ids.IllegalAttributeWithOtherAttributes, "The {0}/@{1} attribute cannot be specified when attribute {2}, {3}, {4}, or {5} is also present.", elementName, attributeName, otherAttributeName1, otherAttributeName2, otherAttributeName3, otherAttributeName4);
816 }
817
818 public static Message IllegalAttributeWithoutOtherAttributes(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string otherAttributeName)
819 {
820 return Message(sourceLineNumbers, Ids.IllegalAttributeWithoutOtherAttributes, "The {0}/@{1} attribute can only be specified with the following attribute {2} present.", elementName, attributeName, otherAttributeName);
821 }
822
823 public static Message IllegalAttributeWithoutOtherAttributes(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string otherAttributeName1, string otherAttributeName2)
824 {
825 return Message(sourceLineNumbers, Ids.IllegalAttributeWithoutOtherAttributes, "The {0}/@{1} attribute can only be specified with one of the following attributes: {2} or {3} present.", elementName, attributeName, otherAttributeName1, otherAttributeName2);
826 }
827
828 public static Message IllegalAttributeWithoutOtherAttributes(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string otherAttributeName1, string otherAttributeName2, string otherAttributeValue, bool uniquifier)
829 {
830 return Message(sourceLineNumbers, Ids.IllegalAttributeWithoutOtherAttributes, "The {0}/@{1} attribute can only be specified with one of the following attributes: {2} or {3} present with value '{4}'.", elementName, attributeName, otherAttributeName1, otherAttributeName2, otherAttributeValue, uniquifier);
831 }
832
833 public static Message IllegalAttributeWithoutOtherAttributes(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string otherAttributeName1, string otherAttributeName2, string otherAttributeName3)
834 {
835 return Message(sourceLineNumbers, Ids.IllegalAttributeWithoutOtherAttributes, "The {0}/@{1} attribute can only be specified with one of the following attributes: {2}, {3}, or {4} present.", elementName, attributeName, otherAttributeName1, otherAttributeName2, otherAttributeName3);
836 }
837
838 public static Message IllegalAttributeWithoutOtherAttributes(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string otherAttributeName1, string otherAttributeName2, string otherAttributeName3, string otherAttributeName4)
839 {
840 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);
841 }
842
843 public static Message IllegalBinderClassName()
844 {
845 return Message(null, Ids.IllegalBinderClassName, "Illegal binder class name specified for -binder command line option.");
846 }
847
848 public static Message IllegalCabbingThreadCount(string numThreads)
849 {
850 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);
851 }
852
853 public static Message IllegalCharactersInPath(string pathName)
854 {
855 return Message(null, Ids.IllegalCharactersInPath, "Illegal characters in path '{0}'. Ensure you provided a valid path to the file.", pathName);
856 }
857
858 public static Message IllegalCodepage(int codepage)
859 {
860 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);
861 }
862
863 public static Message IllegalCodepage(SourceLineNumber sourceLineNumbers, int codepage)
864 {
865 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);
866 }
867
868 public static Message IllegalCodepageAttribute(SourceLineNumber sourceLineNumbers, string codepage, string elementName, string attributeName)
869 {
870 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);
871 }
872
873 public static Message IllegalColumnName(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value)
874 {
875 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);
876 }
877
878 public static Message IllegalCommandLineArgumentValue(string arg, string value, IEnumerable<string> validValues)
879 {
880 var combinedValidValues = String.Join(", ", validValues);
881 return Message(null, Ids.IllegalCommandLineArgumentValue, "The argument {0} value '{1}' is invalid. Use one of the following values {2}", arg, value, combinedValidValues);
882 }
883
884 public static Message IllegalComponentWithAutoGeneratedGuid(SourceLineNumber sourceLineNumbers)
885 {
886 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.");
887 }
888
889 public static Message IllegalComponentWithAutoGeneratedGuid(SourceLineNumber sourceLineNumbers, bool registryKeyPath)
890 {
891 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);
892 }
893
894 public static Message IllegalCompressionLevel(SourceLineNumber sourceLineNumbers, string compressionLevel)
895 {
896 return Message(sourceLineNumbers, Ids.IllegalCompressionLevel, "The compression level '{0}' is not valid. Valid values are 'none', 'low', 'medium', 'high', and 'mszip'.", compressionLevel);
897 }
898
899 public static Message IllegalDefineStatement(SourceLineNumber sourceLineNumbers, string defineStatement)
900 {
901 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);
902 }
903
904 public static Message IllegalEmptyAttributeValue(SourceLineNumber sourceLineNumbers, string elementName, string attributeName)
905 {
906 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);
907 }
908
909 public static Message IllegalEmptyAttributeValue(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string defaultValue)
910 {
911 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);
912 }
913
914 public static Message IllegalEnvironmentVariable(string environmentVariable, string value)
915 {
916 return Message(null, Ids.IllegalEnvironmentVariable, "The {0} environment variable is set to an invalid value of '{1}'.", environmentVariable, value);
917 }
918
919 public static Message IllegalFamilyName(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value)
920 {
921 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);
922 }
923
924 public static Message IllegalFileCompressionAttributes(SourceLineNumber sourceLineNumbers)
925 {
926 return Message(sourceLineNumbers, Ids.IllegalFileCompressionAttributes, "Cannot have both the MsidbFileAttributesCompressed and MsidbFileAttributesNoncompressed options set in a file attributes column.");
927 }
928
929 public static Message IllegalForeach(SourceLineNumber sourceLineNumbers, string foreachStatement)
930 {
931 return Message(sourceLineNumbers, Ids.IllegalForeach, "The foreach statement '{0}' is illegal. The proper format for foreach is <?foreach varName in valueList?>.", foreachStatement);
932 }
933
934 public static Message IllegalGeneratedGuidComponentUnversionedKeypath(SourceLineNumber sourceLineNumbers)
935 {
936 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.");
937 }
938
939 public static Message IllegalGeneratedGuidComponentVersionedNonkeypath(SourceLineNumber sourceLineNumbers)
940 {
941 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.");
942 }
943
944 public static Message IllegalGuidValue(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value)
945 {
946 return Message(sourceLineNumbers, Ids.IllegalGuidValue, "The {0}/@{1} attribute's value, '{2}', is not a legal guid value.", elementName, attributeName, value);
947 }
948
949 public static Message IllegalIdentifier(SourceLineNumber sourceLineNumbers, string elementName, string value)
950 {
951 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);
952 }
953
954 public static Message IllegalIdentifier(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, int disambiguator)
955 {
956 return Message(sourceLineNumbers, Ids.IllegalIdentifier, "The {0}/@{1} attribute's value 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, attributeName, disambiguator);
957 }
958
959 public static Message IllegalIdentifier(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value)
960 {
961 return Message(sourceLineNumbers, Ids.IllegalIdentifier, "The {0}/@{1} attribute's value, '{2}', 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, attributeName, value);
962 }
963
964 public static Message IllegalIdentifier(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value, string identifier)
965 {
966 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);
967 }
968
969 public static Message IllegalIdentifierLooksLikeFormatted(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value)
970 {
971 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);
972 }
973
974 public static Message IllegalInlineLocVariable(SourceLineNumber sourceLineNumbers, string variableName, string variableValue)
975 {
976 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);
977 }
978
979 public static Message IllegalIntegerInExpression(SourceLineNumber sourceLineNumbers, string expression)
980 {
981 return Message(sourceLineNumbers, Ids.IllegalIntegerInExpression, "An illegal number was found in the expression '{0}'.", expression);
982 }
983
984 public static Message IllegalIntegerValue(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value)
985 {
986 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);
987 }
988
989 public static Message IllegalLongFilename(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value)
990 {
991 return Message(sourceLineNumbers, Ids.IllegalLongFilename, "The {0}/@{1} attribute's value, '{2}', is not a valid filename because it contains illegal characters. 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);
992 }
993
994 public static Message IllegalLongFilename(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value, string filename)
995 {
996 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);
997 }
998
999 public static Message IllegalLongValue(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value)
1000 {
1001 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);
1002 }
1003
1004 public static Message IllegalModuleExclusionLanguageAttributes(SourceLineNumber sourceLineNumbers)
1005 {
1006 return Message(sourceLineNumbers, Ids.IllegalModuleExclusionLanguageAttributes, "Cannot set both ExcludeLanguage and ExcludeExceptLanguage attributes on a ModuleExclusion element.");
1007 }
1008
1009 public static Message IllegalParentAttributeWhenNested(SourceLineNumber sourceLineNumbers, string parentElementName, string parentAttributeName, string childElement)
1010 {
1011 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);
1012 }
1013
1014 public static Message IllegalPathForGeneratedComponentGuid(SourceLineNumber sourceLineNumbers, string componentName, string keyFilePath)
1015 {
1016 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);
1017 }
1018
1019 public static Message IllegalPropertyCustomActionAttributes(SourceLineNumber sourceLineNumbers)
1020 {
1021 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.\"");
1022 }
1023
1024 public static Message IllegalRelativeLongFilename(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value)
1025 {
1026 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);
1027 }
1028
1029 public static Message IllegalRootDirectory(SourceLineNumber sourceLineNumbers, string directoryId)
1030 {
1031 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);
1032 }
1033
1034 public static Message IllegalSearchIdForParentDepth(SourceLineNumber sourceLineNumbers, string id, string parentId)
1035 {
1036 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);
1037 }
1038
1039 public static Message IllegalShortFilename(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value)
1040 {
1041 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);
1042 }
1043
1044 public static Message IllegalSuppressWarningId(string suppressedId)
1045 {
1046 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);
1047 }
1048
1049 public static Message IllegalTargetDirDefaultDir(SourceLineNumber sourceLineNumbers, string defaultDir)
1050 {
1051 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);
1052 }
1053
1054 public static Message IllegalTerminalServerCustomActionAttributes(SourceLineNumber sourceLineNumbers)
1055 {
1056 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 .\"");
1057 }
1058
1059 public static Message IllegalValidationArguments()
1060 {
1061 return Message(null, Ids.IllegalValidationArguments, "You may only specify a single default type using -t or specify custom validation using -serr and -val.");
1062 }
1063
1064 public static Message IllegalVersionValue(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value)
1065 {
1066 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);
1067 }
1068
1069 public static Message IllegalWarningIdAsError(string warningId)
1070 {
1071 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);
1072 }
1073
1074 public static Message IllegalBindVariablePrefix(SourceLineNumber sourceLineNumbers, string variableId)
1075 {
1076 return Message(sourceLineNumbers, Ids.IllegalBindVariablePrefix, "The bind variable $(wix.{0}) uses an illegal prefix '$'. Please use the '!' prefix instead.", variableId);
1077 }
1078
1079 public static Message IllegalYesNoAlwaysValue(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value)
1080 {
1081 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);
1082 }
1083
1084 public static Message IllegalYesNoDefaultValue(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value)
1085 {
1086 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);
1087 }
1088
1089 public static Message IllegalYesNoValue(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value)
1090 {
1091 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);
1092 }
1093
1094 public static Message ImplicitComponentKeyPath(SourceLineNumber sourceLineNumbers, string componentId)
1095 {
1096 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);
1097 }
1098
1099 public static Message InlineDirectorySyntaxRequiresPath(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value, string identifier)
1100 {
1101 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);
1102 }
1103
1104 public static Message InsecureBundleFilename(string filename)
1105 {
1106 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);
1107 }
1108
1109 public static Message InsertInvalidSequenceActionOrder(SourceLineNumber sourceLineNumbers, string sequenceTableName, string actionNameBefore, string actionNameAfter, string actionNameNew)
1110 {
1111 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);
1112 }
1113
1114 public static Message InsertSequenceNoSpace(SourceLineNumber sourceLineNumbers, string sequenceTableName, string actionNameBefore, string actionNameAfter, string actionNameNew)
1115 {
1116 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);
1117 }
1118
1119 public static Message InsufficientVersion(SourceLineNumber sourceLineNumbers, Version currentVersion, Version requiredVersion)
1120 {
1121 return Message(sourceLineNumbers, Ids.InsufficientVersion, "The current version of the toolset is {0}, but version {1} is required.", currentVersion, requiredVersion);
1122 }
1123
1124 public static Message InsufficientVersion(SourceLineNumber sourceLineNumbers, Version currentVersion, Version requiredVersion, string extension)
1125 {
1126 return Message(sourceLineNumbers, Ids.InsufficientVersion, "The current version of the extension '{2}' is {0}, but version {1} is required.", currentVersion, requiredVersion, extension);
1127 }
1128
1129 public static Message IntegralValueOutOfRange(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, int value, int minimum, int maximum)
1130 {
1131 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);
1132 }
1133
1134 public static Message IntegralValueOutOfRange(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, long value, long minimum, long maximum)
1135 {
1136 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);
1137 }
1138
1139 public static Message IntegralValueSentinelCollision(SourceLineNumber sourceLineNumbers, int value)
1140 {
1141 return Message(sourceLineNumbers, Ids.IntegralValueSentinelCollision, "The integer value {0} collides with a sentinel value in the compiler code.", value);
1142 }
1143
1144 public static Message IntegralValueSentinelCollision(SourceLineNumber sourceLineNumbers, long value)
1145 {
1146 return Message(sourceLineNumbers, Ids.IntegralValueSentinelCollision, "The long integral value {0} collides with a sentinel value in the compiler code.", value);
1147 }
1148
1149 public static Message InvalidAddedFileRowWithoutSequence(SourceLineNumber sourceLineNumbers, string fileRowId)
1150 {
1151 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);
1152 }
1153
1154 public static Message InvalidAssemblyFile(SourceLineNumber sourceLineNumbers, string assemblyFile, string moreInformation)
1155 {
1156 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);
1157 }
1158
1159 public static Message InvalidBundle(string bundleExecutable)
1160 {
1161 return Message(null, Ids.InvalidBundle, "Unable to read bundle executable '{0}'. This is not a valid WiX bundle.", bundleExecutable);
1162 }
1163
1164 public static Message InvalidCabinetTemplate(SourceLineNumber sourceLineNumbers, string cabinetTemplate)
1165 {
1166 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);
1167 }
1168
1169 public static Message InvalidCommandLineFileName(string fileName, string error)
1170 {
1171 return Message(null, Ids.InvalidCommandLineFileName, "Invalid file name specified on the command line: '{0}'. Error message: '{1}'", fileName, error);
1172 }
1173
1174 public static Message InvalidBundleCondition(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string condition)
1175 {
1176 return Message(sourceLineNumbers, Ids.InvalidBundleCondition, "The {0}/@{1} attribute's value '{2}' is not a valid bundle condition.", elementName, attributeName, condition);
1177 }
1178
1179 public static Message InvalidDateTimeFormat(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value)
1180 {
1181 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.", elementName, attributeName, value);
1182 }
1183
1184 public static Message InvalidDocumentElement(SourceLineNumber sourceLineNumbers, string elementName, string fileType, string expectedElementName)
1185 {
1186 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);
1187 }
1188
1189 public static Message InvalidEmbeddedUIFileName(SourceLineNumber sourceLineNumbers, string codepage)
1190 {
1191 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);
1192 }
1193
1194 public static Message CouldNotFindExtensionInPaths(string extensionPath, IEnumerable<string> checkedPaths)
1195 {
1196 return Message(null, Ids.InvalidExtension, "The extension '{0}' could not be found. Checked paths: {1}", extensionPath, String.Join(", ", checkedPaths));
1197 }
1198
1199 public static Message InvalidExtension(string extension)
1200 {
1201 return Message(null, Ids.InvalidExtension, "The extension '{0}' could not be loaded.", extension);
1202 }
1203
1204 public static Message InvalidExtension(string extension, string invalidReason)
1205 {
1206 return Message(null, Ids.InvalidExtension, "The extension '{0}' could not be loaded because of the following reason: {1}", extension, invalidReason);
1207 }
1208
1209 public static Message InvalidExtension(string extension, string extensionType, string expectedType)
1210 {
1211 return Message(null, Ids.InvalidExtension, "The extension '{0}' is the wrong type: '{1}'. The expected type was '{2}'.", extension, extensionType, expectedType);
1212 }
1213
1214 public static Message InvalidExtension(string extension, string extensionType, string expectedType1, string expectedType2)
1215 {
1216 return Message(null, Ids.InvalidExtension, "The extension '{0}' is the wrong type: '{1}'. The expected type was '{2}' or '{3}'.", extension, extensionType, expectedType1, expectedType2);
1217 }
1218
1219 public static Message InvalidExtensionType(string extension, string attributeType)
1220 {
1221 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);
1222 }
1223
1224 public static Message InvalidExtensionType(string extension, string className, string expectedType)
1225 {
1226 return Message(null, Ids.InvalidExtensionType, "The extension type '{1}' in extension '{0}' does not inherit from the expected class '{2}'.", extension, className, expectedType);
1227 }
1228
1229 public static Message InvalidExtensionType(string extension, string className, string exceptionType, string exceptionMessage)
1230 {
1231 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);
1232 }
1233
1234 public static Message InvalidFileName(SourceLineNumber sourceLineNumbers, string fileName)
1235 {
1236 return Message(sourceLineNumbers, Ids.InvalidFileName, "Invalid file name '{0}'.", fileName);
1237 }
1238
1239 public static Message InvalidIdt(SourceLineNumber sourceLineNumbers, string idtFile)
1240 {
1241 return Message(sourceLineNumbers, Ids.InvalidIdt, "There was an error importing the file '{0}'.", idtFile);
1242 }
1243
1244 public static Message InvalidIdt(SourceLineNumber sourceLineNumbers, string idtFile, string tableName)
1245 {
1246 return Message(sourceLineNumbers, Ids.InvalidIdt, "There was an error importing table '{1}' from file '{0}'.", idtFile, tableName);
1247 }
1248
1249 public static Message InvalidKeyColumn(string tableName, string columnName, string foreignTableName, int foreignColumnNumber)
1250 {
1251 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);
1252 }
1253
1254 public static Message InvalidKeypathChange(SourceLineNumber sourceLineNumbers, string component, string transformPath)
1255 {
1256 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);
1257 }
1258
1259 public static Message InvalidManifestContent(SourceLineNumber sourceLineNumbers, string fileName)
1260 {
1261 return Message(sourceLineNumbers, Ids.InvalidManifestContent, "The manifest '{0}' does not have the required assembly/assemblyIdentity element.", fileName);
1262 }
1263
1264 public static Message InvalidMergeLanguage(SourceLineNumber sourceLineNumbers, string mergeId, string mergeLanguage)
1265 {
1266 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);
1267 }
1268
1269 public static Message InvalidFourPartVersion(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string version)
1270 {
1271 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);
1272 }
1273
1274 public static Message InvalidPlatformValue(SourceLineNumber sourceLineNumbers, string value)
1275 {
1276 return Message(sourceLineNumbers, Ids.InvalidPlatformValue, "The Platform attribute has an invalid value {0}. Possible values are x86, x64, or arm64.", value);
1277 }
1278
1279 public static Message InvalidPreprocessorFunction(SourceLineNumber sourceLineNumbers, string variable)
1280 {
1281 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);
1282 }
1283
1284 public static Message InvalidPreprocessorFunctionAutoVersion(SourceLineNumber sourceLineNumbers)
1285 {
1286 return Message(sourceLineNumbers, Ids.InvalidPreprocessorFunctionAutoVersion, "Invalid AutoVersion template specified.");
1287 }
1288
1289 public static Message InvalidPreprocessorPragma(SourceLineNumber sourceLineNumbers, string variable)
1290 {
1291 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);
1292 }
1293
1294 public static Message InvalidPreprocessorVariable(SourceLineNumber sourceLineNumbers, string variable)
1295 {
1296 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);
1297 }
1298
1299 public static Message InvalidRemoveComponent(SourceLineNumber sourceLineNumbers, string component, string feature, string transformPath)
1300 {
1301 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);
1302 }
1303
1304 public static Message InvalidSequenceTable(string sequenceTableName)
1305 {
1306 return Message(null, Ids.InvalidSequenceTable, "Found an invalid sequence table '{0}'.", sequenceTableName);
1307 }
1308
1309 public static Message InvalidStringForCodepage(SourceLineNumber sourceLineNumbers, string codepage)
1310 {
1311 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);
1312 }
1313
1314 public static Message InvalidStubExe(string filename)
1315 {
1316 return Message(null, Ids.InvalidStubExe, "Stub executable '{0}' is not a valid Win32 executable.", filename);
1317 }
1318
1319 public static Message InvalidSubExpression(SourceLineNumber sourceLineNumbers, string subExpression, string expression)
1320 {
1321 return Message(sourceLineNumbers, Ids.InvalidSubExpression, "Found invalid subexpression '{0}' in expression '{1}'.", subExpression, expression);
1322 }
1323
1324 public static Message InvalidSummaryInfoCodePage(SourceLineNumber sourceLineNumbers, int codePage)
1325 {
1326 return Message(sourceLineNumbers, Ids.InvalidSummaryInfoCodePage, "The code page '{0}' is invalid for summary information. You must specify an ANSI code page.", codePage);
1327 }
1328
1329 public static Message InvalidValidatorMessageType(string type)
1330 {
1331 return Message(null, Ids.InvalidValidatorMessageType, "Unknown validation message type '{0}'.", type);
1332 }
1333
1334 public static Message InvalidVariableDefinition(string variableDefinition)
1335 {
1336 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);
1337 }
1338
1339 public static Message InvalidWixTransform(string fileName)
1340 {
1341 return Message(null, Ids.InvalidWixTransform, "The file '{0}' is not a valid WiX Transform.", fileName);
1342 }
1343
1344 public static Message InvalidWixXmlNamespace(SourceLineNumber sourceLineNumbers, string wixElementName, string wixNamespace)
1345 {
1346 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);
1347 }
1348
1349 public static Message InvalidWixXmlNamespace(SourceLineNumber sourceLineNumbers, string wixElementName, string elementNamespace, string wixNamespace)
1350 {
1351 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);
1352 }
1353
1354 public static Message InvalidXml(SourceLineNumber sourceLineNumbers, string fileType, string detail)
1355 {
1356 return Message(sourceLineNumbers, Ids.InvalidXml, "Not a valid {0} file; detail: {1}", fileType, detail);
1357 }
1358
1359 public static Message LocalizationVariableUnknown(SourceLineNumber sourceLineNumbers, string variableId)
1360 {
1361 return Message(sourceLineNumbers, Ids.LocalizationVariableUnknown, "The localization variable !(loc.{0}) is unknown. Please ensure the variable is defined.", variableId);
1362 }
1363
1364 public static Message MaximumCabinetSizeForLargeFileSplittingTooLarge(SourceLineNumber sourceLineNumbers, int maximumCabinetSizeForLargeFileSplitting, int maxValueOfMaxCabSizeForLargeFileSplitting)
1365 {
1366 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);
1367 }
1368
1369 public static Message MaximumUncompressedMediaSizeTooLarge(SourceLineNumber sourceLineNumbers, int maximumUncompressedMediaSize)
1370 {
1371 return Message(sourceLineNumbers, Ids.MaximumUncompressedMediaSizeTooLarge, "'{0}' is too large. Reduce the size of maximum uncompressed media size.", maximumUncompressedMediaSize);
1372 }
1373
1374 public static Message MediaEmbeddedCabinetNameTooLong(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value, int length)
1375 {
1376 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);
1377 }
1378
1379 public static Message MediaTableCollision(SourceLineNumber sourceLineNumbers)
1380 {
1381 return Message(sourceLineNumbers, Ids.MediaTableCollision, "Only one of Media and MediaTemplate tables should be authored.");
1382 }
1383
1384 public static Message MergeExcludedModule(SourceLineNumber sourceLineNumbers, string mergeId, string otherMergeId)
1385 {
1386 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);
1387 }
1388
1389 public static Message MergeFeatureRequired(SourceLineNumber sourceLineNumbers, string tableName, string primaryKeys, string mergeModuleFile, string mergeId)
1390 {
1391 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);
1392 }
1393
1394 public static Message MergeLanguageFailed(SourceLineNumber sourceLineNumbers, short language, string mergeModuleFile)
1395 {
1396 return Message(sourceLineNumbers, Ids.MergeLanguageFailed, "The language '{0}' is supported but uses an invalid language transform in the merge module '{1}'.", language, mergeModuleFile);
1397 }
1398
1399 public static Message MergeLanguageUnsupported(SourceLineNumber sourceLineNumbers, short language, string mergeModuleFile)
1400 {
1401 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);
1402 }
1403
1404 public static Message MergeModuleExpectedFeature(SourceLineNumber sourceLineNumbers, string mergeId)
1405 {
1406 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);
1407 }
1408
1409 public static Message MergePlatformMismatch(SourceLineNumber sourceLineNumbers, string mergeModuleFile)
1410 {
1411 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);
1412 }
1413
1414 public static Message MissingBundleInformation(string friendlyName)
1415 {
1416 return Message(null, Ids.MissingBundleInformation, "The Bundle is missing {0} data, and cannot continue.", friendlyName);
1417 }
1418
1419 public static Message MissingBundleSearch(SourceLineNumber sourceLineNumbers, string searchId)
1420 {
1421 return Message(sourceLineNumbers, Ids.MissingBundleSearch, "Bundle Search with id '{0}' has no corresponding implementation symbol.", searchId);
1422 }
1423
1424 public static Message MissingDependencyVersion(string packageId)
1425 {
1426 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);
1427 }
1428
1429 public static Message MissingEntrySection()
1430 {
1431 return Message(null, Ids.MissingEntrySection, "Could not find entry section in provided list of intermediates. Supported entry section types are: Package, Bundle, Patch, PatchCreation, Module.");
1432 }
1433
1434 public static Message MissingEntrySection(string sectionType)
1435 {
1436 return Message(null, Ids.MissingEntrySection, "Could not find entry section in provided list of intermediates. Expected section of type '{0}'.", sectionType);
1437 }
1438
1439 public static Message MissingManifestForWin32Assembly(SourceLineNumber sourceLineNumbers, string file, string manifest)
1440 {
1441 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);
1442 }
1443
1444 public static Message MissingMedia(SourceLineNumber sourceLineNumbers, int diskId)
1445 {
1446 return Message(sourceLineNumbers, Ids.MissingMedia, "There is no media defined for disk id '{0}'. You must author either <Media Id='{0}' ...> or <MediaTemplate ...>.", diskId);
1447 }
1448
1449 public static Message MissingOrInvalidModuleInstallerVersion(SourceLineNumber sourceLineNumbers, string moduleId, string mergeModuleFile, string productInstallerVersion)
1450 {
1451 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);
1452 }
1453
1454 public static Message MissingPackagePayload(SourceLineNumber sourceLineNumbers, string packageId, string packageType)
1455 {
1456 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);
1457 }
1458
1459 public static Message MissingTableDefinition(string tableName)
1460 {
1461 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);
1462 }
1463
1464 public static Message MissingTypeLibFile(SourceLineNumber sourceLineNumbers, string elementName, string fileElementName)
1465 {
1466 return Message(sourceLineNumbers, Ids.MissingTypeLibFile, "The {0} element is non-advertised and therefore requires a parent {1} element.", elementName, fileElementName);
1467 }
1468
1469 public static Message MissingValidatorExtension()
1470 {
1471 return Message(null, Ids.MissingValidatorExtension, "The validator requires at least one extension. Add \"ValidatorExtension, Wix\" for the default implementation.");
1472 }
1473
1474 public static Message MsiTransactionInvalidPackage(SourceLineNumber sourceLineNumbers, string packageId, string packageType)
1475 {
1476 return Message(sourceLineNumbers, Ids.MsiTransactionInvalidPackage, "Invalid package '{0}' in MSI transaction. It is type '{1}' but must be Msi or Msp.", packageId, packageType);
1477 }
1478
1479 public static Message MsiTransactionInvalidPackage2(SourceLineNumber sourceLineNumbers)
1480 {
1481 return Message(sourceLineNumbers, Ids.MsiTransactionInvalidPackage2, "Location of rollback boundary related to previous error.");
1482 }
1483
1484 public static Message MsiTransactionX86BeforeX64Package(SourceLineNumber sourceLineNumbers, string x64PackageId, string x86PackageId)
1485 {
1486 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);
1487 }
1488
1489 public static Message MsiTransactionX86BeforeX64Package2(SourceLineNumber sourceLineNumbers)
1490 {
1491 return Message(sourceLineNumbers, Ids.MsiTransactionX86BeforeX64Package2, "Location of x86 package related to previous error.");
1492 }
1493
1494 public static Message MultipleEntrySections(SourceLineNumber sourceLineNumbers, string sectionName1, string sectionName2)
1495 {
1496 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);
1497 }
1498
1499 public static Message MultipleEntrySections2(SourceLineNumber sourceLineNumbers)
1500 {
1501 return Message(sourceLineNumbers, Ids.MultipleEntrySections2, "Location of entry section related to previous error.");
1502 }
1503
1504 public static Message MultipleFilesMatchedWithOutputSpecification(string sourceSpecification, string sourceList)
1505 {
1506 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);
1507 }
1508
1509 public static Message MultipleIdentifiersFound(SourceLineNumber sourceLineNumbers, string elementName, string identifier, string mismatchIdentifier)
1510 {
1511 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);
1512 }
1513
1514 public static Message MultiplePackagePayloads(SourceLineNumber sourceLineNumbers, string packageId, string packagePayloadId1, string packagePayloadId2)
1515 {
1516 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);
1517 }
1518
1519 public static Message MultiplePackagePayloads2(SourceLineNumber sourceLineNumbers)
1520 {
1521 return Message(sourceLineNumbers, Ids.MultiplePackagePayloads2, "The location of the package payload related to previous error.");
1522 }
1523
1524 public static Message MultiplePackagePayloads3(SourceLineNumber sourceLineNumbers)
1525 {
1526 return Message(sourceLineNumbers, Ids.MultiplePackagePayloads3, "The location of the package related to previous error.");
1527 }
1528
1529 public static Message MultiplePrimaryReferences(SourceLineNumber sourceLineNumbers, string crefChildType, string crefChildId, string crefParentType, string crefParentId, string conflictParentType, string conflictParentId)
1530 {
1531 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);
1532 }
1533
1534 public static Message MustSpecifyOutputWithMoreThanOneInput()
1535 {
1536 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.");
1537 }
1538
1539 public static Message NeedSequenceBeforeOrAfter(SourceLineNumber sourceLineNumbers, string elementName)
1540 {
1541 return Message(sourceLineNumbers, Ids.NeedSequenceBeforeOrAfter, "A {0} element must have a Before attribute, After attribute, or a Sequence attribute.", elementName);
1542 }
1543
1544 public static Message NewRowAddedInTable(SourceLineNumber sourceLineNumbers, string productCode, string tableName, string rowId)
1545 {
1546 return Message(sourceLineNumbers, Ids.NewRowAddedInTable, "Product '{0}': Table '{1}' has a new row '{2}' added. This makes the patch not uninstallable.", productCode, tableName, rowId);
1547 }
1548
1549 public static Message NoDataForColumn(SourceLineNumber sourceLineNumbers, string columnName, string tableName)
1550 {
1551 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);
1552 }
1553
1554 public static Message NoDifferencesInTransform(SourceLineNumber sourceLineNumbers)
1555 {
1556 return Message(sourceLineNumbers, Ids.NoDifferencesInTransform, "The transform being built did not contain any differences so it could not be created.");
1557 }
1558
1559 public static Message NoFirstControlSpecified(SourceLineNumber sourceLineNumbers, string dialogName)
1560 {
1561 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);
1562 }
1563
1564 public static Message NonterminatedPreprocessorInstruction(SourceLineNumber sourceLineNumbers, string beginInstruction, string endInstruction)
1565 {
1566 return Message(sourceLineNumbers, Ids.NonterminatedPreprocessorInstruction, "Found a <?{0}?> processing instruction without a matching <?{1}?> after it.", beginInstruction, endInstruction);
1567 }
1568
1569 public static Message NoUniqueActionSequenceNumber(SourceLineNumber sourceLineNumbers, string sequenceTableName, string actionName1, string actionName2)
1570 {
1571 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);
1572 }
1573
1574 public static Message NoUniqueActionSequenceNumber2(SourceLineNumber sourceLineNumbers)
1575 {
1576 return Message(sourceLineNumbers, Ids.NoUniqueActionSequenceNumber2, "The location of the sequenced action related to previous error.");
1577 }
1578
1579 public static Message OpenDatabaseFailed(string databaseFile)
1580 {
1581 return Message(null, Ids.OpenDatabaseFailed, "Failed to open database '{0}'. Ensure it is a valid database, and it is not open by another process.", databaseFile);
1582 }
1583
1584 public static Message OrderingReferenceLoopDetected(SourceLineNumber sourceLineNumbers, string loopList)
1585 {
1586 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);
1587 }
1588
1589 public static Message OrphanedComponent(SourceLineNumber sourceLineNumbers, string componentName)
1590 {
1591 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);
1592 }
1593
1594 public static Message OutputCodepageMismatch(SourceLineNumber sourceLineNumbers, int beforeCodepage, int afterCodepage)
1595 {
1596 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);
1597 }
1598
1599 public static Message OutputCodepageMismatch2(SourceLineNumber sourceLineNumbers)
1600 {
1601 return Message(sourceLineNumbers, Ids.OutputCodepageMismatch2, "The location of the mismatched code page related to the previous warning.");
1602 }
1603
1604 public static Message OutputTargetNotSpecified()
1605 {
1606 return Message(null, Ids.OutputTargetNotSpecified, "The '-out' or '-o' parameter must specify a file path.");
1607 }
1608
1609 public static Message OutputTypeMismatch(SourceLineNumber sourceLineNumbers, string beforeOutputType, string afterOutputType)
1610 {
1611 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);
1612 }
1613
1614 public static Message OverridableActionCollision(SourceLineNumber sourceLineNumbers, string sequenceTableName, string actionName)
1615 {
1616 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);
1617 }
1618
1619 public static Message OverridableActionCollision2(SourceLineNumber sourceLineNumbers)
1620 {
1621 return Message(sourceLineNumbers, Ids.OverridableActionCollision2, "The location of the action related to previous error.");
1622 }
1623
1624 public static Message PackagePayloadUnsupported(SourceLineNumber sourceLineNumbers, string packageType)
1625 {
1626 return Message(sourceLineNumbers, Ids.PackagePayloadUnsupported, "The {0}PackagePayload element can only be used for {0}Packages.", packageType);
1627 }
1628
1629 public static Message PackagePayloadUnsupported2(SourceLineNumber sourceLineNumbers)
1630 {
1631 return Message(sourceLineNumbers, Ids.PackagePayloadUnsupported2, "The location of the package related to previous error.");
1632 }
1633
1634 public static Message ParentElementAttributeRequired(SourceLineNumber sourceLineNumbers, string parentElement, string parentAttribute, string childElement)
1635 {
1636 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);
1637 }
1638
1639 public static Message PatchNotRemovable()
1640 {
1641 return Message(null, Ids.PatchNotRemovable, "This patch is not uninstallable. The 'Patch' element's attribute 'AllowRemoval' should be set to 'no'.");
1642 }
1643
1644 public static Message PatchWithoutTransforms()
1645 {
1646 return Message(null, Ids.PatchWithoutTransforms, "No transforms were provided to attach to the patch.");
1647 }
1648
1649 public static Message PatchWithoutValidTransforms()
1650 {
1651 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.");
1652 }
1653
1654 public static Message PathCannotContainQuote(string fileName)
1655 {
1656 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);
1657 }
1658
1659 public static Message PathTooLong(SourceLineNumber sourceLineNumbers, string fileName)
1660 {
1661 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);
1662 }
1663
1664 public static Message PayloadMustBeRelativeToCache(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string attributeValue)
1665 {
1666 return Message(sourceLineNumbers, Ids.PayloadMustBeRelativeToCache, "The {0}/@{1} attribute's value, '{2}', is not a relative path.", elementName, attributeName, attributeValue);
1667 }
1668
1669 public static Message PerUserButAllUsersEquals1(SourceLineNumber sourceLineNumbers, string path)
1670 {
1671 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);
1672 }
1673
1674 public static Message PreprocessorError(SourceLineNumber sourceLineNumbers, string message)
1675 {
1676 return Message(sourceLineNumbers, Ids.PreprocessorError, "{0}", message);
1677 }
1678
1679 public static Message PreprocessorExtensionEvaluateFunctionFailed(SourceLineNumber sourceLineNumbers, string prefix, string function, string args, string message)
1680 {
1681 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);
1682 }
1683
1684 public static Message PreprocessorExtensionForParameterMissing(SourceLineNumber sourceLineNumbers, string parameterName, string parameterPrefix)
1685 {
1686 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);
1687 }
1688
1689 public static Message PreprocessorExtensionGetVariableValueFailed(SourceLineNumber sourceLineNumbers, string prefix, string variable, string message)
1690 {
1691 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);
1692 }
1693
1694 public static Message PreprocessorExtensionPragmaFailed(SourceLineNumber sourceLineNumbers, string pragma, string message)
1695 {
1696 return Message(sourceLineNumbers, Ids.PreprocessorExtensionPragmaFailed, "Exception thrown while processing pragma '{0}'. The exception's message is: {1}", pragma, message);
1697 }
1698
1699 public static Message PreprocessorIllegalForeachVariable(SourceLineNumber sourceLineNumbers, string variableName)
1700 {
1701 return Message(sourceLineNumbers, Ids.PreprocessorIllegalForeachVariable, "The variable named '{0}' is not allowed in a foreach expression.", variableName);
1702 }
1703
1704 public static Message PreprocessorMissingParameterPrefix(SourceLineNumber sourceLineNumbers, string parameterName)
1705 {
1706 return Message(sourceLineNumbers, Ids.PreprocessorMissingParameterPrefix, "Could not find the prefix in parameter name: '{0}'.", parameterName);
1707 }
1708
1709 public static Message ProductCodeInvalidForTransform(SourceLineNumber sourceLineNumbers)
1710 {
1711 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.");
1712 }
1713
1714 public static Message ProgIdNestedTooDeep(SourceLineNumber sourceLineNumbers)
1715 {
1716 return Message(sourceLineNumbers, Ids.ProgIdNestedTooDeep, "ProgId elements may not be nested more than 1 level deep.");
1717 }
1718
1719 public static Message RadioButtonBitmapAndIconDisallowed(SourceLineNumber sourceLineNumbers)
1720 {
1721 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.");
1722 }
1723
1724 public static Message RadioButtonTypeInconsistent(SourceLineNumber sourceLineNumbers)
1725 {
1726 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.");
1727 }
1728
1729 public static Message ReadOnlyOutputFile(string filePath)
1730 {
1731 return Message(null, Ids.ReadOnlyOutputFile, "Unable to output to file '{0}' because it is marked as read-only.", filePath);
1732 }
1733
1734 public static Message RealTableMissingPrimaryKeyColumn(SourceLineNumber sourceLineNumbers, string tableName)
1735 {
1736 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);
1737 }
1738
1739 public static Message RecursiveAction(string action, string tableName)
1740 {
1741 return Message(null, Ids.RecursiveAction, "The action '{0}' is recursively placed in the '{1}' table.", action, tableName);
1742 }
1743
1744 public static Message ReferenceLoopDetected(SourceLineNumber sourceLineNumbers, string loopList)
1745 {
1746 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);
1747 }
1748
1749 public static Message RegistryMultipleValuesWithoutMultiString(SourceLineNumber sourceLineNumbers, string registryElementName, string valueAttributeName, string registryValueElementName, string typeAttributeName)
1750 {
1751 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);
1752 }
1753
1754 public static Message RegistryNameValueIncorrect(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value)
1755 {
1756 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);
1757 }
1758
1759 public static Message RegistryRootInvalid(SourceLineNumber sourceLineNumbers)
1760 {
1761 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.");
1762 }
1763
1764 public static Message RegistrySubElementCannotBeRemoved(SourceLineNumber sourceLineNumbers, string registryElementName, string registryValueElementName, string actionAttributeName, string removeValue, string removeKeyOnInstallValue)
1765 {
1766 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);
1767 }
1768
1769 public static Message RelativePathForRegistryElement(SourceLineNumber sourceLineNumbers)
1770 {
1771 return Message(sourceLineNumbers, Ids.RelativePathForRegistryElement, "Cannot convert RelativePath into Registry elements.");
1772 }
1773
1774 public static Message ReservedBurnNamespaceViolation(SourceLineNumber sourceLineNumbers, string element, string attribute, string prefix)
1775 {
1776 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);
1777 }
1778
1779 public static Message ReservedNamespaceViolation(SourceLineNumber sourceLineNumbers, string element, string attribute, string prefix)
1780 {
1781 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);
1782 }
1783
1784 public static Message RootFeatureCannotFollowParent(SourceLineNumber sourceLineNumbers)
1785 {
1786 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.");
1787 }
1788
1789 public static Message SameFileIdDifferentSource(SourceLineNumber sourceLineNumbers, string fileId, string sourcePath1, string sourcePath2)
1790 {
1791 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);
1792 }
1793
1794 public static Message SamePatchBaselineId(SourceLineNumber sourceLineNumbers, string id)
1795 {
1796 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);
1797 }
1798
1799 public static Message SchemaValidationFailed(SourceLineNumber sourceLineNumbers, string validationError, int lineNumber, int linePosition)
1800 {
1801 return Message(sourceLineNumbers, Ids.SchemaValidationFailed, "Schema validation failed with the following error at line {1}, column {2}: {0}", validationError, lineNumber, linePosition);
1802 }
1803
1804 public static Message SearchElementRequired(SourceLineNumber sourceLineNumbers, string elementName)
1805 {
1806 return Message(sourceLineNumbers, Ids.SearchElementRequired, "A '{0}' element must have a search element as a child.", elementName);
1807 }
1808
1809 public static Message SearchElementRequiredWithAttribute(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string attributeValue)
1810 {
1811 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);
1812 }
1813
1814 public static Message SearchPropertyNotUppercase(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value)
1815 {
1816 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);
1817 }
1818
1819 public static Message SecurePropertyNotUppercase(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string propertyId)
1820 {
1821 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);
1822 }
1823
1824 public static Message SignedEmbeddedCabinet(SourceLineNumber sourceLineNumbers)
1825 {
1826 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'.");
1827 }
1828
1829 public static Message SingleExtensionSupported()
1830 {
1831 return Message(null, Ids.SingleExtensionSupported, "Multiple extensions were specified on the command line, only a single extension is supported.");
1832 }
1833
1834 public static Message SpecifiedBinderNotFound(string binderClass)
1835 {
1836 return Message(null, Ids.SpecifiedBinderNotFound, "The specified binder class '{0}' was not found in any extensions.", binderClass);
1837 }
1838
1839 public static Message SplitCabinetCopyRegistrationFailed(string newCabName, string firstCabName)
1840 {
1841 return Message(null, Ids.SplitCabinetCopyRegistrationFailed, "Failed to register the copy command for cabinet '{0}' formed by splitting cabinet '{1}'.", newCabName, firstCabName);
1842 }
1843
1844 public static Message SplitCabinetNameCollision(string newCabName, string firstCabName)
1845 {
1846 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);
1847 }
1848
1849 public static Message StandardActionRelativelyScheduledInModule(SourceLineNumber sourceLineNumbers, string sequenceTableName, string actionName)
1850 {
1851 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);
1852 }
1853
1854 public static Message StreamNameTooLong(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value, int length, int maximumLength)
1855 {
1856 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);
1857 }
1858
1859 public static Message StreamNameTooLong(SourceLineNumber sourceLineNumbers, string tableName, string streamName, int streamLength)
1860 {
1861 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);
1862 }
1863
1864 public static Message StubMissingWixburnSection(string filename)
1865 {
1866 return Message(null, Ids.StubMissingWixburnSection, "Stub executable '{0}' does not contain a .wixburn data section.", filename);
1867 }
1868
1869 public static Message StubWixburnSectionTooSmall(string filename)
1870 {
1871 return Message(null, Ids.StubWixburnSectionTooSmall, "Stub executable '{0}' .wixburn data section is too small to store the Burn container header.", filename);
1872 }
1873
1874 public static Message SuppressNonoverridableAction(SourceLineNumber sourceLineNumbers, string sequenceTableName, string actionName)
1875 {
1876 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);
1877 }
1878
1879 public static Message SuppressNonoverridableAction2(SourceLineNumber sourceLineNumbers)
1880 {
1881 return Message(sourceLineNumbers, Ids.SuppressNonoverridableAction2, "The location of the non-overridable definition of the action related to previous error.");
1882 }
1883
1884 public static Message TabbableControlNotAllowedInBillboard(SourceLineNumber sourceLineNumbers, string elementName, string controlType)
1885 {
1886 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);
1887 }
1888
1889 public static Message TableDecompilationUnimplemented(string tableName)
1890 {
1891 return Message(null, Ids.TableDecompilationUnimplemented, "Decompilation of the {0} table has not been implemented by its extension.", tableName);
1892 }
1893
1894 public static Message TableNameTooLong(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string value)
1895 {
1896 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);
1897 }
1898
1899 public static Message TooDeeplyIncluded(SourceLineNumber sourceLineNumbers, int depth)
1900 {
1901 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);
1902 }
1903
1904 public static Message TooManyChildren(SourceLineNumber sourceLineNumbers, string elementName, string childElementName)
1905 {
1906 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);
1907 }
1908
1909 public static Message TooManyColumnsInRealTable(string tableName, int columnCount, int supportedColumnCount)
1910 {
1911 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);
1912 }
1913
1914 public static Message TooManyElements(SourceLineNumber sourceLineNumbers, string elementName, string childElementName, int expectedInstances)
1915 {
1916 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);
1917 }
1918
1919 public static Message TooManySearchElements(SourceLineNumber sourceLineNumbers, string elementName)
1920 {
1921 return Message(sourceLineNumbers, Ids.TooManySearchElements, "Only one search element can appear under a '{0}' element.", elementName);
1922 }
1923
1924 public static Message TransformSchemaMismatch()
1925 {
1926 return Message(null, Ids.TransformSchemaMismatch, "The transform schema does not match the database schema. The transform may have been generated from a different database.");
1927 }
1928
1929 public static Message TypeSpecificationForExtensionRequired(string parameter)
1930 {
1931 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);
1932 }
1933
1934 public static Message UnableToGetAuthenticodeCertOfFile(string filePath, string moreInformation)
1935 {
1936 return Message(null, Ids.UnableToGetAuthenticodeCertOfFile, "Unable to get the authenticode certificate of '{0}'. More information: {1}", filePath, moreInformation);
1937 }
1938
1939 public static Message UnableToGetAuthenticodeCertOfFileDownlevelOS(string filePath, string moreInformation)
1940 {
1941 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);
1942 }
1943
1944 public static Message UnableToConvertFieldToNumber(string value)
1945 {
1946 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);
1947 }
1948
1949 public static Message UnableToOpenModule(SourceLineNumber sourceLineNumbers, string modulePath, string message)
1950 {
1951 return Message(sourceLineNumbers, Ids.UnableToOpenModule, "Unable to open merge module '{0}'. Check to make sure the module language is correct. '{1}'", modulePath, message);
1952 }
1953
1954 public static Message UnableToReadPackageInformation(SourceLineNumber sourceLineNumbers, string packagePath, string detailedErrorMessage)
1955 {
1956 return Message(sourceLineNumbers, Ids.UnableToReadPackageInformation, "Unable to read package '{0}'. {1}", packagePath, detailedErrorMessage);
1957 }
1958
1959 public static Message UnauthorizedAccess(string filePath)
1960 {
1961 return Message(null, Ids.UnauthorizedAccess, "Access to the path '{0}' is denied.", filePath);
1962 }
1963
1964 public static Message UndefinedPreprocessorFunction(SourceLineNumber sourceLineNumbers, string variableName)
1965 {
1966 return Message(sourceLineNumbers, Ids.UndefinedPreprocessorFunction, "Undefined preprocessor function '$({0})'.", variableName);
1967 }
1968
1969 public static Message UndefinedPreprocessorVariable(SourceLineNumber sourceLineNumbers, string variableName)
1970 {
1971 return Message(sourceLineNumbers, Ids.UndefinedPreprocessorVariable, "Undefined preprocessor variable '$({0})'.", variableName);
1972 }
1973
1974 public static Message UnexpectedAttribute(SourceLineNumber sourceLineNumbers, string elementName, string attributeName)
1975 {
1976 return Message(sourceLineNumbers, Ids.UnexpectedAttribute, "The {0} element contains an unexpected attribute '{1}'.", elementName, attributeName);
1977 }
1978
1979 public static Message UnexpectedColumnCount(SourceLineNumber sourceLineNumbers, string tableName)
1980 {
1981 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);
1982 }
1983
1984 public static Message UnexpectedContentNode(SourceLineNumber sourceLineNumbers, string elementName, string unexpectedNodeType)
1985 {
1986 return Message(sourceLineNumbers, Ids.UnexpectedContentNode, "The {0} element contains an unexpected xml node of type {1}.", elementName, unexpectedNodeType);
1987 }
1988
1989 public static Message UnexpectedCustomTableColumn(SourceLineNumber sourceLineNumbers, string column)
1990 {
1991 return Message(sourceLineNumbers, Ids.UnexpectedCustomTableColumn, "The custom table column '{0}' is unknown.", column);
1992 }
1993
1994 public static Message UnexpectedElement(SourceLineNumber sourceLineNumbers, string elementName, string childElementName)
1995 {
1996 return Message(sourceLineNumbers, Ids.UnexpectedElement, "The {0} element contains an unexpected child element '{1}'.", elementName, childElementName);
1997 }
1998
1999 public static Message UnexpectedElementWithAttribute(SourceLineNumber sourceLineNumbers, string elementName, string childElementName, string attribute)
2000 {
2001 return Message(sourceLineNumbers, Ids.UnexpectedElementWithAttribute, "The {0} element cannot have a child element '{1}' when attribute '{2}' is set.", elementName, childElementName, attribute);
2002 }
2003
2004 public static Message UnexpectedElementWithAttribute(SourceLineNumber sourceLineNumbers, string elementName, string childElementName, string attribute1, string attribute2, string attribute3, string attribute4)
2005 {
2006 return Message(sourceLineNumbers, Ids.UnexpectedElementWithAttribute, "The {0} element cannot have a child element '{1}' when any of attributes '{2}', '{3}', '{4}', or '{5}' are set.", elementName, childElementName, attribute1, attribute2, attribute3, attribute4);
2007 }
2008
2009 public static Message UnexpectedElementWithAttributeValue(SourceLineNumber sourceLineNumbers, string elementName, string childElementName, string attribute, string attributeValue)
2010 {
2011 return Message(sourceLineNumbers, Ids.UnexpectedElementWithAttributeValue, "The {0} element cannot have a child element '{1}' unless attribute '{2}' is set to '{3}'.", elementName, childElementName, attribute, attributeValue);
2012 }
2013
2014 public static Message UnexpectedElementWithAttributeValue(SourceLineNumber sourceLineNumbers, string elementName, string childElementName, string attribute, string attributeValue1, string attributeValue2)
2015 {
2016 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);
2017 }
2018
2019 public static Message UnexpectedEmptySubexpression(SourceLineNumber sourceLineNumbers, string expression)
2020 {
2021 return Message(sourceLineNumbers, Ids.UnexpectedEmptySubexpression, "The empty subexpression is unexpected in the expression '{0}'.", expression);
2022 }
2023
2024 public static Message UnexpectedException(Exception exception)
2025 {
2026 return Message(null, Ids.UnexpectedException, exception.ToString());
2027 }
2028
2029 public static Message UnexpectedException(string message, string type, string stackTrace)
2030 {
2031 return Message(null, Ids.UnexpectedException, "{0}\r\n\r\nException Type: {1}\r\n\r\nStack Trace:\r\n{2}", message, type, stackTrace);
2032 }
2033
2034 public static Message UnexpectedExternalUIMessage(string message)
2035 {
2036 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);
2037 }
2038
2039 public static Message UnexpectedExternalUIMessage(string message, string action)
2040 {
2041 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);
2042 }
2043
2044 public static Message UnexpectedFileExtension(string fileName, string expectedExtensions)
2045 {
2046 return Message(null, Ids.UnexpectedFileExtension, "The file '{0}' has an unexpected extension. Expected one of the following: '{1}'.", fileName, expectedExtensions);
2047 }
2048
2049 public static Message UnexpectedFileFormat(string path, string expectedFormat, string actualFormat)
2050 {
2051 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());
2052 }
2053
2054 public static Message UnexpectedGroupChild(string parentType, string parentId, string childType, string childId)
2055 {
2056 return Message(null, Ids.UnexpectedGroupChild, "A group parent ('{0}'/'{1}') had an unexpected child ('{2}'/'{3}').", parentType, parentId, childType, childId);
2057 }
2058
2059 public static Message UnexpectedLiteral(SourceLineNumber sourceLineNumbers, string expression)
2060 {
2061 return Message(sourceLineNumbers, Ids.UnexpectedLiteral, "An unexpected literal was found in the expression '{0}'.", expression);
2062 }
2063
2064 public static Message UnexpectedPreprocessorOperator(SourceLineNumber sourceLineNumbers, string op)
2065 {
2066 return Message(sourceLineNumbers, Ids.UnexpectedPreprocessorOperator, "The operator '{0}' is unexpected.", op);
2067 }
2068
2069 public static Message UnexpectedTableInMergeModule(SourceLineNumber sourceLineNumbers, string tableName)
2070 {
2071 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);
2072 }
2073
2074 public static Message UnexpectedTableInPatch(SourceLineNumber sourceLineNumbers, string tableName)
2075 {
2076 return Message(sourceLineNumbers, Ids.UnexpectedTableInPatch, "An unexpected row in the '{0}' table was found in this patch. Patches cannot contain the '{0}' table.", tableName);
2077 }
2078
2079 public static Message UnexpectedTableInPatchCreationPackage(SourceLineNumber sourceLineNumbers, string tableName)
2080 {
2081 return Message(sourceLineNumbers, Ids.UnexpectedTableInPatchCreationPackage, "An unexpected row in the '{0}' table was found in this patch creation package. Patch creation packages cannot contain the '{0}' table.", tableName);
2082 }
2083
2084 public static Message UnhandledExtensionAttribute(SourceLineNumber sourceLineNumbers, string elementName, string extensionAttributeName, string extensionNamespace)
2085 {
2086 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);
2087 }
2088
2089 public static Message UnhandledExtensionElement(SourceLineNumber sourceLineNumbers, string elementName, string extensionElementName, string extensionNamespace)
2090 {
2091 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);
2092 }
2093
2094 public static Message UniqueFileSearchIdRequired(SourceLineNumber sourceLineNumbers, string id, string elementName)
2095 {
2096 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);
2097 }
2098
2099 public static Message UnknownCustomTableColumnType(SourceLineNumber sourceLineNumbers, string columnType)
2100 {
2101 return Message(sourceLineNumbers, Ids.UnknownCustomTableColumnType, "Encountered an unknown custom table column type '{0}'.", columnType);
2102 }
2103
2104 public static Message UnmatchedParenthesisInExpression(SourceLineNumber sourceLineNumbers, string expression)
2105 {
2106 return Message(sourceLineNumbers, Ids.UnmatchedParenthesisInExpression, "The parenthesis don't match in the expression '{0}'.", expression);
2107 }
2108
2109 public static Message UnmatchedPreprocessorInstruction(SourceLineNumber sourceLineNumbers, string beginInstruction, string endInstruction)
2110 {
2111 return Message(sourceLineNumbers, Ids.UnmatchedPreprocessorInstruction, "Found a <?{1}?> processing instruction without a matching <?{0}?> before it.", beginInstruction, endInstruction);
2112 }
2113
2114 public static Message UnmatchedQuotesInExpression(SourceLineNumber sourceLineNumbers, string expression)
2115 {
2116 return Message(sourceLineNumbers, Ids.UnmatchedQuotesInExpression, "The quotes don't match in the expression '{0}'.", expression);
2117 }
2118
2119 public static Message UnresolvedBindReference(SourceLineNumber sourceLineNumbers, string BindRef)
2120 {
2121 return Message(sourceLineNumbers, Ids.UnresolvedBindReference, "Unresolved bind-time variable {0}.", BindRef);
2122 }
2123
2124 public static Message UnresolvedReference(SourceLineNumber sourceLineNumbers, string symbolName)
2125 {
2126 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);
2127 }
2128
2129 public static Message UnresolvedReference(SourceLineNumber sourceLineNumbers, string symbolName, WixToolset.Data.AccessModifier accessModifier)
2130 {
2131 return Message(sourceLineNumbers, Ids.UnresolvedReference, "The identifier '{0}' is inaccessible due to its protection level.", symbolName, accessModifier);
2132 }
2133
2134 public static Message UnsupportedAllUsersValue(SourceLineNumber sourceLineNumbers, string path, string value)
2135 {
2136 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);
2137 }
2138
2139 public static Message UnsupportedExtensionAttribute(SourceLineNumber sourceLineNumbers, string elementName, string extensionElementName)
2140 {
2141 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);
2142 }
2143
2144 public static Message UnsupportedExtensionElement(SourceLineNumber sourceLineNumbers, string elementName, string extensionElementName)
2145 {
2146 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);
2147 }
2148
2149 public static Message UnsupportedPlatformForElement(SourceLineNumber sourceLineNumbers, string platform, string elementName)
2150 {
2151 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);
2152 }
2153
2154 public static Message ValidationError(SourceLineNumber sourceLineNumbers, string ice, string message)
2155 {
2156 return Message(sourceLineNumbers, Ids.ValidationError, "{0}: {1}", ice, message);
2157 }
2158
2159 public static Message ValidationFailedDueToInvalidPackage()
2160 {
2161 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.");
2162 }
2163
2164 public static Message ValidationFailedDueToLowMsiEngine()
2165 {
2166 return Message(null, Ids.ValidationFailedDueToLowMsiEngine, "The package being validated requires a higher version of Windows Installer than is installed on this machine. Validation cannot continue.");
2167 }
2168
2169 public static Message ValidationFailedDueToMultilanguageMergeModule()
2170 {
2171 return Message(null, Ids.ValidationFailedDueToMultilanguageMergeModule, "Failed to open merge module for validation. The most common cause of this error is specifying that the merge module supports multiple languages (using the Package/@Languages attribute) but not including language-specific embedded transforms. To fix this error, make the merge module language-neutral, make it language-specific, embed language transforms as specified in the MSI SDK at https://learn.microsoft.com/en-us/windows/win32/msi/authoring-multiple-language-merge-modules, or disable validation.");
2172 }
2173
2174 public static Message ValidationFailedToOpenDatabase()
2175 {
2176 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.");
2177 }
2178
2179 public static Message ValueAndMaskMustBeSameLength(SourceLineNumber sourceLineNumbers)
2180 {
2181 return Message(sourceLineNumbers, Ids.ValueAndMaskMustBeSameLength, "The FileTypeMask/@Value and FileTypeMask/@Mask attributes must be the same length.");
2182 }
2183
2184 public static Message ValueNotSupported(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string attributeValue)
2185 {
2186 return Message(sourceLineNumbers, Ids.ValueNotSupported, "The {0}/@{1} attribute's value, '{2}, is not supported by the Windows Installer.", elementName, attributeName, attributeValue);
2187 }
2188
2189 public static Message VariableDeclarationCollision(SourceLineNumber sourceLineNumbers, string variableName, string variableValue, string variableCollidingValue)
2190 {
2191 return Message(sourceLineNumbers, Ids.VariableDeclarationCollision, "The variable '{0}' with value '{1}' was previously declared with value '{2}'.", variableName, variableValue, variableCollidingValue);
2192 }
2193
2194 public static Message VersionIndependentProgIdsCannotHaveIcons(SourceLineNumber sourceLineNumbers)
2195 {
2196 return Message(sourceLineNumbers, Ids.VersionIndependentProgIdsCannotHaveIcons, "Version independent ProgIds cannot have Icons. Remove the Icon and/or IconIndex attributes from your ProgId element.");
2197 }
2198
2199 public static Message VersionMismatch(SourceLineNumber sourceLineNumbers, string fileType, string version, string expectedVersion)
2200 {
2201 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);
2202 }
2203
2204 public static Message Win32Exception(int nativeErrorCode, string message)
2205 {
2206 return Message(null, Ids.Win32Exception, "An unexpected Win32 exception with error code 0x{0:X} occurred: {1}", nativeErrorCode, message);
2207 }
2208
2209 public static Message Win32Exception(int nativeErrorCode, string file, string message)
2210 {
2211 return Message(null, Ids.Win32Exception, "An unexpected Win32 exception with error code 0x{0:X} occurred while accessing file '{1}': {2}", nativeErrorCode, file, message);
2212 }
2213
2214 public static Message WixFileNotFound(string file)
2215 {
2216 return Message(null, Ids.WixFileNotFound, "The file '{0}' cannot be found.", file);
2217 }
2218
2219 public static Message BindVariableCollision(SourceLineNumber sourceLineNumbers, string variableId)
2220 {
2221 return Message(sourceLineNumbers, Ids.BindVariableCollision, "The bind variable '{0}' is declared in more than one location. Please remove one of the declarations.", variableId);
2222 }
2223
2224 public static Message BindVariableUnknown(SourceLineNumber sourceLineNumbers, string variableId)
2225 {
2226 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);
2227 }
2228
2229 public static Message NoSourceFiles()
2230 {
2231 return Message(null, Ids.NoSourceFiles, "No source files specified.");
2232 }
2233
2234 public static Message WixiplSourceFileIsExclusive()
2235 {
2236 return Message(null, Ids.WixiplSourceFileIsExclusive, "When an intermediate post link source file is specified, it must be the only source file provided.");
2237 }
2238
2239 public static Message IntermediatesMustBeCompiled(string invalidIntermediates)
2240 {
2241 return Message(null, Ids.IntermediatesMustBeCompiled, "Intermediates being linked must have been compiled. Intermediates with these ids were not compiled: {0}", invalidIntermediates);
2242 }
2243
2244 public static Message IntermediatesMustBeResolved(string invalidIntermediate)
2245 {
2246 return Message(null, Ids.IntermediatesMustBeResolved, "Intermediates being bound must have been resolved. This intermediate was not resolved: {0}", invalidIntermediate);
2247 }
2248
2249 public static Message UnknownSymbolType(string symbolName)
2250 {
2251 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);
2252 }
2253
2254 public static Message IllegalInnerText(SourceLineNumber sourceLineNumbers, string elementName, string innerText)
2255 {
2256 return Message(sourceLineNumbers, Ids.IllegalInnerText, "The {0} element contains illegal inner text: '{1}'.", elementName, innerText);
2257 }
2258
2259 public static Message IllegalInnerText(SourceLineNumber sourceLineNumbers, string elementName, string innerText, string attributeName)
2260 {
2261 return Message(sourceLineNumbers, Ids.IllegalInnerText, "The {0} element contains inner text which is obsolete. Use the {1} attribute instead.", elementName, attributeName);
2262 }
2263
2264 public static Message IllegalAttributeWhenNested(SourceLineNumber sourceLineNumbers, string attributeName)
2265 {
2266 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);
2267 }
2268
2269 public static Message OverlengthTableNameInProductOrMergeModule(SourceLineNumber sourceLineNumbers, string tableName)
2270 {
2271 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);
2272 }
2273
2274 private static Message Message(SourceLineNumber sourceLineNumber, Ids id, string format, params object[] args)
2275 {
2276 return new Message(sourceLineNumber, MessageLevel.Error, (int)id, format, args);
2277 }
2278
2279 private static Message Message(SourceLineNumber sourceLineNumber, Ids id, ResourceManager resourceManager, string resourceName, params object[] args)
2280 {
2281 return new Message(sourceLineNumber, MessageLevel.Error, (int)id, resourceManager, resourceName, args);
2282 }
2283
2284 public enum Ids
2285 {
2286 UnexpectedException = 1,
2287 UnexpectedFileFormat = 2,
2288 CorruptFileFormat = 3,
2289 UnexpectedAttribute = 4,
2290 UnexpectedElement = 5,
2291 IllegalEmptyAttributeValue = 6,
2292 InsufficientVersion = 7,
2293 IllegalIntegerValue = 8,
2294 IllegalGuidValue = 9,
2295 ExpectedAttribute = 10,
2296 SecurePropertyNotUppercase = 11,
2297 SearchPropertyNotUppercase = 12,
2298 StreamNameTooLong = 13,
2299 IllegalIdentifier = 14,
2300 IllegalYesNoValue = 15,
2301 CommandLineCommandRequired = 16,
2302 CabExtractionFailed = 17,
2303 AppIdIncompatibleAdvertiseState = 18,
2304 IllegalAttributeWhenAdvertised = 19,
2305 ConditionExpected = 20,
2306 IllegalAttributeValue = 21,
2307 CustomActionMultipleSources = 22,
2308 CustomActionMultipleTargets = 23,
2309 IllegalShortFilename = 26,
2310 IllegalLongFilename = 27,
2311 TableNameTooLong = 28,
2312 FeatureConfigurableDirectoryNotUppercase = 29,
2313 FeatureCannotFavorAndDisallowAdvertise = 30,
2314 FeatureCannotFollowParentAndFavorLocalOrSource = 31,
2315 MediaEmbeddedCabinetNameTooLong = 32,
2316 RegistrySubElementCannotBeRemoved = 33,
2317 RegistryMultipleValuesWithoutMultiString = 34,
2318 IllegalAttributeWithOtherAttribute = 35,
2319 IllegalAttributeWithOtherAttributes = 36,
2320 IllegalAttributeWithoutOtherAttributes = 37,
2321 IllegalAttributeValueWithoutOtherAttribute = 38,
2322 IntegralValueSentinelCollision = 39,
2323 ExampleGuid = 40,
2324 TooManyChildren = 41,
2325 ComponentMultipleKeyPaths = 42,
2326 ExpectedAttributes = 44,
2327 ExpectedAttributesWithOtherAttribute = 45,
2328 ExpectedAttributesWithoutOtherAttribute = 46,
2329 MissingTypeLibFile = 47,
2330 InvalidDocumentElement = 48,
2331 ExpectedAttributeInElementOrParent = 49,
2332 UnauthorizedAccess = 50,
2333 IllegalModuleExclusionLanguageAttributes = 51,
2334 NoFirstControlSpecified = 52,
2335 NoDataForColumn = 53,
2336 ValueAndMaskMustBeSameLength = 54,
2337 TooManySearchElements = 55,
2338 IllegalAttributeExceptOnElement = 56,
2339 SearchElementRequired = 57,
2340 MultipleIdentifiersFound = 58,
2341 AdvertiseStateMustMatch = 59,
2342 DuplicateContextValue = 60,
2343 RelativePathForRegistryElement = 61,
2344 IllegalAttributeWhenNested = 62,
2345 ExpectedElement = 63,
2346 RegistryRootInvalid = 64,
2347 IllegalYesNoDefaultValue = 65,
2348 IllegalAttributeInMergeModule = 66,
2349 GenericReadNotAllowed = 67,
2350 IllegalAttributeWithInnerText = 68,
2351 SearchElementRequiredWithAttribute = 69,
2352 CannotAuthorSpecialProperties = 70,
2353 NeedSequenceBeforeOrAfter = 72,
2354 ValueNotSupported = 73,
2355 TabbableControlNotAllowedInBillboard = 74,
2356 CheckBoxValueOnlyValidWithCheckBox = 75,
2357 CabFileDoesNotExist = 76,
2358 RadioButtonTypeInconsistent = 77,
2359 RadioButtonBitmapAndIconDisallowed = 78,
2360 IllegalSuppressWarningId = 79,
2361 PreprocessorIllegalForeachVariable = 80,
2362 PreprocessorMissingParameterPrefix = 81,
2363 PreprocessorExtensionForParameterMissing = 82,
2364 CannotFindFile = 83,
2365 BinderFileManagerMissingFile = 84,
2366 InvalidFileName = 85,
2367 ReferenceLoopDetected = 86,
2368 GuidContainsLowercaseLetters = 87,
2369 InvalidDateTimeFormat = 88,
2370 MultipleEntrySections = 89,
2371 MultipleEntrySections2 = 90,
2372 MissingEntrySection = 93,
2373 UnresolvedReference = 94,
2374 MultiplePrimaryReferences = 95,
2375 ComponentReferencedTwice = 96,
2376 DuplicateModuleFileIdentifier = 97,
2377 DuplicateModuleCaseInsensitiveFileIdentifier = 98,
2378 ImplicitComponentKeyPath = 99,
2379 DuplicateLocalizationIdentifier = 100,
2380 LocalizationVariableUnknown = 102,
2381 FileNotFound = 103,
2382 InvalidXml = 104,
2383 ProgIdNestedTooDeep = 105,
2384 CanNotHaveTwoParents = 106,
2385 SchemaValidationFailed = 107,
2386 IllegalVersionValue = 108,
2387 CustomTableNameTooLong = 109,
2388 CustomTableIllegalColumnWidth = 110,
2389 CustomTableMissingPrimaryKey = 111,
2390 TypeSpecificationForExtensionRequired = 113,
2391 FilePathRequired = 114,
2392 DirectoryPathRequired = 115,
2393 FileOrDirectoryPathRequired = 116,
2394 PathCannotContainQuote = 117,
2395 AdditionalArgumentUnexpected = 118,
2396 RegistryNameValueIncorrect = 119,
2397 FamilyNameTooLong = 120,
2398 IllegalFamilyName = 121,
2399 IllegalLongValue = 122,
2400 IntegralValueOutOfRange = 123,
2401 DuplicateExtensionXmlSchemaNamespace = 125,
2402 DuplicateExtensionTable = 126,
2403 DuplicateExtensionPreprocessorType = 127,
2404 FileInUse = 128,
2405 CannotOpenMergeModule = 129,
2406 DuplicatePrimaryKey = 130,
2407 FileIdentifierNotFound = 131,
2408 InvalidAssemblyFile = 132,
2409 ExpectedEndElement = 133,
2410 IllegalCodepage = 134,
2411 ExpectedMediaCabinet = 135,
2412 InvalidIdt = 136,
2413 InvalidSequenceTable = 137,
2414 ExpectedDirectory = 138,
2415 ComponentExpectedFeature = 139,
2416 RecursiveAction = 140,
2417 VersionMismatch = 141,
2418 UnexpectedContentNode = 142,
2419 UnexpectedColumnCount = 143,
2420 InvalidExtension = 144,
2421 InvalidSubExpression = 145,
2422 UnmatchedPreprocessorInstruction = 146,
2423 NonterminatedPreprocessorInstruction = 147,
2424 ExpectedExpressionAfterNot = 148,
2425 InvalidPreprocessorVariable = 149,
2426 UndefinedPreprocessorVariable = 150,
2427 IllegalDefineStatement = 151,
2428 VariableDeclarationCollision = 152,
2429 CannotReundefineVariable = 153,
2430 IllegalForeach = 154,
2431 IllegalParentAttributeWhenNested = 155,
2432 ExpectedEndforeach = 156,
2433 UnmatchedQuotesInExpression = 158,
2434 UnmatchedParenthesisInExpression = 159,
2435 ExpectedVariable = 160,
2436 UnexpectedLiteral = 161,
2437 IllegalIntegerInExpression = 162,
2438 UnexpectedPreprocessorOperator = 163,
2439 UnexpectedEmptySubexpression = 164,
2440 UnexpectedCustomTableColumn = 165,
2441 UnknownCustomTableColumnType = 166,
2442 IllegalFileCompressionAttributes = 167,
2443 OverridableActionCollision = 168,
2444 OverridableActionCollision2 = 169,
2445 ActionCollision = 170,
2446 ActionCollision2 = 171,
2447 SuppressNonoverridableAction = 172,
2448 SuppressNonoverridableAction2 = 173,
2449 CustomActionSequencedInModule = 174,
2450 StandardActionRelativelyScheduledInModule = 175,
2451 ActionCircularDependency = 176,
2452 ActionScheduledRelativeToTerminationAction = 177,
2453 ActionScheduledRelativeToTerminationAction2 = 178,
2454 NoUniqueActionSequenceNumber = 179,
2455 NoUniqueActionSequenceNumber2 = 180,
2456 ActionScheduledRelativeToItself = 181,
2457 MissingTableDefinition = 182,
2458 ExpectedRowInPatchCreationPackage = 183,
2459 UnexpectedTableInMergeModule = 184,
2460 UnexpectedTableInPatchCreationPackage = 185,
2461 MergeExcludedModule = 186,
2462 MergeFeatureRequired = 187,
2463 MergeLanguageFailed = 188,
2464 MergeLanguageUnsupported = 189,
2465 TableDecompilationUnimplemented = 190,
2466 CannotDefaultMismatchedAdvertiseStates = 191,
2467 VersionIndependentProgIdsCannotHaveIcons = 192,
2468 IllegalAttributeValueWithOtherAttribute = 193,
2469 InvalidMergeLanguage = 194,
2470 BindVariableCollision = 195,
2471 ExpectedBindVariableValue = 196,
2472 BindVariableUnknown = 197,
2473 IllegalBindVariablePrefix = 198,
2474 InvalidWixXmlNamespace = 199,
2475 UnhandledExtensionElement = 200,
2476 UnhandledExtensionAttribute = 201,
2477 UnsupportedExtensionAttribute = 202,
2478 UnsupportedExtensionElement = 203,
2479 ValidationError = 204,
2480 IllegalRootDirectory = 205,
2481 IllegalTargetDirDefaultDir = 206,
2482 TooManyElements = 207,
2483 ExpectedBinaryCategory = 208,
2484 RootFeatureCannotFollowParent = 209,
2485 FeatureNameTooLong = 210,
2486 SignedEmbeddedCabinet = 211,
2487 ExpectedSignedCabinetName = 212,
2488 IllegalInlineLocVariable = 213,
2489 MergeModuleExpectedFeature = 215,
2490 Win32Exception = 216,
2491 UnexpectedExternalUIMessage = 217,
2492 IllegalCabbingThreadCount = 218,
2493 IllegalEnvironmentVariable = 219,
2494 InvalidKeyColumn = 220,
2495 CollidingModularizationTypes = 221,
2496 CubeFileNotFound = 222,
2497 OpenDatabaseFailed = 223,
2498 OutputTypeMismatch = 224,
2499 RealTableMissingPrimaryKeyColumn = 225,
2500 IllegalColumnName = 226,
2501 NoDifferencesInTransform = 227,
2502 OutputCodepageMismatch = 228,
2503 OutputCodepageMismatch2 = 229,
2504 IllegalComponentWithAutoGeneratedGuid = 230,
2505 IllegalPathForGeneratedComponentGuid = 231,
2506 IllegalTerminalServerCustomActionAttributes = 232,
2507 IllegalPropertyCustomActionAttributes = 233,
2508 InvalidPreprocessorFunction = 234,
2509 UndefinedPreprocessorFunction = 235,
2510 PreprocessorExtensionEvaluateFunctionFailed = 236,
2511 PreprocessorExtensionGetVariableValueFailed = 237,
2512 InvalidManifestContent = 238,
2513 InvalidWixTransform = 239,
2514 UnexpectedFileExtension = 240,
2515 UnexpectedTableInPatch = 241,
2516 InvalidKeypathChange = 243,
2517 MissingValidatorExtension = 244,
2518 InvalidValidatorMessageType = 245,
2519 PatchWithoutTransforms = 246,
2520 SingleExtensionSupported = 247,
2521 DuplicateTransform = 248,
2522 BaselineRequired = 249,
2523 PreprocessorError = 250,
2524 ExpectedArgument = 251,
2525 PatchWithoutValidTransforms = 252,
2526 ExpectedDecompiler = 253,
2527 ExpectedTableInMergeModule = 254,
2528 UnexpectedElementWithAttributeValue = 255,
2529 ExpectedPatchIdInWixMsp = 256,
2530 ExpectedMediaRowsInWixMsp = 257,
2531 WixFileNotFound = 258,
2532 ExpectedClientPatchIdInWixMsp = 259,
2533 NewRowAddedInTable = 260,
2534 PatchNotRemovable = 261,
2535 PathTooLong = 262,
2536 FileTooLarge = 263,
2537 InvalidPlatformParameter = 264,
2538 InvalidPlatformValue = 265,
2539 IllegalValidationArguments = 266,
2540 OrphanedComponent = 267,
2541 IllegalCommandLineArgumentValue = 268,
2542 ProductCodeInvalidForTransform = 269,
2543 InsertInvalidSequenceActionOrder = 270,
2544 InsertSequenceNoSpace = 271,
2545 MissingManifestForWin32Assembly = 272,
2546 UnableToOpenModule = 273,
2547 ExpectedAttributeWhenElementNotUnderElement = 274,
2548 IllegalIdentifierLooksLikeFormatted = 275,
2549 IllegalCodepageAttribute = 276,
2550 IllegalCompressionLevel = 277,
2551 TransformSchemaMismatch = 278,
2552 DatabaseSchemaMismatch = 279,
2553 ExpectedDirectoryGotFile = 280,
2554 ExpectedFileGotDirectory = 281,
2555 GacAssemblyNoStrongName = 282,
2556 FileWriteError = 283,
2557 InvalidCommandLineFileName = 284,
2558 ExpectedParentWithAttribute = 285,
2559 IllegalWarningIdAsError = 286,
2560 ExpectedAttributeOrElement = 287,
2561 DuplicateVariableDefinition = 288,
2562 InvalidVariableDefinition = 289,
2563 DuplicateCabinetName = 290,
2564 DuplicateCabinetName2 = 291,
2565 InvalidAddedFileRowWithoutSequence = 292,
2566 DuplicateFileId = 293,
2567 FullTempDirectory = 294,
2568 CreateCabAddFileFailed = 296,
2569 CreateCabInsufficientDiskSpace = 297,
2570 UnresolvedBindReference = 298,
2571 GACAssemblyIdentityWarning = 299,
2572 IllegalCharactersInPath = 300,
2573 ValidationFailedToOpenDatabase = 301,
2574 MustSpecifyOutputWithMoreThanOneInput = 302,
2575 IllegalSearchIdForParentDepth = 303,
2576 IdentifierTooLongError = 304,
2577 InvalidRemoveComponent = 305,
2578 FinishCabFailed = 306,
2579 InvalidExtensionType = 307,
2580 ValidationFailedDueToMultilanguageMergeModule = 309,
2581 ValidationFailedDueToInvalidPackage = 310,
2582 InvalidStringForCodepage = 311,
2583 InvalidEmbeddedUIFileName = 312,
2584 UniqueFileSearchIdRequired = 313,
2585 IllegalAttributeValueWhenNested = 314,
2586 AdminImageRequired = 315,
2587 SamePatchBaselineId = 316,
2588 SameFileIdDifferentSource = 317,
2589 HarvestSourceNotSpecified = 318,
2590 OutputTargetNotSpecified = 319,
2591 DuplicateCommandLineOptionInExtension = 320,
2592 HarvestTypeNotFound = 321,
2593 BothUpgradeCodesRequired = 322,
2594 IllegalBinderClassName = 323,
2595 SpecifiedBinderNotFound = 324,
2596 UnableToGetAuthenticodeCertOfFile = 327,
2597 UnableToGetAuthenticodeCertOfFileDownlevelOS = 328,
2598 ReadOnlyOutputFile = 329,
2599 CannotDefaultComponentId = 330,
2600 ParentElementAttributeRequired = 331,
2601 PreprocessorExtensionPragmaFailed = 333,
2602 InvalidPreprocessorPragma = 334,
2603 InvalidStubExe = 338,
2604 StubMissingWixburnSection = 339,
2605 StubWixburnSectionTooSmall = 340,
2606 MissingBundleInformation = 341,
2607 UnexpectedGroupChild = 342,
2608 OrderingReferenceLoopDetected = 343,
2609 IdentifierNotFound = 344,
2610 MergePlatformMismatch = 345,
2611 IllegalRelativeLongFilename = 346,
2612 IllegalAttributeValueWithLegalList = 347,
2613 IllegalAttributeValueWithIllegalList = 348,
2614 InvalidSummaryInfoCodePage = 349,
2615 ValidationFailedDueToLowMsiEngine = 350,
2616 DuplicateSourcesForOutput = 351,
2617 UnableToReadPackageInformation = 352,
2618 MultipleFilesMatchedWithOutputSpecification = 353,
2619 InvalidBundle = 354,
2620 BundleTooNew = 355,
2621 MediaTableCollision = 357,
2622 InvalidCabinetTemplate = 358,
2623 MaximumUncompressedMediaSizeTooLarge = 359,
2624 ReservedNamespaceViolation = 362,
2625 PerUserButAllUsersEquals1 = 363,
2626 UnsupportedAllUsersValue = 364,
2627 DisallowedMsiProperty = 365,
2628 MissingOrInvalidModuleInstallerVersion = 366,
2629 IllegalGeneratedGuidComponentUnversionedKeypath = 367,
2630 IllegalGeneratedGuidComponentVersionedNonkeypath = 368,
2631 DuplicateComponentGuids = 369,
2632 DuplicateProviderDependencyKey = 370,
2633 MissingDependencyVersion = 371,
2634 UnexpectedElementWithAttribute = 372,
2635 ExpectedAttributeWithElement = 373,
2636 DuplicatedUiLocalization = 374,
2637 MaximumCabinetSizeForLargeFileSplittingTooLarge = 375,
2638 SplitCabinetCopyRegistrationFailed = 376,
2639 SplitCabinetNameCollision = 377,
2640 InvalidPreprocessorFunctionAutoVersion = 379,
2641 InvalidFourPartVersion = 380,
2642 UnsupportedPlatformForElement = 381,
2643 MissingMedia = 382,
2644 IllegalYesNoAlwaysValue = 384,
2645 TooDeeplyIncluded = 385,
2646 TooManyColumnsInRealTable = 386,
2647 InlineDirectorySyntaxRequiresPath = 387,
2648 InsecureBundleFilename = 388,
2649 PayloadMustBeRelativeToCache = 389,
2650 MsiTransactionX86BeforeX64Package = 390,
2651 NoSourceFiles = 391,
2652 WixiplSourceFileIsExclusive = 392,
2653 UnableToConvertFieldToNumber = 393,
2654 CouldNotDetermineProductCodeFromTransformSummaryInfo = 394,
2655 IntermediatesMustBeCompiled = 395,
2656 IntermediatesMustBeResolved = 396,
2657 MissingBundleSearch = 397,
2658 CircularSearchReference = 398,
2659 UnknownSymbolType = 399,
2660 IllegalInnerText = 400,
2661 ExpectedAttributeWithValueWithOtherAttribute = 401,
2662 PackagePayloadUnsupported = 402,
2663 PackagePayloadUnsupported2 = 403,
2664 MultiplePackagePayloads = 404,
2665 MultiplePackagePayloads2 = 405,
2666 MultiplePackagePayloads3 = 406,
2667 MissingPackagePayload = 407,
2668 ExpectedAttributeWithoutOtherAttributes = 408,
2669 InvalidBundleCondition = 409,
2670 MsiTransactionX86BeforeX64Package2 = 410,
2671 MsiTransactionInvalidPackage = 411,
2672 MsiTransactionInvalidPackage2 = 412,
2673 ExpectedAttributeOrElementWithOtherAttribute = 413,
2674 ExpectedAttributeOrElementWithoutOtherAttribute = 414,
2675 OverlengthTableNameInProductOrMergeModule = 415
2676 }
2677 }
2678 }