diff options
Diffstat (limited to 'src/ext/Bal/wixext/BalErrors.cs')
-rw-r--r-- | src/ext/Bal/wixext/BalErrors.cs | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/ext/Bal/wixext/BalErrors.cs b/src/ext/Bal/wixext/BalErrors.cs index e9f68b24..a7a00a4b 100644 --- a/src/ext/Bal/wixext/BalErrors.cs +++ b/src/ext/Bal/wixext/BalErrors.cs | |||
@@ -18,11 +18,41 @@ namespace WixToolset.Bal | |||
18 | return Message(sourceLineNumbers, Ids.BAFunctionsPayloadRequiredInUXContainer, "The BAFunctions DLL Payload element must be located inside the BootstrapperApplication container."); | 18 | return Message(sourceLineNumbers, Ids.BAFunctionsPayloadRequiredInUXContainer, "The BAFunctions DLL Payload element must be located inside the BootstrapperApplication container."); |
19 | } | 19 | } |
20 | 20 | ||
21 | public static Message IuibaNonMsiPrimaryPackage(SourceLineNumber sourceLineNumbers) | ||
22 | { | ||
23 | return Message(sourceLineNumbers, Ids.IuibaNonMsiPrimaryPackage, "When using WixInternalUIBootstrapperApplication, each primary package must be an MsiPackage."); | ||
24 | } | ||
25 | |||
26 | public static Message IuibaNonPermanentNonPrimaryPackage(SourceLineNumber sourceLineNumbers) | ||
27 | { | ||
28 | return Message(sourceLineNumbers, Ids.IuibaNonPermanentNonPrimaryPackage, "When using WixInternalUIBootstrapperApplication, packages must either be non-permanent and have the bal:PrimaryPackageType attribute, or be permanent and have the bal:PrereqPackage attribute set to 'yes'."); | ||
29 | } | ||
30 | |||
31 | public static Message IuibaNonPermanentPrereqPackage(SourceLineNumber sourceLineNumbers) | ||
32 | { | ||
33 | return Message(sourceLineNumbers, Ids.IuibaNonPermanentPrereqPackage, "When using WixInternalUIBootstrapperApplication and bal:PrereqPackage is set to 'yes', the package must be permanent."); | ||
34 | } | ||
35 | |||
36 | public static Message IuibaPermanentPrimaryPackageType(SourceLineNumber sourceLineNumbers) | ||
37 | { | ||
38 | return Message(sourceLineNumbers, Ids.IuibaPermanentPrimaryPackageType, "When using WixInternalUIBootstrapperApplication, packages with the bal:PrimaryPackageType attribute must not be permanent."); | ||
39 | } | ||
40 | |||
41 | public static Message IuibaPrimaryPackageEnableFeatureSelection(SourceLineNumber sourceLineNumbers) | ||
42 | { | ||
43 | return Message(sourceLineNumbers, Ids.IuibaPrimaryPackageEnableFeatureSelection, "When using WixInternalUIBootstrapperApplication, primary packages must not have feature selection enabled because it interferes with the user selecting feature through the MSI UI."); | ||
44 | } | ||
45 | |||
21 | public static Message MissingDNCPrereq() | 46 | public static Message MissingDNCPrereq() |
22 | { | 47 | { |
23 | return Message(null, Ids.MissingDNCPrereq, "There must be at least one PrereqPackage when using the DotNetCoreBootstrapperApplicationHost with SelfContainedDeployment set to \"no\"."); | 48 | return Message(null, Ids.MissingDNCPrereq, "There must be at least one PrereqPackage when using the DotNetCoreBootstrapperApplicationHost with SelfContainedDeployment set to \"no\"."); |
24 | } | 49 | } |
25 | 50 | ||
51 | public static Message MissingIUIPrimaryPackage() | ||
52 | { | ||
53 | return Message(null, Ids.MissingIUIPrimaryPackage, "When using WixInternalUIBootstrapperApplication, there must be one package with bal:PrimaryPackageType=\"default\"."); | ||
54 | } | ||
55 | |||
26 | public static Message MissingMBAPrereq() | 56 | public static Message MissingMBAPrereq() |
27 | { | 57 | { |
28 | return Message(null, Ids.MissingMBAPrereq, "There must be at least one PrereqPackage when using the ManagedBootstrapperApplicationHost.\nThis is typically done by using the WixNetFxExtension and referencing one of the NetFxAsPrereq package groups."); | 58 | return Message(null, Ids.MissingMBAPrereq, "There must be at least one PrereqPackage when using the ManagedBootstrapperApplicationHost.\nThis is typically done by using the WixNetFxExtension and referencing one of the NetFxAsPrereq package groups."); |
@@ -38,6 +68,16 @@ namespace WixToolset.Bal | |||
38 | return Message(sourceLineNumbers, Ids.MultiplePrereqLicenses, "There may only be one package in the bundle that has either the PrereqLicenseFile attribute or the PrereqLicenseUrl attribute."); | 68 | return Message(sourceLineNumbers, Ids.MultiplePrereqLicenses, "There may only be one package in the bundle that has either the PrereqLicenseFile attribute or the PrereqLicenseUrl attribute."); |
39 | } | 69 | } |
40 | 70 | ||
71 | public static Message MultiplePrimaryPackageType(SourceLineNumber sourceLineNumbers, string primaryPackageType) | ||
72 | { | ||
73 | return Message(sourceLineNumbers, Ids.MultiplePrimaryPackageType, "There may only be one package in the bundle with PrimaryPackageType of '{0}'.", primaryPackageType); | ||
74 | } | ||
75 | |||
76 | public static Message MultiplePrimaryPackageType2(SourceLineNumber sourceLineNumbers) | ||
77 | { | ||
78 | return Message(sourceLineNumbers, Ids.MultiplePrimaryPackageType2, "The location of the package related to the previous error."); | ||
79 | } | ||
80 | |||
41 | public static Message NonUpperCaseOverridableVariable(SourceLineNumber sourceLineNumbers, string name, string expectedName) | 81 | public static Message NonUpperCaseOverridableVariable(SourceLineNumber sourceLineNumbers, string name, string expectedName) |
42 | { | 82 | { |
43 | return Message(sourceLineNumbers, Ids.NonUpperCaseOverridableVariable, "Overridable variable '{0}' must be '{1}' with Bundle/@CommandLineVariables value 'upperCase'.", name, expectedName); | 83 | return Message(sourceLineNumbers, Ids.NonUpperCaseOverridableVariable, "Overridable variable '{0}' must be '{1}' with Bundle/@CommandLineVariables value 'upperCase'.", name, expectedName); |
@@ -62,6 +102,14 @@ namespace WixToolset.Bal | |||
62 | BAFunctionsPayloadRequiredInUXContainer = 6805, | 102 | BAFunctionsPayloadRequiredInUXContainer = 6805, |
63 | MissingDNCPrereq = 6806, | 103 | MissingDNCPrereq = 6806, |
64 | NonUpperCaseOverridableVariable = 6807, | 104 | NonUpperCaseOverridableVariable = 6807, |
105 | MissingIUIPrimaryPackage = 6808, | ||
106 | MultiplePrimaryPackageType = 6809, | ||
107 | MultiplePrimaryPackageType2 = 6810, | ||
108 | IuibaNonPermanentNonPrimaryPackage = 6811, | ||
109 | IuibaNonPermanentPrereqPackage = 6812, | ||
110 | IuibaPermanentPrimaryPackageType = 6813, | ||
111 | IuibaNonMsiPrimaryPackage = 6814, | ||
112 | IuibaPrimaryPackageEnableFeatureSelection = 6815, | ||
65 | } | 113 | } |
66 | } | 114 | } |
67 | } | 115 | } |