diff options
Diffstat (limited to 'src/WixToolset.Core/TransformsFlags.cs')
| -rw-r--r-- | src/WixToolset.Core/TransformsFlags.cs | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/src/WixToolset.Core/TransformsFlags.cs b/src/WixToolset.Core/TransformsFlags.cs new file mode 100644 index 00000000..d9ec94ac --- /dev/null +++ b/src/WixToolset.Core/TransformsFlags.cs | |||
| @@ -0,0 +1,81 @@ | |||
| 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.Core | ||
| 4 | { | ||
| 5 | using System; | ||
| 6 | using System.Diagnostics.CodeAnalysis; | ||
| 7 | |||
| 8 | /// <summary> | ||
| 9 | /// Summary information values for the CharCount property in transforms. | ||
| 10 | /// </summary> | ||
| 11 | [Flags] | ||
| 12 | [SuppressMessage("Microsoft.Naming", "CA1711:IdentifiersShouldNotHaveIncorrectSuffix")] | ||
| 13 | public enum TransformFlags | ||
| 14 | { | ||
| 15 | /// <summary>Ignore error when adding a row that exists.</summary> | ||
| 16 | ErrorAddExistingRow = 0x1, | ||
| 17 | |||
| 18 | /// <summary>Ignore error when deleting a row that does not exist.</summary> | ||
| 19 | ErrorDeleteMissingRow = 0x2, | ||
| 20 | |||
| 21 | /// <summary>Ignore error when adding a table that exists. </summary> | ||
| 22 | ErrorAddExistingTable = 0x4, | ||
| 23 | |||
| 24 | /// <summary>Ignore error when deleting a table that does not exist. </summary> | ||
| 25 | ErrorDeleteMissingTable = 0x8, | ||
| 26 | |||
| 27 | /// <summary>Ignore error when updating a row that does not exist. </summary> | ||
| 28 | ErrorUpdateMissingRow = 0x10, | ||
| 29 | |||
| 30 | /// <summary>Ignore error when transform and database code pages do not match, and their code pages are neutral.</summary> | ||
| 31 | ErrorChangeCodePage = 0x20, | ||
| 32 | |||
| 33 | /// <summary>Default language must match base database. </summary> | ||
| 34 | ValidateLanguage = 0x10000, | ||
| 35 | |||
| 36 | /// <summary>Product must match base database.</summary> | ||
| 37 | ValidateProduct = 0x20000, | ||
| 38 | |||
| 39 | /// <summary>Check major version only. </summary> | ||
| 40 | ValidateMajorVersion = 0x80000, | ||
| 41 | |||
| 42 | /// <summary>Check major and minor versions only. </summary> | ||
| 43 | ValidateMinorVersion = 0x100000, | ||
| 44 | |||
| 45 | /// <summary>Check major, minor, and update versions.</summary> | ||
| 46 | ValidateUpdateVersion = 0x200000, | ||
| 47 | |||
| 48 | /// <summary>Installed version lt base version. </summary> | ||
| 49 | ValidateNewLessBaseVersion = 0x400000, | ||
| 50 | |||
| 51 | /// <summary>Installed version lte base version. </summary> | ||
| 52 | ValidateNewLessEqualBaseVersion = 0x800000, | ||
| 53 | |||
| 54 | /// <summary>Installed version eq base version. </summary> | ||
| 55 | ValidateNewEqualBaseVersion = 0x1000000, | ||
| 56 | |||
| 57 | /// <summary>Installed version gte base version.</summary> | ||
| 58 | ValidateNewGreaterEqualBaseVersion = 0x2000000, | ||
| 59 | |||
| 60 | /// <summary>Installed version gt base version.</summary> | ||
| 61 | ValidateNewGreaterBaseVersion = 0x4000000, | ||
| 62 | |||
| 63 | /// <summary>UpgradeCode must match base database.</summary> | ||
| 64 | ValidateUpgradeCode = 0x8000000, | ||
| 65 | |||
| 66 | /// <summary>Masks all version checks on ProductVersion.</summary> | ||
| 67 | ProductVersionMask = ValidateMajorVersion | ValidateMinorVersion | ValidateUpdateVersion, | ||
| 68 | |||
| 69 | /// <summary>Masks all operations on ProductVersion.</summary> | ||
| 70 | ProductVersionOperatorMask = ValidateNewLessBaseVersion | ValidateNewLessEqualBaseVersion | ValidateNewEqualBaseVersion | ValidateNewGreaterEqualBaseVersion | ValidateNewGreaterBaseVersion, | ||
| 71 | |||
| 72 | /// <summary>Default value for instance transforms.</summary> | ||
| 73 | InstanceTransformDefault = ErrorAddExistingRow | ErrorDeleteMissingRow | ErrorAddExistingTable | ErrorDeleteMissingTable | ErrorUpdateMissingRow | ErrorChangeCodePage | ValidateProduct | ValidateUpdateVersion | ValidateNewGreaterEqualBaseVersion, | ||
| 74 | |||
| 75 | /// <summary>Default value for language transforms.</summary> | ||
| 76 | LanguageTransformDefault = ErrorAddExistingRow | ErrorDeleteMissingRow | ErrorAddExistingTable | ErrorDeleteMissingTable | ErrorUpdateMissingRow | ErrorChangeCodePage | ValidateProduct, | ||
| 77 | |||
| 78 | /// <summary>Default value for patch transforms.</summary> | ||
| 79 | PatchTransformDefault = ErrorAddExistingRow | ErrorDeleteMissingRow | ErrorAddExistingTable | ErrorDeleteMissingTable | ErrorUpdateMissingRow | ValidateProduct | ValidateUpdateVersion | ValidateNewEqualBaseVersion | ValidateUpgradeCode, | ||
| 80 | } | ||
| 81 | } | ||
