From d87492c97b5ac6eec1c86c4cc8b2b45e9f8ad165 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Wed, 24 Jun 2020 14:41:52 -0700 Subject: The Great Tuple to Symbol File Rename (tm) --- src/WixToolset.Data/Symbols/ActionTextSymbol.cs | 60 + src/WixToolset.Data/Symbols/AppIdSymbol.cs | 92 + src/WixToolset.Data/Symbols/AppSearchSymbol.cs | 52 + src/WixToolset.Data/Symbols/AssemblySymbol.cs | 96 + src/WixToolset.Data/Symbols/BBControlSymbol.cs | 180 + src/WixToolset.Data/Symbols/BillboardSymbol.cs | 60 + src/WixToolset.Data/Symbols/BinarySymbol.cs | 44 + src/WixToolset.Data/Symbols/CCPSearchSymbol.cs | 36 + src/WixToolset.Data/Symbols/CheckBoxSymbol.cs | 52 + src/WixToolset.Data/Symbols/ClassSymbol.cs | 140 + src/WixToolset.Data/Symbols/ComboBoxSymbol.cs | 68 + src/WixToolset.Data/Symbols/CompLocatorSymbol.cs | 60 + src/WixToolset.Data/Symbols/ComplusSymbol.cs | 52 + src/WixToolset.Data/Symbols/ComponentSymbol.cs | 155 + src/WixToolset.Data/Symbols/ConditionSymbol.cs | 60 + .../Symbols/ControlConditionSymbol.cs | 68 + src/WixToolset.Data/Symbols/ControlEventSymbol.cs | 84 + src/WixToolset.Data/Symbols/ControlSymbol.cs | 303 ++ src/WixToolset.Data/Symbols/CreateFolderSymbol.cs | 52 + src/WixToolset.Data/Symbols/CustomActionSymbol.cs | 168 + src/WixToolset.Data/Symbols/DialogSymbol.cs | 188 + src/WixToolset.Data/Symbols/DirectorySymbol.cs | 84 + src/WixToolset.Data/Symbols/DrLocatorSymbol.cs | 68 + src/WixToolset.Data/Symbols/DuplicateFileSymbol.cs | 68 + src/WixToolset.Data/Symbols/EnvironmentSymbol.cs | 114 + src/WixToolset.Data/Symbols/ErrorSymbol.cs | 44 + src/WixToolset.Data/Symbols/EventMappingSymbol.cs | 68 + src/WixToolset.Data/Symbols/ExtensionSymbol.cs | 76 + src/WixToolset.Data/Symbols/ExternalFilesSymbol.cs | 100 + .../Symbols/FamilyFileRangesSymbol.cs | 68 + .../Symbols/FeatureComponentsSymbol.cs | 52 + src/WixToolset.Data/Symbols/FeatureSymbol.cs | 129 + .../Symbols/FileSFPCatalogSymbol.cs | 52 + src/WixToolset.Data/Symbols/FileSymbol.cs | 257 ++ src/WixToolset.Data/Symbols/IconSymbol.cs | 44 + src/WixToolset.Data/Symbols/ImageFamiliesSymbol.cs | 84 + src/WixToolset.Data/Symbols/IniFileSymbol.cs | 92 + src/WixToolset.Data/Symbols/IniLocatorSymbol.cs | 84 + .../Symbols/InifFileActionSymbol.cs | 13 + .../Symbols/IsolatedComponentSymbol.cs | 52 + .../Symbols/LaunchConditionSymbol.cs | 52 + src/WixToolset.Data/Symbols/ListBoxSymbol.cs | 68 + src/WixToolset.Data/Symbols/ListViewSymbol.cs | 76 + src/WixToolset.Data/Symbols/LocatorSymbol.cs | 12 + .../Symbols/LockPermissionsSymbol.cs | 76 + src/WixToolset.Data/Symbols/MIMESymbol.cs | 60 + src/WixToolset.Data/Symbols/MediaSymbol.cs | 100 + .../Symbols/ModuleComponentsSymbol.cs | 60 + .../Symbols/ModuleConfigurationSymbol.cs | 116 + .../Symbols/ModuleDependencySymbol.cs | 76 + .../Symbols/ModuleExclusionSymbol.cs | 84 + .../Symbols/ModuleIgnoreTableSymbol.cs | 36 + .../Symbols/ModuleSignatureSymbol.cs | 60 + .../Symbols/ModuleSubstitutionSymbol.cs | 68 + src/WixToolset.Data/Symbols/MoveFileSymbol.cs | 84 + .../Symbols/MsiAssemblyNameSymbol.cs | 60 + .../Symbols/MsiDigitalCertificateSymbol.cs | 44 + .../Symbols/MsiDigitalSignatureSymbol.cs | 68 + .../Symbols/MsiEmbeddedChainerSymbol.cs | 68 + src/WixToolset.Data/Symbols/MsiEmbeddedUISymbol.cs | 76 + src/WixToolset.Data/Symbols/MsiFileHashSymbol.cs | 76 + .../Symbols/MsiLockPermissionsExSymbol.cs | 68 + .../Symbols/MsiPackageCertificateSymbol.cs | 52 + .../Symbols/MsiPatchCertificateSymbol.cs | 52 + .../Symbols/MsiPatchHeadersSymbol.cs | 52 + .../Symbols/MsiPatchMetadataSymbol.cs | 60 + .../Symbols/MsiPatchOldAssemblyFileSymbol.cs | 52 + .../Symbols/MsiPatchOldAssemblyNameSymbol.cs | 60 + .../Symbols/MsiPatchSequenceSymbol.cs | 68 + .../MsiServiceConfigFailureActionsSymbol.cs | 116 + .../Symbols/MsiServiceConfigSymbol.cs | 101 + .../Symbols/MsiShortcutPropertySymbol.cs | 60 + src/WixToolset.Data/Symbols/ODBCAttributeSymbol.cs | 60 + .../Symbols/ODBCDataSourceSymbol.cs | 68 + src/WixToolset.Data/Symbols/ODBCDriverSymbol.cs | 68 + .../Symbols/ODBCSourceAttributeSymbol.cs | 60 + .../Symbols/ODBCTranslatorSymbol.cs | 68 + src/WixToolset.Data/Symbols/PatchMetadataSymbol.cs | 60 + src/WixToolset.Data/Symbols/PatchPackageSymbol.cs | 52 + src/WixToolset.Data/Symbols/PatchSequenceSymbol.cs | 68 + src/WixToolset.Data/Symbols/PatchSymbol.cs | 84 + src/WixToolset.Data/Symbols/ProgIdSymbol.cs | 84 + src/WixToolset.Data/Symbols/PropertiesSymbol.cs | 52 + src/WixToolset.Data/Symbols/PropertySymbol.cs | 44 + .../Symbols/ProvidesDependencySymbol.cs | 84 + .../Symbols/PublishComponentSymbol.cs | 76 + src/WixToolset.Data/Symbols/RadioButtonSymbol.cs | 108 + src/WixToolset.Data/Symbols/RegLocatorSymbol.cs | 83 + src/WixToolset.Data/Symbols/RegistryRootType.cs | 21 + src/WixToolset.Data/Symbols/RegistrySymbol.cs | 108 + src/WixToolset.Data/Symbols/RemoveFileSymbol.cs | 76 + .../Symbols/RemoveRegistrySymbol.cs | 82 + src/WixToolset.Data/Symbols/ReserveCostSymbol.cs | 68 + src/WixToolset.Data/Symbols/SFPCatalogSymbol.cs | 60 + .../Symbols/ServiceControlSymbol.cs | 116 + .../Symbols/ServiceInstallSymbol.cs | 173 + src/WixToolset.Data/Symbols/ShortcutSymbol.cs | 171 + src/WixToolset.Data/Symbols/SignatureSymbol.cs | 100 + .../Symbols/SummaryInformationSymbol.cs | 102 + src/WixToolset.Data/Symbols/SymbolDefinitions.cs | 736 ++++ .../Symbols/TargetFilesOptionalDataSymbol.cs | 84 + src/WixToolset.Data/Symbols/TargetImagesSymbol.cs | 92 + src/WixToolset.Data/Symbols/TextStyleSymbol.cs | 108 + src/WixToolset.Data/Symbols/TransformsFlags.cs | 79 + src/WixToolset.Data/Symbols/TypeLibSymbol.cs | 100 + src/WixToolset.Data/Symbols/UITextSymbol.cs | 44 + src/WixToolset.Data/Symbols/UpgradeSymbol.cs | 132 + .../Symbols/UpgradedFilesOptionalDataSymbol.cs | 76 + .../Symbols/UpgradedFilesToIgnoreSymbol.cs | 52 + .../Symbols/UpgradedImagesSymbol.cs | 76 + src/WixToolset.Data/Symbols/VerbSymbol.cs | 76 + src/WixToolset.Data/Symbols/WixActionSymbol.cs | 101 + .../Symbols/WixApprovedExeForElevationSymbol.cs | 71 + .../Symbols/WixBindUpdatedFilesSymbol.cs | 44 + .../Symbols/WixBootstrapperApplicationSymbol.cs | 36 + src/WixToolset.Data/Symbols/WixBuildInfoSymbol.cs | 68 + .../Symbols/WixBundleCatalogSymbol.cs | 44 + .../Symbols/WixBundleContainerSymbol.cs | 103 + .../Symbols/WixBundleCustomDataAttributeSymbol.cs | 52 + .../Symbols/WixBundleCustomDataCellSymbol.cs | 68 + .../Symbols/WixBundleCustomDataSymbol.cs | 71 + .../Symbols/WixBundleExePackageSymbol.cs | 94 + .../Symbols/WixBundleExtensionSymbol.cs | 44 + .../Symbols/WixBundleMsiFeatureSymbol.cs | 116 + .../Symbols/WixBundleMsiPackageSymbol.cs | 105 + .../Symbols/WixBundleMsiPropertySymbol.cs | 68 + .../Symbols/WixBundleMspPackageSymbol.cs | 81 + .../Symbols/WixBundleMsuPackageSymbol.cs | 52 + .../Symbols/WixBundlePackageCommandLineSymbol.cs | 76 + .../Symbols/WixBundlePackageExitCodeSymbol.cs | 71 + .../Symbols/WixBundlePackageGroupSymbol.cs | 36 + .../Symbols/WixBundlePackageSymbol.cs | 212 ++ .../Symbols/WixBundlePatchTargetCodeSymbol.cs | 82 + .../Symbols/WixBundlePayloadGroupSymbol.cs | 36 + .../Symbols/WixBundlePayloadSymbol.cs | 206 ++ .../Symbols/WixBundleRelatedPackageSymbol.cs | 104 + .../Symbols/WixBundleRollbackBoundarySymbol.cs | 52 + .../Symbols/WixBundleSlipstreamMspSymbol.cs | 52 + src/WixToolset.Data/Symbols/WixBundleSymbol.cs | 234 ++ .../Symbols/WixBundleUpdateSymbol.cs | 52 + .../Symbols/WixBundleVariableSymbol.cs | 68 + src/WixToolset.Data/Symbols/WixChainItemSymbol.cs | 36 + src/WixToolset.Data/Symbols/WixChainSymbol.cs | 61 + .../Symbols/WixComplexReferenceSymbol.cs | 86 + .../Symbols/WixComponentGroupSymbol.cs | 44 + .../Symbols/WixComponentSearchSymbol.cs | 70 + .../Symbols/WixCustomTableCellSymbol.cs | 68 + .../Symbols/WixCustomTableColumnSymbol.cs | 203 ++ .../Symbols/WixCustomTableSymbol.cs | 56 + .../Symbols/WixDeltaPatchFileSymbol.cs | 84 + .../Symbols/WixDeltaPatchSymbolPathsSymbol.cs | 75 + .../Symbols/WixDependencyProviderSymbol.cs | 87 + .../Symbols/WixEnsureTableSymbol.cs | 44 + .../Symbols/WixFeatureGroupSymbol.cs | 36 + .../Symbols/WixFeatureModulesSymbol.cs | 52 + src/WixToolset.Data/Symbols/WixFileSearchSymbol.cs | 125 + src/WixToolset.Data/Symbols/WixFragmentSymbol.cs | 36 + src/WixToolset.Data/Symbols/WixGroupSymbol.cs | 70 + .../Symbols/WixInstanceComponentSymbol.cs | 44 + .../Symbols/WixInstanceTransformsSymbol.cs | 68 + .../Symbols/WixMediaTemplateSymbol.cs | 86 + src/WixToolset.Data/Symbols/WixMergeSymbol.cs | 92 + src/WixToolset.Data/Symbols/WixOrderingSymbol.cs | 68 + .../Symbols/WixPatchBaselineSymbol.cs | 76 + .../Symbols/WixPatchFamilyGroupSymbol.cs | 44 + src/WixToolset.Data/Symbols/WixPatchIdSymbol.cs | 60 + src/WixToolset.Data/Symbols/WixPatchRefSymbol.cs | 52 + .../Symbols/WixPatchTargetSymbol.cs | 44 + .../Symbols/WixProductSearchSymbol.cs | 64 + src/WixToolset.Data/Symbols/WixPropertySymbol.cs | 68 + .../Symbols/WixRegistrySearchSymbol.cs | 81 + .../Symbols/WixRelatedBundleSymbol.cs | 60 + .../Symbols/WixSearchRelationSymbol.cs | 52 + src/WixToolset.Data/Symbols/WixSearchSymbol.cs | 60 + .../Symbols/WixSetVariableSymbol.cs | 52 + .../Symbols/WixSimpleReferenceSymbol.cs | 62 + .../Symbols/WixSuppressActionSymbol.cs | 54 + .../Symbols/WixSuppressModularizationSymbol.cs | 36 + src/WixToolset.Data/Symbols/WixUISymbol.cs | 36 + .../Symbols/WixUpdateRegistrationSymbol.cs | 76 + src/WixToolset.Data/Symbols/WixVariableSymbol.cs | 52 + src/WixToolset.Data/Tuples/ActionTextTuple.cs | 60 - src/WixToolset.Data/Tuples/AppIdTuple.cs | 92 - src/WixToolset.Data/Tuples/AppSearchTuple.cs | 52 - src/WixToolset.Data/Tuples/AssemblyTuple.cs | 96 - src/WixToolset.Data/Tuples/BBControlTuple.cs | 180 - src/WixToolset.Data/Tuples/BillboardTuple.cs | 60 - src/WixToolset.Data/Tuples/BinaryTuple.cs | 44 - src/WixToolset.Data/Tuples/CCPSearchTuple.cs | 36 - src/WixToolset.Data/Tuples/CheckBoxTuple.cs | 52 - src/WixToolset.Data/Tuples/ClassTuple.cs | 140 - src/WixToolset.Data/Tuples/ComboBoxTuple.cs | 68 - src/WixToolset.Data/Tuples/CompLocatorTuple.cs | 60 - src/WixToolset.Data/Tuples/ComplusTuple.cs | 52 - src/WixToolset.Data/Tuples/ComponentTuple.cs | 155 - src/WixToolset.Data/Tuples/ConditionTuple.cs | 60 - .../Tuples/ControlConditionTuple.cs | 68 - src/WixToolset.Data/Tuples/ControlEventTuple.cs | 84 - src/WixToolset.Data/Tuples/ControlTuple.cs | 303 -- src/WixToolset.Data/Tuples/CreateFolderTuple.cs | 52 - src/WixToolset.Data/Tuples/CustomActionTuple.cs | 168 - src/WixToolset.Data/Tuples/DialogTuple.cs | 188 - src/WixToolset.Data/Tuples/DirectoryTuple.cs | 84 - src/WixToolset.Data/Tuples/DrLocatorTuple.cs | 68 - src/WixToolset.Data/Tuples/DuplicateFileTuple.cs | 68 - src/WixToolset.Data/Tuples/EnvironmentTuple.cs | 114 - src/WixToolset.Data/Tuples/ErrorTuple.cs | 44 - src/WixToolset.Data/Tuples/EventMappingTuple.cs | 68 - src/WixToolset.Data/Tuples/ExtensionTuple.cs | 76 - src/WixToolset.Data/Tuples/ExternalFilesTuple.cs | 100 - .../Tuples/FamilyFileRangesTuple.cs | 68 - .../Tuples/FeatureComponentsTuple.cs | 52 - src/WixToolset.Data/Tuples/FeatureTuple.cs | 129 - src/WixToolset.Data/Tuples/FileSFPCatalogTuple.cs | 52 - src/WixToolset.Data/Tuples/FileTuple.cs | 257 -- src/WixToolset.Data/Tuples/IconTuple.cs | 44 - src/WixToolset.Data/Tuples/ImageFamiliesTuple.cs | 84 - src/WixToolset.Data/Tuples/IniFileTuple.cs | 92 - src/WixToolset.Data/Tuples/IniLocatorTuple.cs | 84 - src/WixToolset.Data/Tuples/InifFileActionType.cs | 13 - .../Tuples/IsolatedComponentTuple.cs | 52 - src/WixToolset.Data/Tuples/LaunchConditionTuple.cs | 52 - src/WixToolset.Data/Tuples/ListBoxTuple.cs | 68 - src/WixToolset.Data/Tuples/ListViewTuple.cs | 76 - src/WixToolset.Data/Tuples/LocatorType.cs | 12 - src/WixToolset.Data/Tuples/LockPermissionsTuple.cs | 76 - src/WixToolset.Data/Tuples/MIMETuple.cs | 60 - src/WixToolset.Data/Tuples/MediaTuple.cs | 100 - .../Tuples/ModuleComponentsTuple.cs | 60 - .../Tuples/ModuleConfigurationTuple.cs | 116 - .../Tuples/ModuleDependencyTuple.cs | 76 - src/WixToolset.Data/Tuples/ModuleExclusionTuple.cs | 84 - .../Tuples/ModuleIgnoreTableTuple.cs | 36 - src/WixToolset.Data/Tuples/ModuleSignatureTuple.cs | 60 - .../Tuples/ModuleSubstitutionTuple.cs | 68 - src/WixToolset.Data/Tuples/MoveFileTuple.cs | 84 - src/WixToolset.Data/Tuples/MsiAssemblyNameTuple.cs | 60 - .../Tuples/MsiDigitalCertificateTuple.cs | 44 - .../Tuples/MsiDigitalSignatureTuple.cs | 68 - .../Tuples/MsiEmbeddedChainerTuple.cs | 68 - src/WixToolset.Data/Tuples/MsiEmbeddedUITuple.cs | 76 - src/WixToolset.Data/Tuples/MsiFileHashTuple.cs | 76 - .../Tuples/MsiLockPermissionsExTuple.cs | 68 - .../Tuples/MsiPackageCertificateTuple.cs | 52 - .../Tuples/MsiPatchCertificateTuple.cs | 52 - src/WixToolset.Data/Tuples/MsiPatchHeadersTuple.cs | 52 - .../Tuples/MsiPatchMetadataTuple.cs | 60 - .../Tuples/MsiPatchOldAssemblyFileTuple.cs | 52 - .../Tuples/MsiPatchOldAssemblyNameTuple.cs | 60 - .../Tuples/MsiPatchSequenceTuple.cs | 68 - .../Tuples/MsiServiceConfigFailureActionsTuple.cs | 116 - .../Tuples/MsiServiceConfigTuple.cs | 101 - .../Tuples/MsiShortcutPropertyTuple.cs | 60 - src/WixToolset.Data/Tuples/ODBCAttributeTuple.cs | 60 - src/WixToolset.Data/Tuples/ODBCDataSourceTuple.cs | 68 - src/WixToolset.Data/Tuples/ODBCDriverTuple.cs | 68 - .../Tuples/ODBCSourceAttributeTuple.cs | 60 - src/WixToolset.Data/Tuples/ODBCTranslatorTuple.cs | 68 - src/WixToolset.Data/Tuples/PatchMetadataTuple.cs | 60 - src/WixToolset.Data/Tuples/PatchPackageTuple.cs | 52 - src/WixToolset.Data/Tuples/PatchSequenceTuple.cs | 68 - src/WixToolset.Data/Tuples/PatchTuple.cs | 84 - src/WixToolset.Data/Tuples/ProgIdTuple.cs | 84 - src/WixToolset.Data/Tuples/PropertiesTuple.cs | 52 - src/WixToolset.Data/Tuples/PropertyTuple.cs | 44 - .../Tuples/ProvidesDependencyTuple.cs | 84 - .../Tuples/PublishComponentTuple.cs | 76 - src/WixToolset.Data/Tuples/RadioButtonTuple.cs | 108 - src/WixToolset.Data/Tuples/RegLocatorTuple.cs | 83 - src/WixToolset.Data/Tuples/RegistryRootType.cs | 21 - src/WixToolset.Data/Tuples/RegistryTuple.cs | 108 - src/WixToolset.Data/Tuples/RemoveFileTuple.cs | 76 - src/WixToolset.Data/Tuples/RemoveRegistryTuple.cs | 82 - src/WixToolset.Data/Tuples/ReserveCostTuple.cs | 68 - src/WixToolset.Data/Tuples/SFPCatalogTuple.cs | 60 - src/WixToolset.Data/Tuples/ServiceControlTuple.cs | 116 - src/WixToolset.Data/Tuples/ServiceInstallTuple.cs | 173 - src/WixToolset.Data/Tuples/ShortcutTuple.cs | 171 - src/WixToolset.Data/Tuples/SignatureTuple.cs | 100 - .../Tuples/SummaryInformationTuple.cs | 102 - .../Tuples/TargetFilesOptionalDataTuple.cs | 84 - src/WixToolset.Data/Tuples/TargetImagesTuple.cs | 92 - src/WixToolset.Data/Tuples/TextStyleTuple.cs | 108 - src/WixToolset.Data/Tuples/TransformsFlags.cs | 79 - src/WixToolset.Data/Tuples/TupleDefinitions.cs | 736 ---- src/WixToolset.Data/Tuples/TypeLibTuple.cs | 100 - src/WixToolset.Data/Tuples/UITextTuple.cs | 44 - src/WixToolset.Data/Tuples/UpgradeTuple.cs | 132 - .../Tuples/UpgradedFilesOptionalDataTuple.cs | 76 - .../Tuples/UpgradedFilesToIgnoreTuple.cs | 52 - src/WixToolset.Data/Tuples/UpgradedImagesTuple.cs | 76 - src/WixToolset.Data/Tuples/VerbTuple.cs | 76 - src/WixToolset.Data/Tuples/WixActionTuple.cs | 101 - .../Tuples/WixApprovedExeForElevationTuple.cs | 71 - .../Tuples/WixBindUpdatedFilesTuple.cs | 44 - .../Tuples/WixBootstrapperApplicationTuple.cs | 36 - src/WixToolset.Data/Tuples/WixBuildInfoTuple.cs | 68 - .../Tuples/WixBundleCatalogTuple.cs | 44 - .../Tuples/WixBundleContainerTuple.cs | 103 - .../Tuples/WixBundleCustomDataAttributeTuple.cs | 52 - .../Tuples/WixBundleCustomDataCellTuple.cs | 68 - .../Tuples/WixBundleCustomDataTuple.cs | 71 - .../Tuples/WixBundleExePackageTuple.cs | 94 - .../Tuples/WixBundleExtensionTuple.cs | 44 - .../Tuples/WixBundleMsiFeatureTuple.cs | 116 - .../Tuples/WixBundleMsiPackageTuple.cs | 105 - .../Tuples/WixBundleMsiPropertyTuple.cs | 68 - .../Tuples/WixBundleMspPackageTuple.cs | 81 - .../Tuples/WixBundleMsuPackageTuple.cs | 52 - .../Tuples/WixBundlePackageCommandLineTuple.cs | 76 - .../Tuples/WixBundlePackageExitCodeTuple.cs | 71 - .../Tuples/WixBundlePackageGroupTuple.cs | 36 - .../Tuples/WixBundlePackageTuple.cs | 212 -- .../Tuples/WixBundlePatchTargetCodeTuple.cs | 82 - .../Tuples/WixBundlePayloadGroupTuple.cs | 36 - .../Tuples/WixBundlePayloadTuple.cs | 206 -- .../Tuples/WixBundleRelatedPackageTuple.cs | 104 - .../Tuples/WixBundleRollbackBoundaryTuple.cs | 52 - .../Tuples/WixBundleSlipstreamMspTuple.cs | 52 - src/WixToolset.Data/Tuples/WixBundleTuple.cs | 234 -- src/WixToolset.Data/Tuples/WixBundleUpdateTuple.cs | 52 - .../Tuples/WixBundleVariableTuple.cs | 68 - src/WixToolset.Data/Tuples/WixChainItemTuple.cs | 36 - src/WixToolset.Data/Tuples/WixChainTuple.cs | 61 - .../Tuples/WixComplexReferenceTuple.cs | 86 - .../Tuples/WixComponentGroupTuple.cs | 44 - .../Tuples/WixComponentSearchTuple.cs | 70 - .../Tuples/WixCustomTableCellTuple.cs | 68 - .../Tuples/WixCustomTableColumnTuple.cs | 203 -- src/WixToolset.Data/Tuples/WixCustomTableTuple.cs | 56 - .../Tuples/WixDeltaPatchFileTuple.cs | 84 - .../Tuples/WixDeltaPatchSymbolPathsTuple.cs | 75 - .../Tuples/WixDependencyProviderTuple.cs | 87 - src/WixToolset.Data/Tuples/WixEnsureTableTuple.cs | 44 - src/WixToolset.Data/Tuples/WixFeatureGroupTuple.cs | 36 - .../Tuples/WixFeatureModulesTuple.cs | 52 - src/WixToolset.Data/Tuples/WixFileSearchTuple.cs | 125 - src/WixToolset.Data/Tuples/WixFragmentTuple.cs | 36 - src/WixToolset.Data/Tuples/WixGroupTuple.cs | 70 - .../Tuples/WixInstanceComponentTuple.cs | 44 - .../Tuples/WixInstanceTransformsTuple.cs | 68 - .../Tuples/WixMediaTemplateTuple.cs | 86 - src/WixToolset.Data/Tuples/WixMergeTuple.cs | 92 - src/WixToolset.Data/Tuples/WixOrderingTuple.cs | 68 - .../Tuples/WixPatchBaselineTuple.cs | 76 - .../Tuples/WixPatchFamilyGroupTuple.cs | 44 - src/WixToolset.Data/Tuples/WixPatchIdTuple.cs | 60 - src/WixToolset.Data/Tuples/WixPatchRefTuple.cs | 52 - src/WixToolset.Data/Tuples/WixPatchTargetTuple.cs | 44 - .../Tuples/WixProductSearchTuple.cs | 64 - src/WixToolset.Data/Tuples/WixPropertyTuple.cs | 68 - .../Tuples/WixRegistrySearchTuple.cs | 81 - .../Tuples/WixRelatedBundleTuple.cs | 60 - .../Tuples/WixSearchRelationTuple.cs | 52 - src/WixToolset.Data/Tuples/WixSearchTuple.cs | 60 - src/WixToolset.Data/Tuples/WixSetVariableTuple.cs | 52 - .../Tuples/WixSimpleReferenceTuple.cs | 62 - .../Tuples/WixSuppressActionTuple.cs | 54 - .../Tuples/WixSuppressModularizationTuple.cs | 36 - src/WixToolset.Data/Tuples/WixUITuple.cs | 36 - .../Tuples/WixUpdateRegistrationTuple.cs | 76 - src/WixToolset.Data/Tuples/WixVariableTuple.cs | 52 - src/WixToolset.Data/Tuples/tuples_new.json | 3604 -------------------- 363 files changed, 14750 insertions(+), 18354 deletions(-) create mode 100644 src/WixToolset.Data/Symbols/ActionTextSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/AppIdSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/AppSearchSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/AssemblySymbol.cs create mode 100644 src/WixToolset.Data/Symbols/BBControlSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/BillboardSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/BinarySymbol.cs create mode 100644 src/WixToolset.Data/Symbols/CCPSearchSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/CheckBoxSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/ClassSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/ComboBoxSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/CompLocatorSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/ComplusSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/ComponentSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/ConditionSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/ControlConditionSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/ControlEventSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/ControlSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/CreateFolderSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/CustomActionSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/DialogSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/DirectorySymbol.cs create mode 100644 src/WixToolset.Data/Symbols/DrLocatorSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/DuplicateFileSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/EnvironmentSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/ErrorSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/EventMappingSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/ExtensionSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/ExternalFilesSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/FamilyFileRangesSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/FeatureComponentsSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/FeatureSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/FileSFPCatalogSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/FileSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/IconSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/ImageFamiliesSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/IniFileSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/IniLocatorSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/InifFileActionSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/IsolatedComponentSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/LaunchConditionSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/ListBoxSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/ListViewSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/LocatorSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/LockPermissionsSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/MIMESymbol.cs create mode 100644 src/WixToolset.Data/Symbols/MediaSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/ModuleComponentsSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/ModuleConfigurationSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/ModuleDependencySymbol.cs create mode 100644 src/WixToolset.Data/Symbols/ModuleExclusionSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/ModuleIgnoreTableSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/ModuleSignatureSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/ModuleSubstitutionSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/MoveFileSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/MsiAssemblyNameSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/MsiDigitalCertificateSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/MsiDigitalSignatureSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/MsiEmbeddedChainerSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/MsiEmbeddedUISymbol.cs create mode 100644 src/WixToolset.Data/Symbols/MsiFileHashSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/MsiLockPermissionsExSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/MsiPackageCertificateSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/MsiPatchCertificateSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/MsiPatchHeadersSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/MsiPatchMetadataSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/MsiPatchOldAssemblyFileSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/MsiPatchOldAssemblyNameSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/MsiPatchSequenceSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/MsiServiceConfigFailureActionsSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/MsiServiceConfigSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/MsiShortcutPropertySymbol.cs create mode 100644 src/WixToolset.Data/Symbols/ODBCAttributeSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/ODBCDataSourceSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/ODBCDriverSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/ODBCSourceAttributeSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/ODBCTranslatorSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/PatchMetadataSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/PatchPackageSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/PatchSequenceSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/PatchSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/ProgIdSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/PropertiesSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/PropertySymbol.cs create mode 100644 src/WixToolset.Data/Symbols/ProvidesDependencySymbol.cs create mode 100644 src/WixToolset.Data/Symbols/PublishComponentSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/RadioButtonSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/RegLocatorSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/RegistryRootType.cs create mode 100644 src/WixToolset.Data/Symbols/RegistrySymbol.cs create mode 100644 src/WixToolset.Data/Symbols/RemoveFileSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/RemoveRegistrySymbol.cs create mode 100644 src/WixToolset.Data/Symbols/ReserveCostSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/SFPCatalogSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/ServiceControlSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/ServiceInstallSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/ShortcutSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/SignatureSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/SummaryInformationSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/SymbolDefinitions.cs create mode 100644 src/WixToolset.Data/Symbols/TargetFilesOptionalDataSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/TargetImagesSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/TextStyleSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/TransformsFlags.cs create mode 100644 src/WixToolset.Data/Symbols/TypeLibSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/UITextSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/UpgradeSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/UpgradedFilesOptionalDataSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/UpgradedFilesToIgnoreSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/UpgradedImagesSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/VerbSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixActionSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixApprovedExeForElevationSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixBindUpdatedFilesSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixBootstrapperApplicationSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixBuildInfoSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixBundleCatalogSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixBundleContainerSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixBundleCustomDataAttributeSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixBundleCustomDataCellSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixBundleCustomDataSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixBundleExePackageSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixBundleExtensionSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixBundleMsiFeatureSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixBundleMsiPackageSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixBundleMsiPropertySymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixBundleMspPackageSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixBundleMsuPackageSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixBundlePackageCommandLineSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixBundlePackageExitCodeSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixBundlePackageGroupSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixBundlePackageSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixBundlePatchTargetCodeSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixBundlePayloadGroupSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixBundlePayloadSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixBundleRelatedPackageSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixBundleRollbackBoundarySymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixBundleSlipstreamMspSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixBundleSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixBundleUpdateSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixBundleVariableSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixChainItemSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixChainSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixComplexReferenceSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixComponentGroupSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixComponentSearchSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixCustomTableCellSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixCustomTableColumnSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixCustomTableSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixDeltaPatchFileSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixDeltaPatchSymbolPathsSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixDependencyProviderSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixEnsureTableSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixFeatureGroupSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixFeatureModulesSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixFileSearchSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixFragmentSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixGroupSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixInstanceComponentSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixInstanceTransformsSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixMediaTemplateSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixMergeSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixOrderingSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixPatchBaselineSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixPatchFamilyGroupSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixPatchIdSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixPatchRefSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixPatchTargetSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixProductSearchSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixPropertySymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixRegistrySearchSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixRelatedBundleSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixSearchRelationSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixSearchSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixSetVariableSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixSimpleReferenceSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixSuppressActionSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixSuppressModularizationSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixUISymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixUpdateRegistrationSymbol.cs create mode 100644 src/WixToolset.Data/Symbols/WixVariableSymbol.cs delete mode 100644 src/WixToolset.Data/Tuples/ActionTextTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/AppIdTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/AppSearchTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/AssemblyTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/BBControlTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/BillboardTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/BinaryTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/CCPSearchTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/CheckBoxTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/ClassTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/ComboBoxTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/CompLocatorTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/ComplusTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/ComponentTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/ConditionTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/ControlConditionTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/ControlEventTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/ControlTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/CreateFolderTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/CustomActionTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/DialogTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/DirectoryTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/DrLocatorTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/DuplicateFileTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/EnvironmentTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/ErrorTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/EventMappingTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/ExtensionTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/ExternalFilesTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/FamilyFileRangesTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/FeatureComponentsTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/FeatureTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/FileSFPCatalogTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/FileTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/IconTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/ImageFamiliesTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/IniFileTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/IniLocatorTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/InifFileActionType.cs delete mode 100644 src/WixToolset.Data/Tuples/IsolatedComponentTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/LaunchConditionTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/ListBoxTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/ListViewTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/LocatorType.cs delete mode 100644 src/WixToolset.Data/Tuples/LockPermissionsTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/MIMETuple.cs delete mode 100644 src/WixToolset.Data/Tuples/MediaTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/ModuleComponentsTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/ModuleConfigurationTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/ModuleDependencyTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/ModuleExclusionTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/ModuleIgnoreTableTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/ModuleSignatureTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/ModuleSubstitutionTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/MoveFileTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/MsiAssemblyNameTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/MsiDigitalCertificateTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/MsiDigitalSignatureTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/MsiEmbeddedChainerTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/MsiEmbeddedUITuple.cs delete mode 100644 src/WixToolset.Data/Tuples/MsiFileHashTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/MsiLockPermissionsExTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/MsiPackageCertificateTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/MsiPatchCertificateTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/MsiPatchHeadersTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/MsiPatchMetadataTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/MsiPatchOldAssemblyFileTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/MsiPatchOldAssemblyNameTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/MsiPatchSequenceTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/MsiServiceConfigFailureActionsTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/MsiServiceConfigTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/MsiShortcutPropertyTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/ODBCAttributeTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/ODBCDataSourceTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/ODBCDriverTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/ODBCSourceAttributeTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/ODBCTranslatorTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/PatchMetadataTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/PatchPackageTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/PatchSequenceTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/PatchTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/ProgIdTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/PropertiesTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/PropertyTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/ProvidesDependencyTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/PublishComponentTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/RadioButtonTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/RegLocatorTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/RegistryRootType.cs delete mode 100644 src/WixToolset.Data/Tuples/RegistryTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/RemoveFileTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/RemoveRegistryTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/ReserveCostTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/SFPCatalogTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/ServiceControlTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/ServiceInstallTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/ShortcutTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/SignatureTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/SummaryInformationTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/TargetFilesOptionalDataTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/TargetImagesTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/TextStyleTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/TransformsFlags.cs delete mode 100644 src/WixToolset.Data/Tuples/TupleDefinitions.cs delete mode 100644 src/WixToolset.Data/Tuples/TypeLibTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/UITextTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/UpgradeTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/UpgradedFilesOptionalDataTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/UpgradedFilesToIgnoreTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/UpgradedImagesTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/VerbTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixActionTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixApprovedExeForElevationTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixBindUpdatedFilesTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixBootstrapperApplicationTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixBuildInfoTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixBundleCatalogTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixBundleContainerTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixBundleCustomDataAttributeTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixBundleCustomDataCellTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixBundleCustomDataTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixBundleExePackageTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixBundleExtensionTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixBundleMsiFeatureTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixBundleMsiPackageTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixBundleMsiPropertyTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixBundleMspPackageTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixBundleMsuPackageTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixBundlePackageCommandLineTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixBundlePackageExitCodeTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixBundlePackageGroupTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixBundlePackageTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixBundlePatchTargetCodeTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixBundlePayloadGroupTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixBundlePayloadTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixBundleRelatedPackageTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixBundleRollbackBoundaryTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixBundleSlipstreamMspTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixBundleTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixBundleUpdateTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixBundleVariableTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixChainItemTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixChainTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixComplexReferenceTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixComponentGroupTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixComponentSearchTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixCustomTableCellTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixCustomTableColumnTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixCustomTableTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixDeltaPatchFileTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixDeltaPatchSymbolPathsTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixDependencyProviderTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixEnsureTableTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixFeatureGroupTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixFeatureModulesTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixFileSearchTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixFragmentTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixGroupTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixInstanceComponentTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixInstanceTransformsTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixMediaTemplateTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixMergeTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixOrderingTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixPatchBaselineTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixPatchFamilyGroupTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixPatchIdTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixPatchRefTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixPatchTargetTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixProductSearchTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixPropertyTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixRegistrySearchTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixRelatedBundleTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixSearchRelationTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixSearchTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixSetVariableTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixSimpleReferenceTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixSuppressActionTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixSuppressModularizationTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixUITuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixUpdateRegistrationTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/WixVariableTuple.cs delete mode 100644 src/WixToolset.Data/Tuples/tuples_new.json (limited to 'src/WixToolset.Data') diff --git a/src/WixToolset.Data/Symbols/ActionTextSymbol.cs b/src/WixToolset.Data/Symbols/ActionTextSymbol.cs new file mode 100644 index 00000000..80662060 --- /dev/null +++ b/src/WixToolset.Data/Symbols/ActionTextSymbol.cs @@ -0,0 +1,60 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition ActionText = new IntermediateSymbolDefinition( + SymbolDefinitionType.ActionText, + new[] + { + new IntermediateFieldDefinition(nameof(ActionTextSymbolFields.Action), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ActionTextSymbolFields.Description), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ActionTextSymbolFields.Template), IntermediateFieldType.String), + }, + typeof(ActionTextSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum ActionTextSymbolFields + { + Action, + Description, + Template, + } + + public class ActionTextSymbol : IntermediateSymbol + { + public ActionTextSymbol() : base(SymbolDefinitions.ActionText, null, null) + { + } + + public ActionTextSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ActionText, sourceLineNumber, id) + { + } + + public IntermediateField this[ActionTextSymbolFields index] => this.Fields[(int)index]; + + public string Action + { + get => (string)this.Fields[(int)ActionTextSymbolFields.Action]; + set => this.Set((int)ActionTextSymbolFields.Action, value); + } + + public string Description + { + get => (string)this.Fields[(int)ActionTextSymbolFields.Description]; + set => this.Set((int)ActionTextSymbolFields.Description, value); + } + + public string Template + { + get => (string)this.Fields[(int)ActionTextSymbolFields.Template]; + set => this.Set((int)ActionTextSymbolFields.Template, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/AppIdSymbol.cs b/src/WixToolset.Data/Symbols/AppIdSymbol.cs new file mode 100644 index 00000000..3eafa26f --- /dev/null +++ b/src/WixToolset.Data/Symbols/AppIdSymbol.cs @@ -0,0 +1,92 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition AppId = new IntermediateSymbolDefinition( + SymbolDefinitionType.AppId, + new[] + { + new IntermediateFieldDefinition(nameof(AppIdSymbolFields.AppId), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(AppIdSymbolFields.RemoteServerName), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(AppIdSymbolFields.LocalService), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(AppIdSymbolFields.ServiceParameters), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(AppIdSymbolFields.DllSurrogate), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(AppIdSymbolFields.ActivateAtStorage), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(AppIdSymbolFields.RunAsInteractiveUser), IntermediateFieldType.Number), + }, + typeof(AppIdSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum AppIdSymbolFields + { + AppId, + RemoteServerName, + LocalService, + ServiceParameters, + DllSurrogate, + ActivateAtStorage, + RunAsInteractiveUser, + } + + public class AppIdSymbol : IntermediateSymbol + { + public AppIdSymbol() : base(SymbolDefinitions.AppId, null, null) + { + } + + public AppIdSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.AppId, sourceLineNumber, id) + { + } + + public IntermediateField this[AppIdSymbolFields index] => this.Fields[(int)index]; + + public string AppId + { + get => (string)this.Fields[(int)AppIdSymbolFields.AppId]; + set => this.Set((int)AppIdSymbolFields.AppId, value); + } + + public string RemoteServerName + { + get => (string)this.Fields[(int)AppIdSymbolFields.RemoteServerName]; + set => this.Set((int)AppIdSymbolFields.RemoteServerName, value); + } + + public string LocalService + { + get => (string)this.Fields[(int)AppIdSymbolFields.LocalService]; + set => this.Set((int)AppIdSymbolFields.LocalService, value); + } + + public string ServiceParameters + { + get => (string)this.Fields[(int)AppIdSymbolFields.ServiceParameters]; + set => this.Set((int)AppIdSymbolFields.ServiceParameters, value); + } + + public string DllSurrogate + { + get => (string)this.Fields[(int)AppIdSymbolFields.DllSurrogate]; + set => this.Set((int)AppIdSymbolFields.DllSurrogate, value); + } + + public bool? ActivateAtStorage + { + get => (bool?)this.Fields[(int)AppIdSymbolFields.ActivateAtStorage]; + set => this.Set((int)AppIdSymbolFields.ActivateAtStorage, value); + } + + public bool? RunAsInteractiveUser + { + get => (bool?)this.Fields[(int)AppIdSymbolFields.RunAsInteractiveUser]; + set => this.Set((int)AppIdSymbolFields.RunAsInteractiveUser, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/AppSearchSymbol.cs b/src/WixToolset.Data/Symbols/AppSearchSymbol.cs new file mode 100644 index 00000000..2bd3d6ba --- /dev/null +++ b/src/WixToolset.Data/Symbols/AppSearchSymbol.cs @@ -0,0 +1,52 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition AppSearch = new IntermediateSymbolDefinition( + SymbolDefinitionType.AppSearch, + new[] + { + new IntermediateFieldDefinition(nameof(AppSearchSymbolFields.PropertyRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(AppSearchSymbolFields.SignatureRef), IntermediateFieldType.String), + }, + typeof(AppSearchSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum AppSearchSymbolFields + { + PropertyRef, + SignatureRef, + } + + public class AppSearchSymbol : IntermediateSymbol + { + public AppSearchSymbol() : base(SymbolDefinitions.AppSearch, null, null) + { + } + + public AppSearchSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.AppSearch, sourceLineNumber, id) + { + } + + public IntermediateField this[AppSearchSymbolFields index] => this.Fields[(int)index]; + + public string PropertyRef + { + get => (string)this.Fields[(int)AppSearchSymbolFields.PropertyRef]; + set => this.Set((int)AppSearchSymbolFields.PropertyRef, value); + } + + public string SignatureRef + { + get => (string)this.Fields[(int)AppSearchSymbolFields.SignatureRef]; + set => this.Set((int)AppSearchSymbolFields.SignatureRef, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/AssemblySymbol.cs b/src/WixToolset.Data/Symbols/AssemblySymbol.cs new file mode 100644 index 00000000..192ca4eb --- /dev/null +++ b/src/WixToolset.Data/Symbols/AssemblySymbol.cs @@ -0,0 +1,96 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition Assembly = new IntermediateSymbolDefinition( + SymbolDefinitionType.Assembly, + new[] + { + new IntermediateFieldDefinition(nameof(AssemblySymbolFields.ComponentRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(AssemblySymbolFields.FeatureRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(AssemblySymbolFields.ManifestFileRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(AssemblySymbolFields.ApplicationFileRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(AssemblySymbolFields.Type), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(AssemblySymbolFields.ProcessorArchitecture), IntermediateFieldType.String), + }, + typeof(AssemblySymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum AssemblySymbolFields + { + ComponentRef, + FeatureRef, + ManifestFileRef, + ApplicationFileRef, + Type, + ProcessorArchitecture, + } + + public enum AssemblyType + { + /// File is not an assembly. + NotAnAssembly, + + /// File is a Common Language Runtime Assembly. + DotNetAssembly, + + /// File is Win32 SxS assembly. + Win32Assembly, + } + + public class AssemblySymbol : IntermediateSymbol + { + public AssemblySymbol() : base(SymbolDefinitions.Assembly, null, null) + { + } + + public AssemblySymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Assembly, sourceLineNumber, id) + { + } + + public IntermediateField this[AssemblySymbolFields index] => this.Fields[(int)index]; + + public string ComponentRef + { + get => (string)this.Fields[(int)AssemblySymbolFields.ComponentRef]; + set => this.Set((int)AssemblySymbolFields.ComponentRef, value); + } + + public string FeatureRef + { + get => (string)this.Fields[(int)AssemblySymbolFields.FeatureRef]; + set => this.Set((int)AssemblySymbolFields.FeatureRef, value); + } + + public string ManifestFileRef + { + get => (string)this.Fields[(int)AssemblySymbolFields.ManifestFileRef]; + set => this.Set((int)AssemblySymbolFields.ManifestFileRef, value); + } + + public string ApplicationFileRef + { + get => (string)this.Fields[(int)AssemblySymbolFields.ApplicationFileRef]; + set => this.Set((int)AssemblySymbolFields.ApplicationFileRef, value); + } + + public AssemblyType Type + { + get => (AssemblyType)this.Fields[(int)AssemblySymbolFields.Type].AsNumber(); + set => this.Set((int)AssemblySymbolFields.Type, (int)value); + } + + public string ProcessorArchitecture + { + get => (string)this.Fields[(int)AssemblySymbolFields.ProcessorArchitecture]; + set => this.Set((int)AssemblySymbolFields.ProcessorArchitecture, value); + } + } +} diff --git a/src/WixToolset.Data/Symbols/BBControlSymbol.cs b/src/WixToolset.Data/Symbols/BBControlSymbol.cs new file mode 100644 index 00000000..277d1d85 --- /dev/null +++ b/src/WixToolset.Data/Symbols/BBControlSymbol.cs @@ -0,0 +1,180 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition BBControl = new IntermediateSymbolDefinition( + SymbolDefinitionType.BBControl, + new[] + { + new IntermediateFieldDefinition(nameof(BBControlSymbolFields.BillboardRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(BBControlSymbolFields.BBControl), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(BBControlSymbolFields.Type), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(BBControlSymbolFields.X), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(BBControlSymbolFields.Y), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(BBControlSymbolFields.Width), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(BBControlSymbolFields.Height), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(BBControlSymbolFields.Attributes), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(BBControlSymbolFields.Enabled), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(BBControlSymbolFields.Indirect), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(BBControlSymbolFields.Integer), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(BBControlSymbolFields.LeftScroll), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(BBControlSymbolFields.RightAligned), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(BBControlSymbolFields.RightToLeft), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(BBControlSymbolFields.Sunken), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(BBControlSymbolFields.Visible), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(BBControlSymbolFields.Text), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(BBControlSymbolFields.SourceFile), IntermediateFieldType.Path), + }, + typeof(BBControlSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum BBControlSymbolFields + { + BillboardRef, + BBControl, + Type, + X, + Y, + Width, + Height, + Attributes, + Enabled, + Indirect, + Integer, + LeftScroll, + RightAligned, + RightToLeft, + Sunken, + Visible, + Text, + SourceFile + } + + public class BBControlSymbol : IntermediateSymbol + { + public BBControlSymbol() : base(SymbolDefinitions.BBControl, null, null) + { + } + + public BBControlSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.BBControl, sourceLineNumber, id) + { + } + + public IntermediateField this[BBControlSymbolFields index] => this.Fields[(int)index]; + + public string BillboardRef + { + get => (string)this.Fields[(int)BBControlSymbolFields.BillboardRef]; + set => this.Set((int)BBControlSymbolFields.BillboardRef, value); + } + + public string BBControl + { + get => (string)this.Fields[(int)BBControlSymbolFields.BBControl]; + set => this.Set((int)BBControlSymbolFields.BBControl, value); + } + + public string Type + { + get => (string)this.Fields[(int)BBControlSymbolFields.Type]; + set => this.Set((int)BBControlSymbolFields.Type, value); + } + + public int X + { + get => (int)this.Fields[(int)BBControlSymbolFields.X]; + set => this.Set((int)BBControlSymbolFields.X, value); + } + + public int Y + { + get => (int)this.Fields[(int)BBControlSymbolFields.Y]; + set => this.Set((int)BBControlSymbolFields.Y, value); + } + + public int Width + { + get => (int)this.Fields[(int)BBControlSymbolFields.Width].AsNumber(); + set => this.Set((int)BBControlSymbolFields.Width, value); + } + + public int Height + { + get => (int)this.Fields[(int)BBControlSymbolFields.Height]; + set => this.Set((int)BBControlSymbolFields.Height, value); + } + + public int Attributes + { + get => this.Fields[(int)BBControlSymbolFields.Attributes].AsNumber(); + set => this.Set((int)BBControlSymbolFields.Attributes, value); + } + + public bool Enabled + { + get => this.Fields[(int)BBControlSymbolFields.Enabled].AsBool(); + set => this.Set((int)BBControlSymbolFields.Enabled, value); + } + + public bool Indirect + { + get => this.Fields[(int)BBControlSymbolFields.Indirect].AsBool(); + set => this.Set((int)BBControlSymbolFields.Indirect, value); + } + + public bool Integer + { + get => this.Fields[(int)BBControlSymbolFields.Integer].AsBool(); + set => this.Set((int)BBControlSymbolFields.Integer, value); + } + + public bool LeftScroll + { + get => this.Fields[(int)BBControlSymbolFields.LeftScroll].AsBool(); + set => this.Set((int)BBControlSymbolFields.LeftScroll, value); + } + + public bool RightAligned + { + get => this.Fields[(int)BBControlSymbolFields.RightAligned].AsBool(); + set => this.Set((int)BBControlSymbolFields.RightAligned, value); + } + + public bool RightToLeft + { + get => this.Fields[(int)BBControlSymbolFields.RightToLeft].AsBool(); + set => this.Set((int)BBControlSymbolFields.RightToLeft, value); + } + + public bool Sunken + { + get => this.Fields[(int)BBControlSymbolFields.Sunken].AsBool(); + set => this.Set((int)BBControlSymbolFields.Sunken, value); + } + + public bool Visible + { + get => this.Fields[(int)BBControlSymbolFields.Visible].AsBool(); + set => this.Set((int)BBControlSymbolFields.Visible, value); + } + + public string Text + { + get => (string)this.Fields[(int)BBControlSymbolFields.Text]; + set => this.Set((int)BBControlSymbolFields.Text, value); + } + + public IntermediateFieldPathValue SourceFile + { + get => this.Fields[(int)BBControlSymbolFields.SourceFile].AsPath(); + set => this.Set((int)BBControlSymbolFields.SourceFile, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/BillboardSymbol.cs b/src/WixToolset.Data/Symbols/BillboardSymbol.cs new file mode 100644 index 00000000..77f60bcb --- /dev/null +++ b/src/WixToolset.Data/Symbols/BillboardSymbol.cs @@ -0,0 +1,60 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition Billboard = new IntermediateSymbolDefinition( + SymbolDefinitionType.Billboard, + new[] + { + new IntermediateFieldDefinition(nameof(BillboardSymbolFields.FeatureRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(BillboardSymbolFields.Action), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(BillboardSymbolFields.Ordering), IntermediateFieldType.Number), + }, + typeof(BillboardSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum BillboardSymbolFields + { + FeatureRef, + Action, + Ordering, + } + + public class BillboardSymbol : IntermediateSymbol + { + public BillboardSymbol() : base(SymbolDefinitions.Billboard, null, null) + { + } + + public BillboardSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Billboard, sourceLineNumber, id) + { + } + + public IntermediateField this[BillboardSymbolFields index] => this.Fields[(int)index]; + + public string FeatureRef + { + get => (string)this.Fields[(int)BillboardSymbolFields.FeatureRef]; + set => this.Set((int)BillboardSymbolFields.FeatureRef, value); + } + + public string Action + { + get => (string)this.Fields[(int)BillboardSymbolFields.Action]; + set => this.Set((int)BillboardSymbolFields.Action, value); + } + + public int? Ordering + { + get => (int?)this.Fields[(int)BillboardSymbolFields.Ordering]; + set => this.Set((int)BillboardSymbolFields.Ordering, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/BinarySymbol.cs b/src/WixToolset.Data/Symbols/BinarySymbol.cs new file mode 100644 index 00000000..ec26b01a --- /dev/null +++ b/src/WixToolset.Data/Symbols/BinarySymbol.cs @@ -0,0 +1,44 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition Binary = new IntermediateSymbolDefinition( + SymbolDefinitionType.Binary, + new[] + { + new IntermediateFieldDefinition(nameof(BinarySymbolFields.Data), IntermediateFieldType.Path), + }, + typeof(BinarySymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum BinarySymbolFields + { + Data, + } + + public class BinarySymbol : IntermediateSymbol + { + public BinarySymbol() : base(SymbolDefinitions.Binary, null, null) + { + } + + public BinarySymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Binary, sourceLineNumber, id) + { + } + + public IntermediateField this[BinarySymbolFields index] => this.Fields[(int)index]; + + public IntermediateFieldPathValue Data + { + get => this.Fields[(int)BinarySymbolFields.Data].AsPath(); + set => this.Set((int)BinarySymbolFields.Data, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/CCPSearchSymbol.cs b/src/WixToolset.Data/Symbols/CCPSearchSymbol.cs new file mode 100644 index 00000000..6f6227fd --- /dev/null +++ b/src/WixToolset.Data/Symbols/CCPSearchSymbol.cs @@ -0,0 +1,36 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition CCPSearch = new IntermediateSymbolDefinition( + SymbolDefinitionType.CCPSearch, + new IntermediateFieldDefinition[] + { + }, + typeof(CCPSearchSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum CCPSearchSymbolFields + { + } + + public class CCPSearchSymbol : IntermediateSymbol + { + public CCPSearchSymbol() : base(SymbolDefinitions.CCPSearch, null, null) + { + } + + public CCPSearchSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.CCPSearch, sourceLineNumber, id) + { + } + + public IntermediateField this[CCPSearchSymbolFields index] => this.Fields[(int)index]; + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/CheckBoxSymbol.cs b/src/WixToolset.Data/Symbols/CheckBoxSymbol.cs new file mode 100644 index 00000000..cd6355c4 --- /dev/null +++ b/src/WixToolset.Data/Symbols/CheckBoxSymbol.cs @@ -0,0 +1,52 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition CheckBox = new IntermediateSymbolDefinition( + SymbolDefinitionType.CheckBox, + new[] + { + new IntermediateFieldDefinition(nameof(CheckBoxSymbolFields.Property), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(CheckBoxSymbolFields.Value), IntermediateFieldType.String), + }, + typeof(CheckBoxSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum CheckBoxSymbolFields + { + Property, + Value, + } + + public class CheckBoxSymbol : IntermediateSymbol + { + public CheckBoxSymbol() : base(SymbolDefinitions.CheckBox, null, null) + { + } + + public CheckBoxSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.CheckBox, sourceLineNumber, id) + { + } + + public IntermediateField this[CheckBoxSymbolFields index] => this.Fields[(int)index]; + + public string Property + { + get => (string)this.Fields[(int)CheckBoxSymbolFields.Property]; + set => this.Set((int)CheckBoxSymbolFields.Property, value); + } + + public string Value + { + get => (string)this.Fields[(int)CheckBoxSymbolFields.Value]; + set => this.Set((int)CheckBoxSymbolFields.Value, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/ClassSymbol.cs b/src/WixToolset.Data/Symbols/ClassSymbol.cs new file mode 100644 index 00000000..833867b1 --- /dev/null +++ b/src/WixToolset.Data/Symbols/ClassSymbol.cs @@ -0,0 +1,140 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition Class = new IntermediateSymbolDefinition( + SymbolDefinitionType.Class, + new[] + { + new IntermediateFieldDefinition(nameof(ClassSymbolFields.CLSID), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ClassSymbolFields.Context), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ClassSymbolFields.ComponentRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ClassSymbolFields.DefaultProgIdRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ClassSymbolFields.Description), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ClassSymbolFields.AppIdRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ClassSymbolFields.FileTypeMask), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ClassSymbolFields.IconRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ClassSymbolFields.IconIndex), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(ClassSymbolFields.DefInprocHandler), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ClassSymbolFields.Argument), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ClassSymbolFields.FeatureRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ClassSymbolFields.RelativePath), IntermediateFieldType.Bool), + }, + typeof(ClassSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum ClassSymbolFields + { + CLSID, + Context, + ComponentRef, + DefaultProgIdRef, + Description, + AppIdRef, + FileTypeMask, + IconRef, + IconIndex, + DefInprocHandler, + Argument, + FeatureRef, + RelativePath, + } + + public class ClassSymbol : IntermediateSymbol + { + public ClassSymbol() : base(SymbolDefinitions.Class, null, null) + { + } + + public ClassSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Class, sourceLineNumber, id) + { + } + + public IntermediateField this[ClassSymbolFields index] => this.Fields[(int)index]; + + public string CLSID + { + get => (string)this.Fields[(int)ClassSymbolFields.CLSID]; + set => this.Set((int)ClassSymbolFields.CLSID, value); + } + + public string Context + { + get => (string)this.Fields[(int)ClassSymbolFields.Context]; + set => this.Set((int)ClassSymbolFields.Context, value); + } + + public string ComponentRef + { + get => (string)this.Fields[(int)ClassSymbolFields.ComponentRef]; + set => this.Set((int)ClassSymbolFields.ComponentRef, value); + } + + public string DefaultProgIdRef + { + get => (string)this.Fields[(int)ClassSymbolFields.DefaultProgIdRef]; + set => this.Set((int)ClassSymbolFields.DefaultProgIdRef, value); + } + + public string Description + { + get => (string)this.Fields[(int)ClassSymbolFields.Description]; + set => this.Set((int)ClassSymbolFields.Description, value); + } + + public string AppIdRef + { + get => (string)this.Fields[(int)ClassSymbolFields.AppIdRef]; + set => this.Set((int)ClassSymbolFields.AppIdRef, value); + } + + public string FileTypeMask + { + get => (string)this.Fields[(int)ClassSymbolFields.FileTypeMask]; + set => this.Set((int)ClassSymbolFields.FileTypeMask, value); + } + + public string IconRef + { + get => (string)this.Fields[(int)ClassSymbolFields.IconRef]; + set => this.Set((int)ClassSymbolFields.IconRef, value); + } + + public int? IconIndex + { + get => (int?)this.Fields[(int)ClassSymbolFields.IconIndex]; + set => this.Set((int)ClassSymbolFields.IconIndex, value); + } + + public string DefInprocHandler + { + get => (string)this.Fields[(int)ClassSymbolFields.DefInprocHandler]; + set => this.Set((int)ClassSymbolFields.DefInprocHandler, value); + } + + public string Argument + { + get => (string)this.Fields[(int)ClassSymbolFields.Argument]; + set => this.Set((int)ClassSymbolFields.Argument, value); + } + + public string FeatureRef + { + get => (string)this.Fields[(int)ClassSymbolFields.FeatureRef]; + set => this.Set((int)ClassSymbolFields.FeatureRef, value); + } + + public bool RelativePath + { + get => this.Fields[(int)ClassSymbolFields.RelativePath].AsBool(); + set => this.Set((int)ClassSymbolFields.RelativePath, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/ComboBoxSymbol.cs b/src/WixToolset.Data/Symbols/ComboBoxSymbol.cs new file mode 100644 index 00000000..c7d8d986 --- /dev/null +++ b/src/WixToolset.Data/Symbols/ComboBoxSymbol.cs @@ -0,0 +1,68 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition ComboBox = new IntermediateSymbolDefinition( + SymbolDefinitionType.ComboBox, + new[] + { + new IntermediateFieldDefinition(nameof(ComboBoxSymbolFields.Property), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ComboBoxSymbolFields.Order), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(ComboBoxSymbolFields.Value), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ComboBoxSymbolFields.Text), IntermediateFieldType.String), + }, + typeof(ComboBoxSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum ComboBoxSymbolFields + { + Property, + Order, + Value, + Text, + } + + public class ComboBoxSymbol : IntermediateSymbol + { + public ComboBoxSymbol() : base(SymbolDefinitions.ComboBox, null, null) + { + } + + public ComboBoxSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ComboBox, sourceLineNumber, id) + { + } + + public IntermediateField this[ComboBoxSymbolFields index] => this.Fields[(int)index]; + + public string Property + { + get => (string)this.Fields[(int)ComboBoxSymbolFields.Property]; + set => this.Set((int)ComboBoxSymbolFields.Property, value); + } + + public int Order + { + get => (int)this.Fields[(int)ComboBoxSymbolFields.Order]; + set => this.Set((int)ComboBoxSymbolFields.Order, value); + } + + public string Value + { + get => (string)this.Fields[(int)ComboBoxSymbolFields.Value]; + set => this.Set((int)ComboBoxSymbolFields.Value, value); + } + + public string Text + { + get => (string)this.Fields[(int)ComboBoxSymbolFields.Text]; + set => this.Set((int)ComboBoxSymbolFields.Text, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/CompLocatorSymbol.cs b/src/WixToolset.Data/Symbols/CompLocatorSymbol.cs new file mode 100644 index 00000000..9004859c --- /dev/null +++ b/src/WixToolset.Data/Symbols/CompLocatorSymbol.cs @@ -0,0 +1,60 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition CompLocator = new IntermediateSymbolDefinition( + SymbolDefinitionType.CompLocator, + new[] + { + new IntermediateFieldDefinition(nameof(CompLocatorSymbolFields.SignatureRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(CompLocatorSymbolFields.ComponentId), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(CompLocatorSymbolFields.Type), IntermediateFieldType.Number), + }, + typeof(CompLocatorSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum CompLocatorSymbolFields + { + SignatureRef, + ComponentId, + Type, + } + + public class CompLocatorSymbol : IntermediateSymbol + { + public CompLocatorSymbol() : base(SymbolDefinitions.CompLocator, null, null) + { + } + + public CompLocatorSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.CompLocator, sourceLineNumber, id) + { + } + + public IntermediateField this[CompLocatorSymbolFields index] => this.Fields[(int)index]; + + public string SignatureRef + { + get => (string)this.Fields[(int)CompLocatorSymbolFields.SignatureRef]; + set => this.Set((int)CompLocatorSymbolFields.SignatureRef, value); + } + + public string ComponentId + { + get => (string)this.Fields[(int)CompLocatorSymbolFields.ComponentId]; + set => this.Set((int)CompLocatorSymbolFields.ComponentId, value); + } + + public LocatorType Type + { + get => (LocatorType)this.Fields[(int)CompLocatorSymbolFields.Type].AsNumber(); + set => this.Set((int)CompLocatorSymbolFields.Type, (int)value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/ComplusSymbol.cs b/src/WixToolset.Data/Symbols/ComplusSymbol.cs new file mode 100644 index 00000000..fa16af86 --- /dev/null +++ b/src/WixToolset.Data/Symbols/ComplusSymbol.cs @@ -0,0 +1,52 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition Complus = new IntermediateSymbolDefinition( + SymbolDefinitionType.Complus, + new[] + { + new IntermediateFieldDefinition(nameof(ComplusSymbolFields.ComponentRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ComplusSymbolFields.ExpType), IntermediateFieldType.Number), + }, + typeof(ComplusSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum ComplusSymbolFields + { + ComponentRef, + ExpType, + } + + public class ComplusSymbol : IntermediateSymbol + { + public ComplusSymbol() : base(SymbolDefinitions.Complus, null, null) + { + } + + public ComplusSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Complus, sourceLineNumber, id) + { + } + + public IntermediateField this[ComplusSymbolFields index] => this.Fields[(int)index]; + + public string ComponentRef + { + get => (string)this.Fields[(int)ComplusSymbolFields.ComponentRef]; + set => this.Set((int)ComplusSymbolFields.ComponentRef, value); + } + + public int? ExpType + { + get => (int?)this.Fields[(int)ComplusSymbolFields.ExpType]; + set => this.Set((int)ComplusSymbolFields.ExpType, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/ComponentSymbol.cs b/src/WixToolset.Data/Symbols/ComponentSymbol.cs new file mode 100644 index 00000000..13d398b1 --- /dev/null +++ b/src/WixToolset.Data/Symbols/ComponentSymbol.cs @@ -0,0 +1,155 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition Component = new IntermediateSymbolDefinition( + SymbolDefinitionType.Component, + new[] + { + new IntermediateFieldDefinition(nameof(ComponentSymbolFields.ComponentId), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ComponentSymbolFields.DirectoryRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ComponentSymbolFields.Location), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(ComponentSymbolFields.DisableRegistryReflection), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(ComponentSymbolFields.NeverOverwrite), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(ComponentSymbolFields.Permanent), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(ComponentSymbolFields.SharedDllRefCount), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(ComponentSymbolFields.Shared), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(ComponentSymbolFields.Transitive), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(ComponentSymbolFields.UninstallWhenSuperseded), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(ComponentSymbolFields.Win64), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(ComponentSymbolFields.Condition), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ComponentSymbolFields.KeyPath), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ComponentSymbolFields.KeyPathType), IntermediateFieldType.Number), + }, + typeof(ComponentSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum ComponentSymbolFields + { + ComponentId, + DirectoryRef, + Location, + DisableRegistryReflection, + NeverOverwrite, + Permanent, + SharedDllRefCount, + Shared, + Transitive, + UninstallWhenSuperseded, + Win64, + Condition, + KeyPath, + KeyPathType, + } + + public enum ComponentLocation + { + LocalOnly, + SourceOnly, + Either + } + + public class ComponentSymbol : IntermediateSymbol + { + public ComponentSymbol() : base(SymbolDefinitions.Component, null, null) + { + } + + public ComponentSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Component, sourceLineNumber, id) + { + } + + public IntermediateField this[ComponentSymbolFields index] => this.Fields[(int)index]; + + public string ComponentId + { + get => (string)this.Fields[(int)ComponentSymbolFields.ComponentId]; + set => this.Set((int)ComponentSymbolFields.ComponentId, value); + } + + public string DirectoryRef + { + get => (string)this.Fields[(int)ComponentSymbolFields.DirectoryRef]; + set => this.Set((int)ComponentSymbolFields.DirectoryRef, value); + } + + public ComponentLocation Location + { + get => (ComponentLocation)this.Fields[(int)ComponentSymbolFields.Location].AsNumber(); + set => this.Set((int)ComponentSymbolFields.Location, (int)value); + } + + public bool DisableRegistryReflection + { + get => this.Fields[(int)ComponentSymbolFields.DisableRegistryReflection].AsBool(); + set => this.Set((int)ComponentSymbolFields.DisableRegistryReflection, value); + } + + public bool NeverOverwrite + { + get => this.Fields[(int)ComponentSymbolFields.NeverOverwrite].AsBool(); + set => this.Set((int)ComponentSymbolFields.NeverOverwrite, value); + } + + public bool Permanent + { + get => this.Fields[(int)ComponentSymbolFields.Permanent].AsBool(); + set => this.Set((int)ComponentSymbolFields.Permanent, value); + } + + public bool SharedDllRefCount + { + get => this.Fields[(int)ComponentSymbolFields.SharedDllRefCount].AsBool(); + set => this.Set((int)ComponentSymbolFields.SharedDllRefCount, value); + } + + public bool Shared + { + get => this.Fields[(int)ComponentSymbolFields.Shared].AsBool(); + set => this.Set((int)ComponentSymbolFields.Shared, value); + } + + public bool Transitive + { + get => this.Fields[(int)ComponentSymbolFields.Transitive].AsBool(); + set => this.Set((int)ComponentSymbolFields.Transitive, value); + } + + public bool UninstallWhenSuperseded + { + get => this.Fields[(int)ComponentSymbolFields.UninstallWhenSuperseded].AsBool(); + set => this.Set((int)ComponentSymbolFields.UninstallWhenSuperseded, value); + } + + public bool Win64 + { + get => this.Fields[(int)ComponentSymbolFields.Win64].AsBool(); + set => this.Set((int)ComponentSymbolFields.Win64, value); + } + + public string Condition + { + get => (string)this.Fields[(int)ComponentSymbolFields.Condition]; + set => this.Set((int)ComponentSymbolFields.Condition, value); + } + + public string KeyPath + { + get => (string)this.Fields[(int)ComponentSymbolFields.KeyPath]; + set => this.Set((int)ComponentSymbolFields.KeyPath, value); + } + + public ComponentKeyPathType KeyPathType + { + get => (ComponentKeyPathType)this.Fields[(int)ComponentSymbolFields.KeyPathType].AsNumber(); + set => this.Set((int)ComponentSymbolFields.KeyPathType, (int)value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/ConditionSymbol.cs b/src/WixToolset.Data/Symbols/ConditionSymbol.cs new file mode 100644 index 00000000..3a94ebb1 --- /dev/null +++ b/src/WixToolset.Data/Symbols/ConditionSymbol.cs @@ -0,0 +1,60 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition Condition = new IntermediateSymbolDefinition( + SymbolDefinitionType.Condition, + new[] + { + new IntermediateFieldDefinition(nameof(ConditionSymbolFields.FeatureRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ConditionSymbolFields.Level), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(ConditionSymbolFields.Condition), IntermediateFieldType.String), + }, + typeof(ConditionSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum ConditionSymbolFields + { + FeatureRef, + Level, + Condition, + } + + public class ConditionSymbol : IntermediateSymbol + { + public ConditionSymbol() : base(SymbolDefinitions.Condition, null, null) + { + } + + public ConditionSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Condition, sourceLineNumber, id) + { + } + + public IntermediateField this[ConditionSymbolFields index] => this.Fields[(int)index]; + + public string FeatureRef + { + get => (string)this.Fields[(int)ConditionSymbolFields.FeatureRef]; + set => this.Set((int)ConditionSymbolFields.FeatureRef, value); + } + + public int Level + { + get => (int)this.Fields[(int)ConditionSymbolFields.Level]; + set => this.Set((int)ConditionSymbolFields.Level, value); + } + + public string Condition + { + get => (string)this.Fields[(int)ConditionSymbolFields.Condition]; + set => this.Set((int)ConditionSymbolFields.Condition, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/ControlConditionSymbol.cs b/src/WixToolset.Data/Symbols/ControlConditionSymbol.cs new file mode 100644 index 00000000..cc5f2d74 --- /dev/null +++ b/src/WixToolset.Data/Symbols/ControlConditionSymbol.cs @@ -0,0 +1,68 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition ControlCondition = new IntermediateSymbolDefinition( + SymbolDefinitionType.ControlCondition, + new[] + { + new IntermediateFieldDefinition(nameof(ControlConditionSymbolFields.DialogRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ControlConditionSymbolFields.ControlRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ControlConditionSymbolFields.Action), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ControlConditionSymbolFields.Condition), IntermediateFieldType.String), + }, + typeof(ControlConditionSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum ControlConditionSymbolFields + { + DialogRef, + ControlRef, + Action, + Condition, + } + + public class ControlConditionSymbol : IntermediateSymbol + { + public ControlConditionSymbol() : base(SymbolDefinitions.ControlCondition, null, null) + { + } + + public ControlConditionSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ControlCondition, sourceLineNumber, id) + { + } + + public IntermediateField this[ControlConditionSymbolFields index] => this.Fields[(int)index]; + + public string DialogRef + { + get => (string)this.Fields[(int)ControlConditionSymbolFields.DialogRef]; + set => this.Set((int)ControlConditionSymbolFields.DialogRef, value); + } + + public string ControlRef + { + get => (string)this.Fields[(int)ControlConditionSymbolFields.ControlRef]; + set => this.Set((int)ControlConditionSymbolFields.ControlRef, value); + } + + public string Action + { + get => (string)this.Fields[(int)ControlConditionSymbolFields.Action]; + set => this.Set((int)ControlConditionSymbolFields.Action, value); + } + + public string Condition + { + get => (string)this.Fields[(int)ControlConditionSymbolFields.Condition]; + set => this.Set((int)ControlConditionSymbolFields.Condition, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/ControlEventSymbol.cs b/src/WixToolset.Data/Symbols/ControlEventSymbol.cs new file mode 100644 index 00000000..3cf6da53 --- /dev/null +++ b/src/WixToolset.Data/Symbols/ControlEventSymbol.cs @@ -0,0 +1,84 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition ControlEvent = new IntermediateSymbolDefinition( + SymbolDefinitionType.ControlEvent, + new[] + { + new IntermediateFieldDefinition(nameof(ControlEventSymbolFields.DialogRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ControlEventSymbolFields.ControlRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ControlEventSymbolFields.Event), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ControlEventSymbolFields.Argument), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ControlEventSymbolFields.Condition), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ControlEventSymbolFields.Ordering), IntermediateFieldType.Number), + }, + typeof(ControlEventSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum ControlEventSymbolFields + { + DialogRef, + ControlRef, + Event, + Argument, + Condition, + Ordering, + } + + public class ControlEventSymbol : IntermediateSymbol + { + public ControlEventSymbol() : base(SymbolDefinitions.ControlEvent, null, null) + { + } + + public ControlEventSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ControlEvent, sourceLineNumber, id) + { + } + + public IntermediateField this[ControlEventSymbolFields index] => this.Fields[(int)index]; + + public string DialogRef + { + get => (string)this.Fields[(int)ControlEventSymbolFields.DialogRef]; + set => this.Set((int)ControlEventSymbolFields.DialogRef, value); + } + + public string ControlRef + { + get => (string)this.Fields[(int)ControlEventSymbolFields.ControlRef]; + set => this.Set((int)ControlEventSymbolFields.ControlRef, value); + } + + public string Event + { + get => (string)this.Fields[(int)ControlEventSymbolFields.Event]; + set => this.Set((int)ControlEventSymbolFields.Event, value); + } + + public string Argument + { + get => (string)this.Fields[(int)ControlEventSymbolFields.Argument]; + set => this.Set((int)ControlEventSymbolFields.Argument, value); + } + + public string Condition + { + get => (string)this.Fields[(int)ControlEventSymbolFields.Condition]; + set => this.Set((int)ControlEventSymbolFields.Condition, value); + } + + public int? Ordering + { + get => (int?)this.Fields[(int)ControlEventSymbolFields.Ordering]; + set => this.Set((int)ControlEventSymbolFields.Ordering, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/ControlSymbol.cs b/src/WixToolset.Data/Symbols/ControlSymbol.cs new file mode 100644 index 00000000..732566d5 --- /dev/null +++ b/src/WixToolset.Data/Symbols/ControlSymbol.cs @@ -0,0 +1,303 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition Control = new IntermediateSymbolDefinition( + SymbolDefinitionType.Control, + new[] + { + new IntermediateFieldDefinition(nameof(ControlSymbolFields.DialogRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ControlSymbolFields.Control), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ControlSymbolFields.Type), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ControlSymbolFields.X), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(ControlSymbolFields.Y), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(ControlSymbolFields.Width), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(ControlSymbolFields.Height), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(ControlSymbolFields.Attributes), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(ControlSymbolFields.Enabled), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(ControlSymbolFields.Indirect), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(ControlSymbolFields.Integer), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(ControlSymbolFields.LeftScroll), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(ControlSymbolFields.RightAligned), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(ControlSymbolFields.RightToLeft), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(ControlSymbolFields.Sunken), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(ControlSymbolFields.Visible), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(ControlSymbolFields.Property), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ControlSymbolFields.Text), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ControlSymbolFields.NextControlRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ControlSymbolFields.Help), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ControlSymbolFields.TrackDiskSpace), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(ControlSymbolFields.SourceFile), IntermediateFieldType.Path), + }, + typeof(ControlSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum ControlSymbolFields + { + DialogRef, + Control, + Type, + X, + Y, + Width, + Height, + Attributes, + Enabled, + Indirect, + Integer, + LeftScroll, + RightAligned, + RightToLeft, + Sunken, + Visible, + Property, + Text, + NextControlRef, + Help, + TrackDiskSpace, + SourceFile, + } + + public class ControlSymbol : IntermediateSymbol + { + public ControlSymbol() : base(SymbolDefinitions.Control, null, null) + { + } + + public ControlSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Control, sourceLineNumber, id) + { + } + + public IntermediateField this[ControlSymbolFields index] => this.Fields[(int)index]; + + public string DialogRef + { + get => (string)this.Fields[(int)ControlSymbolFields.DialogRef]; + set => this.Set((int)ControlSymbolFields.DialogRef, value); + } + + public string Control + { + get => (string)this.Fields[(int)ControlSymbolFields.Control]; + set => this.Set((int)ControlSymbolFields.Control, value); + } + + public string Type + { + get => (string)this.Fields[(int)ControlSymbolFields.Type]; + set => this.Set((int)ControlSymbolFields.Type, value); + } + + public int X + { + get => (int)this.Fields[(int)ControlSymbolFields.X]; + set => this.Set((int)ControlSymbolFields.X, value); + } + + public int Y + { + get => (int)this.Fields[(int)ControlSymbolFields.Y]; + set => this.Set((int)ControlSymbolFields.Y, value); + } + + public int Width + { + get => (int)this.Fields[(int)ControlSymbolFields.Width]; + set => this.Set((int)ControlSymbolFields.Width, value); + } + + public int Height + { + get => (int)this.Fields[(int)ControlSymbolFields.Height]; + set => this.Set((int)ControlSymbolFields.Height, value); + } + + public int? Attributes + { + get => (int?)this.Fields[(int)ControlSymbolFields.Attributes]; + set => this.Set((int)ControlSymbolFields.Attributes, value); + } + + public bool Enabled + { + get => this.Fields[(int)ControlSymbolFields.Enabled].AsBool(); + set => this.Set((int)ControlSymbolFields.Enabled, value); + } + + public bool Indirect + { + get => this.Fields[(int)ControlSymbolFields.Indirect].AsBool(); + set => this.Set((int)ControlSymbolFields.Indirect, value); + } + + public bool Integer + { + get => this.Fields[(int)ControlSymbolFields.Integer].AsBool(); + set => this.Set((int)ControlSymbolFields.Integer, value); + } + /* + /// PictureButton control + public bool Bitmap + { + get => this.Fields[(int)ControlSymbolFields.Bitmap].AsBool(); + set => this.Set((int)ControlSymbolFields.Bitmap, value); + } + + /// RadioButton control + public bool Border + { + get => this.Fields[(int)ControlSymbolFields.Border].AsBool(); + set => this.Set((int)ControlSymbolFields.Border, value); + } + + /// ListBox and ComboBox control + public bool ComboList + { + get => this.Fields[(int)ControlSymbolFields.ComboList].AsBool(); + set => this.Set((int)ControlSymbolFields.ComboList, value); + } + + /// PushButton control + public bool ElevationShield + { + get => this.Fields[(int)ControlSymbolFields.ElevationShield].AsBool(); + set => this.Set((int)ControlSymbolFields.ElevationShield, value); + } + + /// PictureButton control + public bool FixedSize + { + get => this.Fields[(int)ControlSymbolFields.FixedSize].AsBool(); + set => this.Set((int)ControlSymbolFields.FixedSize, value); + } + + /// PictureButton control + public bool Icon + { + get => this.Fields[(int)ControlSymbolFields.Icon].AsBool(); + set => this.Set((int)ControlSymbolFields.Icon, value); + } + + /// PictureButton control + public bool Icon16 + { + get => this.Fields[(int)ControlSymbolFields.Icon16].AsBool(); + set => this.Set((int)ControlSymbolFields.Icon16, value); + } + + /// PictureButton control + public bool Icon32 + { + get => this.Fields[(int)ControlSymbolFields.Icon32].AsBool(); + set => this.Set((int)ControlSymbolFields.Icon32, value); + } + + /// PictureButton control + public bool Icon48 + { + get => this.Fields[(int)ControlSymbolFields.Icon48].AsBool(); + set => this.Set((int)ControlSymbolFields.Icon48, value); + } + */ + public bool LeftScroll + { + get => this.Fields[(int)ControlSymbolFields.LeftScroll].AsBool(); + set => this.Set((int)ControlSymbolFields.LeftScroll, value); + } + /* + /// PictureButton control + public bool PushLike + { + get => this.Fields[(int)ControlSymbolFields.PushLike].AsBool(); + set => this.Set((int)ControlSymbolFields.PushLike, value); + } + + /// Edit control + public bool Mulitline + { + get => this.Fields[(int)ControlSymbolFields.Mulitline].AsBool(); + set => this.Set((int)ControlSymbolFields.Mulitline, value); + } + */ + public bool RightAligned + { + get => this.Fields[(int)ControlSymbolFields.RightAligned].AsBool(); + set => this.Set((int)ControlSymbolFields.RightAligned, value); + } + + public bool RightToLeft + { + get => this.Fields[(int)ControlSymbolFields.RightToLeft].AsBool(); + set => this.Set((int)ControlSymbolFields.RightToLeft, value); + } + /* + /// VolumeCostList control + public bool ShowRollbackCost + { + get => this.Fields[(int)ControlSymbolFields.ShowRollbackCost].AsBool(); + set => this.Set((int)ControlSymbolFields.ShowRollbackCost, value); + } + + /// ListBox and ComboBox control + public bool Sorted + { + get => this.Fields[(int)ControlSymbolFields.Sorted].AsBool(); + set => this.Set((int)ControlSymbolFields.Sorted, value); + } + */ + public bool Sunken + { + get => this.Fields[(int)ControlSymbolFields.Sunken].AsBool(); + set => this.Set((int)ControlSymbolFields.Sunken, value); + } + + public bool Visible + { + get => this.Fields[(int)ControlSymbolFields.Visible].AsBool(); + set => this.Set((int)ControlSymbolFields.Visible, value); + } + + public string Property + { + get => (string)this.Fields[(int)ControlSymbolFields.Property]; + set => this.Set((int)ControlSymbolFields.Property, value); + } + + public string Text + { + get => (string)this.Fields[(int)ControlSymbolFields.Text]; + set => this.Set((int)ControlSymbolFields.Text, value); + } + + public string NextControlRef + { + get => (string)this.Fields[(int)ControlSymbolFields.NextControlRef]; + set => this.Set((int)ControlSymbolFields.NextControlRef, value); + } + + public string Help + { + get => (string)this.Fields[(int)ControlSymbolFields.Help]; + set => this.Set((int)ControlSymbolFields.Help, value); + } + + public bool TrackDiskSpace + { + get => this.Fields[(int)ControlSymbolFields.TrackDiskSpace].AsBool(); + set => this.Set((int)ControlSymbolFields.TrackDiskSpace, value); + } + + public IntermediateFieldPathValue SourceFile + { + get => this.Fields[(int)ControlSymbolFields.SourceFile].AsPath(); + set => this.Set((int)ControlSymbolFields.SourceFile, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/CreateFolderSymbol.cs b/src/WixToolset.Data/Symbols/CreateFolderSymbol.cs new file mode 100644 index 00000000..2b282266 --- /dev/null +++ b/src/WixToolset.Data/Symbols/CreateFolderSymbol.cs @@ -0,0 +1,52 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition CreateFolder = new IntermediateSymbolDefinition( + SymbolDefinitionType.CreateFolder, + new[] + { + new IntermediateFieldDefinition(nameof(CreateFolderSymbolFields.DirectoryRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(CreateFolderSymbolFields.ComponentRef), IntermediateFieldType.String), + }, + typeof(CreateFolderSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum CreateFolderSymbolFields + { + DirectoryRef, + ComponentRef, + } + + public class CreateFolderSymbol : IntermediateSymbol + { + public CreateFolderSymbol() : base(SymbolDefinitions.CreateFolder, null, null) + { + } + + public CreateFolderSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.CreateFolder, sourceLineNumber, id) + { + } + + public IntermediateField this[CreateFolderSymbolFields index] => this.Fields[(int)index]; + + public string DirectoryRef + { + get => (string)this.Fields[(int)CreateFolderSymbolFields.DirectoryRef]; + set => this.Set((int)CreateFolderSymbolFields.DirectoryRef, value); + } + + public string ComponentRef + { + get => (string)this.Fields[(int)CreateFolderSymbolFields.ComponentRef]; + set => this.Set((int)CreateFolderSymbolFields.ComponentRef, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/CustomActionSymbol.cs b/src/WixToolset.Data/Symbols/CustomActionSymbol.cs new file mode 100644 index 00000000..1180dab4 --- /dev/null +++ b/src/WixToolset.Data/Symbols/CustomActionSymbol.cs @@ -0,0 +1,168 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition CustomAction = new IntermediateSymbolDefinition( + SymbolDefinitionType.CustomAction, + new[] + { + new IntermediateFieldDefinition(nameof(CustomActionSymbolFields.ExecutionType), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(CustomActionSymbolFields.Source), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(CustomActionSymbolFields.SourceType), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(CustomActionSymbolFields.Target), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(CustomActionSymbolFields.TargetType), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(CustomActionSymbolFields.Async), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(CustomActionSymbolFields.Hidden), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(CustomActionSymbolFields.IgnoreResult), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(CustomActionSymbolFields.Impersonate), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(CustomActionSymbolFields.PatchUninstall), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(CustomActionSymbolFields.TSAware), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(CustomActionSymbolFields.Win64), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(CustomActionSymbolFields.ScriptFile), IntermediateFieldType.Path), + }, + typeof(CustomActionSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum CustomActionSymbolFields + { + ExecutionType, + Source, + SourceType, + Target, + TargetType, + Async, + Hidden, + IgnoreResult, + Impersonate, + PatchUninstall, + TSAware, + Win64, + ScriptFile + } + + public enum CustomActionExecutionType + { + Immediate, + FirstSequence = 256, + OncePerProcess = 512, + ClientRepeat = 768, + Deferred = 1024, + Rollback = 1280, + Commit = 1536, + } + + public enum CustomActionSourceType + { + Binary, + File = 0x10, + Directory = 0x20, + Property = 0x30, + } + + public enum CustomActionTargetType + { + Dll = 1, + Exe = 2, + TextData = 3, + JScript = 5, + VBScript = 6, + } + + public class CustomActionSymbol : IntermediateSymbol + { + public CustomActionSymbol() : base(SymbolDefinitions.CustomAction, null, null) + { + } + + public CustomActionSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.CustomAction, sourceLineNumber, id) + { + } + + public IntermediateField this[CustomActionSymbolFields index] => this.Fields[(int)index]; + + public CustomActionExecutionType ExecutionType + { + get => (CustomActionExecutionType)this.Fields[(int)CustomActionSymbolFields.ExecutionType].AsNumber(); + set => this.Set((int)CustomActionSymbolFields.ExecutionType, (int)value); + } + + public string Source + { + get => (string)this.Fields[(int)CustomActionSymbolFields.Source]; + set => this.Set((int)CustomActionSymbolFields.Source, value); + } + + public CustomActionSourceType SourceType + { + get => (CustomActionSourceType)this.Fields[(int)CustomActionSymbolFields.SourceType].AsNumber(); + set => this.Set((int)CustomActionSymbolFields.SourceType, (int)value); + } + + public string Target + { + get => (string)this.Fields[(int)CustomActionSymbolFields.Target]; + set => this.Set((int)CustomActionSymbolFields.Target, value); + } + + public CustomActionTargetType TargetType + { + get => (CustomActionTargetType)this.Fields[(int)CustomActionSymbolFields.TargetType].AsNumber(); + set => this.Set((int)CustomActionSymbolFields.TargetType, (int)value); + } + + public bool Async + { + get => this.Fields[(int)CustomActionSymbolFields.Async].AsBool(); + set => this.Set((int)CustomActionSymbolFields.Async, value); + } + + public bool Hidden + { + get => this.Fields[(int)CustomActionSymbolFields.Hidden].AsBool(); + set => this.Set((int)CustomActionSymbolFields.Hidden, value); + } + + public bool IgnoreResult + { + get => this.Fields[(int)CustomActionSymbolFields.IgnoreResult].AsBool(); + set => this.Set((int)CustomActionSymbolFields.IgnoreResult, value); + } + + public bool Impersonate + { + get => this.Fields[(int)CustomActionSymbolFields.Impersonate].AsBool(); + set => this.Set((int)CustomActionSymbolFields.Impersonate, value); + } + + public bool PatchUninstall + { + get => this.Fields[(int)CustomActionSymbolFields.PatchUninstall].AsBool(); + set => this.Set((int)CustomActionSymbolFields.PatchUninstall, value); + } + + public bool TSAware + { + get => this.Fields[(int)CustomActionSymbolFields.TSAware].AsBool(); + set => this.Set((int)CustomActionSymbolFields.TSAware, value); + } + + public bool Win64 + { + get => this.Fields[(int)CustomActionSymbolFields.Win64].AsBool(); + set => this.Set((int)CustomActionSymbolFields.Win64, value); + } + + public IntermediateFieldPathValue ScriptFile + { + get => this.Fields[(int)CustomActionSymbolFields.ScriptFile].AsPath(); + set => this.Set((int)CustomActionSymbolFields.ScriptFile, value); + } + } +} diff --git a/src/WixToolset.Data/Symbols/DialogSymbol.cs b/src/WixToolset.Data/Symbols/DialogSymbol.cs new file mode 100644 index 00000000..ee030405 --- /dev/null +++ b/src/WixToolset.Data/Symbols/DialogSymbol.cs @@ -0,0 +1,188 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition Dialog = new IntermediateSymbolDefinition( + SymbolDefinitionType.Dialog, + new[] + { + new IntermediateFieldDefinition(nameof(DialogSymbolFields.HCentering), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(DialogSymbolFields.VCentering), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(DialogSymbolFields.Width), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(DialogSymbolFields.Height), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(DialogSymbolFields.CustomPalette), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(DialogSymbolFields.ErrorDialog), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(DialogSymbolFields.Visible), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(DialogSymbolFields.Modal), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(DialogSymbolFields.KeepModeless), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(DialogSymbolFields.LeftScroll), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(DialogSymbolFields.Minimize), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(DialogSymbolFields.RightAligned), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(DialogSymbolFields.RightToLeft), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(DialogSymbolFields.SystemModal), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(DialogSymbolFields.TrackDiskSpace), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(DialogSymbolFields.Title), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(DialogSymbolFields.FirstControlRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(DialogSymbolFields.DefaultControlRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(DialogSymbolFields.CancelControlRef), IntermediateFieldType.String), + }, + typeof(DialogSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum DialogSymbolFields + { + HCentering, + VCentering, + Width, + Height, + CustomPalette, + ErrorDialog, + Visible, + Modal, + KeepModeless, + LeftScroll, + Minimize, + RightAligned, + RightToLeft, + SystemModal, + TrackDiskSpace, + Title, + FirstControlRef, + DefaultControlRef, + CancelControlRef, + } + + public class DialogSymbol : IntermediateSymbol + { + public DialogSymbol() : base(SymbolDefinitions.Dialog, null, null) + { + } + + public DialogSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Dialog, sourceLineNumber, id) + { + } + + public IntermediateField this[DialogSymbolFields index] => this.Fields[(int)index]; + + public int HCentering + { + get => (int)this.Fields[(int)DialogSymbolFields.HCentering]; + set => this.Set((int)DialogSymbolFields.HCentering, value); + } + + public int VCentering + { + get => (int)this.Fields[(int)DialogSymbolFields.VCentering]; + set => this.Set((int)DialogSymbolFields.VCentering, value); + } + + public int Width + { + get => (int)this.Fields[(int)DialogSymbolFields.Width]; + set => this.Set((int)DialogSymbolFields.Width, value); + } + + public int Height + { + get => (int)this.Fields[(int)DialogSymbolFields.Height]; + set => this.Set((int)DialogSymbolFields.Height, value); + } + + public bool CustomPalette + { + get => this.Fields[(int)DialogSymbolFields.CustomPalette].AsBool(); + set => this.Set((int)DialogSymbolFields.CustomPalette, value); + } + + public bool ErrorDialog + { + get => this.Fields[(int)DialogSymbolFields.ErrorDialog].AsBool(); + set => this.Set((int)DialogSymbolFields.ErrorDialog, value); + } + + public bool Visible + { + get => this.Fields[(int)DialogSymbolFields.Visible].AsBool(); + set => this.Set((int)DialogSymbolFields.Visible, value); + } + + public bool Modal + { + get => this.Fields[(int)DialogSymbolFields.Modal].AsBool(); + set => this.Set((int)DialogSymbolFields.Modal, value); + } + + public bool KeepModeless + { + get => this.Fields[(int)DialogSymbolFields.KeepModeless].AsBool(); + set => this.Set((int)DialogSymbolFields.KeepModeless, value); + } + + public bool LeftScroll + { + get => this.Fields[(int)DialogSymbolFields.LeftScroll].AsBool(); + set => this.Set((int)DialogSymbolFields.LeftScroll, value); + } + + public bool Minimize + { + get => this.Fields[(int)DialogSymbolFields.Minimize].AsBool(); + set => this.Set((int)DialogSymbolFields.Minimize, value); + } + + public bool RightAligned + { + get => this.Fields[(int)DialogSymbolFields.RightAligned].AsBool(); + set => this.Set((int)DialogSymbolFields.RightAligned, value); + } + + public bool RightToLeft + { + get => this.Fields[(int)DialogSymbolFields.RightToLeft].AsBool(); + set => this.Set((int)DialogSymbolFields.RightToLeft, value); + } + + public bool TrackDiskSpace + { + get => this.Fields[(int)DialogSymbolFields.TrackDiskSpace].AsBool(); + set => this.Set((int)DialogSymbolFields.TrackDiskSpace, value); + } + + public bool SystemModal + { + get => this.Fields[(int)DialogSymbolFields.SystemModal].AsBool(); + set => this.Set((int)DialogSymbolFields.SystemModal, value); + } + + public string Title + { + get => (string)this.Fields[(int)DialogSymbolFields.Title]; + set => this.Set((int)DialogSymbolFields.Title, value); + } + + public string FirstControlRef + { + get => (string)this.Fields[(int)DialogSymbolFields.FirstControlRef]; + set => this.Set((int)DialogSymbolFields.FirstControlRef, value); + } + + public string DefaultControlRef + { + get => (string)this.Fields[(int)DialogSymbolFields.DefaultControlRef]; + set => this.Set((int)DialogSymbolFields.DefaultControlRef, value); + } + + public string CancelControlRef + { + get => (string)this.Fields[(int)DialogSymbolFields.CancelControlRef]; + set => this.Set((int)DialogSymbolFields.CancelControlRef, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/DirectorySymbol.cs b/src/WixToolset.Data/Symbols/DirectorySymbol.cs new file mode 100644 index 00000000..209f5ca1 --- /dev/null +++ b/src/WixToolset.Data/Symbols/DirectorySymbol.cs @@ -0,0 +1,84 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition Directory = new IntermediateSymbolDefinition( + SymbolDefinitionType.Directory, + new[] + { + new IntermediateFieldDefinition(nameof(DirectorySymbolFields.ParentDirectoryRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(DirectorySymbolFields.Name), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(DirectorySymbolFields.ShortName), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(DirectorySymbolFields.SourceName), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(DirectorySymbolFields.SourceShortName), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(DirectorySymbolFields.ComponentGuidGenerationSeed), IntermediateFieldType.String), + }, + typeof(DirectorySymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum DirectorySymbolFields + { + ParentDirectoryRef, + Name, + ShortName, + SourceName, + SourceShortName, + ComponentGuidGenerationSeed, + } + + public class DirectorySymbol : IntermediateSymbol + { + public DirectorySymbol() : base(SymbolDefinitions.Directory, null, null) + { + } + + public DirectorySymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Directory, sourceLineNumber, id) + { + } + + public IntermediateField this[DirectorySymbolFields index] => this.Fields[(int)index]; + + public string ParentDirectoryRef + { + get => (string)this.Fields[(int)DirectorySymbolFields.ParentDirectoryRef]; + set => this.Set((int)DirectorySymbolFields.ParentDirectoryRef, value); + } + + public string Name + { + get => (string)this.Fields[(int)DirectorySymbolFields.Name]; + set => this.Set((int)DirectorySymbolFields.Name, value); + } + + public string ShortName + { + get => (string)this.Fields[(int)DirectorySymbolFields.ShortName]; + set => this.Set((int)DirectorySymbolFields.ShortName, value); + } + + public string SourceName + { + get => (string)this.Fields[(int)DirectorySymbolFields.SourceName]; + set => this.Set((int)DirectorySymbolFields.SourceName, value); + } + + public string SourceShortName + { + get => (string)this.Fields[(int)DirectorySymbolFields.SourceShortName]; + set => this.Set((int)DirectorySymbolFields.SourceShortName, value); + } + + public string ComponentGuidGenerationSeed + { + get => (string)this.Fields[(int)DirectorySymbolFields.ComponentGuidGenerationSeed]; + set => this.Set((int)DirectorySymbolFields.ComponentGuidGenerationSeed, value); + } + } +} diff --git a/src/WixToolset.Data/Symbols/DrLocatorSymbol.cs b/src/WixToolset.Data/Symbols/DrLocatorSymbol.cs new file mode 100644 index 00000000..e403c61c --- /dev/null +++ b/src/WixToolset.Data/Symbols/DrLocatorSymbol.cs @@ -0,0 +1,68 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition DrLocator = new IntermediateSymbolDefinition( + SymbolDefinitionType.DrLocator, + new[] + { + new IntermediateFieldDefinition(nameof(DrLocatorSymbolFields.SignatureRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(DrLocatorSymbolFields.Parent), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(DrLocatorSymbolFields.Path), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(DrLocatorSymbolFields.Depth), IntermediateFieldType.Number), + }, + typeof(DrLocatorSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum DrLocatorSymbolFields + { + SignatureRef, + Parent, + Path, + Depth, + } + + public class DrLocatorSymbol : IntermediateSymbol + { + public DrLocatorSymbol() : base(SymbolDefinitions.DrLocator, null, null) + { + } + + public DrLocatorSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.DrLocator, sourceLineNumber, id) + { + } + + public IntermediateField this[DrLocatorSymbolFields index] => this.Fields[(int)index]; + + public string SignatureRef + { + get => (string)this.Fields[(int)DrLocatorSymbolFields.SignatureRef]; + set => this.Set((int)DrLocatorSymbolFields.SignatureRef, value); + } + + public string Parent + { + get => (string)this.Fields[(int)DrLocatorSymbolFields.Parent]; + set => this.Set((int)DrLocatorSymbolFields.Parent, value); + } + + public string Path + { + get => (string)this.Fields[(int)DrLocatorSymbolFields.Path]; + set => this.Set((int)DrLocatorSymbolFields.Path, value); + } + + public int? Depth + { + get => (int?)this.Fields[(int)DrLocatorSymbolFields.Depth]; + set => this.Set((int)DrLocatorSymbolFields.Depth, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/DuplicateFileSymbol.cs b/src/WixToolset.Data/Symbols/DuplicateFileSymbol.cs new file mode 100644 index 00000000..1344ced4 --- /dev/null +++ b/src/WixToolset.Data/Symbols/DuplicateFileSymbol.cs @@ -0,0 +1,68 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition DuplicateFile = new IntermediateSymbolDefinition( + SymbolDefinitionType.DuplicateFile, + new[] + { + new IntermediateFieldDefinition(nameof(DuplicateFileSymbolFields.ComponentRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(DuplicateFileSymbolFields.FileRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(DuplicateFileSymbolFields.DestinationName), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(DuplicateFileSymbolFields.DestinationFolder), IntermediateFieldType.String), + }, + typeof(DuplicateFileSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum DuplicateFileSymbolFields + { + ComponentRef, + FileRef, + DestinationName, + DestinationFolder, + } + + public class DuplicateFileSymbol : IntermediateSymbol + { + public DuplicateFileSymbol() : base(SymbolDefinitions.DuplicateFile, null, null) + { + } + + public DuplicateFileSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.DuplicateFile, sourceLineNumber, id) + { + } + + public IntermediateField this[DuplicateFileSymbolFields index] => this.Fields[(int)index]; + + public string ComponentRef + { + get => (string)this.Fields[(int)DuplicateFileSymbolFields.ComponentRef]; + set => this.Set((int)DuplicateFileSymbolFields.ComponentRef, value); + } + + public string FileRef + { + get => (string)this.Fields[(int)DuplicateFileSymbolFields.FileRef]; + set => this.Set((int)DuplicateFileSymbolFields.FileRef, value); + } + + public string DestinationName + { + get => (string)this.Fields[(int)DuplicateFileSymbolFields.DestinationName]; + set => this.Set((int)DuplicateFileSymbolFields.DestinationName, value); + } + + public string DestinationFolder + { + get => (string)this.Fields[(int)DuplicateFileSymbolFields.DestinationFolder]; + set => this.Set((int)DuplicateFileSymbolFields.DestinationFolder, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/EnvironmentSymbol.cs b/src/WixToolset.Data/Symbols/EnvironmentSymbol.cs new file mode 100644 index 00000000..3fe12d4b --- /dev/null +++ b/src/WixToolset.Data/Symbols/EnvironmentSymbol.cs @@ -0,0 +1,114 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition Environment = new IntermediateSymbolDefinition( + SymbolDefinitionType.Environment, + new[] + { + new IntermediateFieldDefinition(nameof(EnvironmentSymbolFields.Name), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(EnvironmentSymbolFields.Value), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(EnvironmentSymbolFields.Separator), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(EnvironmentSymbolFields.Action), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(EnvironmentSymbolFields.Part), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(EnvironmentSymbolFields.Permanent), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(EnvironmentSymbolFields.System), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(EnvironmentSymbolFields.ComponentRef), IntermediateFieldType.String), + }, + typeof(EnvironmentSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum EnvironmentSymbolFields + { + Name, + Value, + Separator, + Action, + Part, + Permanent, + System, + ComponentRef, + } + + public enum EnvironmentActionType + { + Set, + Create, + Remove + } + + public enum EnvironmentPartType + { + All, + First, + Last + } + + public class EnvironmentSymbol : IntermediateSymbol + { + public EnvironmentSymbol() : base(SymbolDefinitions.Environment, null, null) + { + } + + public EnvironmentSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Environment, sourceLineNumber, id) + { + } + + public IntermediateField this[EnvironmentSymbolFields index] => this.Fields[(int)index]; + + public string Name + { + get => (string)this.Fields[(int)EnvironmentSymbolFields.Name]; + set => this.Set((int)EnvironmentSymbolFields.Name, value); + } + + public string Value + { + get => (string)this.Fields[(int)EnvironmentSymbolFields.Value]; + set => this.Set((int)EnvironmentSymbolFields.Value, value); + } + + public string Separator + { + get => (string)this.Fields[(int)EnvironmentSymbolFields.Separator]; + set => this.Set((int)EnvironmentSymbolFields.Separator, value); + } + + public EnvironmentActionType? Action + { + get => (EnvironmentActionType?)this.Fields[(int)EnvironmentSymbolFields.Action].AsNullableNumber(); + set => this.Set((int)EnvironmentSymbolFields.Action, (int?)value); + } + + public EnvironmentPartType? Part + { + get => (EnvironmentPartType?)this.Fields[(int)EnvironmentSymbolFields.Part].AsNullableNumber(); + set => this.Set((int)EnvironmentSymbolFields.Part, (int?)value); + } + + public bool Permanent + { + get => this.Fields[(int)EnvironmentSymbolFields.Permanent].AsBool(); + set => this.Set((int)EnvironmentSymbolFields.Permanent, value); + } + + public bool System + { + get => this.Fields[(int)EnvironmentSymbolFields.System].AsBool(); + set => this.Set((int)EnvironmentSymbolFields.System, value); + } + + public string ComponentRef + { + get => (string)this.Fields[(int)EnvironmentSymbolFields.ComponentRef]; + set => this.Set((int)EnvironmentSymbolFields.ComponentRef, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/ErrorSymbol.cs b/src/WixToolset.Data/Symbols/ErrorSymbol.cs new file mode 100644 index 00000000..d2994598 --- /dev/null +++ b/src/WixToolset.Data/Symbols/ErrorSymbol.cs @@ -0,0 +1,44 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition Error = new IntermediateSymbolDefinition( + SymbolDefinitionType.Error, + new[] + { + new IntermediateFieldDefinition(nameof(ErrorSymbolFields.Message), IntermediateFieldType.String), + }, + typeof(ErrorSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum ErrorSymbolFields + { + Message, + } + + public class ErrorSymbol : IntermediateSymbol + { + public ErrorSymbol() : base(SymbolDefinitions.Error, null, null) + { + } + + public ErrorSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Error, sourceLineNumber, id) + { + } + + public IntermediateField this[ErrorSymbolFields index] => this.Fields[(int)index]; + + public string Message + { + get => (string)this.Fields[(int)ErrorSymbolFields.Message]; + set => this.Set((int)ErrorSymbolFields.Message, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/EventMappingSymbol.cs b/src/WixToolset.Data/Symbols/EventMappingSymbol.cs new file mode 100644 index 00000000..fec7be3b --- /dev/null +++ b/src/WixToolset.Data/Symbols/EventMappingSymbol.cs @@ -0,0 +1,68 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition EventMapping = new IntermediateSymbolDefinition( + SymbolDefinitionType.EventMapping, + new[] + { + new IntermediateFieldDefinition(nameof(EventMappingSymbolFields.DialogRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(EventMappingSymbolFields.ControlRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(EventMappingSymbolFields.Event), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(EventMappingSymbolFields.Attribute), IntermediateFieldType.String), + }, + typeof(EventMappingSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum EventMappingSymbolFields + { + DialogRef, + ControlRef, + Event, + Attribute, + } + + public class EventMappingSymbol : IntermediateSymbol + { + public EventMappingSymbol() : base(SymbolDefinitions.EventMapping, null, null) + { + } + + public EventMappingSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.EventMapping, sourceLineNumber, id) + { + } + + public IntermediateField this[EventMappingSymbolFields index] => this.Fields[(int)index]; + + public string DialogRef + { + get => (string)this.Fields[(int)EventMappingSymbolFields.DialogRef]; + set => this.Set((int)EventMappingSymbolFields.DialogRef, value); + } + + public string ControlRef + { + get => (string)this.Fields[(int)EventMappingSymbolFields.ControlRef]; + set => this.Set((int)EventMappingSymbolFields.ControlRef, value); + } + + public string Event + { + get => (string)this.Fields[(int)EventMappingSymbolFields.Event]; + set => this.Set((int)EventMappingSymbolFields.Event, value); + } + + public string Attribute + { + get => (string)this.Fields[(int)EventMappingSymbolFields.Attribute]; + set => this.Set((int)EventMappingSymbolFields.Attribute, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/ExtensionSymbol.cs b/src/WixToolset.Data/Symbols/ExtensionSymbol.cs new file mode 100644 index 00000000..b8806971 --- /dev/null +++ b/src/WixToolset.Data/Symbols/ExtensionSymbol.cs @@ -0,0 +1,76 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition Extension = new IntermediateSymbolDefinition( + SymbolDefinitionType.Extension, + new[] + { + new IntermediateFieldDefinition(nameof(ExtensionSymbolFields.Extension), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ExtensionSymbolFields.ComponentRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ExtensionSymbolFields.ProgIdRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ExtensionSymbolFields.MimeRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ExtensionSymbolFields.FeatureRef), IntermediateFieldType.String), + }, + typeof(ExtensionSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum ExtensionSymbolFields + { + Extension, + ComponentRef, + ProgIdRef, + MimeRef, + FeatureRef, + } + + public class ExtensionSymbol : IntermediateSymbol + { + public ExtensionSymbol() : base(SymbolDefinitions.Extension, null, null) + { + } + + public ExtensionSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Extension, sourceLineNumber, id) + { + } + + public IntermediateField this[ExtensionSymbolFields index] => this.Fields[(int)index]; + + public string Extension + { + get => (string)this.Fields[(int)ExtensionSymbolFields.Extension]; + set => this.Set((int)ExtensionSymbolFields.Extension, value); + } + + public string ComponentRef + { + get => (string)this.Fields[(int)ExtensionSymbolFields.ComponentRef]; + set => this.Set((int)ExtensionSymbolFields.ComponentRef, value); + } + + public string ProgIdRef + { + get => (string)this.Fields[(int)ExtensionSymbolFields.ProgIdRef]; + set => this.Set((int)ExtensionSymbolFields.ProgIdRef, value); + } + + public string MimeRef + { + get => (string)this.Fields[(int)ExtensionSymbolFields.MimeRef]; + set => this.Set((int)ExtensionSymbolFields.MimeRef, value); + } + + public string FeatureRef + { + get => (string)this.Fields[(int)ExtensionSymbolFields.FeatureRef]; + set => this.Set((int)ExtensionSymbolFields.FeatureRef, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/ExternalFilesSymbol.cs b/src/WixToolset.Data/Symbols/ExternalFilesSymbol.cs new file mode 100644 index 00000000..87888f0b --- /dev/null +++ b/src/WixToolset.Data/Symbols/ExternalFilesSymbol.cs @@ -0,0 +1,100 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition ExternalFiles = new IntermediateSymbolDefinition( + SymbolDefinitionType.ExternalFiles, + new[] + { + new IntermediateFieldDefinition(nameof(ExternalFilesSymbolFields.Family), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ExternalFilesSymbolFields.FTK), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ExternalFilesSymbolFields.FilePath), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ExternalFilesSymbolFields.SymbolPaths), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ExternalFilesSymbolFields.IgnoreOffsets), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ExternalFilesSymbolFields.IgnoreLengths), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ExternalFilesSymbolFields.RetainOffsets), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ExternalFilesSymbolFields.Order), IntermediateFieldType.Number), + }, + typeof(ExternalFilesSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum ExternalFilesSymbolFields + { + Family, + FTK, + FilePath, + SymbolPaths, + IgnoreOffsets, + IgnoreLengths, + RetainOffsets, + Order, + } + + public class ExternalFilesSymbol : IntermediateSymbol + { + public ExternalFilesSymbol() : base(SymbolDefinitions.ExternalFiles, null, null) + { + } + + public ExternalFilesSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ExternalFiles, sourceLineNumber, id) + { + } + + public IntermediateField this[ExternalFilesSymbolFields index] => this.Fields[(int)index]; + + public string Family + { + get => (string)this.Fields[(int)ExternalFilesSymbolFields.Family]; + set => this.Set((int)ExternalFilesSymbolFields.Family, value); + } + + public string FTK + { + get => (string)this.Fields[(int)ExternalFilesSymbolFields.FTK]; + set => this.Set((int)ExternalFilesSymbolFields.FTK, value); + } + + public string FilePath + { + get => (string)this.Fields[(int)ExternalFilesSymbolFields.FilePath]; + set => this.Set((int)ExternalFilesSymbolFields.FilePath, value); + } + + public string SymbolPaths + { + get => (string)this.Fields[(int)ExternalFilesSymbolFields.SymbolPaths]; + set => this.Set((int)ExternalFilesSymbolFields.SymbolPaths, value); + } + + public string IgnoreOffsets + { + get => (string)this.Fields[(int)ExternalFilesSymbolFields.IgnoreOffsets]; + set => this.Set((int)ExternalFilesSymbolFields.IgnoreOffsets, value); + } + + public string IgnoreLengths + { + get => (string)this.Fields[(int)ExternalFilesSymbolFields.IgnoreLengths]; + set => this.Set((int)ExternalFilesSymbolFields.IgnoreLengths, value); + } + + public string RetainOffsets + { + get => (string)this.Fields[(int)ExternalFilesSymbolFields.RetainOffsets]; + set => this.Set((int)ExternalFilesSymbolFields.RetainOffsets, value); + } + + public int Order + { + get => (int)this.Fields[(int)ExternalFilesSymbolFields.Order]; + set => this.Set((int)ExternalFilesSymbolFields.Order, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/FamilyFileRangesSymbol.cs b/src/WixToolset.Data/Symbols/FamilyFileRangesSymbol.cs new file mode 100644 index 00000000..84cd5b4b --- /dev/null +++ b/src/WixToolset.Data/Symbols/FamilyFileRangesSymbol.cs @@ -0,0 +1,68 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition FamilyFileRanges = new IntermediateSymbolDefinition( + SymbolDefinitionType.FamilyFileRanges, + new[] + { + new IntermediateFieldDefinition(nameof(FamilyFileRangesSymbolFields.Family), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(FamilyFileRangesSymbolFields.FTK), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(FamilyFileRangesSymbolFields.RetainOffsets), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(FamilyFileRangesSymbolFields.RetainLengths), IntermediateFieldType.String), + }, + typeof(FamilyFileRangesSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum FamilyFileRangesSymbolFields + { + Family, + FTK, + RetainOffsets, + RetainLengths, + } + + public class FamilyFileRangesSymbol : IntermediateSymbol + { + public FamilyFileRangesSymbol() : base(SymbolDefinitions.FamilyFileRanges, null, null) + { + } + + public FamilyFileRangesSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.FamilyFileRanges, sourceLineNumber, id) + { + } + + public IntermediateField this[FamilyFileRangesSymbolFields index] => this.Fields[(int)index]; + + public string Family + { + get => (string)this.Fields[(int)FamilyFileRangesSymbolFields.Family]; + set => this.Set((int)FamilyFileRangesSymbolFields.Family, value); + } + + public string FTK + { + get => (string)this.Fields[(int)FamilyFileRangesSymbolFields.FTK]; + set => this.Set((int)FamilyFileRangesSymbolFields.FTK, value); + } + + public string RetainOffsets + { + get => (string)this.Fields[(int)FamilyFileRangesSymbolFields.RetainOffsets]; + set => this.Set((int)FamilyFileRangesSymbolFields.RetainOffsets, value); + } + + public string RetainLengths + { + get => (string)this.Fields[(int)FamilyFileRangesSymbolFields.RetainLengths]; + set => this.Set((int)FamilyFileRangesSymbolFields.RetainLengths, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/FeatureComponentsSymbol.cs b/src/WixToolset.Data/Symbols/FeatureComponentsSymbol.cs new file mode 100644 index 00000000..af51daed --- /dev/null +++ b/src/WixToolset.Data/Symbols/FeatureComponentsSymbol.cs @@ -0,0 +1,52 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition FeatureComponents = new IntermediateSymbolDefinition( + SymbolDefinitionType.FeatureComponents, + new[] + { + new IntermediateFieldDefinition(nameof(FeatureComponentsSymbolFields.FeatureRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(FeatureComponentsSymbolFields.ComponentRef), IntermediateFieldType.String), + }, + typeof(FeatureComponentsSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum FeatureComponentsSymbolFields + { + FeatureRef, + ComponentRef, + } + + public class FeatureComponentsSymbol : IntermediateSymbol + { + public FeatureComponentsSymbol() : base(SymbolDefinitions.FeatureComponents, null, null) + { + } + + public FeatureComponentsSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.FeatureComponents, sourceLineNumber, id) + { + } + + public IntermediateField this[FeatureComponentsSymbolFields index] => this.Fields[(int)index]; + + public string FeatureRef + { + get => (string)this.Fields[(int)FeatureComponentsSymbolFields.FeatureRef]; + set => this.Set((int)FeatureComponentsSymbolFields.FeatureRef, value); + } + + public string ComponentRef + { + get => (string)this.Fields[(int)FeatureComponentsSymbolFields.ComponentRef]; + set => this.Set((int)FeatureComponentsSymbolFields.ComponentRef, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/FeatureSymbol.cs b/src/WixToolset.Data/Symbols/FeatureSymbol.cs new file mode 100644 index 00000000..67972b63 --- /dev/null +++ b/src/WixToolset.Data/Symbols/FeatureSymbol.cs @@ -0,0 +1,129 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition Feature = new IntermediateSymbolDefinition( + SymbolDefinitionType.Feature, + new[] + { + new IntermediateFieldDefinition(nameof(FeatureSymbolFields.ParentFeatureRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(FeatureSymbolFields.Title), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(FeatureSymbolFields.Description), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(FeatureSymbolFields.Display), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(FeatureSymbolFields.Level), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(FeatureSymbolFields.DirectoryRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(FeatureSymbolFields.DisallowAbsent), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(FeatureSymbolFields.DisallowAdvertise), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(FeatureSymbolFields.InstallDefault), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(FeatureSymbolFields.TypicalDefault), IntermediateFieldType.Number), + }, + typeof(FeatureSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum FeatureSymbolFields + { + ParentFeatureRef, + Title, + Description, + Display, + Level, + DirectoryRef, + DisallowAbsent, + DisallowAdvertise, + InstallDefault, + TypicalDefault, + } + + public enum FeatureInstallDefault + { + Local, + Source, + FollowParent, + } + + public enum FeatureTypicalDefault + { + Install, + Advertise + } + + public class FeatureSymbol : IntermediateSymbol + { + public FeatureSymbol() : base(SymbolDefinitions.Feature, null, null) + { + } + + public FeatureSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Feature, sourceLineNumber, id) + { + } + + public IntermediateField this[FeatureSymbolFields index] => this.Fields[(int)index]; + + public string ParentFeatureRef + { + get => (string)this.Fields[(int)FeatureSymbolFields.ParentFeatureRef]; + set => this.Set((int)FeatureSymbolFields.ParentFeatureRef, value); + } + + public string Title + { + get => (string)this.Fields[(int)FeatureSymbolFields.Title]; + set => this.Set((int)FeatureSymbolFields.Title, value); + } + + public string Description + { + get => (string)this.Fields[(int)FeatureSymbolFields.Description]; + set => this.Set((int)FeatureSymbolFields.Description, value); + } + + public int Display + { + get => (int)this.Fields[(int)FeatureSymbolFields.Display]; + set => this.Set((int)FeatureSymbolFields.Display, value); + } + + public int Level + { + get => (int)this.Fields[(int)FeatureSymbolFields.Level]; + set => this.Set((int)FeatureSymbolFields.Level, value); + } + + public string DirectoryRef + { + get => (string)this.Fields[(int)FeatureSymbolFields.DirectoryRef]; + set => this.Set((int)FeatureSymbolFields.DirectoryRef, value); + } + + public bool DisallowAbsent + { + get => this.Fields[(int)FeatureSymbolFields.DisallowAbsent].AsBool(); + set => this.Set((int)FeatureSymbolFields.DisallowAbsent, value); + } + + public bool DisallowAdvertise + { + get => this.Fields[(int)FeatureSymbolFields.DisallowAdvertise].AsBool(); + set => this.Set((int)FeatureSymbolFields.DisallowAdvertise, value); + } + + public FeatureInstallDefault InstallDefault + { + get => (FeatureInstallDefault)this.Fields[(int)FeatureSymbolFields.InstallDefault].AsNumber(); + set => this.Set((int)FeatureSymbolFields.InstallDefault, (int)value); + } + + public FeatureTypicalDefault TypicalDefault + { + get => (FeatureTypicalDefault)this.Fields[(int)FeatureSymbolFields.TypicalDefault].AsNumber(); + set => this.Set((int)FeatureSymbolFields.TypicalDefault, (int)value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/FileSFPCatalogSymbol.cs b/src/WixToolset.Data/Symbols/FileSFPCatalogSymbol.cs new file mode 100644 index 00000000..3abf2915 --- /dev/null +++ b/src/WixToolset.Data/Symbols/FileSFPCatalogSymbol.cs @@ -0,0 +1,52 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition FileSFPCatalog = new IntermediateSymbolDefinition( + SymbolDefinitionType.FileSFPCatalog, + new[] + { + new IntermediateFieldDefinition(nameof(FileSFPCatalogSymbolFields.FileRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(FileSFPCatalogSymbolFields.SFPCatalogRef), IntermediateFieldType.String), + }, + typeof(FileSFPCatalogSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum FileSFPCatalogSymbolFields + { + FileRef, + SFPCatalogRef, + } + + public class FileSFPCatalogSymbol : IntermediateSymbol + { + public FileSFPCatalogSymbol() : base(SymbolDefinitions.FileSFPCatalog, null, null) + { + } + + public FileSFPCatalogSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.FileSFPCatalog, sourceLineNumber, id) + { + } + + public IntermediateField this[FileSFPCatalogSymbolFields index] => this.Fields[(int)index]; + + public string FileRef + { + get => (string)this.Fields[(int)FileSFPCatalogSymbolFields.FileRef]; + set => this.Set((int)FileSFPCatalogSymbolFields.FileRef, value); + } + + public string SFPCatalogRef + { + get => (string)this.Fields[(int)FileSFPCatalogSymbolFields.SFPCatalogRef]; + set => this.Set((int)FileSFPCatalogSymbolFields.SFPCatalogRef, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/FileSymbol.cs b/src/WixToolset.Data/Symbols/FileSymbol.cs new file mode 100644 index 00000000..7d1afdb7 --- /dev/null +++ b/src/WixToolset.Data/Symbols/FileSymbol.cs @@ -0,0 +1,257 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition File = new IntermediateSymbolDefinition( + SymbolDefinitionType.File, + new[] + { + new IntermediateFieldDefinition(nameof(FileSymbolFields.ComponentRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(FileSymbolFields.Name), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(FileSymbolFields.ShortName), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(FileSymbolFields.FileSize), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(FileSymbolFields.Version), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(FileSymbolFields.Language), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(FileSymbolFields.Attributes), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(FileSymbolFields.DirectoryRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(FileSymbolFields.DiskId), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(FileSymbolFields.Source), IntermediateFieldType.Path), + + new IntermediateFieldDefinition(nameof(FileSymbolFields.FontTitle), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(FileSymbolFields.SelfRegCost), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(FileSymbolFields.BindPath), IntermediateFieldType.String), + + new IntermediateFieldDefinition(nameof(FileSymbolFields.Sequence), IntermediateFieldType.Number), + + new IntermediateFieldDefinition(nameof(FileSymbolFields.PatchGroup), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(FileSymbolFields.PatchAttributes), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(FileSymbolFields.DeltaPatchHeaderSource), IntermediateFieldType.String), + + new IntermediateFieldDefinition(nameof(FileSymbolFields.RetainLengths), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(FileSymbolFields.IgnoreOffsets), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(FileSymbolFields.IgnoreLengths), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(FileSymbolFields.RetainOffsets), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(FileSymbolFields.SymbolPaths), IntermediateFieldType.String), + }, + typeof(FileSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + using System; + + public enum FileSymbolFields + { + ComponentRef, + Name, + ShortName, + FileSize, + Version, + Language, + Attributes, + DirectoryRef, + DiskId, + Source, + + FontTitle, + SelfRegCost, + BindPath, + + Sequence, + + PatchGroup, + PatchAttributes, + DeltaPatchHeaderSource, + + RetainLengths, + IgnoreOffsets, + IgnoreLengths, + RetainOffsets, + SymbolPaths, + } + + [Flags] + public enum FileSymbolAttributes : int + { + None = 0x0, + ReadOnly = 0x1, + Hidden = 0x2, + System = 0x4, + Vital = 0x8, + Compressed = 0x10, + Uncompressed = 0x20, + Checksum = 0x40, + GeneratedShortFileName = 0x80, + } + + /// + /// PatchAttribute values + /// + [Flags] + public enum PatchAttributeType + { + None = 0, + + /// Prevents the updating of the file that is in fact changed in the upgraded image relative to the target images. + Ignore = 1, + + /// Set if the entire file should be installed rather than creating a binary patch. + IncludeWholeFile = 2, + + /// Set to indicate that the patch is non-vital. + AllowIgnoreOnError = 4, + + /// Allowed bits. + Defined = Ignore | IncludeWholeFile | AllowIgnoreOnError + } + + public class FileSymbol : IntermediateSymbol + { + public FileSymbol() : base(SymbolDefinitions.File, null, null) + { + } + + public FileSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.File, sourceLineNumber, id) + { + } + + public IntermediateField this[FileSymbolFields index] => this.Fields[(int)index]; + + public string ComponentRef + { + get => (string)this.Fields[(int)FileSymbolFields.ComponentRef]; + set => this.Set((int)FileSymbolFields.ComponentRef, value); + } + + public string Name + { + get => (string)this.Fields[(int)FileSymbolFields.Name]; + set => this.Set((int)FileSymbolFields.Name, value); + } + + public string ShortName + { + get => (string)this.Fields[(int)FileSymbolFields.ShortName]; + set => this.Set((int)FileSymbolFields.ShortName, value); + } + + public int FileSize + { + get => (int)this.Fields[(int)FileSymbolFields.FileSize]; + set => this.Set((int)FileSymbolFields.FileSize, value); + } + + public string Version + { + get => (string)this.Fields[(int)FileSymbolFields.Version]; + set => this.Set((int)FileSymbolFields.Version, value); + } + + public string Language + { + get => (string)this.Fields[(int)FileSymbolFields.Language]; + set => this.Set((int)FileSymbolFields.Language, value); + } + + public FileSymbolAttributes Attributes + { + get => (FileSymbolAttributes)this.Fields[(int)FileSymbolFields.Attributes].AsNumber(); + set => this.Set((int)FileSymbolFields.Attributes, (int)value); + } + + public string DirectoryRef + { + get => (string)this.Fields[(int)FileSymbolFields.DirectoryRef]; + set => this.Set((int)FileSymbolFields.DirectoryRef, value); + } + + public int? DiskId + { + get => (int?)this.Fields[(int)FileSymbolFields.DiskId]; + set => this.Set((int)FileSymbolFields.DiskId, value); + } + + public IntermediateFieldPathValue Source + { + get => this.Fields[(int)FileSymbolFields.Source].AsPath(); + set => this.Set((int)FileSymbolFields.Source, value); + } + + public string FontTitle + { + get => (string)this.Fields[(int)FileSymbolFields.FontTitle]; + set => this.Set((int)FileSymbolFields.FontTitle, value); + } + + public int? SelfRegCost + { + get => (int?)this.Fields[(int)FileSymbolFields.SelfRegCost]; + set => this.Set((int)FileSymbolFields.SelfRegCost, value); + } + + public string BindPath + { + get => (string)this.Fields[(int)FileSymbolFields.BindPath]; + set => this.Set((int)FileSymbolFields.BindPath, value); + } + + public int Sequence + { + get => (int)this.Fields[(int)FileSymbolFields.Sequence]; + set => this.Set((int)FileSymbolFields.Sequence, value); + } + + public int? PatchGroup + { + get => (int?)this.Fields[(int)FileSymbolFields.PatchGroup]; + set => this.Set((int)FileSymbolFields.PatchGroup, value); + } + + public PatchAttributeType? PatchAttributes + { + get => (PatchAttributeType?)this.Fields[(int)FileSymbolFields.PatchAttributes].AsNullableNumber(); + set => this.Set((int)FileSymbolFields.PatchAttributes, (int?)value); + } + + public string DeltaPatchHeaderSource + { + get => (string)this.Fields[(int)FileSymbolFields.DeltaPatchHeaderSource]; + set => this.Set((int)FileSymbolFields.DeltaPatchHeaderSource, value); + } + + public string RetainLengths + { + get => (string)this.Fields[(int)FileSymbolFields.RetainLengths]; + set => this.Set((int)FileSymbolFields.RetainLengths, value); + } + + public string IgnoreOffsets + { + get => (string)this.Fields[(int)FileSymbolFields.IgnoreOffsets]; + set => this.Set((int)FileSymbolFields.IgnoreOffsets, value); + } + + public string IgnoreLengths + { + get => (string)this.Fields[(int)FileSymbolFields.IgnoreLengths]; + set => this.Set((int)FileSymbolFields.IgnoreLengths, value); + } + + public string RetainOffsets + { + get => (string)this.Fields[(int)FileSymbolFields.RetainOffsets]; + set => this.Set((int)FileSymbolFields.RetainOffsets, value); + } + + public string SymbolPaths + { + get => (string)this.Fields[(int)FileSymbolFields.SymbolPaths]; + set => this.Set((int)FileSymbolFields.SymbolPaths, value); + } + } +} diff --git a/src/WixToolset.Data/Symbols/IconSymbol.cs b/src/WixToolset.Data/Symbols/IconSymbol.cs new file mode 100644 index 00000000..f3c825ec --- /dev/null +++ b/src/WixToolset.Data/Symbols/IconSymbol.cs @@ -0,0 +1,44 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition Icon = new IntermediateSymbolDefinition( + SymbolDefinitionType.Icon, + new[] + { + new IntermediateFieldDefinition(nameof(IconSymbolFields.Data), IntermediateFieldType.Path), + }, + typeof(IconSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum IconSymbolFields + { + Data, + } + + public class IconSymbol : IntermediateSymbol + { + public IconSymbol() : base(SymbolDefinitions.Icon, null, null) + { + } + + public IconSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Icon, sourceLineNumber, id) + { + } + + public IntermediateField this[IconSymbolFields index] => this.Fields[(int)index]; + + public IntermediateFieldPathValue Data + { + get => this.Fields[(int)IconSymbolFields.Data].AsPath(); + set => this.Set((int)IconSymbolFields.Data, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/ImageFamiliesSymbol.cs b/src/WixToolset.Data/Symbols/ImageFamiliesSymbol.cs new file mode 100644 index 00000000..090628ef --- /dev/null +++ b/src/WixToolset.Data/Symbols/ImageFamiliesSymbol.cs @@ -0,0 +1,84 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition ImageFamilies = new IntermediateSymbolDefinition( + SymbolDefinitionType.ImageFamilies, + new[] + { + new IntermediateFieldDefinition(nameof(ImageFamiliesSymbolFields.Family), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ImageFamiliesSymbolFields.MediaSrcPropName), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ImageFamiliesSymbolFields.MediaDiskId), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(ImageFamiliesSymbolFields.FileSequenceStart), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(ImageFamiliesSymbolFields.DiskPrompt), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ImageFamiliesSymbolFields.VolumeLabel), IntermediateFieldType.String), + }, + typeof(ImageFamiliesSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum ImageFamiliesSymbolFields + { + Family, + MediaSrcPropName, + MediaDiskId, + FileSequenceStart, + DiskPrompt, + VolumeLabel, + } + + public class ImageFamiliesSymbol : IntermediateSymbol + { + public ImageFamiliesSymbol() : base(SymbolDefinitions.ImageFamilies, null, null) + { + } + + public ImageFamiliesSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ImageFamilies, sourceLineNumber, id) + { + } + + public IntermediateField this[ImageFamiliesSymbolFields index] => this.Fields[(int)index]; + + public string Family + { + get => (string)this.Fields[(int)ImageFamiliesSymbolFields.Family]; + set => this.Set((int)ImageFamiliesSymbolFields.Family, value); + } + + public string MediaSrcPropName + { + get => (string)this.Fields[(int)ImageFamiliesSymbolFields.MediaSrcPropName]; + set => this.Set((int)ImageFamiliesSymbolFields.MediaSrcPropName, value); + } + + public int? MediaDiskId + { + get => (int?)this.Fields[(int)ImageFamiliesSymbolFields.MediaDiskId]; + set => this.Set((int)ImageFamiliesSymbolFields.MediaDiskId, value); + } + + public int? FileSequenceStart + { + get => (int?)this.Fields[(int)ImageFamiliesSymbolFields.FileSequenceStart]; + set => this.Set((int)ImageFamiliesSymbolFields.FileSequenceStart, value); + } + + public string DiskPrompt + { + get => (string)this.Fields[(int)ImageFamiliesSymbolFields.DiskPrompt]; + set => this.Set((int)ImageFamiliesSymbolFields.DiskPrompt, value); + } + + public string VolumeLabel + { + get => (string)this.Fields[(int)ImageFamiliesSymbolFields.VolumeLabel]; + set => this.Set((int)ImageFamiliesSymbolFields.VolumeLabel, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/IniFileSymbol.cs b/src/WixToolset.Data/Symbols/IniFileSymbol.cs new file mode 100644 index 00000000..e23f6039 --- /dev/null +++ b/src/WixToolset.Data/Symbols/IniFileSymbol.cs @@ -0,0 +1,92 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition IniFile = new IntermediateSymbolDefinition( + SymbolDefinitionType.IniFile, + new[] + { + new IntermediateFieldDefinition(nameof(IniFileSymbolFields.FileName), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IniFileSymbolFields.DirProperty), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IniFileSymbolFields.Section), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IniFileSymbolFields.Key), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IniFileSymbolFields.Value), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IniFileSymbolFields.Action), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(IniFileSymbolFields.ComponentRef), IntermediateFieldType.String), + }, + typeof(IniFileSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum IniFileSymbolFields + { + FileName, + DirProperty, + Section, + Key, + Value, + Action, + ComponentRef, + } + + public class IniFileSymbol : IntermediateSymbol + { + public IniFileSymbol() : base(SymbolDefinitions.IniFile, null, null) + { + } + + public IniFileSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.IniFile, sourceLineNumber, id) + { + } + + public IntermediateField this[IniFileSymbolFields index] => this.Fields[(int)index]; + + public string FileName + { + get => (string)this.Fields[(int)IniFileSymbolFields.FileName]; + set => this.Set((int)IniFileSymbolFields.FileName, value); + } + + public string DirProperty + { + get => (string)this.Fields[(int)IniFileSymbolFields.DirProperty]; + set => this.Set((int)IniFileSymbolFields.DirProperty, value); + } + + public string Section + { + get => (string)this.Fields[(int)IniFileSymbolFields.Section]; + set => this.Set((int)IniFileSymbolFields.Section, value); + } + + public string Key + { + get => (string)this.Fields[(int)IniFileSymbolFields.Key]; + set => this.Set((int)IniFileSymbolFields.Key, value); + } + + public string Value + { + get => (string)this.Fields[(int)IniFileSymbolFields.Value]; + set => this.Set((int)IniFileSymbolFields.Value, value); + } + + public InifFileActionType Action + { + get => (InifFileActionType)this.Fields[(int)IniFileSymbolFields.Action]?.AsNumber(); + set => this.Set((int)IniFileSymbolFields.Action, (int)value); + } + + public string ComponentRef + { + get => (string)this.Fields[(int)IniFileSymbolFields.ComponentRef]; + set => this.Set((int)IniFileSymbolFields.ComponentRef, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/IniLocatorSymbol.cs b/src/WixToolset.Data/Symbols/IniLocatorSymbol.cs new file mode 100644 index 00000000..64351681 --- /dev/null +++ b/src/WixToolset.Data/Symbols/IniLocatorSymbol.cs @@ -0,0 +1,84 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition IniLocator = new IntermediateSymbolDefinition( + SymbolDefinitionType.IniLocator, + new[] + { + new IntermediateFieldDefinition(nameof(IniLocatorSymbolFields.SignatureRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IniLocatorSymbolFields.FileName), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IniLocatorSymbolFields.Section), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IniLocatorSymbolFields.Key), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IniLocatorSymbolFields.Field), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(IniLocatorSymbolFields.Type), IntermediateFieldType.Number), + }, + typeof(IniLocatorSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum IniLocatorSymbolFields + { + SignatureRef, + FileName, + Section, + Key, + Field, + Type, + } + + public class IniLocatorSymbol : IntermediateSymbol + { + public IniLocatorSymbol() : base(SymbolDefinitions.IniLocator, null, null) + { + } + + public IniLocatorSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.IniLocator, sourceLineNumber, id) + { + } + + public IntermediateField this[IniLocatorSymbolFields index] => this.Fields[(int)index]; + + public string SignatureRef + { + get => (string)this.Fields[(int)IniLocatorSymbolFields.SignatureRef]; + set => this.Set((int)IniLocatorSymbolFields.SignatureRef, value); + } + + public string FileName + { + get => (string)this.Fields[(int)IniLocatorSymbolFields.FileName]; + set => this.Set((int)IniLocatorSymbolFields.FileName, value); + } + + public string Section + { + get => (string)this.Fields[(int)IniLocatorSymbolFields.Section]; + set => this.Set((int)IniLocatorSymbolFields.Section, value); + } + + public string Key + { + get => (string)this.Fields[(int)IniLocatorSymbolFields.Key]; + set => this.Set((int)IniLocatorSymbolFields.Key, value); + } + + public int? Field + { + get => (int?)this.Fields[(int)IniLocatorSymbolFields.Field]; + set => this.Set((int)IniLocatorSymbolFields.Field, value); + } + + public int? Type + { + get => (int?)this.Fields[(int)IniLocatorSymbolFields.Type]; + set => this.Set((int)IniLocatorSymbolFields.Type, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/InifFileActionSymbol.cs b/src/WixToolset.Data/Symbols/InifFileActionSymbol.cs new file mode 100644 index 00000000..8b642323 --- /dev/null +++ b/src/WixToolset.Data/Symbols/InifFileActionSymbol.cs @@ -0,0 +1,13 @@ +// 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. + +namespace WixToolset.Data.Symbols +{ + public enum InifFileActionType + { + AddLine, + AddTag, + CreateLine, + RemoveLine, + RemoveTag, + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/IsolatedComponentSymbol.cs b/src/WixToolset.Data/Symbols/IsolatedComponentSymbol.cs new file mode 100644 index 00000000..681f1030 --- /dev/null +++ b/src/WixToolset.Data/Symbols/IsolatedComponentSymbol.cs @@ -0,0 +1,52 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition IsolatedComponent = new IntermediateSymbolDefinition( + SymbolDefinitionType.IsolatedComponent, + new[] + { + new IntermediateFieldDefinition(nameof(IsolatedComponentSymbolFields.SharedComponentRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IsolatedComponentSymbolFields.ApplicationComponentRef), IntermediateFieldType.String), + }, + typeof(IsolatedComponentSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum IsolatedComponentSymbolFields + { + SharedComponentRef, + ApplicationComponentRef, + } + + public class IsolatedComponentSymbol : IntermediateSymbol + { + public IsolatedComponentSymbol() : base(SymbolDefinitions.IsolatedComponent, null, null) + { + } + + public IsolatedComponentSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.IsolatedComponent, sourceLineNumber, id) + { + } + + public IntermediateField this[IsolatedComponentSymbolFields index] => this.Fields[(int)index]; + + public string SharedComponentRef + { + get => (string)this.Fields[(int)IsolatedComponentSymbolFields.SharedComponentRef]; + set => this.Set((int)IsolatedComponentSymbolFields.SharedComponentRef, value); + } + + public string ApplicationComponentRef + { + get => (string)this.Fields[(int)IsolatedComponentSymbolFields.ApplicationComponentRef]; + set => this.Set((int)IsolatedComponentSymbolFields.ApplicationComponentRef, value); + } + } +} diff --git a/src/WixToolset.Data/Symbols/LaunchConditionSymbol.cs b/src/WixToolset.Data/Symbols/LaunchConditionSymbol.cs new file mode 100644 index 00000000..a160f25f --- /dev/null +++ b/src/WixToolset.Data/Symbols/LaunchConditionSymbol.cs @@ -0,0 +1,52 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition LaunchCondition = new IntermediateSymbolDefinition( + SymbolDefinitionType.LaunchCondition, + new[] + { + new IntermediateFieldDefinition(nameof(LaunchConditionSymbolFields.Condition), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(LaunchConditionSymbolFields.Description), IntermediateFieldType.String), + }, + typeof(LaunchConditionSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum LaunchConditionSymbolFields + { + Condition, + Description, + } + + public class LaunchConditionSymbol : IntermediateSymbol + { + public LaunchConditionSymbol() : base(SymbolDefinitions.LaunchCondition, null, null) + { + } + + public LaunchConditionSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.LaunchCondition, sourceLineNumber, id) + { + } + + public IntermediateField this[LaunchConditionSymbolFields index] => this.Fields[(int)index]; + + public string Condition + { + get => (string)this.Fields[(int)LaunchConditionSymbolFields.Condition]; + set => this.Set((int)LaunchConditionSymbolFields.Condition, value); + } + + public string Description + { + get => (string)this.Fields[(int)LaunchConditionSymbolFields.Description]; + set => this.Set((int)LaunchConditionSymbolFields.Description, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/ListBoxSymbol.cs b/src/WixToolset.Data/Symbols/ListBoxSymbol.cs new file mode 100644 index 00000000..174327d1 --- /dev/null +++ b/src/WixToolset.Data/Symbols/ListBoxSymbol.cs @@ -0,0 +1,68 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition ListBox = new IntermediateSymbolDefinition( + SymbolDefinitionType.ListBox, + new[] + { + new IntermediateFieldDefinition(nameof(ListBoxSymbolFields.Property), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ListBoxSymbolFields.Order), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(ListBoxSymbolFields.Value), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ListBoxSymbolFields.Text), IntermediateFieldType.String), + }, + typeof(ListBoxSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum ListBoxSymbolFields + { + Property, + Order, + Value, + Text, + } + + public class ListBoxSymbol : IntermediateSymbol + { + public ListBoxSymbol() : base(SymbolDefinitions.ListBox, null, null) + { + } + + public ListBoxSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ListBox, sourceLineNumber, id) + { + } + + public IntermediateField this[ListBoxSymbolFields index] => this.Fields[(int)index]; + + public string Property + { + get => (string)this.Fields[(int)ListBoxSymbolFields.Property]; + set => this.Set((int)ListBoxSymbolFields.Property, value); + } + + public int Order + { + get => (int)this.Fields[(int)ListBoxSymbolFields.Order]; + set => this.Set((int)ListBoxSymbolFields.Order, value); + } + + public string Value + { + get => (string)this.Fields[(int)ListBoxSymbolFields.Value]; + set => this.Set((int)ListBoxSymbolFields.Value, value); + } + + public string Text + { + get => (string)this.Fields[(int)ListBoxSymbolFields.Text]; + set => this.Set((int)ListBoxSymbolFields.Text, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/ListViewSymbol.cs b/src/WixToolset.Data/Symbols/ListViewSymbol.cs new file mode 100644 index 00000000..09543ab1 --- /dev/null +++ b/src/WixToolset.Data/Symbols/ListViewSymbol.cs @@ -0,0 +1,76 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition ListView = new IntermediateSymbolDefinition( + SymbolDefinitionType.ListView, + new[] + { + new IntermediateFieldDefinition(nameof(ListViewSymbolFields.Property), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ListViewSymbolFields.Order), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(ListViewSymbolFields.Value), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ListViewSymbolFields.Text), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ListViewSymbolFields.BinaryRef), IntermediateFieldType.String), + }, + typeof(ListViewSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum ListViewSymbolFields + { + Property, + Order, + Value, + Text, + BinaryRef, + } + + public class ListViewSymbol : IntermediateSymbol + { + public ListViewSymbol() : base(SymbolDefinitions.ListView, null, null) + { + } + + public ListViewSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ListView, sourceLineNumber, id) + { + } + + public IntermediateField this[ListViewSymbolFields index] => this.Fields[(int)index]; + + public string Property + { + get => (string)this.Fields[(int)ListViewSymbolFields.Property]; + set => this.Set((int)ListViewSymbolFields.Property, value); + } + + public int Order + { + get => (int)this.Fields[(int)ListViewSymbolFields.Order]; + set => this.Set((int)ListViewSymbolFields.Order, value); + } + + public string Value + { + get => (string)this.Fields[(int)ListViewSymbolFields.Value]; + set => this.Set((int)ListViewSymbolFields.Value, value); + } + + public string Text + { + get => (string)this.Fields[(int)ListViewSymbolFields.Text]; + set => this.Set((int)ListViewSymbolFields.Text, value); + } + + public string BinaryRef + { + get => (string)this.Fields[(int)ListViewSymbolFields.BinaryRef]; + set => this.Set((int)ListViewSymbolFields.BinaryRef, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/LocatorSymbol.cs b/src/WixToolset.Data/Symbols/LocatorSymbol.cs new file mode 100644 index 00000000..6f136389 --- /dev/null +++ b/src/WixToolset.Data/Symbols/LocatorSymbol.cs @@ -0,0 +1,12 @@ +// 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. + +namespace WixToolset.Data.Symbols +{ + public enum LocatorType + { + Directory, + Filename, + RawValue, + x64 = 16, + } +} diff --git a/src/WixToolset.Data/Symbols/LockPermissionsSymbol.cs b/src/WixToolset.Data/Symbols/LockPermissionsSymbol.cs new file mode 100644 index 00000000..12562fd1 --- /dev/null +++ b/src/WixToolset.Data/Symbols/LockPermissionsSymbol.cs @@ -0,0 +1,76 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition LockPermissions = new IntermediateSymbolDefinition( + SymbolDefinitionType.LockPermissions, + new[] + { + new IntermediateFieldDefinition(nameof(LockPermissionsSymbolFields.LockObject), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(LockPermissionsSymbolFields.Table), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(LockPermissionsSymbolFields.Domain), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(LockPermissionsSymbolFields.User), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(LockPermissionsSymbolFields.Permission), IntermediateFieldType.Number), + }, + typeof(LockPermissionsSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum LockPermissionsSymbolFields + { + LockObject, + Table, + Domain, + User, + Permission, + } + + public class LockPermissionsSymbol : IntermediateSymbol + { + public LockPermissionsSymbol() : base(SymbolDefinitions.LockPermissions, null, null) + { + } + + public LockPermissionsSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.LockPermissions, sourceLineNumber, id) + { + } + + public IntermediateField this[LockPermissionsSymbolFields index] => this.Fields[(int)index]; + + public string LockObject + { + get => (string)this.Fields[(int)LockPermissionsSymbolFields.LockObject]; + set => this.Set((int)LockPermissionsSymbolFields.LockObject, value); + } + + public string Table + { + get => (string)this.Fields[(int)LockPermissionsSymbolFields.Table]; + set => this.Set((int)LockPermissionsSymbolFields.Table, value); + } + + public string Domain + { + get => (string)this.Fields[(int)LockPermissionsSymbolFields.Domain]; + set => this.Set((int)LockPermissionsSymbolFields.Domain, value); + } + + public string User + { + get => (string)this.Fields[(int)LockPermissionsSymbolFields.User]; + set => this.Set((int)LockPermissionsSymbolFields.User, value); + } + + public int? Permission + { + get => (int?)this.Fields[(int)LockPermissionsSymbolFields.Permission]; + set => this.Set((int)LockPermissionsSymbolFields.Permission, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/MIMESymbol.cs b/src/WixToolset.Data/Symbols/MIMESymbol.cs new file mode 100644 index 00000000..f66d05b8 --- /dev/null +++ b/src/WixToolset.Data/Symbols/MIMESymbol.cs @@ -0,0 +1,60 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition MIME = new IntermediateSymbolDefinition( + SymbolDefinitionType.MIME, + new[] + { + new IntermediateFieldDefinition(nameof(MIMESymbolFields.ContentType), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(MIMESymbolFields.ExtensionRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(MIMESymbolFields.CLSID), IntermediateFieldType.String), + }, + typeof(MIMESymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum MIMESymbolFields + { + ContentType, + ExtensionRef, + CLSID, + } + + public class MIMESymbol : IntermediateSymbol + { + public MIMESymbol() : base(SymbolDefinitions.MIME, null, null) + { + } + + public MIMESymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.MIME, sourceLineNumber, id) + { + } + + public IntermediateField this[MIMESymbolFields index] => this.Fields[(int)index]; + + public string ContentType + { + get => (string)this.Fields[(int)MIMESymbolFields.ContentType]; + set => this.Set((int)MIMESymbolFields.ContentType, value); + } + + public string ExtensionRef + { + get => (string)this.Fields[(int)MIMESymbolFields.ExtensionRef]; + set => this.Set((int)MIMESymbolFields.ExtensionRef, value); + } + + public string CLSID + { + get => (string)this.Fields[(int)MIMESymbolFields.CLSID]; + set => this.Set((int)MIMESymbolFields.CLSID, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/MediaSymbol.cs b/src/WixToolset.Data/Symbols/MediaSymbol.cs new file mode 100644 index 00000000..f216cddc --- /dev/null +++ b/src/WixToolset.Data/Symbols/MediaSymbol.cs @@ -0,0 +1,100 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition Media = new IntermediateSymbolDefinition( + SymbolDefinitionType.Media, + new[] + { + new IntermediateFieldDefinition(nameof(MediaSymbolFields.DiskId), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(MediaSymbolFields.LastSequence), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(MediaSymbolFields.DiskPrompt), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(MediaSymbolFields.Cabinet), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(MediaSymbolFields.VolumeLabel), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(MediaSymbolFields.Source), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(MediaSymbolFields.CompressionLevel), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(MediaSymbolFields.Layout), IntermediateFieldType.String), + }, + typeof(MediaSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum MediaSymbolFields + { + DiskId, + LastSequence, + DiskPrompt, + Cabinet, + VolumeLabel, + Source, + CompressionLevel, + Layout, + } + + public class MediaSymbol : IntermediateSymbol + { + public MediaSymbol() : base(SymbolDefinitions.Media, null, null) + { + } + + public MediaSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Media, sourceLineNumber, id) + { + } + + public IntermediateField this[MediaSymbolFields index] => this.Fields[(int)index]; + + public int DiskId + { + get => (int)this.Fields[(int)MediaSymbolFields.DiskId]; + set => this.Set((int)MediaSymbolFields.DiskId, value); + } + + public int? LastSequence + { + get => (int?)this.Fields[(int)MediaSymbolFields.LastSequence]; + set => this.Set((int)MediaSymbolFields.LastSequence, value); + } + + public string DiskPrompt + { + get => (string)this.Fields[(int)MediaSymbolFields.DiskPrompt]; + set => this.Set((int)MediaSymbolFields.DiskPrompt, value); + } + + public string Cabinet + { + get => (string)this.Fields[(int)MediaSymbolFields.Cabinet]; + set => this.Set((int)MediaSymbolFields.Cabinet, value); + } + + public string VolumeLabel + { + get => (string)this.Fields[(int)MediaSymbolFields.VolumeLabel]; + set => this.Set((int)MediaSymbolFields.VolumeLabel, value); + } + + public string Source + { + get => (string)this.Fields[(int)MediaSymbolFields.Source]; + set => this.Set((int)MediaSymbolFields.Source, value); + } + + public CompressionLevel? CompressionLevel + { + get => (CompressionLevel?)this.Fields[(int)MediaSymbolFields.CompressionLevel].AsNullableNumber(); + set => this.Set((int)MediaSymbolFields.CompressionLevel, (int?)value); + } + + public string Layout + { + get => (string)this.Fields[(int)MediaSymbolFields.Layout]; + set => this.Set((int)MediaSymbolFields.Layout, value); + } + } +} diff --git a/src/WixToolset.Data/Symbols/ModuleComponentsSymbol.cs b/src/WixToolset.Data/Symbols/ModuleComponentsSymbol.cs new file mode 100644 index 00000000..287819ab --- /dev/null +++ b/src/WixToolset.Data/Symbols/ModuleComponentsSymbol.cs @@ -0,0 +1,60 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition ModuleComponents = new IntermediateSymbolDefinition( + SymbolDefinitionType.ModuleComponents, + new[] + { + new IntermediateFieldDefinition(nameof(ModuleComponentsSymbolFields.Component), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ModuleComponentsSymbolFields.ModuleID), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ModuleComponentsSymbolFields.Language), IntermediateFieldType.Number), + }, + typeof(ModuleComponentsSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum ModuleComponentsSymbolFields + { + Component, + ModuleID, + Language, + } + + public class ModuleComponentsSymbol : IntermediateSymbol + { + public ModuleComponentsSymbol() : base(SymbolDefinitions.ModuleComponents, null, null) + { + } + + public ModuleComponentsSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ModuleComponents, sourceLineNumber, id) + { + } + + public IntermediateField this[ModuleComponentsSymbolFields index] => this.Fields[(int)index]; + + public string Component + { + get => (string)this.Fields[(int)ModuleComponentsSymbolFields.Component]; + set => this.Set((int)ModuleComponentsSymbolFields.Component, value); + } + + public string ModuleID + { + get => (string)this.Fields[(int)ModuleComponentsSymbolFields.ModuleID]; + set => this.Set((int)ModuleComponentsSymbolFields.ModuleID, value); + } + + public int Language + { + get => (int)this.Fields[(int)ModuleComponentsSymbolFields.Language]; + set => this.Set((int)ModuleComponentsSymbolFields.Language, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/ModuleConfigurationSymbol.cs b/src/WixToolset.Data/Symbols/ModuleConfigurationSymbol.cs new file mode 100644 index 00000000..8188dc87 --- /dev/null +++ b/src/WixToolset.Data/Symbols/ModuleConfigurationSymbol.cs @@ -0,0 +1,116 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition ModuleConfiguration = new IntermediateSymbolDefinition( + SymbolDefinitionType.ModuleConfiguration, + new[] + { + new IntermediateFieldDefinition(nameof(ModuleConfigurationSymbolFields.Format), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(ModuleConfigurationSymbolFields.Type), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ModuleConfigurationSymbolFields.ContextData), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ModuleConfigurationSymbolFields.DefaultValue), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ModuleConfigurationSymbolFields.KeyNoOrphan), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(ModuleConfigurationSymbolFields.NonNullable), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(ModuleConfigurationSymbolFields.DisplayName), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ModuleConfigurationSymbolFields.Description), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ModuleConfigurationSymbolFields.HelpLocation), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ModuleConfigurationSymbolFields.HelpKeyword), IntermediateFieldType.String), + }, + typeof(ModuleConfigurationSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum ModuleConfigurationSymbolFields + { + Format, + Type, + ContextData, + DefaultValue, + KeyNoOrphan, + NonNullable, + DisplayName, + Description, + HelpLocation, + HelpKeyword, + } + + public class ModuleConfigurationSymbol : IntermediateSymbol + { + public ModuleConfigurationSymbol() : base(SymbolDefinitions.ModuleConfiguration, null, null) + { + } + + public ModuleConfigurationSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ModuleConfiguration, sourceLineNumber, id) + { + } + + public IntermediateField this[ModuleConfigurationSymbolFields index] => this.Fields[(int)index]; + + public int Format + { + get => (int)this.Fields[(int)ModuleConfigurationSymbolFields.Format]; + set => this.Set((int)ModuleConfigurationSymbolFields.Format, value); + } + + public string Type + { + get => (string)this.Fields[(int)ModuleConfigurationSymbolFields.Type]; + set => this.Set((int)ModuleConfigurationSymbolFields.Type, value); + } + + public string ContextData + { + get => (string)this.Fields[(int)ModuleConfigurationSymbolFields.ContextData]; + set => this.Set((int)ModuleConfigurationSymbolFields.ContextData, value); + } + + public string DefaultValue + { + get => (string)this.Fields[(int)ModuleConfigurationSymbolFields.DefaultValue]; + set => this.Set((int)ModuleConfigurationSymbolFields.DefaultValue, value); + } + + public bool KeyNoOrphan + { + get => this.Fields[(int)ModuleConfigurationSymbolFields.KeyNoOrphan].AsBool(); + set => this.Set((int)ModuleConfigurationSymbolFields.KeyNoOrphan, value); + } + + public bool NonNullable + { + get => this.Fields[(int)ModuleConfigurationSymbolFields.NonNullable].AsBool(); + set => this.Set((int)ModuleConfigurationSymbolFields.NonNullable, value); + } + + public string DisplayName + { + get => (string)this.Fields[(int)ModuleConfigurationSymbolFields.DisplayName]; + set => this.Set((int)ModuleConfigurationSymbolFields.DisplayName, value); + } + + public string Description + { + get => (string)this.Fields[(int)ModuleConfigurationSymbolFields.Description]; + set => this.Set((int)ModuleConfigurationSymbolFields.Description, value); + } + + public string HelpLocation + { + get => (string)this.Fields[(int)ModuleConfigurationSymbolFields.HelpLocation]; + set => this.Set((int)ModuleConfigurationSymbolFields.HelpLocation, value); + } + + public string HelpKeyword + { + get => (string)this.Fields[(int)ModuleConfigurationSymbolFields.HelpKeyword]; + set => this.Set((int)ModuleConfigurationSymbolFields.HelpKeyword, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/ModuleDependencySymbol.cs b/src/WixToolset.Data/Symbols/ModuleDependencySymbol.cs new file mode 100644 index 00000000..80d2d5f6 --- /dev/null +++ b/src/WixToolset.Data/Symbols/ModuleDependencySymbol.cs @@ -0,0 +1,76 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition ModuleDependency = new IntermediateSymbolDefinition( + SymbolDefinitionType.ModuleDependency, + new[] + { + new IntermediateFieldDefinition(nameof(ModuleDependencySymbolFields.ModuleID), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ModuleDependencySymbolFields.ModuleLanguage), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(ModuleDependencySymbolFields.RequiredID), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ModuleDependencySymbolFields.RequiredLanguage), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(ModuleDependencySymbolFields.RequiredVersion), IntermediateFieldType.String), + }, + typeof(ModuleDependencySymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum ModuleDependencySymbolFields + { + ModuleID, + ModuleLanguage, + RequiredID, + RequiredLanguage, + RequiredVersion, + } + + public class ModuleDependencySymbol : IntermediateSymbol + { + public ModuleDependencySymbol() : base(SymbolDefinitions.ModuleDependency, null, null) + { + } + + public ModuleDependencySymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ModuleDependency, sourceLineNumber, id) + { + } + + public IntermediateField this[ModuleDependencySymbolFields index] => this.Fields[(int)index]; + + public string ModuleID + { + get => (string)this.Fields[(int)ModuleDependencySymbolFields.ModuleID]; + set => this.Set((int)ModuleDependencySymbolFields.ModuleID, value); + } + + public int ModuleLanguage + { + get => (int)this.Fields[(int)ModuleDependencySymbolFields.ModuleLanguage]; + set => this.Set((int)ModuleDependencySymbolFields.ModuleLanguage, value); + } + + public string RequiredID + { + get => (string)this.Fields[(int)ModuleDependencySymbolFields.RequiredID]; + set => this.Set((int)ModuleDependencySymbolFields.RequiredID, value); + } + + public int RequiredLanguage + { + get => (int)this.Fields[(int)ModuleDependencySymbolFields.RequiredLanguage]; + set => this.Set((int)ModuleDependencySymbolFields.RequiredLanguage, value); + } + + public string RequiredVersion + { + get => (string)this.Fields[(int)ModuleDependencySymbolFields.RequiredVersion]; + set => this.Set((int)ModuleDependencySymbolFields.RequiredVersion, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/ModuleExclusionSymbol.cs b/src/WixToolset.Data/Symbols/ModuleExclusionSymbol.cs new file mode 100644 index 00000000..0c45abfa --- /dev/null +++ b/src/WixToolset.Data/Symbols/ModuleExclusionSymbol.cs @@ -0,0 +1,84 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition ModuleExclusion = new IntermediateSymbolDefinition( + SymbolDefinitionType.ModuleExclusion, + new[] + { + new IntermediateFieldDefinition(nameof(ModuleExclusionSymbolFields.ModuleID), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ModuleExclusionSymbolFields.ModuleLanguage), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(ModuleExclusionSymbolFields.ExcludedID), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ModuleExclusionSymbolFields.ExcludedLanguage), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(ModuleExclusionSymbolFields.ExcludedMinVersion), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ModuleExclusionSymbolFields.ExcludedMaxVersion), IntermediateFieldType.String), + }, + typeof(ModuleExclusionSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum ModuleExclusionSymbolFields + { + ModuleID, + ModuleLanguage, + ExcludedID, + ExcludedLanguage, + ExcludedMinVersion, + ExcludedMaxVersion, + } + + public class ModuleExclusionSymbol : IntermediateSymbol + { + public ModuleExclusionSymbol() : base(SymbolDefinitions.ModuleExclusion, null, null) + { + } + + public ModuleExclusionSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ModuleExclusion, sourceLineNumber, id) + { + } + + public IntermediateField this[ModuleExclusionSymbolFields index] => this.Fields[(int)index]; + + public string ModuleID + { + get => (string)this.Fields[(int)ModuleExclusionSymbolFields.ModuleID]; + set => this.Set((int)ModuleExclusionSymbolFields.ModuleID, value); + } + + public int ModuleLanguage + { + get => (int)this.Fields[(int)ModuleExclusionSymbolFields.ModuleLanguage]; + set => this.Set((int)ModuleExclusionSymbolFields.ModuleLanguage, value); + } + + public string ExcludedID + { + get => (string)this.Fields[(int)ModuleExclusionSymbolFields.ExcludedID]; + set => this.Set((int)ModuleExclusionSymbolFields.ExcludedID, value); + } + + public int ExcludedLanguage + { + get => (int)this.Fields[(int)ModuleExclusionSymbolFields.ExcludedLanguage]; + set => this.Set((int)ModuleExclusionSymbolFields.ExcludedLanguage, value); + } + + public string ExcludedMinVersion + { + get => (string)this.Fields[(int)ModuleExclusionSymbolFields.ExcludedMinVersion]; + set => this.Set((int)ModuleExclusionSymbolFields.ExcludedMinVersion, value); + } + + public string ExcludedMaxVersion + { + get => (string)this.Fields[(int)ModuleExclusionSymbolFields.ExcludedMaxVersion]; + set => this.Set((int)ModuleExclusionSymbolFields.ExcludedMaxVersion, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/ModuleIgnoreTableSymbol.cs b/src/WixToolset.Data/Symbols/ModuleIgnoreTableSymbol.cs new file mode 100644 index 00000000..07302df8 --- /dev/null +++ b/src/WixToolset.Data/Symbols/ModuleIgnoreTableSymbol.cs @@ -0,0 +1,36 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition ModuleIgnoreTable = new IntermediateSymbolDefinition( + SymbolDefinitionType.ModuleIgnoreTable, + new IntermediateFieldDefinition[] + { + }, + typeof(ModuleIgnoreTableSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum ModuleIgnoreTableSymbolFields + { + } + + public class ModuleIgnoreTableSymbol : IntermediateSymbol + { + public ModuleIgnoreTableSymbol() : base(SymbolDefinitions.ModuleIgnoreTable, null, null) + { + } + + public ModuleIgnoreTableSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ModuleIgnoreTable, sourceLineNumber, id) + { + } + + public IntermediateField this[ModuleIgnoreTableSymbolFields index] => this.Fields[(int)index]; + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/ModuleSignatureSymbol.cs b/src/WixToolset.Data/Symbols/ModuleSignatureSymbol.cs new file mode 100644 index 00000000..5f6ded09 --- /dev/null +++ b/src/WixToolset.Data/Symbols/ModuleSignatureSymbol.cs @@ -0,0 +1,60 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition ModuleSignature = new IntermediateSymbolDefinition( + SymbolDefinitionType.ModuleSignature, + new[] + { + new IntermediateFieldDefinition(nameof(ModuleSignatureSymbolFields.ModuleID), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ModuleSignatureSymbolFields.Language), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(ModuleSignatureSymbolFields.Version), IntermediateFieldType.String), + }, + typeof(ModuleSignatureSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum ModuleSignatureSymbolFields + { + ModuleID, + Language, + Version, + } + + public class ModuleSignatureSymbol : IntermediateSymbol + { + public ModuleSignatureSymbol() : base(SymbolDefinitions.ModuleSignature, null, null) + { + } + + public ModuleSignatureSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ModuleSignature, sourceLineNumber, id) + { + } + + public IntermediateField this[ModuleSignatureSymbolFields index] => this.Fields[(int)index]; + + public string ModuleID + { + get => (string)this.Fields[(int)ModuleSignatureSymbolFields.ModuleID]; + set => this.Set((int)ModuleSignatureSymbolFields.ModuleID, value); + } + + public int Language + { + get => (int)this.Fields[(int)ModuleSignatureSymbolFields.Language]; + set => this.Set((int)ModuleSignatureSymbolFields.Language, value); + } + + public string Version + { + get => (string)this.Fields[(int)ModuleSignatureSymbolFields.Version]; + set => this.Set((int)ModuleSignatureSymbolFields.Version, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/ModuleSubstitutionSymbol.cs b/src/WixToolset.Data/Symbols/ModuleSubstitutionSymbol.cs new file mode 100644 index 00000000..50d615b0 --- /dev/null +++ b/src/WixToolset.Data/Symbols/ModuleSubstitutionSymbol.cs @@ -0,0 +1,68 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition ModuleSubstitution = new IntermediateSymbolDefinition( + SymbolDefinitionType.ModuleSubstitution, + new[] + { + new IntermediateFieldDefinition(nameof(ModuleSubstitutionSymbolFields.Table), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ModuleSubstitutionSymbolFields.Row), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ModuleSubstitutionSymbolFields.Column), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ModuleSubstitutionSymbolFields.Value), IntermediateFieldType.String), + }, + typeof(ModuleSubstitutionSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum ModuleSubstitutionSymbolFields + { + Table, + Row, + Column, + Value, + } + + public class ModuleSubstitutionSymbol : IntermediateSymbol + { + public ModuleSubstitutionSymbol() : base(SymbolDefinitions.ModuleSubstitution, null, null) + { + } + + public ModuleSubstitutionSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ModuleSubstitution, sourceLineNumber, id) + { + } + + public IntermediateField this[ModuleSubstitutionSymbolFields index] => this.Fields[(int)index]; + + public string Table + { + get => (string)this.Fields[(int)ModuleSubstitutionSymbolFields.Table]; + set => this.Set((int)ModuleSubstitutionSymbolFields.Table, value); + } + + public string Row + { + get => (string)this.Fields[(int)ModuleSubstitutionSymbolFields.Row]; + set => this.Set((int)ModuleSubstitutionSymbolFields.Row, value); + } + + public string Column + { + get => (string)this.Fields[(int)ModuleSubstitutionSymbolFields.Column]; + set => this.Set((int)ModuleSubstitutionSymbolFields.Column, value); + } + + public string Value + { + get => (string)this.Fields[(int)ModuleSubstitutionSymbolFields.Value]; + set => this.Set((int)ModuleSubstitutionSymbolFields.Value, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/MoveFileSymbol.cs b/src/WixToolset.Data/Symbols/MoveFileSymbol.cs new file mode 100644 index 00000000..84089965 --- /dev/null +++ b/src/WixToolset.Data/Symbols/MoveFileSymbol.cs @@ -0,0 +1,84 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition MoveFile = new IntermediateSymbolDefinition( + SymbolDefinitionType.MoveFile, + new[] + { + new IntermediateFieldDefinition(nameof(MoveFileSymbolFields.ComponentRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(MoveFileSymbolFields.SourceName), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(MoveFileSymbolFields.DestName), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(MoveFileSymbolFields.SourceFolder), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(MoveFileSymbolFields.DestFolder), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(MoveFileSymbolFields.Delete), IntermediateFieldType.Bool), + }, + typeof(MoveFileSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum MoveFileSymbolFields + { + ComponentRef, + SourceName, + DestName, + SourceFolder, + DestFolder, + Delete, + } + + public class MoveFileSymbol : IntermediateSymbol + { + public MoveFileSymbol() : base(SymbolDefinitions.MoveFile, null, null) + { + } + + public MoveFileSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.MoveFile, sourceLineNumber, id) + { + } + + public IntermediateField this[MoveFileSymbolFields index] => this.Fields[(int)index]; + + public string ComponentRef + { + get => (string)this.Fields[(int)MoveFileSymbolFields.ComponentRef]; + set => this.Set((int)MoveFileSymbolFields.ComponentRef, value); + } + + public string SourceName + { + get => (string)this.Fields[(int)MoveFileSymbolFields.SourceName]; + set => this.Set((int)MoveFileSymbolFields.SourceName, value); + } + + public string DestName + { + get => (string)this.Fields[(int)MoveFileSymbolFields.DestName]; + set => this.Set((int)MoveFileSymbolFields.DestName, value); + } + + public string SourceFolder + { + get => (string)this.Fields[(int)MoveFileSymbolFields.SourceFolder]; + set => this.Set((int)MoveFileSymbolFields.SourceFolder, value); + } + + public string DestFolder + { + get => (string)this.Fields[(int)MoveFileSymbolFields.DestFolder]; + set => this.Set((int)MoveFileSymbolFields.DestFolder, value); + } + + public bool Delete + { + get => (bool)this.Fields[(int)MoveFileSymbolFields.Delete]; + set => this.Set((int)MoveFileSymbolFields.Delete, value); + } + } +} diff --git a/src/WixToolset.Data/Symbols/MsiAssemblyNameSymbol.cs b/src/WixToolset.Data/Symbols/MsiAssemblyNameSymbol.cs new file mode 100644 index 00000000..99c9806d --- /dev/null +++ b/src/WixToolset.Data/Symbols/MsiAssemblyNameSymbol.cs @@ -0,0 +1,60 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition MsiAssemblyName = new IntermediateSymbolDefinition( + SymbolDefinitionType.MsiAssemblyName, + new[] + { + new IntermediateFieldDefinition(nameof(MsiAssemblyNameSymbolFields.ComponentRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(MsiAssemblyNameSymbolFields.Name), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(MsiAssemblyNameSymbolFields.Value), IntermediateFieldType.String), + }, + typeof(MsiAssemblyNameSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum MsiAssemblyNameSymbolFields + { + ComponentRef, + Name, + Value, + } + + public class MsiAssemblyNameSymbol : IntermediateSymbol + { + public MsiAssemblyNameSymbol() : base(SymbolDefinitions.MsiAssemblyName, null, null) + { + } + + public MsiAssemblyNameSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.MsiAssemblyName, sourceLineNumber, id) + { + } + + public IntermediateField this[MsiAssemblyNameSymbolFields index] => this.Fields[(int)index]; + + public string ComponentRef + { + get => (string)this.Fields[(int)MsiAssemblyNameSymbolFields.ComponentRef]; + set => this.Set((int)MsiAssemblyNameSymbolFields.ComponentRef, value); + } + + public string Name + { + get => (string)this.Fields[(int)MsiAssemblyNameSymbolFields.Name]; + set => this.Set((int)MsiAssemblyNameSymbolFields.Name, value); + } + + public string Value + { + get => (string)this.Fields[(int)MsiAssemblyNameSymbolFields.Value]; + set => this.Set((int)MsiAssemblyNameSymbolFields.Value, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/MsiDigitalCertificateSymbol.cs b/src/WixToolset.Data/Symbols/MsiDigitalCertificateSymbol.cs new file mode 100644 index 00000000..febd51cc --- /dev/null +++ b/src/WixToolset.Data/Symbols/MsiDigitalCertificateSymbol.cs @@ -0,0 +1,44 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition MsiDigitalCertificate = new IntermediateSymbolDefinition( + SymbolDefinitionType.MsiDigitalCertificate, + new[] + { + new IntermediateFieldDefinition(nameof(MsiDigitalCertificateSymbolFields.CertData), IntermediateFieldType.Path), + }, + typeof(MsiDigitalCertificateSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum MsiDigitalCertificateSymbolFields + { + CertData, + } + + public class MsiDigitalCertificateSymbol : IntermediateSymbol + { + public MsiDigitalCertificateSymbol() : base(SymbolDefinitions.MsiDigitalCertificate, null, null) + { + } + + public MsiDigitalCertificateSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.MsiDigitalCertificate, sourceLineNumber, id) + { + } + + public IntermediateField this[MsiDigitalCertificateSymbolFields index] => this.Fields[(int)index]; + + public string CertData + { + get => (string)this.Fields[(int)MsiDigitalCertificateSymbolFields.CertData]; + set => this.Set((int)MsiDigitalCertificateSymbolFields.CertData, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/MsiDigitalSignatureSymbol.cs b/src/WixToolset.Data/Symbols/MsiDigitalSignatureSymbol.cs new file mode 100644 index 00000000..560f3590 --- /dev/null +++ b/src/WixToolset.Data/Symbols/MsiDigitalSignatureSymbol.cs @@ -0,0 +1,68 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition MsiDigitalSignature = new IntermediateSymbolDefinition( + SymbolDefinitionType.MsiDigitalSignature, + new[] + { + new IntermediateFieldDefinition(nameof(MsiDigitalSignatureSymbolFields.Table), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(MsiDigitalSignatureSymbolFields.SignObject), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(MsiDigitalSignatureSymbolFields.DigitalCertificateRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(MsiDigitalSignatureSymbolFields.Hash), IntermediateFieldType.Path), + }, + typeof(MsiDigitalSignatureSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum MsiDigitalSignatureSymbolFields + { + Table, + SignObject, + DigitalCertificateRef, + Hash, + } + + public class MsiDigitalSignatureSymbol : IntermediateSymbol + { + public MsiDigitalSignatureSymbol() : base(SymbolDefinitions.MsiDigitalSignature, null, null) + { + } + + public MsiDigitalSignatureSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.MsiDigitalSignature, sourceLineNumber, id) + { + } + + public IntermediateField this[MsiDigitalSignatureSymbolFields index] => this.Fields[(int)index]; + + public string Table + { + get => (string)this.Fields[(int)MsiDigitalSignatureSymbolFields.Table]; + set => this.Set((int)MsiDigitalSignatureSymbolFields.Table, value); + } + + public string SignObject + { + get => (string)this.Fields[(int)MsiDigitalSignatureSymbolFields.SignObject]; + set => this.Set((int)MsiDigitalSignatureSymbolFields.SignObject, value); + } + + public string DigitalCertificateRef + { + get => (string)this.Fields[(int)MsiDigitalSignatureSymbolFields.DigitalCertificateRef]; + set => this.Set((int)MsiDigitalSignatureSymbolFields.DigitalCertificateRef, value); + } + + public string Hash + { + get => (string)this.Fields[(int)MsiDigitalSignatureSymbolFields.Hash]; + set => this.Set((int)MsiDigitalSignatureSymbolFields.Hash, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/MsiEmbeddedChainerSymbol.cs b/src/WixToolset.Data/Symbols/MsiEmbeddedChainerSymbol.cs new file mode 100644 index 00000000..eeed1673 --- /dev/null +++ b/src/WixToolset.Data/Symbols/MsiEmbeddedChainerSymbol.cs @@ -0,0 +1,68 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition MsiEmbeddedChainer = new IntermediateSymbolDefinition( + SymbolDefinitionType.MsiEmbeddedChainer, + new[] + { + new IntermediateFieldDefinition(nameof(MsiEmbeddedChainerSymbolFields.Condition), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(MsiEmbeddedChainerSymbolFields.CommandLine), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(MsiEmbeddedChainerSymbolFields.Source), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(MsiEmbeddedChainerSymbolFields.Type), IntermediateFieldType.Number), + }, + typeof(MsiEmbeddedChainerSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum MsiEmbeddedChainerSymbolFields + { + Condition, + CommandLine, + Source, + Type, + } + + public class MsiEmbeddedChainerSymbol : IntermediateSymbol + { + public MsiEmbeddedChainerSymbol() : base(SymbolDefinitions.MsiEmbeddedChainer, null, null) + { + } + + public MsiEmbeddedChainerSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.MsiEmbeddedChainer, sourceLineNumber, id) + { + } + + public IntermediateField this[MsiEmbeddedChainerSymbolFields index] => this.Fields[(int)index]; + + public string Condition + { + get => (string)this.Fields[(int)MsiEmbeddedChainerSymbolFields.Condition]; + set => this.Set((int)MsiEmbeddedChainerSymbolFields.Condition, value); + } + + public string CommandLine + { + get => (string)this.Fields[(int)MsiEmbeddedChainerSymbolFields.CommandLine]; + set => this.Set((int)MsiEmbeddedChainerSymbolFields.CommandLine, value); + } + + public string Source + { + get => (string)this.Fields[(int)MsiEmbeddedChainerSymbolFields.Source]; + set => this.Set((int)MsiEmbeddedChainerSymbolFields.Source, value); + } + + public int Type + { + get => (int)this.Fields[(int)MsiEmbeddedChainerSymbolFields.Type]; + set => this.Set((int)MsiEmbeddedChainerSymbolFields.Type, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/MsiEmbeddedUISymbol.cs b/src/WixToolset.Data/Symbols/MsiEmbeddedUISymbol.cs new file mode 100644 index 00000000..87c9481a --- /dev/null +++ b/src/WixToolset.Data/Symbols/MsiEmbeddedUISymbol.cs @@ -0,0 +1,76 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition MsiEmbeddedUI = new IntermediateSymbolDefinition( + SymbolDefinitionType.MsiEmbeddedUI, + new[] + { + new IntermediateFieldDefinition(nameof(MsiEmbeddedUISymbolFields.FileName), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(MsiEmbeddedUISymbolFields.EntryPoint), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(MsiEmbeddedUISymbolFields.SupportsBasicUI), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(MsiEmbeddedUISymbolFields.MessageFilter), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(MsiEmbeddedUISymbolFields.Source), IntermediateFieldType.Path), + }, + typeof(MsiEmbeddedUISymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum MsiEmbeddedUISymbolFields + { + FileName, + EntryPoint, + SupportsBasicUI, + MessageFilter, + Source, + } + + public class MsiEmbeddedUISymbol : IntermediateSymbol + { + public MsiEmbeddedUISymbol() : base(SymbolDefinitions.MsiEmbeddedUI, null, null) + { + } + + public MsiEmbeddedUISymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.MsiEmbeddedUI, sourceLineNumber, id) + { + } + + public IntermediateField this[MsiEmbeddedUISymbolFields index] => this.Fields[(int)index]; + + public string FileName + { + get => (string)this.Fields[(int)MsiEmbeddedUISymbolFields.FileName]; + set => this.Set((int)MsiEmbeddedUISymbolFields.FileName, value); + } + + public bool EntryPoint + { + get => this.Fields[(int)MsiEmbeddedUISymbolFields.EntryPoint].AsBool(); + set => this.Set((int)MsiEmbeddedUISymbolFields.EntryPoint, value); + } + + public bool SupportsBasicUI + { + get => this.Fields[(int)MsiEmbeddedUISymbolFields.SupportsBasicUI].AsBool(); + set => this.Set((int)MsiEmbeddedUISymbolFields.SupportsBasicUI, value); + } + + public int? MessageFilter + { + get => (int?)this.Fields[(int)MsiEmbeddedUISymbolFields.MessageFilter]; + set => this.Set((int)MsiEmbeddedUISymbolFields.MessageFilter, value); + } + + public string Source + { + get => (string)this.Fields[(int)MsiEmbeddedUISymbolFields.Source]; + set => this.Set((int)MsiEmbeddedUISymbolFields.Source, value); + } + } +} diff --git a/src/WixToolset.Data/Symbols/MsiFileHashSymbol.cs b/src/WixToolset.Data/Symbols/MsiFileHashSymbol.cs new file mode 100644 index 00000000..bfec1c12 --- /dev/null +++ b/src/WixToolset.Data/Symbols/MsiFileHashSymbol.cs @@ -0,0 +1,76 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition MsiFileHash = new IntermediateSymbolDefinition( + SymbolDefinitionType.MsiFileHash, + new[] + { + new IntermediateFieldDefinition(nameof(MsiFileHashSymbolFields.Options), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(MsiFileHashSymbolFields.HashPart1), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(MsiFileHashSymbolFields.HashPart2), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(MsiFileHashSymbolFields.HashPart3), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(MsiFileHashSymbolFields.HashPart4), IntermediateFieldType.Number), + }, + typeof(MsiFileHashSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum MsiFileHashSymbolFields + { + Options, + HashPart1, + HashPart2, + HashPart3, + HashPart4, + } + + public class MsiFileHashSymbol : IntermediateSymbol + { + public MsiFileHashSymbol() : base(SymbolDefinitions.MsiFileHash, null, null) + { + } + + public MsiFileHashSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.MsiFileHash, sourceLineNumber, id) + { + } + + public IntermediateField this[MsiFileHashSymbolFields index] => this.Fields[(int)index]; + + public int Options + { + get => (int)this.Fields[(int)MsiFileHashSymbolFields.Options]; + set => this.Set((int)MsiFileHashSymbolFields.Options, value); + } + + public int HashPart1 + { + get => (int)this.Fields[(int)MsiFileHashSymbolFields.HashPart1]; + set => this.Set((int)MsiFileHashSymbolFields.HashPart1, value); + } + + public int HashPart2 + { + get => (int)this.Fields[(int)MsiFileHashSymbolFields.HashPart2]; + set => this.Set((int)MsiFileHashSymbolFields.HashPart2, value); + } + + public int HashPart3 + { + get => (int)this.Fields[(int)MsiFileHashSymbolFields.HashPart3]; + set => this.Set((int)MsiFileHashSymbolFields.HashPart3, value); + } + + public int HashPart4 + { + get => (int)this.Fields[(int)MsiFileHashSymbolFields.HashPart4]; + set => this.Set((int)MsiFileHashSymbolFields.HashPart4, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/MsiLockPermissionsExSymbol.cs b/src/WixToolset.Data/Symbols/MsiLockPermissionsExSymbol.cs new file mode 100644 index 00000000..88e7d019 --- /dev/null +++ b/src/WixToolset.Data/Symbols/MsiLockPermissionsExSymbol.cs @@ -0,0 +1,68 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition MsiLockPermissionsEx = new IntermediateSymbolDefinition( + SymbolDefinitionType.MsiLockPermissionsEx, + new[] + { + new IntermediateFieldDefinition(nameof(MsiLockPermissionsExSymbolFields.LockObject), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(MsiLockPermissionsExSymbolFields.Table), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(MsiLockPermissionsExSymbolFields.SDDLText), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(MsiLockPermissionsExSymbolFields.Condition), IntermediateFieldType.String), + }, + typeof(MsiLockPermissionsExSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum MsiLockPermissionsExSymbolFields + { + LockObject, + Table, + SDDLText, + Condition, + } + + public class MsiLockPermissionsExSymbol : IntermediateSymbol + { + public MsiLockPermissionsExSymbol() : base(SymbolDefinitions.MsiLockPermissionsEx, null, null) + { + } + + public MsiLockPermissionsExSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.MsiLockPermissionsEx, sourceLineNumber, id) + { + } + + public IntermediateField this[MsiLockPermissionsExSymbolFields index] => this.Fields[(int)index]; + + public string LockObject + { + get => (string)this.Fields[(int)MsiLockPermissionsExSymbolFields.LockObject]; + set => this.Set((int)MsiLockPermissionsExSymbolFields.LockObject, value); + } + + public string Table + { + get => (string)this.Fields[(int)MsiLockPermissionsExSymbolFields.Table]; + set => this.Set((int)MsiLockPermissionsExSymbolFields.Table, value); + } + + public string SDDLText + { + get => (string)this.Fields[(int)MsiLockPermissionsExSymbolFields.SDDLText]; + set => this.Set((int)MsiLockPermissionsExSymbolFields.SDDLText, value); + } + + public string Condition + { + get => (string)this.Fields[(int)MsiLockPermissionsExSymbolFields.Condition]; + set => this.Set((int)MsiLockPermissionsExSymbolFields.Condition, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/MsiPackageCertificateSymbol.cs b/src/WixToolset.Data/Symbols/MsiPackageCertificateSymbol.cs new file mode 100644 index 00000000..4a6774b1 --- /dev/null +++ b/src/WixToolset.Data/Symbols/MsiPackageCertificateSymbol.cs @@ -0,0 +1,52 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition MsiPackageCertificate = new IntermediateSymbolDefinition( + SymbolDefinitionType.MsiPackageCertificate, + new[] + { + new IntermediateFieldDefinition(nameof(MsiPackageCertificateSymbolFields.PackageCertificate), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(MsiPackageCertificateSymbolFields.DigitalCertificateRef), IntermediateFieldType.String), + }, + typeof(MsiPackageCertificateSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum MsiPackageCertificateSymbolFields + { + PackageCertificate, + DigitalCertificateRef, + } + + public class MsiPackageCertificateSymbol : IntermediateSymbol + { + public MsiPackageCertificateSymbol() : base(SymbolDefinitions.MsiPackageCertificate, null, null) + { + } + + public MsiPackageCertificateSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.MsiPackageCertificate, sourceLineNumber, id) + { + } + + public IntermediateField this[MsiPackageCertificateSymbolFields index] => this.Fields[(int)index]; + + public string PackageCertificate + { + get => (string)this.Fields[(int)MsiPackageCertificateSymbolFields.PackageCertificate]; + set => this.Set((int)MsiPackageCertificateSymbolFields.PackageCertificate, value); + } + + public string DigitalCertificateRef + { + get => (string)this.Fields[(int)MsiPackageCertificateSymbolFields.DigitalCertificateRef]; + set => this.Set((int)MsiPackageCertificateSymbolFields.DigitalCertificateRef, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/MsiPatchCertificateSymbol.cs b/src/WixToolset.Data/Symbols/MsiPatchCertificateSymbol.cs new file mode 100644 index 00000000..7d6ce24e --- /dev/null +++ b/src/WixToolset.Data/Symbols/MsiPatchCertificateSymbol.cs @@ -0,0 +1,52 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition MsiPatchCertificate = new IntermediateSymbolDefinition( + SymbolDefinitionType.MsiPatchCertificate, + new[] + { + new IntermediateFieldDefinition(nameof(MsiPatchCertificateSymbolFields.PatchCertificate), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(MsiPatchCertificateSymbolFields.DigitalCertificateRef), IntermediateFieldType.String), + }, + typeof(MsiPatchCertificateSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum MsiPatchCertificateSymbolFields + { + PatchCertificate, + DigitalCertificateRef, + } + + public class MsiPatchCertificateSymbol : IntermediateSymbol + { + public MsiPatchCertificateSymbol() : base(SymbolDefinitions.MsiPatchCertificate, null, null) + { + } + + public MsiPatchCertificateSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.MsiPatchCertificate, sourceLineNumber, id) + { + } + + public IntermediateField this[MsiPatchCertificateSymbolFields index] => this.Fields[(int)index]; + + public string PatchCertificate + { + get => (string)this.Fields[(int)MsiPatchCertificateSymbolFields.PatchCertificate]; + set => this.Set((int)MsiPatchCertificateSymbolFields.PatchCertificate, value); + } + + public string DigitalCertificateRef + { + get => (string)this.Fields[(int)MsiPatchCertificateSymbolFields.DigitalCertificateRef]; + set => this.Set((int)MsiPatchCertificateSymbolFields.DigitalCertificateRef, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/MsiPatchHeadersSymbol.cs b/src/WixToolset.Data/Symbols/MsiPatchHeadersSymbol.cs new file mode 100644 index 00000000..0c68b164 --- /dev/null +++ b/src/WixToolset.Data/Symbols/MsiPatchHeadersSymbol.cs @@ -0,0 +1,52 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition MsiPatchHeaders = new IntermediateSymbolDefinition( + SymbolDefinitionType.MsiPatchHeaders, + new[] + { + new IntermediateFieldDefinition(nameof(MsiPatchHeadersSymbolFields.StreamRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(MsiPatchHeadersSymbolFields.Header), IntermediateFieldType.Path), + }, + typeof(MsiPatchHeadersSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum MsiPatchHeadersSymbolFields + { + StreamRef, + Header, + } + + public class MsiPatchHeadersSymbol : IntermediateSymbol + { + public MsiPatchHeadersSymbol() : base(SymbolDefinitions.MsiPatchHeaders, null, null) + { + } + + public MsiPatchHeadersSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.MsiPatchHeaders, sourceLineNumber, id) + { + } + + public IntermediateField this[MsiPatchHeadersSymbolFields index] => this.Fields[(int)index]; + + public string StreamRef + { + get => (string)this.Fields[(int)MsiPatchHeadersSymbolFields.StreamRef]; + set => this.Set((int)MsiPatchHeadersSymbolFields.StreamRef, value); + } + + public string Header + { + get => (string)this.Fields[(int)MsiPatchHeadersSymbolFields.Header]; + set => this.Set((int)MsiPatchHeadersSymbolFields.Header, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/MsiPatchMetadataSymbol.cs b/src/WixToolset.Data/Symbols/MsiPatchMetadataSymbol.cs new file mode 100644 index 00000000..682adbca --- /dev/null +++ b/src/WixToolset.Data/Symbols/MsiPatchMetadataSymbol.cs @@ -0,0 +1,60 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition MsiPatchMetadata = new IntermediateSymbolDefinition( + SymbolDefinitionType.MsiPatchMetadata, + new[] + { + new IntermediateFieldDefinition(nameof(MsiPatchMetadataSymbolFields.Company), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(MsiPatchMetadataSymbolFields.Property), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(MsiPatchMetadataSymbolFields.Value), IntermediateFieldType.String), + }, + typeof(MsiPatchMetadataSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum MsiPatchMetadataSymbolFields + { + Company, + Property, + Value, + } + + public class MsiPatchMetadataSymbol : IntermediateSymbol + { + public MsiPatchMetadataSymbol() : base(SymbolDefinitions.MsiPatchMetadata, null, null) + { + } + + public MsiPatchMetadataSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.MsiPatchMetadata, sourceLineNumber, id) + { + } + + public IntermediateField this[MsiPatchMetadataSymbolFields index] => this.Fields[(int)index]; + + public string Company + { + get => (string)this.Fields[(int)MsiPatchMetadataSymbolFields.Company]; + set => this.Set((int)MsiPatchMetadataSymbolFields.Company, value); + } + + public string Property + { + get => (string)this.Fields[(int)MsiPatchMetadataSymbolFields.Property]; + set => this.Set((int)MsiPatchMetadataSymbolFields.Property, value); + } + + public string Value + { + get => (string)this.Fields[(int)MsiPatchMetadataSymbolFields.Value]; + set => this.Set((int)MsiPatchMetadataSymbolFields.Value, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/MsiPatchOldAssemblyFileSymbol.cs b/src/WixToolset.Data/Symbols/MsiPatchOldAssemblyFileSymbol.cs new file mode 100644 index 00000000..75385ba8 --- /dev/null +++ b/src/WixToolset.Data/Symbols/MsiPatchOldAssemblyFileSymbol.cs @@ -0,0 +1,52 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition MsiPatchOldAssemblyFile = new IntermediateSymbolDefinition( + SymbolDefinitionType.MsiPatchOldAssemblyFile, + new[] + { + new IntermediateFieldDefinition(nameof(MsiPatchOldAssemblyFileSymbolFields.FileRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(MsiPatchOldAssemblyFileSymbolFields.AssemblyRef), IntermediateFieldType.String), + }, + typeof(MsiPatchOldAssemblyFileSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum MsiPatchOldAssemblyFileSymbolFields + { + FileRef, + AssemblyRef, + } + + public class MsiPatchOldAssemblyFileSymbol : IntermediateSymbol + { + public MsiPatchOldAssemblyFileSymbol() : base(SymbolDefinitions.MsiPatchOldAssemblyFile, null, null) + { + } + + public MsiPatchOldAssemblyFileSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.MsiPatchOldAssemblyFile, sourceLineNumber, id) + { + } + + public IntermediateField this[MsiPatchOldAssemblyFileSymbolFields index] => this.Fields[(int)index]; + + public string FileRef + { + get => (string)this.Fields[(int)MsiPatchOldAssemblyFileSymbolFields.FileRef]; + set => this.Set((int)MsiPatchOldAssemblyFileSymbolFields.FileRef, value); + } + + public string AssemblyRef + { + get => (string)this.Fields[(int)MsiPatchOldAssemblyFileSymbolFields.AssemblyRef]; + set => this.Set((int)MsiPatchOldAssemblyFileSymbolFields.AssemblyRef, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/MsiPatchOldAssemblyNameSymbol.cs b/src/WixToolset.Data/Symbols/MsiPatchOldAssemblyNameSymbol.cs new file mode 100644 index 00000000..199f5ff7 --- /dev/null +++ b/src/WixToolset.Data/Symbols/MsiPatchOldAssemblyNameSymbol.cs @@ -0,0 +1,60 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition MsiPatchOldAssemblyName = new IntermediateSymbolDefinition( + SymbolDefinitionType.MsiPatchOldAssemblyName, + new[] + { + new IntermediateFieldDefinition(nameof(MsiPatchOldAssemblyNameSymbolFields.Assembly), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(MsiPatchOldAssemblyNameSymbolFields.Name), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(MsiPatchOldAssemblyNameSymbolFields.Value), IntermediateFieldType.String), + }, + typeof(MsiPatchOldAssemblyNameSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum MsiPatchOldAssemblyNameSymbolFields + { + Assembly, + Name, + Value, + } + + public class MsiPatchOldAssemblyNameSymbol : IntermediateSymbol + { + public MsiPatchOldAssemblyNameSymbol() : base(SymbolDefinitions.MsiPatchOldAssemblyName, null, null) + { + } + + public MsiPatchOldAssemblyNameSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.MsiPatchOldAssemblyName, sourceLineNumber, id) + { + } + + public IntermediateField this[MsiPatchOldAssemblyNameSymbolFields index] => this.Fields[(int)index]; + + public string Assembly + { + get => (string)this.Fields[(int)MsiPatchOldAssemblyNameSymbolFields.Assembly]; + set => this.Set((int)MsiPatchOldAssemblyNameSymbolFields.Assembly, value); + } + + public string Name + { + get => (string)this.Fields[(int)MsiPatchOldAssemblyNameSymbolFields.Name]; + set => this.Set((int)MsiPatchOldAssemblyNameSymbolFields.Name, value); + } + + public string Value + { + get => (string)this.Fields[(int)MsiPatchOldAssemblyNameSymbolFields.Value]; + set => this.Set((int)MsiPatchOldAssemblyNameSymbolFields.Value, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/MsiPatchSequenceSymbol.cs b/src/WixToolset.Data/Symbols/MsiPatchSequenceSymbol.cs new file mode 100644 index 00000000..ac2b0dc4 --- /dev/null +++ b/src/WixToolset.Data/Symbols/MsiPatchSequenceSymbol.cs @@ -0,0 +1,68 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition MsiPatchSequence = new IntermediateSymbolDefinition( + SymbolDefinitionType.MsiPatchSequence, + new[] + { + new IntermediateFieldDefinition(nameof(MsiPatchSequenceSymbolFields.PatchFamily), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(MsiPatchSequenceSymbolFields.ProductCode), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(MsiPatchSequenceSymbolFields.Sequence), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(MsiPatchSequenceSymbolFields.Attributes), IntermediateFieldType.Number), + }, + typeof(MsiPatchSequenceSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum MsiPatchSequenceSymbolFields + { + PatchFamily, + ProductCode, + Sequence, + Attributes, + } + + public class MsiPatchSequenceSymbol : IntermediateSymbol + { + public MsiPatchSequenceSymbol() : base(SymbolDefinitions.MsiPatchSequence, null, null) + { + } + + public MsiPatchSequenceSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.MsiPatchSequence, sourceLineNumber, id) + { + } + + public IntermediateField this[MsiPatchSequenceSymbolFields index] => this.Fields[(int)index]; + + public string PatchFamily + { + get => (string)this.Fields[(int)MsiPatchSequenceSymbolFields.PatchFamily]; + set => this.Set((int)MsiPatchSequenceSymbolFields.PatchFamily, value); + } + + public string ProductCode + { + get => (string)this.Fields[(int)MsiPatchSequenceSymbolFields.ProductCode]; + set => this.Set((int)MsiPatchSequenceSymbolFields.ProductCode, value); + } + + public string Sequence + { + get => (string)this.Fields[(int)MsiPatchSequenceSymbolFields.Sequence]; + set => this.Set((int)MsiPatchSequenceSymbolFields.Sequence, value); + } + + public int? Attributes + { + get => (int?)this.Fields[(int)MsiPatchSequenceSymbolFields.Attributes]; + set => this.Set((int)MsiPatchSequenceSymbolFields.Attributes, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/MsiServiceConfigFailureActionsSymbol.cs b/src/WixToolset.Data/Symbols/MsiServiceConfigFailureActionsSymbol.cs new file mode 100644 index 00000000..92ca4059 --- /dev/null +++ b/src/WixToolset.Data/Symbols/MsiServiceConfigFailureActionsSymbol.cs @@ -0,0 +1,116 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition MsiServiceConfigFailureActions = new IntermediateSymbolDefinition( + SymbolDefinitionType.MsiServiceConfigFailureActions, + new[] + { + new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsSymbolFields.Name), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsSymbolFields.OnInstall), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsSymbolFields.OnReinstall), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsSymbolFields.OnUninstall), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsSymbolFields.ResetPeriod), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsSymbolFields.RebootMessage), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsSymbolFields.Command), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsSymbolFields.Actions), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsSymbolFields.DelayActions), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsSymbolFields.ComponentRef), IntermediateFieldType.String), + }, + typeof(MsiServiceConfigFailureActionsSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum MsiServiceConfigFailureActionsSymbolFields + { + Name, + OnInstall, + OnReinstall, + OnUninstall, + ResetPeriod, + RebootMessage, + Command, + Actions, + DelayActions, + ComponentRef, + } + + public class MsiServiceConfigFailureActionsSymbol : IntermediateSymbol + { + public MsiServiceConfigFailureActionsSymbol() : base(SymbolDefinitions.MsiServiceConfigFailureActions, null, null) + { + } + + public MsiServiceConfigFailureActionsSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.MsiServiceConfigFailureActions, sourceLineNumber, id) + { + } + + public IntermediateField this[MsiServiceConfigFailureActionsSymbolFields index] => this.Fields[(int)index]; + + public string Name + { + get => (string)this.Fields[(int)MsiServiceConfigFailureActionsSymbolFields.Name]; + set => this.Set((int)MsiServiceConfigFailureActionsSymbolFields.Name, value); + } + + public bool OnInstall + { + get => this.Fields[(int)MsiServiceConfigFailureActionsSymbolFields.OnInstall].AsBool(); + set => this.Set((int)MsiServiceConfigFailureActionsSymbolFields.OnInstall, value); + } + + public bool OnReinstall + { + get => this.Fields[(int)MsiServiceConfigFailureActionsSymbolFields.OnReinstall].AsBool(); + set => this.Set((int)MsiServiceConfigFailureActionsSymbolFields.OnReinstall, value); + } + + public bool OnUninstall + { + get => this.Fields[(int)MsiServiceConfigFailureActionsSymbolFields.OnUninstall].AsBool(); + set => this.Set((int)MsiServiceConfigFailureActionsSymbolFields.OnUninstall, value); + } + + public int? ResetPeriod + { + get => (int?)this.Fields[(int)MsiServiceConfigFailureActionsSymbolFields.ResetPeriod]; + set => this.Set((int)MsiServiceConfigFailureActionsSymbolFields.ResetPeriod, value); + } + + public string RebootMessage + { + get => (string)this.Fields[(int)MsiServiceConfigFailureActionsSymbolFields.RebootMessage]; + set => this.Set((int)MsiServiceConfigFailureActionsSymbolFields.RebootMessage, value); + } + + public string Command + { + get => (string)this.Fields[(int)MsiServiceConfigFailureActionsSymbolFields.Command]; + set => this.Set((int)MsiServiceConfigFailureActionsSymbolFields.Command, value); + } + + public string Actions + { + get => (string)this.Fields[(int)MsiServiceConfigFailureActionsSymbolFields.Actions]; + set => this.Set((int)MsiServiceConfigFailureActionsSymbolFields.Actions, value); + } + + public string DelayActions + { + get => (string)this.Fields[(int)MsiServiceConfigFailureActionsSymbolFields.DelayActions]; + set => this.Set((int)MsiServiceConfigFailureActionsSymbolFields.DelayActions, value); + } + + public string ComponentRef + { + get => (string)this.Fields[(int)MsiServiceConfigFailureActionsSymbolFields.ComponentRef]; + set => this.Set((int)MsiServiceConfigFailureActionsSymbolFields.ComponentRef, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/MsiServiceConfigSymbol.cs b/src/WixToolset.Data/Symbols/MsiServiceConfigSymbol.cs new file mode 100644 index 00000000..9ad72d1e --- /dev/null +++ b/src/WixToolset.Data/Symbols/MsiServiceConfigSymbol.cs @@ -0,0 +1,101 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition MsiServiceConfig = new IntermediateSymbolDefinition( + SymbolDefinitionType.MsiServiceConfig, + new[] + { + new IntermediateFieldDefinition(nameof(MsiServiceConfigSymbolFields.Name), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsSymbolFields.OnInstall), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsSymbolFields.OnReinstall), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsSymbolFields.OnUninstall), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(MsiServiceConfigSymbolFields.ConfigType), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(MsiServiceConfigSymbolFields.Argument), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(MsiServiceConfigSymbolFields.ComponentRef), IntermediateFieldType.String), + }, + typeof(MsiServiceConfigSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum MsiServiceConfigSymbolFields + { + Name, + OnInstall, + OnReinstall, + OnUninstall, + ConfigType, + Argument, + ComponentRef, + } + + public enum MsiServiceConfigType + { + DelayedAutoStart = 3, + FailureActionsFlag, + ServiceSidInfo, + RequiredPrivilegesInfo, + PreshutdownInfo, + } + + public class MsiServiceConfigSymbol : IntermediateSymbol + { + public MsiServiceConfigSymbol() : base(SymbolDefinitions.MsiServiceConfig, null, null) + { + } + + public MsiServiceConfigSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.MsiServiceConfig, sourceLineNumber, id) + { + } + + public IntermediateField this[MsiServiceConfigSymbolFields index] => this.Fields[(int)index]; + + public string Name + { + get => (string)this.Fields[(int)MsiServiceConfigSymbolFields.Name]; + set => this.Set((int)MsiServiceConfigSymbolFields.Name, value); + } + + public bool OnInstall + { + get => this.Fields[(int)MsiServiceConfigSymbolFields.OnInstall].AsBool(); + set => this.Set((int)MsiServiceConfigSymbolFields.OnInstall, value); + } + + public bool OnReinstall + { + get => this.Fields[(int)MsiServiceConfigSymbolFields.OnReinstall].AsBool(); + set => this.Set((int)MsiServiceConfigSymbolFields.OnReinstall, value); + } + + public bool OnUninstall + { + get => this.Fields[(int)MsiServiceConfigSymbolFields.OnUninstall].AsBool(); + set => this.Set((int)MsiServiceConfigSymbolFields.OnUninstall, value); + } + + public MsiServiceConfigType ConfigType + { + get => (MsiServiceConfigType)this.Fields[(int)MsiServiceConfigSymbolFields.ConfigType].AsNumber(); + set => this.Set((int)MsiServiceConfigSymbolFields.ConfigType, (int)value); + } + + public string Argument + { + get => (string)this.Fields[(int)MsiServiceConfigSymbolFields.Argument]; + set => this.Set((int)MsiServiceConfigSymbolFields.Argument, value); + } + + public string ComponentRef + { + get => (string)this.Fields[(int)MsiServiceConfigSymbolFields.ComponentRef]; + set => this.Set((int)MsiServiceConfigSymbolFields.ComponentRef, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/MsiShortcutPropertySymbol.cs b/src/WixToolset.Data/Symbols/MsiShortcutPropertySymbol.cs new file mode 100644 index 00000000..5d5a46e5 --- /dev/null +++ b/src/WixToolset.Data/Symbols/MsiShortcutPropertySymbol.cs @@ -0,0 +1,60 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition MsiShortcutProperty = new IntermediateSymbolDefinition( + SymbolDefinitionType.MsiShortcutProperty, + new[] + { + new IntermediateFieldDefinition(nameof(MsiShortcutPropertySymbolFields.ShortcutRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(MsiShortcutPropertySymbolFields.PropertyKey), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(MsiShortcutPropertySymbolFields.PropVariantValue), IntermediateFieldType.String), + }, + typeof(MsiShortcutPropertySymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum MsiShortcutPropertySymbolFields + { + ShortcutRef, + PropertyKey, + PropVariantValue, + } + + public class MsiShortcutPropertySymbol : IntermediateSymbol + { + public MsiShortcutPropertySymbol() : base(SymbolDefinitions.MsiShortcutProperty, null, null) + { + } + + public MsiShortcutPropertySymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.MsiShortcutProperty, sourceLineNumber, id) + { + } + + public IntermediateField this[MsiShortcutPropertySymbolFields index] => this.Fields[(int)index]; + + public string ShortcutRef + { + get => (string)this.Fields[(int)MsiShortcutPropertySymbolFields.ShortcutRef]; + set => this.Set((int)MsiShortcutPropertySymbolFields.ShortcutRef, value); + } + + public string PropertyKey + { + get => (string)this.Fields[(int)MsiShortcutPropertySymbolFields.PropertyKey]; + set => this.Set((int)MsiShortcutPropertySymbolFields.PropertyKey, value); + } + + public string PropVariantValue + { + get => (string)this.Fields[(int)MsiShortcutPropertySymbolFields.PropVariantValue]; + set => this.Set((int)MsiShortcutPropertySymbolFields.PropVariantValue, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/ODBCAttributeSymbol.cs b/src/WixToolset.Data/Symbols/ODBCAttributeSymbol.cs new file mode 100644 index 00000000..45ca6ed8 --- /dev/null +++ b/src/WixToolset.Data/Symbols/ODBCAttributeSymbol.cs @@ -0,0 +1,60 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition ODBCAttribute = new IntermediateSymbolDefinition( + SymbolDefinitionType.ODBCAttribute, + new[] + { + new IntermediateFieldDefinition(nameof(ODBCAttributeSymbolFields.DriverRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ODBCAttributeSymbolFields.Attribute), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ODBCAttributeSymbolFields.Value), IntermediateFieldType.String), + }, + typeof(ODBCAttributeSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum ODBCAttributeSymbolFields + { + DriverRef, + Attribute, + Value, + } + + public class ODBCAttributeSymbol : IntermediateSymbol + { + public ODBCAttributeSymbol() : base(SymbolDefinitions.ODBCAttribute, null, null) + { + } + + public ODBCAttributeSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ODBCAttribute, sourceLineNumber, id) + { + } + + public IntermediateField this[ODBCAttributeSymbolFields index] => this.Fields[(int)index]; + + public string DriverRef + { + get => (string)this.Fields[(int)ODBCAttributeSymbolFields.DriverRef]; + set => this.Set((int)ODBCAttributeSymbolFields.DriverRef, value); + } + + public string Attribute + { + get => (string)this.Fields[(int)ODBCAttributeSymbolFields.Attribute]; + set => this.Set((int)ODBCAttributeSymbolFields.Attribute, value); + } + + public string Value + { + get => (string)this.Fields[(int)ODBCAttributeSymbolFields.Value]; + set => this.Set((int)ODBCAttributeSymbolFields.Value, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/ODBCDataSourceSymbol.cs b/src/WixToolset.Data/Symbols/ODBCDataSourceSymbol.cs new file mode 100644 index 00000000..6af140bd --- /dev/null +++ b/src/WixToolset.Data/Symbols/ODBCDataSourceSymbol.cs @@ -0,0 +1,68 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition ODBCDataSource = new IntermediateSymbolDefinition( + SymbolDefinitionType.ODBCDataSource, + new[] + { + new IntermediateFieldDefinition(nameof(ODBCDataSourceSymbolFields.ComponentRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ODBCDataSourceSymbolFields.Description), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ODBCDataSourceSymbolFields.DriverDescription), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ODBCDataSourceSymbolFields.Registration), IntermediateFieldType.Number), + }, + typeof(ODBCDataSourceSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum ODBCDataSourceSymbolFields + { + ComponentRef, + Description, + DriverDescription, + Registration, + } + + public class ODBCDataSourceSymbol : IntermediateSymbol + { + public ODBCDataSourceSymbol() : base(SymbolDefinitions.ODBCDataSource, null, null) + { + } + + public ODBCDataSourceSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ODBCDataSource, sourceLineNumber, id) + { + } + + public IntermediateField this[ODBCDataSourceSymbolFields index] => this.Fields[(int)index]; + + public string ComponentRef + { + get => (string)this.Fields[(int)ODBCDataSourceSymbolFields.ComponentRef]; + set => this.Set((int)ODBCDataSourceSymbolFields.ComponentRef, value); + } + + public string Description + { + get => (string)this.Fields[(int)ODBCDataSourceSymbolFields.Description]; + set => this.Set((int)ODBCDataSourceSymbolFields.Description, value); + } + + public string DriverDescription + { + get => (string)this.Fields[(int)ODBCDataSourceSymbolFields.DriverDescription]; + set => this.Set((int)ODBCDataSourceSymbolFields.DriverDescription, value); + } + + public int Registration + { + get => (int)this.Fields[(int)ODBCDataSourceSymbolFields.Registration]; + set => this.Set((int)ODBCDataSourceSymbolFields.Registration, value); + } + } +} diff --git a/src/WixToolset.Data/Symbols/ODBCDriverSymbol.cs b/src/WixToolset.Data/Symbols/ODBCDriverSymbol.cs new file mode 100644 index 00000000..b31cc4cb --- /dev/null +++ b/src/WixToolset.Data/Symbols/ODBCDriverSymbol.cs @@ -0,0 +1,68 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition ODBCDriver = new IntermediateSymbolDefinition( + SymbolDefinitionType.ODBCDriver, + new[] + { + new IntermediateFieldDefinition(nameof(ODBCDriverSymbolFields.ComponentRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ODBCDriverSymbolFields.Description), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ODBCDriverSymbolFields.FileRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ODBCDriverSymbolFields.SetupFileRef), IntermediateFieldType.String), + }, + typeof(ODBCDriverSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum ODBCDriverSymbolFields + { + ComponentRef, + Description, + FileRef, + SetupFileRef, + } + + public class ODBCDriverSymbol : IntermediateSymbol + { + public ODBCDriverSymbol() : base(SymbolDefinitions.ODBCDriver, null, null) + { + } + + public ODBCDriverSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ODBCDriver, sourceLineNumber, id) + { + } + + public IntermediateField this[ODBCDriverSymbolFields index] => this.Fields[(int)index]; + + public string ComponentRef + { + get => (string)this.Fields[(int)ODBCDriverSymbolFields.ComponentRef]; + set => this.Set((int)ODBCDriverSymbolFields.ComponentRef, value); + } + + public string Description + { + get => (string)this.Fields[(int)ODBCDriverSymbolFields.Description]; + set => this.Set((int)ODBCDriverSymbolFields.Description, value); + } + + public string FileRef + { + get => (string)this.Fields[(int)ODBCDriverSymbolFields.FileRef]; + set => this.Set((int)ODBCDriverSymbolFields.FileRef, value); + } + + public string SetupFileRef + { + get => (string)this.Fields[(int)ODBCDriverSymbolFields.SetupFileRef]; + set => this.Set((int)ODBCDriverSymbolFields.SetupFileRef, value); + } + } +} diff --git a/src/WixToolset.Data/Symbols/ODBCSourceAttributeSymbol.cs b/src/WixToolset.Data/Symbols/ODBCSourceAttributeSymbol.cs new file mode 100644 index 00000000..2e25a5f7 --- /dev/null +++ b/src/WixToolset.Data/Symbols/ODBCSourceAttributeSymbol.cs @@ -0,0 +1,60 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition ODBCSourceAttribute = new IntermediateSymbolDefinition( + SymbolDefinitionType.ODBCSourceAttribute, + new[] + { + new IntermediateFieldDefinition(nameof(ODBCSourceAttributeSymbolFields.DataSourceRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ODBCSourceAttributeSymbolFields.Attribute), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ODBCSourceAttributeSymbolFields.Value), IntermediateFieldType.String), + }, + typeof(ODBCSourceAttributeSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum ODBCSourceAttributeSymbolFields + { + DataSourceRef, + Attribute, + Value, + } + + public class ODBCSourceAttributeSymbol : IntermediateSymbol + { + public ODBCSourceAttributeSymbol() : base(SymbolDefinitions.ODBCSourceAttribute, null, null) + { + } + + public ODBCSourceAttributeSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ODBCSourceAttribute, sourceLineNumber, id) + { + } + + public IntermediateField this[ODBCSourceAttributeSymbolFields index] => this.Fields[(int)index]; + + public string DataSourceRef + { + get => (string)this.Fields[(int)ODBCSourceAttributeSymbolFields.DataSourceRef]; + set => this.Set((int)ODBCSourceAttributeSymbolFields.DataSourceRef, value); + } + + public string Attribute + { + get => (string)this.Fields[(int)ODBCSourceAttributeSymbolFields.Attribute]; + set => this.Set((int)ODBCSourceAttributeSymbolFields.Attribute, value); + } + + public string Value + { + get => (string)this.Fields[(int)ODBCSourceAttributeSymbolFields.Value]; + set => this.Set((int)ODBCSourceAttributeSymbolFields.Value, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/ODBCTranslatorSymbol.cs b/src/WixToolset.Data/Symbols/ODBCTranslatorSymbol.cs new file mode 100644 index 00000000..c444b834 --- /dev/null +++ b/src/WixToolset.Data/Symbols/ODBCTranslatorSymbol.cs @@ -0,0 +1,68 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition ODBCTranslator = new IntermediateSymbolDefinition( + SymbolDefinitionType.ODBCTranslator, + new[] + { + new IntermediateFieldDefinition(nameof(ODBCTranslatorSymbolFields.ComponentRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ODBCTranslatorSymbolFields.Description), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ODBCTranslatorSymbolFields.FileRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ODBCTranslatorSymbolFields.SetupFileRef), IntermediateFieldType.String), + }, + typeof(ODBCTranslatorSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum ODBCTranslatorSymbolFields + { + ComponentRef, + Description, + FileRef, + SetupFileRef, + } + + public class ODBCTranslatorSymbol : IntermediateSymbol + { + public ODBCTranslatorSymbol() : base(SymbolDefinitions.ODBCTranslator, null, null) + { + } + + public ODBCTranslatorSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ODBCTranslator, sourceLineNumber, id) + { + } + + public IntermediateField this[ODBCTranslatorSymbolFields index] => this.Fields[(int)index]; + + public string ComponentRef + { + get => (string)this.Fields[(int)ODBCTranslatorSymbolFields.ComponentRef]; + set => this.Set((int)ODBCTranslatorSymbolFields.ComponentRef, value); + } + + public string Description + { + get => (string)this.Fields[(int)ODBCTranslatorSymbolFields.Description]; + set => this.Set((int)ODBCTranslatorSymbolFields.Description, value); + } + + public string FileRef + { + get => (string)this.Fields[(int)ODBCTranslatorSymbolFields.FileRef]; + set => this.Set((int)ODBCTranslatorSymbolFields.FileRef, value); + } + + public string SetupFileRef + { + get => (string)this.Fields[(int)ODBCTranslatorSymbolFields.SetupFileRef]; + set => this.Set((int)ODBCTranslatorSymbolFields.SetupFileRef, value); + } + } +} diff --git a/src/WixToolset.Data/Symbols/PatchMetadataSymbol.cs b/src/WixToolset.Data/Symbols/PatchMetadataSymbol.cs new file mode 100644 index 00000000..3f67aef7 --- /dev/null +++ b/src/WixToolset.Data/Symbols/PatchMetadataSymbol.cs @@ -0,0 +1,60 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition PatchMetadata = new IntermediateSymbolDefinition( + SymbolDefinitionType.PatchMetadata, + new[] + { + new IntermediateFieldDefinition(nameof(PatchMetadataSymbolFields.Company), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(PatchMetadataSymbolFields.Property), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(PatchMetadataSymbolFields.Value), IntermediateFieldType.String), + }, + typeof(PatchMetadataSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum PatchMetadataSymbolFields + { + Company, + Property, + Value, + } + + public class PatchMetadataSymbol : IntermediateSymbol + { + public PatchMetadataSymbol() : base(SymbolDefinitions.PatchMetadata, null, null) + { + } + + public PatchMetadataSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.PatchMetadata, sourceLineNumber, id) + { + } + + public IntermediateField this[PatchMetadataSymbolFields index] => this.Fields[(int)index]; + + public string Company + { + get => (string)this.Fields[(int)PatchMetadataSymbolFields.Company]; + set => this.Set((int)PatchMetadataSymbolFields.Company, value); + } + + public string Property + { + get => (string)this.Fields[(int)PatchMetadataSymbolFields.Property]; + set => this.Set((int)PatchMetadataSymbolFields.Property, value); + } + + public string Value + { + get => (string)this.Fields[(int)PatchMetadataSymbolFields.Value]; + set => this.Set((int)PatchMetadataSymbolFields.Value, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/PatchPackageSymbol.cs b/src/WixToolset.Data/Symbols/PatchPackageSymbol.cs new file mode 100644 index 00000000..0efdfd25 --- /dev/null +++ b/src/WixToolset.Data/Symbols/PatchPackageSymbol.cs @@ -0,0 +1,52 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition PatchPackage = new IntermediateSymbolDefinition( + SymbolDefinitionType.PatchPackage, + new[] + { + new IntermediateFieldDefinition(nameof(PatchPackageSymbolFields.PatchId), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(PatchPackageSymbolFields.MediaDiskIdRef), IntermediateFieldType.Number), + }, + typeof(PatchPackageSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum PatchPackageSymbolFields + { + PatchId, + MediaDiskIdRef, + } + + public class PatchPackageSymbol : IntermediateSymbol + { + public PatchPackageSymbol() : base(SymbolDefinitions.PatchPackage, null, null) + { + } + + public PatchPackageSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.PatchPackage, sourceLineNumber, id) + { + } + + public IntermediateField this[PatchPackageSymbolFields index] => this.Fields[(int)index]; + + public string PatchId + { + get => (string)this.Fields[(int)PatchPackageSymbolFields.PatchId]; + set => this.Set((int)PatchPackageSymbolFields.PatchId, value); + } + + public int MediaDiskIdRef + { + get => (int)this.Fields[(int)PatchPackageSymbolFields.MediaDiskIdRef]; + set => this.Set((int)PatchPackageSymbolFields.MediaDiskIdRef, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/PatchSequenceSymbol.cs b/src/WixToolset.Data/Symbols/PatchSequenceSymbol.cs new file mode 100644 index 00000000..a4cbca61 --- /dev/null +++ b/src/WixToolset.Data/Symbols/PatchSequenceSymbol.cs @@ -0,0 +1,68 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition PatchSequence = new IntermediateSymbolDefinition( + SymbolDefinitionType.PatchSequence, + new[] + { + new IntermediateFieldDefinition(nameof(PatchSequenceSymbolFields.PatchFamily), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(PatchSequenceSymbolFields.Target), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(PatchSequenceSymbolFields.Sequence), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(PatchSequenceSymbolFields.Supersede), IntermediateFieldType.Number), + }, + typeof(PatchSequenceSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum PatchSequenceSymbolFields + { + PatchFamily, + Target, + Sequence, + Supersede, + } + + public class PatchSequenceSymbol : IntermediateSymbol + { + public PatchSequenceSymbol() : base(SymbolDefinitions.PatchSequence, null, null) + { + } + + public PatchSequenceSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.PatchSequence, sourceLineNumber, id) + { + } + + public IntermediateField this[PatchSequenceSymbolFields index] => this.Fields[(int)index]; + + public string PatchFamily + { + get => (string)this.Fields[(int)PatchSequenceSymbolFields.PatchFamily]; + set => this.Set((int)PatchSequenceSymbolFields.PatchFamily, value); + } + + public string Target + { + get => (string)this.Fields[(int)PatchSequenceSymbolFields.Target]; + set => this.Set((int)PatchSequenceSymbolFields.Target, value); + } + + public string Sequence + { + get => (string)this.Fields[(int)PatchSequenceSymbolFields.Sequence]; + set => this.Set((int)PatchSequenceSymbolFields.Sequence, value); + } + + public int? Supersede + { + get => (int?)this.Fields[(int)PatchSequenceSymbolFields.Supersede]; + set => this.Set((int)PatchSequenceSymbolFields.Supersede, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/PatchSymbol.cs b/src/WixToolset.Data/Symbols/PatchSymbol.cs new file mode 100644 index 00000000..31e68d76 --- /dev/null +++ b/src/WixToolset.Data/Symbols/PatchSymbol.cs @@ -0,0 +1,84 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition Patch = new IntermediateSymbolDefinition( + SymbolDefinitionType.Patch, + new[] + { + new IntermediateFieldDefinition(nameof(PatchSymbolFields.FileRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(PatchSymbolFields.Sequence), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(PatchSymbolFields.PatchSize), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(PatchSymbolFields.Attributes), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(PatchSymbolFields.Header), IntermediateFieldType.Path), + new IntermediateFieldDefinition(nameof(PatchSymbolFields.StreamRef), IntermediateFieldType.String), + }, + typeof(PatchSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum PatchSymbolFields + { + FileRef, + Sequence, + PatchSize, + Attributes, + Header, + StreamRef, + } + + public class PatchSymbol : IntermediateSymbol + { + public PatchSymbol() : base(SymbolDefinitions.Patch, null, null) + { + } + + public PatchSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Patch, sourceLineNumber, id) + { + } + + public IntermediateField this[PatchSymbolFields index] => this.Fields[(int)index]; + + public string FileRef + { + get => (string)this.Fields[(int)PatchSymbolFields.FileRef]; + set => this.Set((int)PatchSymbolFields.FileRef, value); + } + + public int Sequence + { + get => (int)this.Fields[(int)PatchSymbolFields.Sequence]; + set => this.Set((int)PatchSymbolFields.Sequence, value); + } + + public int PatchSize + { + get => (int)this.Fields[(int)PatchSymbolFields.PatchSize]; + set => this.Set((int)PatchSymbolFields.PatchSize, value); + } + + public int Attributes + { + get => (int)this.Fields[(int)PatchSymbolFields.Attributes]; + set => this.Set((int)PatchSymbolFields.Attributes, value); + } + + public string Header + { + get => (string)this.Fields[(int)PatchSymbolFields.Header]; + set => this.Set((int)PatchSymbolFields.Header, value); + } + + public string StreamRef + { + get => (string)this.Fields[(int)PatchSymbolFields.StreamRef]; + set => this.Set((int)PatchSymbolFields.StreamRef, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/ProgIdSymbol.cs b/src/WixToolset.Data/Symbols/ProgIdSymbol.cs new file mode 100644 index 00000000..57ac758f --- /dev/null +++ b/src/WixToolset.Data/Symbols/ProgIdSymbol.cs @@ -0,0 +1,84 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition ProgId = new IntermediateSymbolDefinition( + SymbolDefinitionType.ProgId, + new[] + { + new IntermediateFieldDefinition(nameof(ProgIdSymbolFields.ProgId), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ProgIdSymbolFields.ParentProgIdRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ProgIdSymbolFields.ClassRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ProgIdSymbolFields.Description), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ProgIdSymbolFields.IconRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ProgIdSymbolFields.IconIndex), IntermediateFieldType.Number), + }, + typeof(ProgIdSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum ProgIdSymbolFields + { + ProgId, + ParentProgIdRef, + ClassRef, + Description, + IconRef, + IconIndex, + } + + public class ProgIdSymbol : IntermediateSymbol + { + public ProgIdSymbol() : base(SymbolDefinitions.ProgId, null, null) + { + } + + public ProgIdSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ProgId, sourceLineNumber, id) + { + } + + public IntermediateField this[ProgIdSymbolFields index] => this.Fields[(int)index]; + + public string ProgId + { + get => (string)this.Fields[(int)ProgIdSymbolFields.ProgId]; + set => this.Set((int)ProgIdSymbolFields.ProgId, value); + } + + public string ParentProgIdRef + { + get => (string)this.Fields[(int)ProgIdSymbolFields.ParentProgIdRef]; + set => this.Set((int)ProgIdSymbolFields.ParentProgIdRef, value); + } + + public string ClassRef + { + get => (string)this.Fields[(int)ProgIdSymbolFields.ClassRef]; + set => this.Set((int)ProgIdSymbolFields.ClassRef, value); + } + + public string Description + { + get => (string)this.Fields[(int)ProgIdSymbolFields.Description]; + set => this.Set((int)ProgIdSymbolFields.Description, value); + } + + public string IconRef + { + get => (string)this.Fields[(int)ProgIdSymbolFields.IconRef]; + set => this.Set((int)ProgIdSymbolFields.IconRef, value); + } + + public int? IconIndex + { + get => (int?)this.Fields[(int)ProgIdSymbolFields.IconIndex]; + set => this.Set((int)ProgIdSymbolFields.IconIndex, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/PropertiesSymbol.cs b/src/WixToolset.Data/Symbols/PropertiesSymbol.cs new file mode 100644 index 00000000..61059aa6 --- /dev/null +++ b/src/WixToolset.Data/Symbols/PropertiesSymbol.cs @@ -0,0 +1,52 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition Properties = new IntermediateSymbolDefinition( + SymbolDefinitionType.Properties, + new[] + { + new IntermediateFieldDefinition(nameof(PropertiesSymbolFields.Name), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(PropertiesSymbolFields.Value), IntermediateFieldType.String), + }, + typeof(PropertiesSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum PropertiesSymbolFields + { + Name, + Value, + } + + public class PropertiesSymbol : IntermediateSymbol + { + public PropertiesSymbol() : base(SymbolDefinitions.Properties, null, null) + { + } + + public PropertiesSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Properties, sourceLineNumber, id) + { + } + + public IntermediateField this[PropertiesSymbolFields index] => this.Fields[(int)index]; + + public string Name + { + get => (string)this.Fields[(int)PropertiesSymbolFields.Name]; + set => this.Set((int)PropertiesSymbolFields.Name, value); + } + + public string Value + { + get => (string)this.Fields[(int)PropertiesSymbolFields.Value]; + set => this.Set((int)PropertiesSymbolFields.Value, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/PropertySymbol.cs b/src/WixToolset.Data/Symbols/PropertySymbol.cs new file mode 100644 index 00000000..b93d962a --- /dev/null +++ b/src/WixToolset.Data/Symbols/PropertySymbol.cs @@ -0,0 +1,44 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition Property = new IntermediateSymbolDefinition( + SymbolDefinitionType.Property, + new[] + { + new IntermediateFieldDefinition(nameof(PropertySymbolFields.Value), IntermediateFieldType.String), + }, + typeof(PropertySymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum PropertySymbolFields + { + Value, + } + + public class PropertySymbol : IntermediateSymbol + { + public PropertySymbol() : base(SymbolDefinitions.Property, null, null) + { + } + + public PropertySymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Property, sourceLineNumber, id) + { + } + + public IntermediateField this[PropertySymbolFields index] => this.Fields[(int)index]; + + public string Value + { + get => (string)this.Fields[(int)PropertySymbolFields.Value]; + set => this.Set((int)PropertySymbolFields.Value, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/ProvidesDependencySymbol.cs b/src/WixToolset.Data/Symbols/ProvidesDependencySymbol.cs new file mode 100644 index 00000000..8d8cb02b --- /dev/null +++ b/src/WixToolset.Data/Symbols/ProvidesDependencySymbol.cs @@ -0,0 +1,84 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition ProvidesDependency = new IntermediateSymbolDefinition( + SymbolDefinitionType.ProvidesDependency, + new[] + { + new IntermediateFieldDefinition(nameof(ProvidesDependencySymbolFields.PackageRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ProvidesDependencySymbolFields.Key), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ProvidesDependencySymbolFields.Version), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ProvidesDependencySymbolFields.DisplayName), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ProvidesDependencySymbolFields.Attributes), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(ProvidesDependencySymbolFields.Imported), IntermediateFieldType.Bool), + }, + typeof(ProvidesDependencySymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum ProvidesDependencySymbolFields + { + PackageRef, + Key, + Version, + DisplayName, + Attributes, + Imported, + } + + public class ProvidesDependencySymbol : IntermediateSymbol + { + public ProvidesDependencySymbol() : base(SymbolDefinitions.ProvidesDependency, null, null) + { + } + + public ProvidesDependencySymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ProvidesDependency, sourceLineNumber, id) + { + } + + public IntermediateField this[ProvidesDependencySymbolFields index] => this.Fields[(int)index]; + + public string PackageRef + { + get => (string)this.Fields[(int)ProvidesDependencySymbolFields.PackageRef]; + set => this.Set((int)ProvidesDependencySymbolFields.PackageRef, value); + } + + public string Key + { + get => (string)this.Fields[(int)ProvidesDependencySymbolFields.Key]; + set => this.Set((int)ProvidesDependencySymbolFields.Key, value); + } + + public string Version + { + get => (string)this.Fields[(int)ProvidesDependencySymbolFields.Version]; + set => this.Set((int)ProvidesDependencySymbolFields.Version, value); + } + + public string DisplayName + { + get => (string)this.Fields[(int)ProvidesDependencySymbolFields.DisplayName]; + set => this.Set((int)ProvidesDependencySymbolFields.DisplayName, value); + } + + public int? Attributes + { + get => (int?)this.Fields[(int)ProvidesDependencySymbolFields.Attributes]; + set => this.Set((int)ProvidesDependencySymbolFields.Attributes, value); + } + + public bool Imported + { + get => (bool)this.Fields[(int)ProvidesDependencySymbolFields.Imported]; + set => this.Set((int)ProvidesDependencySymbolFields.Imported, value); + } + } +} diff --git a/src/WixToolset.Data/Symbols/PublishComponentSymbol.cs b/src/WixToolset.Data/Symbols/PublishComponentSymbol.cs new file mode 100644 index 00000000..3fb81801 --- /dev/null +++ b/src/WixToolset.Data/Symbols/PublishComponentSymbol.cs @@ -0,0 +1,76 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition PublishComponent = new IntermediateSymbolDefinition( + SymbolDefinitionType.PublishComponent, + new[] + { + new IntermediateFieldDefinition(nameof(PublishComponentSymbolFields.ComponentId), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(PublishComponentSymbolFields.Qualifier), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(PublishComponentSymbolFields.ComponentRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(PublishComponentSymbolFields.AppData), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(PublishComponentSymbolFields.FeatureRef), IntermediateFieldType.String), + }, + typeof(PublishComponentSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum PublishComponentSymbolFields + { + ComponentId, + Qualifier, + ComponentRef, + AppData, + FeatureRef, + } + + public class PublishComponentSymbol : IntermediateSymbol + { + public PublishComponentSymbol() : base(SymbolDefinitions.PublishComponent, null, null) + { + } + + public PublishComponentSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.PublishComponent, sourceLineNumber, id) + { + } + + public IntermediateField this[PublishComponentSymbolFields index] => this.Fields[(int)index]; + + public string ComponentId + { + get => (string)this.Fields[(int)PublishComponentSymbolFields.ComponentId]; + set => this.Set((int)PublishComponentSymbolFields.ComponentId, value); + } + + public string Qualifier + { + get => (string)this.Fields[(int)PublishComponentSymbolFields.Qualifier]; + set => this.Set((int)PublishComponentSymbolFields.Qualifier, value); + } + + public string ComponentRef + { + get => (string)this.Fields[(int)PublishComponentSymbolFields.ComponentRef]; + set => this.Set((int)PublishComponentSymbolFields.ComponentRef, value); + } + + public string AppData + { + get => (string)this.Fields[(int)PublishComponentSymbolFields.AppData]; + set => this.Set((int)PublishComponentSymbolFields.AppData, value); + } + + public string FeatureRef + { + get => (string)this.Fields[(int)PublishComponentSymbolFields.FeatureRef]; + set => this.Set((int)PublishComponentSymbolFields.FeatureRef, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/RadioButtonSymbol.cs b/src/WixToolset.Data/Symbols/RadioButtonSymbol.cs new file mode 100644 index 00000000..6a26e937 --- /dev/null +++ b/src/WixToolset.Data/Symbols/RadioButtonSymbol.cs @@ -0,0 +1,108 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition RadioButton = new IntermediateSymbolDefinition( + SymbolDefinitionType.RadioButton, + new[] + { + new IntermediateFieldDefinition(nameof(RadioButtonSymbolFields.Property), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(RadioButtonSymbolFields.Order), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(RadioButtonSymbolFields.Value), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(RadioButtonSymbolFields.X), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(RadioButtonSymbolFields.Y), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(RadioButtonSymbolFields.Width), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(RadioButtonSymbolFields.Height), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(RadioButtonSymbolFields.Text), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(RadioButtonSymbolFields.Help), IntermediateFieldType.String), + }, + typeof(RadioButtonSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum RadioButtonSymbolFields + { + Property, + Order, + Value, + X, + Y, + Width, + Height, + Text, + Help, + } + + public class RadioButtonSymbol : IntermediateSymbol + { + public RadioButtonSymbol() : base(SymbolDefinitions.RadioButton, null, null) + { + } + + public RadioButtonSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.RadioButton, sourceLineNumber, id) + { + } + + public IntermediateField this[RadioButtonSymbolFields index] => this.Fields[(int)index]; + + public string Property + { + get => (string)this.Fields[(int)RadioButtonSymbolFields.Property]; + set => this.Set((int)RadioButtonSymbolFields.Property, value); + } + + public int Order + { + get => (int)this.Fields[(int)RadioButtonSymbolFields.Order]; + set => this.Set((int)RadioButtonSymbolFields.Order, value); + } + + public string Value + { + get => (string)this.Fields[(int)RadioButtonSymbolFields.Value]; + set => this.Set((int)RadioButtonSymbolFields.Value, value); + } + + public int X + { + get => (int)this.Fields[(int)RadioButtonSymbolFields.X]; + set => this.Set((int)RadioButtonSymbolFields.X, value); + } + + public int Y + { + get => (int)this.Fields[(int)RadioButtonSymbolFields.Y]; + set => this.Set((int)RadioButtonSymbolFields.Y, value); + } + + public int Width + { + get => (int)this.Fields[(int)RadioButtonSymbolFields.Width]; + set => this.Set((int)RadioButtonSymbolFields.Width, value); + } + + public int Height + { + get => (int)this.Fields[(int)RadioButtonSymbolFields.Height]; + set => this.Set((int)RadioButtonSymbolFields.Height, value); + } + + public string Text + { + get => (string)this.Fields[(int)RadioButtonSymbolFields.Text]; + set => this.Set((int)RadioButtonSymbolFields.Text, value); + } + + public string Help + { + get => (string)this.Fields[(int)RadioButtonSymbolFields.Help]; + set => this.Set((int)RadioButtonSymbolFields.Help, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/RegLocatorSymbol.cs b/src/WixToolset.Data/Symbols/RegLocatorSymbol.cs new file mode 100644 index 00000000..bf50dab7 --- /dev/null +++ b/src/WixToolset.Data/Symbols/RegLocatorSymbol.cs @@ -0,0 +1,83 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition RegLocator = new IntermediateSymbolDefinition( + SymbolDefinitionType.RegLocator, + new[] + { + new IntermediateFieldDefinition(nameof(RegLocatorSymbolFields.Root), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(RegLocatorSymbolFields.Key), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(RegLocatorSymbolFields.Name), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(RegLocatorSymbolFields.Type), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(RegLocatorSymbolFields.Win64), IntermediateFieldType.Bool), + }, + typeof(RegLocatorSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum RegLocatorSymbolFields + { + Root, + Key, + Name, + Type, + Win64, + } + + public enum RegLocatorType + { + Directory, + FileName, + Raw + }; + + public class RegLocatorSymbol : IntermediateSymbol + { + public RegLocatorSymbol() : base(SymbolDefinitions.RegLocator, null, null) + { + } + + public RegLocatorSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.RegLocator, sourceLineNumber, id) + { + } + + public IntermediateField this[RegLocatorSymbolFields index] => this.Fields[(int)index]; + + public RegistryRootType Root + { + get => (RegistryRootType)this.Fields[(int)RegLocatorSymbolFields.Root].AsNumber(); + set => this.Set((int)RegLocatorSymbolFields.Root, (int)value); + } + + public string Key + { + get => (string)this.Fields[(int)RegLocatorSymbolFields.Key]; + set => this.Set((int)RegLocatorSymbolFields.Key, value); + } + + public string Name + { + get => (string)this.Fields[(int)RegLocatorSymbolFields.Name]; + set => this.Set((int)RegLocatorSymbolFields.Name, value); + } + + public RegLocatorType Type + { + get => (RegLocatorType)this.Fields[(int)RegLocatorSymbolFields.Type].AsNumber(); + set => this.Set((int)RegLocatorSymbolFields.Type, (int)value); + } + + public bool Win64 + { + get => this.Fields[(int)RegLocatorSymbolFields.Win64].AsBool(); + set => this.Set((int)RegLocatorSymbolFields.Win64, value); + } + } +} diff --git a/src/WixToolset.Data/Symbols/RegistryRootType.cs b/src/WixToolset.Data/Symbols/RegistryRootType.cs new file mode 100644 index 00000000..9f60727c --- /dev/null +++ b/src/WixToolset.Data/Symbols/RegistryRootType.cs @@ -0,0 +1,21 @@ +// 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. + +namespace WixToolset.Data.Symbols +{ + using System; + + /// + /// Registry root mapping. + /// + public enum RegistryRootType + { + Unknown = Int32.MaxValue, + + /// HKLM in a per-machine and HKCU in per-user. + MachineUser = -1, + ClassesRoot = 0, + CurrentUser = 1, + LocalMachine = 2, + Users = 3 + } +} diff --git a/src/WixToolset.Data/Symbols/RegistrySymbol.cs b/src/WixToolset.Data/Symbols/RegistrySymbol.cs new file mode 100644 index 00000000..371bfe98 --- /dev/null +++ b/src/WixToolset.Data/Symbols/RegistrySymbol.cs @@ -0,0 +1,108 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition Registry = new IntermediateSymbolDefinition( + SymbolDefinitionType.Registry, + new[] + { + new IntermediateFieldDefinition(nameof(RegistrySymbolFields.Root), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(RegistrySymbolFields.Key), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(RegistrySymbolFields.Name), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(RegistrySymbolFields.Value), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(RegistrySymbolFields.ValueType), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(RegistrySymbolFields.ValueAction), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(RegistrySymbolFields.ComponentRef), IntermediateFieldType.String), + }, + typeof(RegistrySymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum RegistrySymbolFields + { + Root, + Key, + Name, + Value, + ValueType, + ValueAction, + ComponentRef, + } + + public enum RegistryValueType + { + String, + Binary, + Expandable, + Integer, + MultiString, + } + + public enum RegistryValueActionType + { + Write, + Append, + Prepend, + } + + public class RegistrySymbol : IntermediateSymbol + { + public RegistrySymbol() : base(SymbolDefinitions.Registry, null, null) + { + } + + public RegistrySymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Registry, sourceLineNumber, id) + { + } + + public IntermediateField this[RegistrySymbolFields index] => this.Fields[(int)index]; + + public RegistryRootType Root + { + get => (RegistryRootType)this.Fields[(int)RegistrySymbolFields.Root].AsNumber(); + set => this.Set((int)RegistrySymbolFields.Root, (int)value); + } + + public string Key + { + get => (string)this.Fields[(int)RegistrySymbolFields.Key]; + set => this.Set((int)RegistrySymbolFields.Key, value); + } + + public string Name + { + get => (string)this.Fields[(int)RegistrySymbolFields.Name]; + set => this.Set((int)RegistrySymbolFields.Name, value); + } + + public string Value + { + get => this.Fields[(int)RegistrySymbolFields.Value].AsString(); + set => this.Set((int)RegistrySymbolFields.Value, value); + } + + public RegistryValueType ValueType + { + get => (RegistryValueType)this.Fields[(int)RegistrySymbolFields.ValueType].AsNumber(); + set => this.Set((int)RegistrySymbolFields.ValueType, (int)value); + } + + public RegistryValueActionType ValueAction + { + get => (RegistryValueActionType)this.Fields[(int)RegistrySymbolFields.ValueAction].AsNumber(); + set => this.Set((int)RegistrySymbolFields.ValueAction, (int)value); + } + + public string ComponentRef + { + get => (string)this.Fields[(int)RegistrySymbolFields.ComponentRef]; + set => this.Set((int)RegistrySymbolFields.ComponentRef, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/RemoveFileSymbol.cs b/src/WixToolset.Data/Symbols/RemoveFileSymbol.cs new file mode 100644 index 00000000..a1791e54 --- /dev/null +++ b/src/WixToolset.Data/Symbols/RemoveFileSymbol.cs @@ -0,0 +1,76 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition RemoveFile = new IntermediateSymbolDefinition( + SymbolDefinitionType.RemoveFile, + new[] + { + new IntermediateFieldDefinition(nameof(RemoveFileSymbolFields.ComponentRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(RemoveFileSymbolFields.FileName), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(RemoveFileSymbolFields.DirProperty), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(RemoveFileSymbolFields.OnInstall), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(RemoveFileSymbolFields.OnUninstall), IntermediateFieldType.Bool), + }, + typeof(RemoveFileSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum RemoveFileSymbolFields + { + ComponentRef, + FileName, + DirProperty, + OnInstall, + OnUninstall, + } + + public class RemoveFileSymbol : IntermediateSymbol + { + public RemoveFileSymbol() : base(SymbolDefinitions.RemoveFile, null, null) + { + } + + public RemoveFileSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.RemoveFile, sourceLineNumber, id) + { + } + + public IntermediateField this[RemoveFileSymbolFields index] => this.Fields[(int)index]; + + public string ComponentRef + { + get => (string)this.Fields[(int)RemoveFileSymbolFields.ComponentRef]; + set => this.Set((int)RemoveFileSymbolFields.ComponentRef, value); + } + + public string FileName + { + get => (string)this.Fields[(int)RemoveFileSymbolFields.FileName]; + set => this.Set((int)RemoveFileSymbolFields.FileName, value); + } + + public string DirProperty + { + get => (string)this.Fields[(int)RemoveFileSymbolFields.DirProperty]; + set => this.Set((int)RemoveFileSymbolFields.DirProperty, value); + } + + public bool? OnInstall + { + get => (bool?)this.Fields[(int)RemoveFileSymbolFields.OnInstall]; + set => this.Set((int)RemoveFileSymbolFields.OnInstall, value); + } + + public bool? OnUninstall + { + get => (bool?)this.Fields[(int)RemoveFileSymbolFields.OnUninstall]; + set => this.Set((int)RemoveFileSymbolFields.OnUninstall, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/RemoveRegistrySymbol.cs b/src/WixToolset.Data/Symbols/RemoveRegistrySymbol.cs new file mode 100644 index 00000000..a797cd33 --- /dev/null +++ b/src/WixToolset.Data/Symbols/RemoveRegistrySymbol.cs @@ -0,0 +1,82 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition RemoveRegistry = new IntermediateSymbolDefinition( + SymbolDefinitionType.RemoveRegistry, + new[] + { + new IntermediateFieldDefinition(nameof(RemoveRegistrySymbolFields.Root), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(RemoveRegistrySymbolFields.Key), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(RemoveRegistrySymbolFields.Name), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(RemoveRegistrySymbolFields.Action), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(RemoveRegistrySymbolFields.ComponentRef), IntermediateFieldType.String), + }, + typeof(RemoveRegistrySymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum RemoveRegistrySymbolFields + { + Root, + Key, + Name, + Action, + ComponentRef, + } + + public enum RemoveRegistryActionType + { + RemoveOnInstall, + RemoveOnUninstall + }; + + public class RemoveRegistrySymbol : IntermediateSymbol + { + public RemoveRegistrySymbol() : base(SymbolDefinitions.RemoveRegistry, null, null) + { + } + + public RemoveRegistrySymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.RemoveRegistry, sourceLineNumber, id) + { + } + + public IntermediateField this[RemoveRegistrySymbolFields index] => this.Fields[(int)index]; + + public RegistryRootType Root + { + get => (RegistryRootType)this.Fields[(int)RemoveRegistrySymbolFields.Root].AsNumber(); + set => this.Set((int)RemoveRegistrySymbolFields.Root, (int)value); + } + + public string Key + { + get => (string)this.Fields[(int)RemoveRegistrySymbolFields.Key]; + set => this.Set((int)RemoveRegistrySymbolFields.Key, value); + } + + public string Name + { + get => (string)this.Fields[(int)RemoveRegistrySymbolFields.Name]; + set => this.Set((int)RemoveRegistrySymbolFields.Name, value); + } + + public RemoveRegistryActionType Action + { + get => (RemoveRegistryActionType)this.Fields[(int)RemoveRegistrySymbolFields.Action].AsNumber(); + set => this.Set((int)RemoveRegistrySymbolFields.Action, (int)value); + } + + public string ComponentRef + { + get => (string)this.Fields[(int)RemoveRegistrySymbolFields.ComponentRef]; + set => this.Set((int)RemoveRegistrySymbolFields.ComponentRef, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/ReserveCostSymbol.cs b/src/WixToolset.Data/Symbols/ReserveCostSymbol.cs new file mode 100644 index 00000000..b59dea2f --- /dev/null +++ b/src/WixToolset.Data/Symbols/ReserveCostSymbol.cs @@ -0,0 +1,68 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition ReserveCost = new IntermediateSymbolDefinition( + SymbolDefinitionType.ReserveCost, + new[] + { + new IntermediateFieldDefinition(nameof(ReserveCostSymbolFields.ComponentRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ReserveCostSymbolFields.ReserveFolder), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ReserveCostSymbolFields.ReserveLocal), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(ReserveCostSymbolFields.ReserveSource), IntermediateFieldType.Number), + }, + typeof(ReserveCostSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum ReserveCostSymbolFields + { + ComponentRef, + ReserveFolder, + ReserveLocal, + ReserveSource, + } + + public class ReserveCostSymbol : IntermediateSymbol + { + public ReserveCostSymbol() : base(SymbolDefinitions.ReserveCost, null, null) + { + } + + public ReserveCostSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ReserveCost, sourceLineNumber, id) + { + } + + public IntermediateField this[ReserveCostSymbolFields index] => this.Fields[(int)index]; + + public string ComponentRef + { + get => (string)this.Fields[(int)ReserveCostSymbolFields.ComponentRef]; + set => this.Set((int)ReserveCostSymbolFields.ComponentRef, value); + } + + public string ReserveFolder + { + get => (string)this.Fields[(int)ReserveCostSymbolFields.ReserveFolder]; + set => this.Set((int)ReserveCostSymbolFields.ReserveFolder, value); + } + + public int ReserveLocal + { + get => (int)this.Fields[(int)ReserveCostSymbolFields.ReserveLocal]; + set => this.Set((int)ReserveCostSymbolFields.ReserveLocal, value); + } + + public int ReserveSource + { + get => (int)this.Fields[(int)ReserveCostSymbolFields.ReserveSource]; + set => this.Set((int)ReserveCostSymbolFields.ReserveSource, value); + } + } +} diff --git a/src/WixToolset.Data/Symbols/SFPCatalogSymbol.cs b/src/WixToolset.Data/Symbols/SFPCatalogSymbol.cs new file mode 100644 index 00000000..0d3f1558 --- /dev/null +++ b/src/WixToolset.Data/Symbols/SFPCatalogSymbol.cs @@ -0,0 +1,60 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition SFPCatalog = new IntermediateSymbolDefinition( + SymbolDefinitionType.SFPCatalog, + new[] + { + new IntermediateFieldDefinition(nameof(SFPCatalogSymbolFields.SFPCatalog), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(SFPCatalogSymbolFields.Catalog), IntermediateFieldType.Path), + new IntermediateFieldDefinition(nameof(SFPCatalogSymbolFields.Dependency), IntermediateFieldType.String), + }, + typeof(SFPCatalogSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum SFPCatalogSymbolFields + { + SFPCatalog, + Catalog, + Dependency, + } + + public class SFPCatalogSymbol : IntermediateSymbol + { + public SFPCatalogSymbol() : base(SymbolDefinitions.SFPCatalog, null, null) + { + } + + public SFPCatalogSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.SFPCatalog, sourceLineNumber, id) + { + } + + public IntermediateField this[SFPCatalogSymbolFields index] => this.Fields[(int)index]; + + public string SFPCatalog + { + get => (string)this.Fields[(int)SFPCatalogSymbolFields.SFPCatalog]; + set => this.Set((int)SFPCatalogSymbolFields.SFPCatalog, value); + } + + public string Catalog + { + get => (string)this.Fields[(int)SFPCatalogSymbolFields.Catalog]; + set => this.Set((int)SFPCatalogSymbolFields.Catalog, value); + } + + public string Dependency + { + get => (string)this.Fields[(int)SFPCatalogSymbolFields.Dependency]; + set => this.Set((int)SFPCatalogSymbolFields.Dependency, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/ServiceControlSymbol.cs b/src/WixToolset.Data/Symbols/ServiceControlSymbol.cs new file mode 100644 index 00000000..6e129681 --- /dev/null +++ b/src/WixToolset.Data/Symbols/ServiceControlSymbol.cs @@ -0,0 +1,116 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition ServiceControl = new IntermediateSymbolDefinition( + SymbolDefinitionType.ServiceControl, + new[] + { + new IntermediateFieldDefinition(nameof(ServiceControlSymbolFields.Name), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ServiceControlSymbolFields.InstallRemove), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(ServiceControlSymbolFields.UninstallRemove), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(ServiceControlSymbolFields.InstallStart), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(ServiceControlSymbolFields.UninstallStart), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(ServiceControlSymbolFields.InstallStop), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(ServiceControlSymbolFields.UninstallStop), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(ServiceControlSymbolFields.Arguments), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ServiceControlSymbolFields.Wait), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(ServiceControlSymbolFields.ComponentRef), IntermediateFieldType.String), + }, + typeof(ServiceControlSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum ServiceControlSymbolFields + { + Name, + InstallRemove, + UninstallRemove, + InstallStart, + UninstallStart, + InstallStop, + UninstallStop, + Arguments, + Wait, + ComponentRef, + } + + public class ServiceControlSymbol : IntermediateSymbol + { + public ServiceControlSymbol() : base(SymbolDefinitions.ServiceControl, null, null) + { + } + + public ServiceControlSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ServiceControl, sourceLineNumber, id) + { + } + + public IntermediateField this[ServiceControlSymbolFields index] => this.Fields[(int)index]; + + public string Name + { + get => (string)this.Fields[(int)ServiceControlSymbolFields.Name]; + set => this.Set((int)ServiceControlSymbolFields.Name, value); + } + + public bool InstallRemove + { + get => this.Fields[(int)ServiceControlSymbolFields.InstallRemove].AsBool(); + set => this.Set((int)ServiceControlSymbolFields.InstallRemove, value); + } + + public bool UninstallRemove + { + get => this.Fields[(int)ServiceControlSymbolFields.UninstallRemove].AsBool(); + set => this.Set((int)ServiceControlSymbolFields.UninstallRemove, value); + } + + public bool InstallStart + { + get => this.Fields[(int)ServiceControlSymbolFields.InstallStart].AsBool(); + set => this.Set((int)ServiceControlSymbolFields.InstallStart, value); + } + + public bool UninstallStart + { + get => this.Fields[(int)ServiceControlSymbolFields.UninstallStart].AsBool(); + set => this.Set((int)ServiceControlSymbolFields.UninstallStart, value); + } + + public bool InstallStop + { + get => this.Fields[(int)ServiceControlSymbolFields.InstallStop].AsBool(); + set => this.Set((int)ServiceControlSymbolFields.InstallStop, value); + } + + public bool UninstallStop + { + get => this.Fields[(int)ServiceControlSymbolFields.UninstallStop].AsBool(); + set => this.Set((int)ServiceControlSymbolFields.UninstallStop, value); + } + + public string Arguments + { + get => (string)this.Fields[(int)ServiceControlSymbolFields.Arguments]; + set => this.Set((int)ServiceControlSymbolFields.Arguments, value); + } + + public bool? Wait + { + get => this.Fields[(int)ServiceControlSymbolFields.Wait].AsNullableBool(); + set => this.Set((int)ServiceControlSymbolFields.Wait, value); + } + + public string ComponentRef + { + get => (string)this.Fields[(int)ServiceControlSymbolFields.ComponentRef]; + set => this.Set((int)ServiceControlSymbolFields.ComponentRef, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/ServiceInstallSymbol.cs b/src/WixToolset.Data/Symbols/ServiceInstallSymbol.cs new file mode 100644 index 00000000..f7ec8dbf --- /dev/null +++ b/src/WixToolset.Data/Symbols/ServiceInstallSymbol.cs @@ -0,0 +1,173 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition ServiceInstall = new IntermediateSymbolDefinition( + SymbolDefinitionType.ServiceInstall, + new[] + { + new IntermediateFieldDefinition(nameof(ServiceInstallSymbolFields.Name), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ServiceInstallSymbolFields.DisplayName), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ServiceInstallSymbolFields.ServiceType), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(ServiceInstallSymbolFields.StartType), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(ServiceInstallSymbolFields.ErrorControl), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(ServiceInstallSymbolFields.LoadOrderGroup), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ServiceInstallSymbolFields.Dependencies), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ServiceInstallSymbolFields.StartName), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ServiceInstallSymbolFields.Password), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ServiceInstallSymbolFields.Arguments), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ServiceInstallSymbolFields.ComponentRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ServiceInstallSymbolFields.Description), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ServiceInstallSymbolFields.Interactive), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(ServiceInstallSymbolFields.Vital), IntermediateFieldType.Bool), + }, + typeof(ServiceInstallSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum ServiceInstallSymbolFields + { + Name, + DisplayName, + ServiceType, + StartType, + ErrorControl, + LoadOrderGroup, + Dependencies, + StartName, + Password, + Arguments, + ComponentRef, + Description, + Interactive, + Vital, + } + + public enum ServiceType + { + KernelDriver, + SystemDriver, + OwnProcess = 0x10, + ShareProcess = 0x20, + InteractiveProcess = 0x100, + } + + public enum ServiceStartType + { + Boot, + System, + Auto, + Demand, + Disabled, + } + + public enum ServiceErrorControl + { + Ignore, + Normal, + Critical = 3, + } + + public class ServiceInstallSymbol : IntermediateSymbol + { + public ServiceInstallSymbol() : base(SymbolDefinitions.ServiceInstall, null, null) + { + } + + public ServiceInstallSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ServiceInstall, sourceLineNumber, id) + { + } + + public IntermediateField this[ServiceInstallSymbolFields index] => this.Fields[(int)index]; + + public string Name + { + get => (string)this.Fields[(int)ServiceInstallSymbolFields.Name]; + set => this.Set((int)ServiceInstallSymbolFields.Name, value); + } + + public string DisplayName + { + get => (string)this.Fields[(int)ServiceInstallSymbolFields.DisplayName]; + set => this.Set((int)ServiceInstallSymbolFields.DisplayName, value); + } + + public ServiceType ServiceType + { + get => (ServiceType)this.Fields[(int)ServiceInstallSymbolFields.ServiceType].AsNumber(); + set => this.Set((int)ServiceInstallSymbolFields.ServiceType, (int)value); + } + + public ServiceStartType StartType + { + get => (ServiceStartType)this.Fields[(int)ServiceInstallSymbolFields.StartType].AsNumber(); + set => this.Set((int)ServiceInstallSymbolFields.StartType, (int)value); + } + + public ServiceErrorControl ErrorControl + { + get => (ServiceErrorControl)this.Fields[(int)ServiceInstallSymbolFields.ErrorControl].AsNumber(); + set => this.Set((int)ServiceInstallSymbolFields.ErrorControl, (int)value); + } + + public string LoadOrderGroup + { + get => (string)this.Fields[(int)ServiceInstallSymbolFields.LoadOrderGroup]; + set => this.Set((int)ServiceInstallSymbolFields.LoadOrderGroup, value); + } + + public string Dependencies + { + get => (string)this.Fields[(int)ServiceInstallSymbolFields.Dependencies]; + set => this.Set((int)ServiceInstallSymbolFields.Dependencies, value); + } + + public string StartName + { + get => (string)this.Fields[(int)ServiceInstallSymbolFields.StartName]; + set => this.Set((int)ServiceInstallSymbolFields.StartName, value); + } + + public string Password + { + get => (string)this.Fields[(int)ServiceInstallSymbolFields.Password]; + set => this.Set((int)ServiceInstallSymbolFields.Password, value); + } + + public string Arguments + { + get => (string)this.Fields[(int)ServiceInstallSymbolFields.Arguments]; + set => this.Set((int)ServiceInstallSymbolFields.Arguments, value); + } + + public string ComponentRef + { + get => (string)this.Fields[(int)ServiceInstallSymbolFields.ComponentRef]; + set => this.Set((int)ServiceInstallSymbolFields.ComponentRef, value); + } + + public string Description + { + get => (string)this.Fields[(int)ServiceInstallSymbolFields.Description]; + set => this.Set((int)ServiceInstallSymbolFields.Description, value); + } + + public bool Interactive + { + get => this.Fields[(int)ServiceInstallSymbolFields.Interactive].AsBool(); + set => this.Set((int)ServiceInstallSymbolFields.Interactive, value); + } + + public bool Vital + { + get => this.Fields[(int)ServiceInstallSymbolFields.Vital].AsBool(); + set => this.Set((int)ServiceInstallSymbolFields.Vital, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/ShortcutSymbol.cs b/src/WixToolset.Data/Symbols/ShortcutSymbol.cs new file mode 100644 index 00000000..f32fe4af --- /dev/null +++ b/src/WixToolset.Data/Symbols/ShortcutSymbol.cs @@ -0,0 +1,171 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition Shortcut = new IntermediateSymbolDefinition( + SymbolDefinitionType.Shortcut, + new[] + { + new IntermediateFieldDefinition(nameof(ShortcutSymbolFields.DirectoryRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ShortcutSymbolFields.Name), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ShortcutSymbolFields.ShortName), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ShortcutSymbolFields.ComponentRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ShortcutSymbolFields.Target), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ShortcutSymbolFields.Arguments), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ShortcutSymbolFields.Description), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ShortcutSymbolFields.Hotkey), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(ShortcutSymbolFields.IconRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ShortcutSymbolFields.IconIndex), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(ShortcutSymbolFields.Show), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(ShortcutSymbolFields.WkDir), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ShortcutSymbolFields.DisplayResourceDLL), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ShortcutSymbolFields.DisplayResourceId), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(ShortcutSymbolFields.DescriptionResourceDLL), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ShortcutSymbolFields.DescriptionResourceId), IntermediateFieldType.Number), + }, + typeof(ShortcutSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum ShortcutSymbolFields + { + DirectoryRef, + Name, + ShortName, + ComponentRef, + Target, + Arguments, + Description, + Hotkey, + IconRef, + IconIndex, + Show, + WkDir, + DisplayResourceDLL, + DisplayResourceId, + DescriptionResourceDLL, + DescriptionResourceId, + } + + public enum ShortcutShowType + { + Normal = 1, + Maximized = 3, + Minimized = 7 + } + + public class ShortcutSymbol : IntermediateSymbol + { + public ShortcutSymbol() : base(SymbolDefinitions.Shortcut, null, null) + { + } + + public ShortcutSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Shortcut, sourceLineNumber, id) + { + } + + public IntermediateField this[ShortcutSymbolFields index] => this.Fields[(int)index]; + + public string DirectoryRef + { + get => (string)this.Fields[(int)ShortcutSymbolFields.DirectoryRef]; + set => this.Set((int)ShortcutSymbolFields.DirectoryRef, value); + } + + public string Name + { + get => (string)this.Fields[(int)ShortcutSymbolFields.Name]; + set => this.Set((int)ShortcutSymbolFields.Name, value); + } + + public string ShortName + { + get => (string)this.Fields[(int)ShortcutSymbolFields.ShortName]; + set => this.Set((int)ShortcutSymbolFields.ShortName, value); + } + + public string ComponentRef + { + get => (string)this.Fields[(int)ShortcutSymbolFields.ComponentRef]; + set => this.Set((int)ShortcutSymbolFields.ComponentRef, value); + } + + public string Target + { + get => (string)this.Fields[(int)ShortcutSymbolFields.Target]; + set => this.Set((int)ShortcutSymbolFields.Target, value); + } + + public string Arguments + { + get => (string)this.Fields[(int)ShortcutSymbolFields.Arguments]; + set => this.Set((int)ShortcutSymbolFields.Arguments, value); + } + + public string Description + { + get => (string)this.Fields[(int)ShortcutSymbolFields.Description]; + set => this.Set((int)ShortcutSymbolFields.Description, value); + } + + public int? Hotkey + { + get => this.Fields[(int)ShortcutSymbolFields.Hotkey].AsNullableNumber(); + set => this.Set((int)ShortcutSymbolFields.Hotkey, value); + } + + public string IconRef + { + get => (string)this.Fields[(int)ShortcutSymbolFields.IconRef]; + set => this.Set((int)ShortcutSymbolFields.IconRef, value); + } + + public int? IconIndex + { + get => this.Fields[(int)ShortcutSymbolFields.IconIndex].AsNullableNumber(); + set => this.Set((int)ShortcutSymbolFields.IconIndex, value); + } + + public ShortcutShowType? Show + { + get => (ShortcutShowType?)this.Fields[(int)ShortcutSymbolFields.Show].AsNullableNumber(); + set => this.Set((int)ShortcutSymbolFields.Show, (int?)value); + } + + public string WorkingDirectory + { + get => (string)this.Fields[(int)ShortcutSymbolFields.WkDir]; + set => this.Set((int)ShortcutSymbolFields.WkDir, value); + } + + public string DisplayResourceDll + { + get => (string)this.Fields[(int)ShortcutSymbolFields.DisplayResourceDLL]; + set => this.Set((int)ShortcutSymbolFields.DisplayResourceDLL, value); + } + + public int? DisplayResourceId + { + get => this.Fields[(int)ShortcutSymbolFields.DisplayResourceId].AsNullableNumber(); + set => this.Set((int)ShortcutSymbolFields.DisplayResourceId, value); + } + + public string DescriptionResourceDll + { + get => (string)this.Fields[(int)ShortcutSymbolFields.DescriptionResourceDLL]; + set => this.Set((int)ShortcutSymbolFields.DescriptionResourceDLL, value); + } + + public int? DescriptionResourceId + { + get => this.Fields[(int)ShortcutSymbolFields.DescriptionResourceId].AsNullableNumber(); + set => this.Set((int)ShortcutSymbolFields.DescriptionResourceId, value); + } + } +} diff --git a/src/WixToolset.Data/Symbols/SignatureSymbol.cs b/src/WixToolset.Data/Symbols/SignatureSymbol.cs new file mode 100644 index 00000000..fc2ce088 --- /dev/null +++ b/src/WixToolset.Data/Symbols/SignatureSymbol.cs @@ -0,0 +1,100 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition Signature = new IntermediateSymbolDefinition( + SymbolDefinitionType.Signature, + new[] + { + new IntermediateFieldDefinition(nameof(SignatureSymbolFields.FileName), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(SignatureSymbolFields.MinVersion), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(SignatureSymbolFields.MaxVersion), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(SignatureSymbolFields.MinSize), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(SignatureSymbolFields.MaxSize), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(SignatureSymbolFields.MinDate), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(SignatureSymbolFields.MaxDate), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(SignatureSymbolFields.Languages), IntermediateFieldType.String), + }, + typeof(SignatureSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum SignatureSymbolFields + { + FileName, + MinVersion, + MaxVersion, + MinSize, + MaxSize, + MinDate, + MaxDate, + Languages, + } + + public class SignatureSymbol : IntermediateSymbol + { + public SignatureSymbol() : base(SymbolDefinitions.Signature, null, null) + { + } + + public SignatureSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Signature, sourceLineNumber, id) + { + } + + public IntermediateField this[SignatureSymbolFields index] => this.Fields[(int)index]; + + public string FileName + { + get => (string)this.Fields[(int)SignatureSymbolFields.FileName]; + set => this.Set((int)SignatureSymbolFields.FileName, value); + } + + public string MinVersion + { + get => (string)this.Fields[(int)SignatureSymbolFields.MinVersion]; + set => this.Set((int)SignatureSymbolFields.MinVersion, value); + } + + public string MaxVersion + { + get => (string)this.Fields[(int)SignatureSymbolFields.MaxVersion]; + set => this.Set((int)SignatureSymbolFields.MaxVersion, value); + } + + public int? MinSize + { + get => (int?)this.Fields[(int)SignatureSymbolFields.MinSize]; + set => this.Set((int)SignatureSymbolFields.MinSize, value); + } + + public int? MaxSize + { + get => (int?)this.Fields[(int)SignatureSymbolFields.MaxSize]; + set => this.Set((int)SignatureSymbolFields.MaxSize, value); + } + + public int? MinDate + { + get => (int?)this.Fields[(int)SignatureSymbolFields.MinDate]; + set => this.Set((int)SignatureSymbolFields.MinDate, value); + } + + public int? MaxDate + { + get => (int?)this.Fields[(int)SignatureSymbolFields.MaxDate]; + set => this.Set((int)SignatureSymbolFields.MaxDate, value); + } + + public string Languages + { + get => (string)this.Fields[(int)SignatureSymbolFields.Languages]; + set => this.Set((int)SignatureSymbolFields.Languages, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/SummaryInformationSymbol.cs b/src/WixToolset.Data/Symbols/SummaryInformationSymbol.cs new file mode 100644 index 00000000..b3b233fe --- /dev/null +++ b/src/WixToolset.Data/Symbols/SummaryInformationSymbol.cs @@ -0,0 +1,102 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition SummaryInformation = new IntermediateSymbolDefinition( + SymbolDefinitionType.SummaryInformation, + new[] + { + new IntermediateFieldDefinition(nameof(SummaryInformationSymbolFields.PropertyId), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(SummaryInformationSymbolFields.Value), IntermediateFieldType.String), + }, + typeof(SummaryInformationSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum SummaryInformationSymbolFields + { + PropertyId, + Value, + } + + public enum SummaryInformationType + { + Codepage = 1, + Title, + Subject, + PatchPackageName = 3, //used by patches + Author, + Keywords, + Comments, + PlatformAndLanguage, + PatchProductCodes = 7, // used by patches + TransformPlatformAndLanguageOrStorageNames, + TransformNames = 8, // used by patches + PackageCode, + PatchCode = 9, // used by patches + TransformProductCodes = 9, // used by transforms + Reserved11 = 11, // reserved by patches + Created, + LastSaved, + WindowsInstallerVersion, + Reserved14 = 14, // reserved by patches + WordCount, + PatchInstallerRequirement = 15, // used by patches + Reserved16, // reserved by patches + TransformValidationFlags = 16, // used by transforms + CreatingApplication = 18, + Security + } + + /// + /// Summary information values for the PachInstallerRequirement property. + /// + public enum PatchInstallerRequirement + { + /// Any version of the installer will do + Version10 = 1, + + /// At least 1.2 + Version12 = 2, + + /// At least 2.0 + Version20 = 3, + + /// At least 3.0 + Version30 = 4, + + /// At least 3.1 + Version31 = 5, + } + + public class SummaryInformationSymbol : IntermediateSymbol + { + public SummaryInformationSymbol() : base(SymbolDefinitions.SummaryInformation, null, null) + { + } + + public SummaryInformationSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.SummaryInformation, sourceLineNumber, id) + { + } + + public IntermediateField this[SummaryInformationSymbolFields index] => this.Fields[(int)index]; + + public SummaryInformationType PropertyId + { + get => (SummaryInformationType)this.Fields[(int)SummaryInformationSymbolFields.PropertyId].AsNumber(); + set => this.Set((int)SummaryInformationSymbolFields.PropertyId, (int)value); + } + + public string Value + { + get => (string)this.Fields[(int)SummaryInformationSymbolFields.Value]; + set => this.Set((int)SummaryInformationSymbolFields.Value, value); + } + } +} diff --git a/src/WixToolset.Data/Symbols/SymbolDefinitions.cs b/src/WixToolset.Data/Symbols/SymbolDefinitions.cs new file mode 100644 index 00000000..ea90ef7b --- /dev/null +++ b/src/WixToolset.Data/Symbols/SymbolDefinitions.cs @@ -0,0 +1,736 @@ +// 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. + +namespace WixToolset.Data +{ + using System; + + public enum SymbolDefinitionType + { + SummaryInformation, + ActionText, + AppId, + AppSearch, + BBControl, + Billboard, + Binary, + CCPSearch, + CheckBox, + Class, + ComboBox, + CompLocator, + Complus, + Component, + Condition, + Control, + ControlCondition, + ControlEvent, + CreateFolder, + CustomAction, + Dialog, + Directory, + DrLocator, + DuplicateFile, + Environment, + Error, + EventMapping, + Extension, + ExternalFiles, + FamilyFileRanges, + Feature, + FeatureComponents, + File, + FileSFPCatalog, + Icon, + ImageFamilies, + IniFile, + IniLocator, + IsolatedComponent, + LaunchCondition, + ListBox, + ListView, + LockPermissions, + Media, + MIME, + ModuleComponents, + ModuleConfiguration, + ModuleDependency, + ModuleExclusion, + ModuleIgnoreTable, + ModuleSignature, + ModuleSubstitution, + MoveFile, + Assembly, + MsiAssemblyName, + MsiDigitalCertificate, + MsiDigitalSignature, + MsiEmbeddedChainer, + MsiEmbeddedUI, + MsiFileHash, + MsiLockPermissionsEx, + MsiPackageCertificate, + MsiPatchCertificate, + MsiPatchHeaders, + MsiPatchMetadata, + MsiPatchOldAssemblyFile, + MsiPatchOldAssemblyName, + MsiPatchSequence, + MsiServiceConfig, + MsiServiceConfigFailureActions, + MsiShortcutProperty, + ODBCAttribute, + ODBCDataSource, + ODBCDriver, + ODBCSourceAttribute, + ODBCTranslator, + Patch, + PatchMetadata, + PatchPackage, + PatchSequence, + ProgId, + Properties, + Property, + ProvidesDependency, + PublishComponent, + RadioButton, + Registry, + RegLocator, + RemoveFile, + RemoveRegistry, + ReserveCost, + ServiceControl, + ServiceInstall, + SFPCatalog, + Shortcut, + Signature, + TargetFilesOptionalData, + TargetImages, + TextStyle, + TypeLib, + UIText, + Upgrade, + UpgradedFilesOptionalData, + UpgradedFilesToIgnore, + UpgradedImages, + Verb, + WixAction, + WixApprovedExeForElevation, + WixBindUpdatedFiles, + WixBootstrapperApplication, + WixBuildInfo, + WixBundle, + WixBundleCatalog, + WixBundleContainer, + WixBundleCustomData, + WixBundleCustomDataAttribute, + WixBundleCustomDataCell, + WixBundleExePackage, + WixBundleExtension, + WixBundleMsiFeature, + WixBundleMsiPackage, + WixBundleMsiProperty, + WixBundleMspPackage, + WixBundleMsuPackage, + WixBundlePackage, + WixBundlePackageCommandLine, + WixBundlePackageExitCode, + WixBundlePackageGroup, + WixBundlePatchTargetCode, + WixBundlePayload, + WixBundlePayloadGroup, + WixBundleRelatedPackage, + WixBundleRollbackBoundary, + WixBundleSlipstreamMsp, + WixBundleUpdate, + WixBundleVariable, + WixChain, + WixChainItem, + WixComplexReference, + WixComponentGroup, + WixComponentSearch, + WixCustomTable, + WixCustomTableCell, + WixCustomTableColumn, + WixDeltaPatchFile, + WixDeltaPatchSymbolPaths, + WixDependencyProvider, + WixEnsureTable, + WixFeatureGroup, + WixFeatureModules, + WixFileSearch, + WixFragment, + WixGroup, + WixInstanceComponent, + WixInstanceTransforms, + WixMediaTemplate, + WixMerge, + WixOrdering, + WixPatchBaseline, + WixPatchFamilyGroup, + WixPatchId, + WixPatchRef, + WixPatchTarget, + WixProductSearch, + WixProperty, + WixRegistrySearch, + WixRelatedBundle, + WixSearch, + WixSearchRelation, + WixSetVariable, + WixSimpleReference, + WixSuppressAction, + WixSuppressModularization, + WixUI, + WixUpdateRegistration, + WixVariable, + MustBeFromAnExtension, + } + + public static partial class SymbolDefinitions + { + public static readonly Version Version = new Version("4.0.0"); + + public static IntermediateSymbolDefinition ByName(string name) + { + if (!Enum.TryParse(name, out SymbolDefinitionType type) || type == SymbolDefinitionType.MustBeFromAnExtension) + { + return null; + } + + return ByType(type); + } + + public static IntermediateSymbolDefinition ByType(SymbolDefinitionType type) + { + switch (type) + { + case SymbolDefinitionType.SummaryInformation: + return SymbolDefinitions.SummaryInformation; + + case SymbolDefinitionType.ActionText: + return SymbolDefinitions.ActionText; + + case SymbolDefinitionType.AppId: + return SymbolDefinitions.AppId; + + case SymbolDefinitionType.AppSearch: + return SymbolDefinitions.AppSearch; + + case SymbolDefinitionType.BBControl: + return SymbolDefinitions.BBControl; + + case SymbolDefinitionType.Billboard: + return SymbolDefinitions.Billboard; + + case SymbolDefinitionType.Binary: + return SymbolDefinitions.Binary; + + case SymbolDefinitionType.CCPSearch: + return SymbolDefinitions.CCPSearch; + + case SymbolDefinitionType.CheckBox: + return SymbolDefinitions.CheckBox; + + case SymbolDefinitionType.Class: + return SymbolDefinitions.Class; + + case SymbolDefinitionType.ComboBox: + return SymbolDefinitions.ComboBox; + + case SymbolDefinitionType.CompLocator: + return SymbolDefinitions.CompLocator; + + case SymbolDefinitionType.Complus: + return SymbolDefinitions.Complus; + + case SymbolDefinitionType.Component: + return SymbolDefinitions.Component; + + case SymbolDefinitionType.Condition: + return SymbolDefinitions.Condition; + + case SymbolDefinitionType.Control: + return SymbolDefinitions.Control; + + case SymbolDefinitionType.ControlCondition: + return SymbolDefinitions.ControlCondition; + + case SymbolDefinitionType.ControlEvent: + return SymbolDefinitions.ControlEvent; + + case SymbolDefinitionType.CreateFolder: + return SymbolDefinitions.CreateFolder; + + case SymbolDefinitionType.CustomAction: + return SymbolDefinitions.CustomAction; + + case SymbolDefinitionType.Dialog: + return SymbolDefinitions.Dialog; + + case SymbolDefinitionType.Directory: + return SymbolDefinitions.Directory; + + case SymbolDefinitionType.DrLocator: + return SymbolDefinitions.DrLocator; + + case SymbolDefinitionType.DuplicateFile: + return SymbolDefinitions.DuplicateFile; + + case SymbolDefinitionType.Environment: + return SymbolDefinitions.Environment; + + case SymbolDefinitionType.Error: + return SymbolDefinitions.Error; + + case SymbolDefinitionType.EventMapping: + return SymbolDefinitions.EventMapping; + + case SymbolDefinitionType.Extension: + return SymbolDefinitions.Extension; + + case SymbolDefinitionType.ExternalFiles: + return SymbolDefinitions.ExternalFiles; + + case SymbolDefinitionType.FamilyFileRanges: + return SymbolDefinitions.FamilyFileRanges; + + case SymbolDefinitionType.Feature: + return SymbolDefinitions.Feature; + + case SymbolDefinitionType.FeatureComponents: + return SymbolDefinitions.FeatureComponents; + + case SymbolDefinitionType.File: + return SymbolDefinitions.File; + + case SymbolDefinitionType.FileSFPCatalog: + return SymbolDefinitions.FileSFPCatalog; + + case SymbolDefinitionType.Icon: + return SymbolDefinitions.Icon; + + case SymbolDefinitionType.ImageFamilies: + return SymbolDefinitions.ImageFamilies; + + case SymbolDefinitionType.IniFile: + return SymbolDefinitions.IniFile; + + case SymbolDefinitionType.IniLocator: + return SymbolDefinitions.IniLocator; + + case SymbolDefinitionType.IsolatedComponent: + return SymbolDefinitions.IsolatedComponent; + + case SymbolDefinitionType.LaunchCondition: + return SymbolDefinitions.LaunchCondition; + + case SymbolDefinitionType.ListBox: + return SymbolDefinitions.ListBox; + + case SymbolDefinitionType.ListView: + return SymbolDefinitions.ListView; + + case SymbolDefinitionType.LockPermissions: + return SymbolDefinitions.LockPermissions; + + case SymbolDefinitionType.Media: + return SymbolDefinitions.Media; + + case SymbolDefinitionType.MIME: + return SymbolDefinitions.MIME; + + case SymbolDefinitionType.ModuleComponents: + return SymbolDefinitions.ModuleComponents; + + case SymbolDefinitionType.ModuleConfiguration: + return SymbolDefinitions.ModuleConfiguration; + + case SymbolDefinitionType.ModuleDependency: + return SymbolDefinitions.ModuleDependency; + + case SymbolDefinitionType.ModuleExclusion: + return SymbolDefinitions.ModuleExclusion; + + case SymbolDefinitionType.ModuleIgnoreTable: + return SymbolDefinitions.ModuleIgnoreTable; + + case SymbolDefinitionType.ModuleSignature: + return SymbolDefinitions.ModuleSignature; + + case SymbolDefinitionType.ModuleSubstitution: + return SymbolDefinitions.ModuleSubstitution; + + case SymbolDefinitionType.MoveFile: + return SymbolDefinitions.MoveFile; + + case SymbolDefinitionType.Assembly: + return SymbolDefinitions.Assembly; + + case SymbolDefinitionType.MsiAssemblyName: + return SymbolDefinitions.MsiAssemblyName; + + case SymbolDefinitionType.MsiDigitalCertificate: + return SymbolDefinitions.MsiDigitalCertificate; + + case SymbolDefinitionType.MsiDigitalSignature: + return SymbolDefinitions.MsiDigitalSignature; + + case SymbolDefinitionType.MsiEmbeddedChainer: + return SymbolDefinitions.MsiEmbeddedChainer; + + case SymbolDefinitionType.MsiEmbeddedUI: + return SymbolDefinitions.MsiEmbeddedUI; + + case SymbolDefinitionType.MsiFileHash: + return SymbolDefinitions.MsiFileHash; + + case SymbolDefinitionType.MsiLockPermissionsEx: + return SymbolDefinitions.MsiLockPermissionsEx; + + case SymbolDefinitionType.MsiPackageCertificate: + return SymbolDefinitions.MsiPackageCertificate; + + case SymbolDefinitionType.MsiPatchCertificate: + return SymbolDefinitions.MsiPatchCertificate; + + case SymbolDefinitionType.MsiPatchHeaders: + return SymbolDefinitions.MsiPatchHeaders; + + case SymbolDefinitionType.MsiPatchMetadata: + return SymbolDefinitions.MsiPatchMetadata; + + case SymbolDefinitionType.MsiPatchOldAssemblyFile: + return SymbolDefinitions.MsiPatchOldAssemblyFile; + + case SymbolDefinitionType.MsiPatchOldAssemblyName: + return SymbolDefinitions.MsiPatchOldAssemblyName; + + case SymbolDefinitionType.MsiPatchSequence: + return SymbolDefinitions.MsiPatchSequence; + + case SymbolDefinitionType.MsiServiceConfig: + return SymbolDefinitions.MsiServiceConfig; + + case SymbolDefinitionType.MsiServiceConfigFailureActions: + return SymbolDefinitions.MsiServiceConfigFailureActions; + + case SymbolDefinitionType.MsiShortcutProperty: + return SymbolDefinitions.MsiShortcutProperty; + + case SymbolDefinitionType.ODBCAttribute: + return SymbolDefinitions.ODBCAttribute; + + case SymbolDefinitionType.ODBCDataSource: + return SymbolDefinitions.ODBCDataSource; + + case SymbolDefinitionType.ODBCDriver: + return SymbolDefinitions.ODBCDriver; + + case SymbolDefinitionType.ODBCSourceAttribute: + return SymbolDefinitions.ODBCSourceAttribute; + + case SymbolDefinitionType.ODBCTranslator: + return SymbolDefinitions.ODBCTranslator; + + case SymbolDefinitionType.Patch: + return SymbolDefinitions.Patch; + + case SymbolDefinitionType.PatchMetadata: + return SymbolDefinitions.PatchMetadata; + + case SymbolDefinitionType.PatchPackage: + return SymbolDefinitions.PatchPackage; + + case SymbolDefinitionType.PatchSequence: + return SymbolDefinitions.PatchSequence; + + case SymbolDefinitionType.ProgId: + return SymbolDefinitions.ProgId; + + case SymbolDefinitionType.Properties: + return SymbolDefinitions.Properties; + + case SymbolDefinitionType.Property: + return SymbolDefinitions.Property; + + case SymbolDefinitionType.PublishComponent: + return SymbolDefinitions.PublishComponent; + + case SymbolDefinitionType.ProvidesDependency: + return SymbolDefinitions.ProvidesDependency; + + case SymbolDefinitionType.RadioButton: + return SymbolDefinitions.RadioButton; + + case SymbolDefinitionType.Registry: + return SymbolDefinitions.Registry; + + case SymbolDefinitionType.RegLocator: + return SymbolDefinitions.RegLocator; + + case SymbolDefinitionType.RemoveFile: + return SymbolDefinitions.RemoveFile; + + case SymbolDefinitionType.RemoveRegistry: + return SymbolDefinitions.RemoveRegistry; + + case SymbolDefinitionType.ReserveCost: + return SymbolDefinitions.ReserveCost; + + case SymbolDefinitionType.ServiceControl: + return SymbolDefinitions.ServiceControl; + + case SymbolDefinitionType.ServiceInstall: + return SymbolDefinitions.ServiceInstall; + + case SymbolDefinitionType.SFPCatalog: + return SymbolDefinitions.SFPCatalog; + + case SymbolDefinitionType.Shortcut: + return SymbolDefinitions.Shortcut; + + case SymbolDefinitionType.Signature: + return SymbolDefinitions.Signature; + + case SymbolDefinitionType.TargetFilesOptionalData: + return SymbolDefinitions.TargetFilesOptionalData; + + case SymbolDefinitionType.TargetImages: + return SymbolDefinitions.TargetImages; + + case SymbolDefinitionType.TextStyle: + return SymbolDefinitions.TextStyle; + + case SymbolDefinitionType.TypeLib: + return SymbolDefinitions.TypeLib; + + case SymbolDefinitionType.UIText: + return SymbolDefinitions.UIText; + + case SymbolDefinitionType.Upgrade: + return SymbolDefinitions.Upgrade; + + case SymbolDefinitionType.UpgradedFilesOptionalData: + return SymbolDefinitions.UpgradedFilesOptionalData; + + case SymbolDefinitionType.UpgradedFilesToIgnore: + return SymbolDefinitions.UpgradedFilesToIgnore; + + case SymbolDefinitionType.UpgradedImages: + return SymbolDefinitions.UpgradedImages; + + case SymbolDefinitionType.Verb: + return SymbolDefinitions.Verb; + + case SymbolDefinitionType.WixAction: + return SymbolDefinitions.WixAction; + + case SymbolDefinitionType.WixApprovedExeForElevation: + return SymbolDefinitions.WixApprovedExeForElevation; + + case SymbolDefinitionType.WixBindUpdatedFiles: + return SymbolDefinitions.WixBindUpdatedFiles; + + case SymbolDefinitionType.WixBootstrapperApplication: + return SymbolDefinitions.WixBootstrapperApplication; + + case SymbolDefinitionType.WixBuildInfo: + return SymbolDefinitions.WixBuildInfo; + + case SymbolDefinitionType.WixBundle: + return SymbolDefinitions.WixBundle; + + case SymbolDefinitionType.WixBundleCatalog: + return SymbolDefinitions.WixBundleCatalog; + + case SymbolDefinitionType.WixBundleContainer: + return SymbolDefinitions.WixBundleContainer; + + case SymbolDefinitionType.WixBundleCustomData: + return SymbolDefinitions.WixBundleCustomData; + + case SymbolDefinitionType.WixBundleCustomDataAttribute: + return SymbolDefinitions.WixBundleCustomDataAttribute; + + case SymbolDefinitionType.WixBundleCustomDataCell: + return SymbolDefinitions.WixBundleCustomDataCell; + + case SymbolDefinitionType.WixBundleExtension: + return SymbolDefinitions.WixBundleExtension; + + case SymbolDefinitionType.WixBundleExePackage: + return SymbolDefinitions.WixBundleExePackage; + + case SymbolDefinitionType.WixBundleMsiFeature: + return SymbolDefinitions.WixBundleMsiFeature; + + case SymbolDefinitionType.WixBundleMsiPackage: + return SymbolDefinitions.WixBundleMsiPackage; + + case SymbolDefinitionType.WixBundleMsiProperty: + return SymbolDefinitions.WixBundleMsiProperty; + + case SymbolDefinitionType.WixBundleMspPackage: + return SymbolDefinitions.WixBundleMspPackage; + + case SymbolDefinitionType.WixBundleMsuPackage: + return SymbolDefinitions.WixBundleMsuPackage; + + case SymbolDefinitionType.WixBundlePackage: + return SymbolDefinitions.WixBundlePackage; + + case SymbolDefinitionType.WixBundlePackageCommandLine: + return SymbolDefinitions.WixBundlePackageCommandLine; + + case SymbolDefinitionType.WixBundlePackageExitCode: + return SymbolDefinitions.WixBundlePackageExitCode; + + case SymbolDefinitionType.WixBundlePackageGroup: + return SymbolDefinitions.WixBundlePackageGroup; + + case SymbolDefinitionType.WixBundlePatchTargetCode: + return SymbolDefinitions.WixBundlePatchTargetCode; + + case SymbolDefinitionType.WixBundlePayload: + return SymbolDefinitions.WixBundlePayload; + + case SymbolDefinitionType.WixBundlePayloadGroup: + return SymbolDefinitions.WixBundlePayloadGroup; + + case SymbolDefinitionType.WixBundleRelatedPackage: + return SymbolDefinitions.WixBundleRelatedPackage; + + case SymbolDefinitionType.WixBundleRollbackBoundary: + return SymbolDefinitions.WixBundleRollbackBoundary; + + case SymbolDefinitionType.WixBundleSlipstreamMsp: + return SymbolDefinitions.WixBundleSlipstreamMsp; + + case SymbolDefinitionType.WixBundleUpdate: + return SymbolDefinitions.WixBundleUpdate; + + case SymbolDefinitionType.WixBundleVariable: + return SymbolDefinitions.WixBundleVariable; + + case SymbolDefinitionType.WixChain: + return SymbolDefinitions.WixChain; + + case SymbolDefinitionType.WixChainItem: + return SymbolDefinitions.WixChainItem; + + case SymbolDefinitionType.WixComplexReference: + return SymbolDefinitions.WixComplexReference; + + case SymbolDefinitionType.WixComponentGroup: + return SymbolDefinitions.WixComponentGroup; + + case SymbolDefinitionType.WixComponentSearch: + return SymbolDefinitions.WixComponentSearch; + + case SymbolDefinitionType.WixCustomTable: + return SymbolDefinitions.WixCustomTable; + + case SymbolDefinitionType.WixCustomTableCell: + return SymbolDefinitions.WixCustomTableCell; + + case SymbolDefinitionType.WixCustomTableColumn: + return SymbolDefinitions.WixCustomTableColumn; + + case SymbolDefinitionType.WixDeltaPatchFile: + return SymbolDefinitions.WixDeltaPatchFile; + + case SymbolDefinitionType.WixDeltaPatchSymbolPaths: + return SymbolDefinitions.WixDeltaPatchSymbolPaths; + + case SymbolDefinitionType.WixEnsureTable: + return SymbolDefinitions.WixEnsureTable; + + case SymbolDefinitionType.WixFeatureGroup: + return SymbolDefinitions.WixFeatureGroup; + + case SymbolDefinitionType.WixFeatureModules: + return SymbolDefinitions.WixFeatureModules; + + case SymbolDefinitionType.WixFileSearch: + return SymbolDefinitions.WixFileSearch; + + case SymbolDefinitionType.WixFragment: + return SymbolDefinitions.WixFragment; + + case SymbolDefinitionType.WixGroup: + return SymbolDefinitions.WixGroup; + + case SymbolDefinitionType.WixInstanceComponent: + return SymbolDefinitions.WixInstanceComponent; + + case SymbolDefinitionType.WixInstanceTransforms: + return SymbolDefinitions.WixInstanceTransforms; + + case SymbolDefinitionType.WixMediaTemplate: + return SymbolDefinitions.WixMediaTemplate; + + case SymbolDefinitionType.WixMerge: + return SymbolDefinitions.WixMerge; + + case SymbolDefinitionType.WixOrdering: + return SymbolDefinitions.WixOrdering; + + case SymbolDefinitionType.WixPatchBaseline: + return SymbolDefinitions.WixPatchBaseline; + + case SymbolDefinitionType.WixPatchFamilyGroup: + return SymbolDefinitions.WixPatchFamilyGroup; + + case SymbolDefinitionType.WixPatchId: + return SymbolDefinitions.WixPatchId; + + case SymbolDefinitionType.WixPatchRef: + return SymbolDefinitions.WixPatchRef; + + case SymbolDefinitionType.WixPatchTarget: + return SymbolDefinitions.WixPatchTarget; + + case SymbolDefinitionType.WixProductSearch: + return SymbolDefinitions.WixProductSearch; + + case SymbolDefinitionType.WixProperty: + return SymbolDefinitions.WixProperty; + + case SymbolDefinitionType.WixRegistrySearch: + return SymbolDefinitions.WixRegistrySearch; + + case SymbolDefinitionType.WixRelatedBundle: + return SymbolDefinitions.WixRelatedBundle; + + case SymbolDefinitionType.WixSearch: + return SymbolDefinitions.WixSearch; + + case SymbolDefinitionType.WixSearchRelation: + return SymbolDefinitions.WixSearchRelation; + + case SymbolDefinitionType.WixSetVariable: + return SymbolDefinitions.WixSetVariable; + + case SymbolDefinitionType.WixSimpleReference: + return SymbolDefinitions.WixSimpleReference; + + case SymbolDefinitionType.WixSuppressAction: + return SymbolDefinitions.WixSuppressAction; + + case SymbolDefinitionType.WixSuppressModularization: + return SymbolDefinitions.WixSuppressModularization; + + case SymbolDefinitionType.WixUI: + return SymbolDefinitions.WixUI; + + case SymbolDefinitionType.WixUpdateRegistration: + return SymbolDefinitions.WixUpdateRegistration; + + case SymbolDefinitionType.WixVariable: + return SymbolDefinitions.WixVariable; + + default: + throw new ArgumentOutOfRangeException(nameof(type)); + } + } + } +} diff --git a/src/WixToolset.Data/Symbols/TargetFilesOptionalDataSymbol.cs b/src/WixToolset.Data/Symbols/TargetFilesOptionalDataSymbol.cs new file mode 100644 index 00000000..66fdc30c --- /dev/null +++ b/src/WixToolset.Data/Symbols/TargetFilesOptionalDataSymbol.cs @@ -0,0 +1,84 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition TargetFilesOptionalData = new IntermediateSymbolDefinition( + SymbolDefinitionType.TargetFilesOptionalData, + new[] + { + new IntermediateFieldDefinition(nameof(TargetFilesOptionalDataSymbolFields.Target), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(TargetFilesOptionalDataSymbolFields.FTK), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(TargetFilesOptionalDataSymbolFields.SymbolPaths), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(TargetFilesOptionalDataSymbolFields.IgnoreOffsets), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(TargetFilesOptionalDataSymbolFields.IgnoreLengths), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(TargetFilesOptionalDataSymbolFields.RetainOffsets), IntermediateFieldType.String), + }, + typeof(TargetFilesOptionalDataSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum TargetFilesOptionalDataSymbolFields + { + Target, + FTK, + SymbolPaths, + IgnoreOffsets, + IgnoreLengths, + RetainOffsets, + } + + public class TargetFilesOptionalDataSymbol : IntermediateSymbol + { + public TargetFilesOptionalDataSymbol() : base(SymbolDefinitions.TargetFilesOptionalData, null, null) + { + } + + public TargetFilesOptionalDataSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.TargetFilesOptionalData, sourceLineNumber, id) + { + } + + public IntermediateField this[TargetFilesOptionalDataSymbolFields index] => this.Fields[(int)index]; + + public string Target + { + get => (string)this.Fields[(int)TargetFilesOptionalDataSymbolFields.Target]; + set => this.Set((int)TargetFilesOptionalDataSymbolFields.Target, value); + } + + public string FTK + { + get => (string)this.Fields[(int)TargetFilesOptionalDataSymbolFields.FTK]; + set => this.Set((int)TargetFilesOptionalDataSymbolFields.FTK, value); + } + + public string SymbolPaths + { + get => (string)this.Fields[(int)TargetFilesOptionalDataSymbolFields.SymbolPaths]; + set => this.Set((int)TargetFilesOptionalDataSymbolFields.SymbolPaths, value); + } + + public string IgnoreOffsets + { + get => (string)this.Fields[(int)TargetFilesOptionalDataSymbolFields.IgnoreOffsets]; + set => this.Set((int)TargetFilesOptionalDataSymbolFields.IgnoreOffsets, value); + } + + public string IgnoreLengths + { + get => (string)this.Fields[(int)TargetFilesOptionalDataSymbolFields.IgnoreLengths]; + set => this.Set((int)TargetFilesOptionalDataSymbolFields.IgnoreLengths, value); + } + + public string RetainOffsets + { + get => (string)this.Fields[(int)TargetFilesOptionalDataSymbolFields.RetainOffsets]; + set => this.Set((int)TargetFilesOptionalDataSymbolFields.RetainOffsets, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/TargetImagesSymbol.cs b/src/WixToolset.Data/Symbols/TargetImagesSymbol.cs new file mode 100644 index 00000000..4748b1f3 --- /dev/null +++ b/src/WixToolset.Data/Symbols/TargetImagesSymbol.cs @@ -0,0 +1,92 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition TargetImages = new IntermediateSymbolDefinition( + SymbolDefinitionType.TargetImages, + new[] + { + new IntermediateFieldDefinition(nameof(TargetImagesSymbolFields.Target), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(TargetImagesSymbolFields.MsiPath), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(TargetImagesSymbolFields.SymbolPaths), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(TargetImagesSymbolFields.Upgraded), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(TargetImagesSymbolFields.Order), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(TargetImagesSymbolFields.ProductValidateFlags), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(TargetImagesSymbolFields.IgnoreMissingSrcFiles), IntermediateFieldType.Bool), + }, + typeof(TargetImagesSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum TargetImagesSymbolFields + { + Target, + MsiPath, + SymbolPaths, + Upgraded, + Order, + ProductValidateFlags, + IgnoreMissingSrcFiles, + } + + public class TargetImagesSymbol : IntermediateSymbol + { + public TargetImagesSymbol() : base(SymbolDefinitions.TargetImages, null, null) + { + } + + public TargetImagesSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.TargetImages, sourceLineNumber, id) + { + } + + public IntermediateField this[TargetImagesSymbolFields index] => this.Fields[(int)index]; + + public string Target + { + get => (string)this.Fields[(int)TargetImagesSymbolFields.Target]; + set => this.Set((int)TargetImagesSymbolFields.Target, value); + } + + public string MsiPath + { + get => (string)this.Fields[(int)TargetImagesSymbolFields.MsiPath]; + set => this.Set((int)TargetImagesSymbolFields.MsiPath, value); + } + + public string SymbolPaths + { + get => (string)this.Fields[(int)TargetImagesSymbolFields.SymbolPaths]; + set => this.Set((int)TargetImagesSymbolFields.SymbolPaths, value); + } + + public string Upgraded + { + get => (string)this.Fields[(int)TargetImagesSymbolFields.Upgraded]; + set => this.Set((int)TargetImagesSymbolFields.Upgraded, value); + } + + public int Order + { + get => (int)this.Fields[(int)TargetImagesSymbolFields.Order]; + set => this.Set((int)TargetImagesSymbolFields.Order, value); + } + + public string ProductValidateFlags + { + get => (string)this.Fields[(int)TargetImagesSymbolFields.ProductValidateFlags]; + set => this.Set((int)TargetImagesSymbolFields.ProductValidateFlags, value); + } + + public bool IgnoreMissingSrcFiles + { + get => (bool)this.Fields[(int)TargetImagesSymbolFields.IgnoreMissingSrcFiles]; + set => this.Set((int)TargetImagesSymbolFields.IgnoreMissingSrcFiles, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/TextStyleSymbol.cs b/src/WixToolset.Data/Symbols/TextStyleSymbol.cs new file mode 100644 index 00000000..b07615bb --- /dev/null +++ b/src/WixToolset.Data/Symbols/TextStyleSymbol.cs @@ -0,0 +1,108 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition TextStyle = new IntermediateSymbolDefinition( + SymbolDefinitionType.TextStyle, + new[] + { + new IntermediateFieldDefinition(nameof(TextStyleSymbolFields.FaceName), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(TextStyleSymbolFields.Size), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(TextStyleSymbolFields.Red), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(TextStyleSymbolFields.Green), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(TextStyleSymbolFields.Blue), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(TextStyleSymbolFields.Bold), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(TextStyleSymbolFields.Italic), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(TextStyleSymbolFields.Strike), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(TextStyleSymbolFields.Underline), IntermediateFieldType.Bool), + }, + typeof(TextStyleSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum TextStyleSymbolFields + { + FaceName, + Size, + Red, + Green, + Blue, + Bold, + Italic, + Strike, + Underline, + } + + public class TextStyleSymbol : IntermediateSymbol + { + public TextStyleSymbol() : base(SymbolDefinitions.TextStyle, null, null) + { + } + + public TextStyleSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.TextStyle, sourceLineNumber, id) + { + } + + public IntermediateField this[TextStyleSymbolFields index] => this.Fields[(int)index]; + + public string FaceName + { + get => (string)this.Fields[(int)TextStyleSymbolFields.FaceName]; + set => this.Set((int)TextStyleSymbolFields.FaceName, value); + } + + public int Size + { + get => (int)this.Fields[(int)TextStyleSymbolFields.Size]; + set => this.Set((int)TextStyleSymbolFields.Size, value); + } + + public int? Red + { + get => (int?)this.Fields[(int)TextStyleSymbolFields.Red]; + set => this.Set((int)TextStyleSymbolFields.Red, value); + } + + public int? Green + { + get => (int?)this.Fields[(int)TextStyleSymbolFields.Green]; + set => this.Set((int)TextStyleSymbolFields.Green, value); + } + + public int? Blue + { + get => (int?)this.Fields[(int)TextStyleSymbolFields.Blue]; + set => this.Set((int)TextStyleSymbolFields.Blue, value); + } + + public bool Bold + { + get => (bool)this.Fields[(int)TextStyleSymbolFields.Bold]; + set => this.Set((int)TextStyleSymbolFields.Bold, value); + } + + public bool Italic + { + get => (bool)this.Fields[(int)TextStyleSymbolFields.Italic]; + set => this.Set((int)TextStyleSymbolFields.Italic, value); + } + + public bool Strike + { + get => (bool)this.Fields[(int)TextStyleSymbolFields.Strike]; + set => this.Set((int)TextStyleSymbolFields.Strike, value); + } + + public bool Underline + { + get => (bool)this.Fields[(int)TextStyleSymbolFields.Underline]; + set => this.Set((int)TextStyleSymbolFields.Underline, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/TransformsFlags.cs b/src/WixToolset.Data/Symbols/TransformsFlags.cs new file mode 100644 index 00000000..90f22cb4 --- /dev/null +++ b/src/WixToolset.Data/Symbols/TransformsFlags.cs @@ -0,0 +1,79 @@ +// 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. + +namespace WixToolset.Data.Symbols +{ + using System; + + /// + /// Summary information values for the CharCount property in transforms. + /// + [Flags] + public enum TransformFlags + { + /// Ignore error when adding a row that exists. + ErrorAddExistingRow = 0x1, + + /// Ignore error when deleting a row that does not exist. + ErrorDeleteMissingRow = 0x2, + + /// Ignore error when adding a table that exists. + ErrorAddExistingTable = 0x4, + + /// Ignore error when deleting a table that does not exist. + ErrorDeleteMissingTable = 0x8, + + /// Ignore error when updating a row that does not exist. + ErrorUpdateMissingRow = 0x10, + + /// Ignore error when transform and database code pages do not match, and their code pages are neutral. + ErrorChangeCodePage = 0x20, + + /// Default language must match base database. + ValidateLanguage = 0x10000, + + /// Product must match base database. + ValidateProduct = 0x20000, + + /// Check major version only. + ValidateMajorVersion = 0x80000, + + /// Check major and minor versions only. + ValidateMinorVersion = 0x100000, + + /// Check major, minor, and update versions. + ValidateUpdateVersion = 0x200000, + + /// Installed version lt base version. + ValidateNewLessBaseVersion = 0x400000, + + /// Installed version lte base version. + ValidateNewLessEqualBaseVersion = 0x800000, + + /// Installed version eq base version. + ValidateNewEqualBaseVersion = 0x1000000, + + /// Installed version gte base version. + ValidateNewGreaterEqualBaseVersion = 0x2000000, + + /// Installed version gt base version. + ValidateNewGreaterBaseVersion = 0x4000000, + + /// UpgradeCode must match base database. + ValidateUpgradeCode = 0x8000000, + + /// Masks all version checks on ProductVersion. + ProductVersionMask = ValidateMajorVersion | ValidateMinorVersion | ValidateUpdateVersion, + + /// Masks all operations on ProductVersion. + ProductVersionOperatorMask = ValidateNewLessBaseVersion | ValidateNewLessEqualBaseVersion | ValidateNewEqualBaseVersion | ValidateNewGreaterEqualBaseVersion | ValidateNewGreaterBaseVersion, + + /// Default value for instance transforms. + InstanceTransformDefault = ErrorAddExistingRow | ErrorDeleteMissingRow | ErrorAddExistingTable | ErrorDeleteMissingTable | ErrorUpdateMissingRow | ErrorChangeCodePage | ValidateProduct | ValidateUpdateVersion | ValidateNewGreaterEqualBaseVersion, + + /// Default value for language transforms. + LanguageTransformDefault = ErrorAddExistingRow | ErrorDeleteMissingRow | ErrorAddExistingTable | ErrorDeleteMissingTable | ErrorUpdateMissingRow | ErrorChangeCodePage | ValidateProduct, + + /// Default value for patch transforms. + PatchTransformDefault = ErrorAddExistingRow | ErrorDeleteMissingRow | ErrorAddExistingTable | ErrorDeleteMissingTable | ErrorUpdateMissingRow | ValidateProduct | ValidateUpdateVersion | ValidateNewEqualBaseVersion | ValidateUpgradeCode, + } +} diff --git a/src/WixToolset.Data/Symbols/TypeLibSymbol.cs b/src/WixToolset.Data/Symbols/TypeLibSymbol.cs new file mode 100644 index 00000000..736ee292 --- /dev/null +++ b/src/WixToolset.Data/Symbols/TypeLibSymbol.cs @@ -0,0 +1,100 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition TypeLib = new IntermediateSymbolDefinition( + SymbolDefinitionType.TypeLib, + new[] + { + new IntermediateFieldDefinition(nameof(TypeLibSymbolFields.LibId), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(TypeLibSymbolFields.Language), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(TypeLibSymbolFields.ComponentRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(TypeLibSymbolFields.Version), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(TypeLibSymbolFields.Description), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(TypeLibSymbolFields.DirectoryRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(TypeLibSymbolFields.FeatureRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(TypeLibSymbolFields.Cost), IntermediateFieldType.Number), + }, + typeof(TypeLibSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum TypeLibSymbolFields + { + LibId, + Language, + ComponentRef, + Version, + Description, + DirectoryRef, + FeatureRef, + Cost, + } + + public class TypeLibSymbol : IntermediateSymbol + { + public TypeLibSymbol() : base(SymbolDefinitions.TypeLib, null, null) + { + } + + public TypeLibSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.TypeLib, sourceLineNumber, id) + { + } + + public IntermediateField this[TypeLibSymbolFields index] => this.Fields[(int)index]; + + public string LibId + { + get => (string)this.Fields[(int)TypeLibSymbolFields.LibId]; + set => this.Set((int)TypeLibSymbolFields.LibId, value); + } + + public int Language + { + get => (int)this.Fields[(int)TypeLibSymbolFields.Language]; + set => this.Set((int)TypeLibSymbolFields.Language, value); + } + + public string ComponentRef + { + get => (string)this.Fields[(int)TypeLibSymbolFields.ComponentRef]; + set => this.Set((int)TypeLibSymbolFields.ComponentRef, value); + } + + public int? Version + { + get => (int?)this.Fields[(int)TypeLibSymbolFields.Version]; + set => this.Set((int)TypeLibSymbolFields.Version, value); + } + + public string Description + { + get => (string)this.Fields[(int)TypeLibSymbolFields.Description]; + set => this.Set((int)TypeLibSymbolFields.Description, value); + } + + public string DirectoryRef + { + get => (string)this.Fields[(int)TypeLibSymbolFields.DirectoryRef]; + set => this.Set((int)TypeLibSymbolFields.DirectoryRef, value); + } + + public string FeatureRef + { + get => (string)this.Fields[(int)TypeLibSymbolFields.FeatureRef]; + set => this.Set((int)TypeLibSymbolFields.FeatureRef, value); + } + + public int? Cost + { + get => (int?)this.Fields[(int)TypeLibSymbolFields.Cost]; + set => this.Set((int)TypeLibSymbolFields.Cost, value); + } + } +} diff --git a/src/WixToolset.Data/Symbols/UITextSymbol.cs b/src/WixToolset.Data/Symbols/UITextSymbol.cs new file mode 100644 index 00000000..39b99398 --- /dev/null +++ b/src/WixToolset.Data/Symbols/UITextSymbol.cs @@ -0,0 +1,44 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition UIText = new IntermediateSymbolDefinition( + SymbolDefinitionType.UIText, + new[] + { + new IntermediateFieldDefinition(nameof(UITextSymbolFields.Text), IntermediateFieldType.String), + }, + typeof(UITextSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum UITextSymbolFields + { + Text, + } + + public class UITextSymbol : IntermediateSymbol + { + public UITextSymbol() : base(SymbolDefinitions.UIText, null, null) + { + } + + public UITextSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.UIText, sourceLineNumber, id) + { + } + + public IntermediateField this[UITextSymbolFields index] => this.Fields[(int)index]; + + public string Text + { + get => (string)this.Fields[(int)UITextSymbolFields.Text]; + set => this.Set((int)UITextSymbolFields.Text, value); + } + } +} diff --git a/src/WixToolset.Data/Symbols/UpgradeSymbol.cs b/src/WixToolset.Data/Symbols/UpgradeSymbol.cs new file mode 100644 index 00000000..d8deee73 --- /dev/null +++ b/src/WixToolset.Data/Symbols/UpgradeSymbol.cs @@ -0,0 +1,132 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition Upgrade = new IntermediateSymbolDefinition( + SymbolDefinitionType.Upgrade, + new[] + { + new IntermediateFieldDefinition(nameof(UpgradeSymbolFields.UpgradeCode), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(UpgradeSymbolFields.VersionMin), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(UpgradeSymbolFields.VersionMax), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(UpgradeSymbolFields.Language), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(UpgradeSymbolFields.ExcludeLanguages), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(UpgradeSymbolFields.IgnoreRemoveFailures), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(UpgradeSymbolFields.MigrateFeatures), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(UpgradeSymbolFields.OnlyDetect), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(UpgradeSymbolFields.VersionMaxInclusive), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(UpgradeSymbolFields.VersionMinInclusive), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(UpgradeSymbolFields.Remove), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(UpgradeSymbolFields.ActionProperty), IntermediateFieldType.String), + }, + typeof(UpgradeSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum UpgradeSymbolFields + { + UpgradeCode, + VersionMin, + VersionMax, + Language, + ExcludeLanguages, + IgnoreRemoveFailures, + MigrateFeatures, + OnlyDetect, + VersionMaxInclusive, + VersionMinInclusive, + Remove, + ActionProperty, + } + + public class UpgradeSymbol : IntermediateSymbol + { + public UpgradeSymbol() : base(SymbolDefinitions.Upgrade, null, null) + { + } + + public UpgradeSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Upgrade, sourceLineNumber, id) + { + } + + public IntermediateField this[UpgradeSymbolFields index] => this.Fields[(int)index]; + + public string UpgradeCode + { + get => (string)this.Fields[(int)UpgradeSymbolFields.UpgradeCode]; + set => this.Set((int)UpgradeSymbolFields.UpgradeCode, value); + } + + public string VersionMin + { + get => (string)this.Fields[(int)UpgradeSymbolFields.VersionMin]; + set => this.Set((int)UpgradeSymbolFields.VersionMin, value); + } + + public string VersionMax + { + get => (string)this.Fields[(int)UpgradeSymbolFields.VersionMax]; + set => this.Set((int)UpgradeSymbolFields.VersionMax, value); + } + + public string Language + { + get => (string)this.Fields[(int)UpgradeSymbolFields.Language]; + set => this.Set((int)UpgradeSymbolFields.Language, value); + } + + public bool ExcludeLanguages + { + get => this.Fields[(int)UpgradeSymbolFields.ExcludeLanguages].AsBool(); + set => this.Set((int)UpgradeSymbolFields.ExcludeLanguages, value); + } + + public bool IgnoreRemoveFailures + { + get => this.Fields[(int)UpgradeSymbolFields.IgnoreRemoveFailures].AsBool(); + set => this.Set((int)UpgradeSymbolFields.IgnoreRemoveFailures, value); + } + + public bool MigrateFeatures + { + get => this.Fields[(int)UpgradeSymbolFields.MigrateFeatures].AsBool(); + set => this.Set((int)UpgradeSymbolFields.MigrateFeatures, value); + } + + public bool OnlyDetect + { + get => this.Fields[(int)UpgradeSymbolFields.OnlyDetect].AsBool(); + set => this.Set((int)UpgradeSymbolFields.OnlyDetect, value); + } + + public bool VersionMaxInclusive + { + get => this.Fields[(int)UpgradeSymbolFields.VersionMaxInclusive].AsBool(); + set => this.Set((int)UpgradeSymbolFields.VersionMaxInclusive, value); + } + + public bool VersionMinInclusive + { + get => this.Fields[(int)UpgradeSymbolFields.VersionMinInclusive].AsBool(); + set => this.Set((int)UpgradeSymbolFields.VersionMinInclusive, value); + } + + public string Remove + { + get => (string)this.Fields[(int)UpgradeSymbolFields.Remove]; + set => this.Set((int)UpgradeSymbolFields.Remove, value); + } + + public string ActionProperty + { + get => (string)this.Fields[(int)UpgradeSymbolFields.ActionProperty]; + set => this.Set((int)UpgradeSymbolFields.ActionProperty, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/UpgradedFilesOptionalDataSymbol.cs b/src/WixToolset.Data/Symbols/UpgradedFilesOptionalDataSymbol.cs new file mode 100644 index 00000000..9e669ec3 --- /dev/null +++ b/src/WixToolset.Data/Symbols/UpgradedFilesOptionalDataSymbol.cs @@ -0,0 +1,76 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition UpgradedFilesOptionalData = new IntermediateSymbolDefinition( + SymbolDefinitionType.UpgradedFilesOptionalData, + new[] + { + new IntermediateFieldDefinition(nameof(UpgradedFilesOptionalDataSymbolFields.Upgraded), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(UpgradedFilesOptionalDataSymbolFields.FTK), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(UpgradedFilesOptionalDataSymbolFields.SymbolPaths), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(UpgradedFilesOptionalDataSymbolFields.AllowIgnoreOnPatchError), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(UpgradedFilesOptionalDataSymbolFields.IncludeWholeFile), IntermediateFieldType.Bool), + }, + typeof(UpgradedFilesOptionalDataSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum UpgradedFilesOptionalDataSymbolFields + { + Upgraded, + FTK, + SymbolPaths, + AllowIgnoreOnPatchError, + IncludeWholeFile, + } + + public class UpgradedFilesOptionalDataSymbol : IntermediateSymbol + { + public UpgradedFilesOptionalDataSymbol() : base(SymbolDefinitions.UpgradedFilesOptionalData, null, null) + { + } + + public UpgradedFilesOptionalDataSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.UpgradedFilesOptionalData, sourceLineNumber, id) + { + } + + public IntermediateField this[UpgradedFilesOptionalDataSymbolFields index] => this.Fields[(int)index]; + + public string Upgraded + { + get => (string)this.Fields[(int)UpgradedFilesOptionalDataSymbolFields.Upgraded]; + set => this.Set((int)UpgradedFilesOptionalDataSymbolFields.Upgraded, value); + } + + public string FTK + { + get => (string)this.Fields[(int)UpgradedFilesOptionalDataSymbolFields.FTK]; + set => this.Set((int)UpgradedFilesOptionalDataSymbolFields.FTK, value); + } + + public string SymbolPaths + { + get => (string)this.Fields[(int)UpgradedFilesOptionalDataSymbolFields.SymbolPaths]; + set => this.Set((int)UpgradedFilesOptionalDataSymbolFields.SymbolPaths, value); + } + + public bool? AllowIgnoreOnPatchError + { + get => (bool?)this.Fields[(int)UpgradedFilesOptionalDataSymbolFields.AllowIgnoreOnPatchError]; + set => this.Set((int)UpgradedFilesOptionalDataSymbolFields.AllowIgnoreOnPatchError, value); + } + + public bool? IncludeWholeFile + { + get => (bool?)this.Fields[(int)UpgradedFilesOptionalDataSymbolFields.IncludeWholeFile]; + set => this.Set((int)UpgradedFilesOptionalDataSymbolFields.IncludeWholeFile, value); + } + } +} diff --git a/src/WixToolset.Data/Symbols/UpgradedFilesToIgnoreSymbol.cs b/src/WixToolset.Data/Symbols/UpgradedFilesToIgnoreSymbol.cs new file mode 100644 index 00000000..e21af6a2 --- /dev/null +++ b/src/WixToolset.Data/Symbols/UpgradedFilesToIgnoreSymbol.cs @@ -0,0 +1,52 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition UpgradedFilesToIgnore = new IntermediateSymbolDefinition( + SymbolDefinitionType.UpgradedFilesToIgnore, + new[] + { + new IntermediateFieldDefinition(nameof(UpgradedFilesToIgnoreSymbolFields.Upgraded), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(UpgradedFilesToIgnoreSymbolFields.FTK), IntermediateFieldType.String), + }, + typeof(UpgradedFilesToIgnoreSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum UpgradedFilesToIgnoreSymbolFields + { + Upgraded, + FTK, + } + + public class UpgradedFilesToIgnoreSymbol : IntermediateSymbol + { + public UpgradedFilesToIgnoreSymbol() : base(SymbolDefinitions.UpgradedFilesToIgnore, null, null) + { + } + + public UpgradedFilesToIgnoreSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.UpgradedFilesToIgnore, sourceLineNumber, id) + { + } + + public IntermediateField this[UpgradedFilesToIgnoreSymbolFields index] => this.Fields[(int)index]; + + public string Upgraded + { + get => (string)this.Fields[(int)UpgradedFilesToIgnoreSymbolFields.Upgraded]; + set => this.Set((int)UpgradedFilesToIgnoreSymbolFields.Upgraded, value); + } + + public string FTK + { + get => (string)this.Fields[(int)UpgradedFilesToIgnoreSymbolFields.FTK]; + set => this.Set((int)UpgradedFilesToIgnoreSymbolFields.FTK, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/UpgradedImagesSymbol.cs b/src/WixToolset.Data/Symbols/UpgradedImagesSymbol.cs new file mode 100644 index 00000000..28eae08a --- /dev/null +++ b/src/WixToolset.Data/Symbols/UpgradedImagesSymbol.cs @@ -0,0 +1,76 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition UpgradedImages = new IntermediateSymbolDefinition( + SymbolDefinitionType.UpgradedImages, + new[] + { + new IntermediateFieldDefinition(nameof(UpgradedImagesSymbolFields.Upgraded), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(UpgradedImagesSymbolFields.MsiPath), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(UpgradedImagesSymbolFields.PatchMsiPath), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(UpgradedImagesSymbolFields.SymbolPaths), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(UpgradedImagesSymbolFields.Family), IntermediateFieldType.String), + }, + typeof(UpgradedImagesSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum UpgradedImagesSymbolFields + { + Upgraded, + MsiPath, + PatchMsiPath, + SymbolPaths, + Family, + } + + public class UpgradedImagesSymbol : IntermediateSymbol + { + public UpgradedImagesSymbol() : base(SymbolDefinitions.UpgradedImages, null, null) + { + } + + public UpgradedImagesSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.UpgradedImages, sourceLineNumber, id) + { + } + + public IntermediateField this[UpgradedImagesSymbolFields index] => this.Fields[(int)index]; + + public string Upgraded + { + get => (string)this.Fields[(int)UpgradedImagesSymbolFields.Upgraded]; + set => this.Set((int)UpgradedImagesSymbolFields.Upgraded, value); + } + + public string MsiPath + { + get => (string)this.Fields[(int)UpgradedImagesSymbolFields.MsiPath]; + set => this.Set((int)UpgradedImagesSymbolFields.MsiPath, value); + } + + public string PatchMsiPath + { + get => (string)this.Fields[(int)UpgradedImagesSymbolFields.PatchMsiPath]; + set => this.Set((int)UpgradedImagesSymbolFields.PatchMsiPath, value); + } + + public string SymbolPaths + { + get => (string)this.Fields[(int)UpgradedImagesSymbolFields.SymbolPaths]; + set => this.Set((int)UpgradedImagesSymbolFields.SymbolPaths, value); + } + + public string Family + { + get => (string)this.Fields[(int)UpgradedImagesSymbolFields.Family]; + set => this.Set((int)UpgradedImagesSymbolFields.Family, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/VerbSymbol.cs b/src/WixToolset.Data/Symbols/VerbSymbol.cs new file mode 100644 index 00000000..95f045d6 --- /dev/null +++ b/src/WixToolset.Data/Symbols/VerbSymbol.cs @@ -0,0 +1,76 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition Verb = new IntermediateSymbolDefinition( + SymbolDefinitionType.Verb, + new[] + { + new IntermediateFieldDefinition(nameof(VerbSymbolFields.ExtensionRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(VerbSymbolFields.Verb), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(VerbSymbolFields.Sequence), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(VerbSymbolFields.Command), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(VerbSymbolFields.Argument), IntermediateFieldType.String), + }, + typeof(VerbSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum VerbSymbolFields + { + ExtensionRef, + Verb, + Sequence, + Command, + Argument, + } + + public class VerbSymbol : IntermediateSymbol + { + public VerbSymbol() : base(SymbolDefinitions.Verb, null, null) + { + } + + public VerbSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Verb, sourceLineNumber, id) + { + } + + public IntermediateField this[VerbSymbolFields index] => this.Fields[(int)index]; + + public string ExtensionRef + { + get => (string)this.Fields[(int)VerbSymbolFields.ExtensionRef]; + set => this.Set((int)VerbSymbolFields.ExtensionRef, value); + } + + public string Verb + { + get => (string)this.Fields[(int)VerbSymbolFields.Verb]; + set => this.Set((int)VerbSymbolFields.Verb, value); + } + + public int? Sequence + { + get => (int?)this.Fields[(int)VerbSymbolFields.Sequence]; + set => this.Set((int)VerbSymbolFields.Sequence, value); + } + + public string Command + { + get => (string)this.Fields[(int)VerbSymbolFields.Command]; + set => this.Set((int)VerbSymbolFields.Command, value); + } + + public string Argument + { + get => (string)this.Fields[(int)VerbSymbolFields.Argument]; + set => this.Set((int)VerbSymbolFields.Argument, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/WixActionSymbol.cs b/src/WixToolset.Data/Symbols/WixActionSymbol.cs new file mode 100644 index 00000000..a055d68f --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixActionSymbol.cs @@ -0,0 +1,101 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixAction = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixAction, + new[] + { + new IntermediateFieldDefinition(nameof(WixActionSymbolFields.SequenceTable), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(WixActionSymbolFields.Action), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixActionSymbolFields.Condition), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixActionSymbolFields.Sequence), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(WixActionSymbolFields.Before), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixActionSymbolFields.After), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixActionSymbolFields.Overridable), IntermediateFieldType.Bool), + }, + typeof(WixActionSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum WixActionSymbolFields + { + SequenceTable, + Action, + Condition, + Sequence, + Before, + After, + Overridable, + } + + public enum SequenceTable + { + AdminUISequence, + AdminExecuteSequence, + AdvertiseExecuteSequence, + InstallUISequence, + InstallExecuteSequence + } + + public class WixActionSymbol : IntermediateSymbol + { + public WixActionSymbol() : base(SymbolDefinitions.WixAction, null, null) + { + } + + public WixActionSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixAction, sourceLineNumber, id) + { + } + + public IntermediateField this[WixActionSymbolFields index] => this.Fields[(int)index]; + + public SequenceTable SequenceTable + { + get => (SequenceTable)this.Fields[(int)WixActionSymbolFields.SequenceTable].AsNumber(); + set => this.Set((int)WixActionSymbolFields.SequenceTable, (int)value); + } + + public string Action + { + get => (string)this.Fields[(int)WixActionSymbolFields.Action]; + set => this.Set((int)WixActionSymbolFields.Action, value); + } + + public string Condition + { + get => (string)this.Fields[(int)WixActionSymbolFields.Condition]; + set => this.Set((int)WixActionSymbolFields.Condition, value); + } + + public int? Sequence + { + get => (int?)this.Fields[(int)WixActionSymbolFields.Sequence]; + set => this.Set((int)WixActionSymbolFields.Sequence, value); + } + + public string Before + { + get => (string)this.Fields[(int)WixActionSymbolFields.Before]; + set => this.Set((int)WixActionSymbolFields.Before, value); + } + + public string After + { + get => (string)this.Fields[(int)WixActionSymbolFields.After]; + set => this.Set((int)WixActionSymbolFields.After, value); + } + + public bool Overridable + { + get => this.Fields[(int)WixActionSymbolFields.Overridable].AsBool(); + set => this.Set((int)WixActionSymbolFields.Overridable, value); + } + } +} diff --git a/src/WixToolset.Data/Symbols/WixApprovedExeForElevationSymbol.cs b/src/WixToolset.Data/Symbols/WixApprovedExeForElevationSymbol.cs new file mode 100644 index 00000000..04c6e712 --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixApprovedExeForElevationSymbol.cs @@ -0,0 +1,71 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixApprovedExeForElevation = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixApprovedExeForElevation, + new[] + { + new IntermediateFieldDefinition(nameof(WixApprovedExeForElevationSymbolFields.Key), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixApprovedExeForElevationSymbolFields.ValueName), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixApprovedExeForElevationSymbolFields.Attributes), IntermediateFieldType.Number), + }, + typeof(WixApprovedExeForElevationSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + using System; + + public enum WixApprovedExeForElevationSymbolFields + { + Key, + ValueName, + Attributes, + } + + [Flags] + public enum WixApprovedExeForElevationAttributes + { + None = 0x0, + Win64 = 0x1, + } + + public class WixApprovedExeForElevationSymbol : IntermediateSymbol + { + public WixApprovedExeForElevationSymbol() : base(SymbolDefinitions.WixApprovedExeForElevation, null, null) + { + } + + public WixApprovedExeForElevationSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixApprovedExeForElevation, sourceLineNumber, id) + { + } + + public IntermediateField this[WixApprovedExeForElevationSymbolFields index] => this.Fields[(int)index]; + + public string Key + { + get => (string)this.Fields[(int)WixApprovedExeForElevationSymbolFields.Key]; + set => this.Set((int)WixApprovedExeForElevationSymbolFields.Key, value); + } + + public string ValueName + { + get => (string)this.Fields[(int)WixApprovedExeForElevationSymbolFields.ValueName]; + set => this.Set((int)WixApprovedExeForElevationSymbolFields.ValueName, value); + } + + public WixApprovedExeForElevationAttributes Attributes + { + get => (WixApprovedExeForElevationAttributes)this.Fields[(int)WixApprovedExeForElevationSymbolFields.Attributes].AsNumber(); + set => this.Set((int)WixApprovedExeForElevationSymbolFields.Attributes, (int)value); + } + + public bool Win64 => (this.Attributes & WixApprovedExeForElevationAttributes.Win64) == WixApprovedExeForElevationAttributes.Win64; + } +} diff --git a/src/WixToolset.Data/Symbols/WixBindUpdatedFilesSymbol.cs b/src/WixToolset.Data/Symbols/WixBindUpdatedFilesSymbol.cs new file mode 100644 index 00000000..03bdb69b --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixBindUpdatedFilesSymbol.cs @@ -0,0 +1,44 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixBindUpdatedFiles = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixBindUpdatedFiles, + new[] + { + new IntermediateFieldDefinition(nameof(WixBindUpdatedFilesSymbolFields.FileRef), IntermediateFieldType.String), + }, + typeof(WixBindUpdatedFilesSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum WixBindUpdatedFilesSymbolFields + { + FileRef, + } + + public class WixBindUpdatedFilesSymbol : IntermediateSymbol + { + public WixBindUpdatedFilesSymbol() : base(SymbolDefinitions.WixBindUpdatedFiles, null, null) + { + } + + public WixBindUpdatedFilesSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBindUpdatedFiles, sourceLineNumber, id) + { + } + + public IntermediateField this[WixBindUpdatedFilesSymbolFields index] => this.Fields[(int)index]; + + public string FileRef + { + get => (string)this.Fields[(int)WixBindUpdatedFilesSymbolFields.FileRef]; + set => this.Set((int)WixBindUpdatedFilesSymbolFields.FileRef, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/WixBootstrapperApplicationSymbol.cs b/src/WixToolset.Data/Symbols/WixBootstrapperApplicationSymbol.cs new file mode 100644 index 00000000..3d7876fd --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixBootstrapperApplicationSymbol.cs @@ -0,0 +1,36 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixBootstrapperApplication = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixBootstrapperApplication, + new IntermediateFieldDefinition[] + { + }, + typeof(WixBootstrapperApplicationSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum WixBootstrapperApplicationSymbolFields + { + } + + public class WixBootstrapperApplicationSymbol : IntermediateSymbol + { + public WixBootstrapperApplicationSymbol() : base(SymbolDefinitions.WixBootstrapperApplication, null, null) + { + } + + public WixBootstrapperApplicationSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBootstrapperApplication, sourceLineNumber, id) + { + } + + public IntermediateField this[WixBootstrapperApplicationSymbolFields index] => this.Fields[(int)index]; + } +} diff --git a/src/WixToolset.Data/Symbols/WixBuildInfoSymbol.cs b/src/WixToolset.Data/Symbols/WixBuildInfoSymbol.cs new file mode 100644 index 00000000..66e04d4b --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixBuildInfoSymbol.cs @@ -0,0 +1,68 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixBuildInfo = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixBuildInfo, + new[] + { + new IntermediateFieldDefinition(nameof(WixBuildInfoSymbolFields.WixVersion), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBuildInfoSymbolFields.WixOutputFile), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBuildInfoSymbolFields.WixProjectFile), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBuildInfoSymbolFields.WixPdbFile), IntermediateFieldType.String), + }, + typeof(WixBuildInfoSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum WixBuildInfoSymbolFields + { + WixVersion, + WixOutputFile, + WixProjectFile, + WixPdbFile, + } + + public class WixBuildInfoSymbol : IntermediateSymbol + { + public WixBuildInfoSymbol() : base(SymbolDefinitions.WixBuildInfo, null, null) + { + } + + public WixBuildInfoSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBuildInfo, sourceLineNumber, id) + { + } + + public IntermediateField this[WixBuildInfoSymbolFields index] => this.Fields[(int)index]; + + public string WixVersion + { + get => (string)this.Fields[(int)WixBuildInfoSymbolFields.WixVersion]; + set => this.Set((int)WixBuildInfoSymbolFields.WixVersion, value); + } + + public string WixOutputFile + { + get => (string)this.Fields[(int)WixBuildInfoSymbolFields.WixOutputFile]; + set => this.Set((int)WixBuildInfoSymbolFields.WixOutputFile, value); + } + + public string WixProjectFile + { + get => (string)this.Fields[(int)WixBuildInfoSymbolFields.WixProjectFile]; + set => this.Set((int)WixBuildInfoSymbolFields.WixProjectFile, value); + } + + public string WixPdbFile + { + get => (string)this.Fields[(int)WixBuildInfoSymbolFields.WixPdbFile]; + set => this.Set((int)WixBuildInfoSymbolFields.WixPdbFile, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/WixBundleCatalogSymbol.cs b/src/WixToolset.Data/Symbols/WixBundleCatalogSymbol.cs new file mode 100644 index 00000000..48415228 --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixBundleCatalogSymbol.cs @@ -0,0 +1,44 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixBundleCatalog = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixBundleCatalog, + new[] + { + new IntermediateFieldDefinition(nameof(WixBundleCatalogSymbolFields.PayloadRef), IntermediateFieldType.String), + }, + typeof(WixBundleCatalogSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum WixBundleCatalogSymbolFields + { + PayloadRef, + } + + public class WixBundleCatalogSymbol : IntermediateSymbol + { + public WixBundleCatalogSymbol() : base(SymbolDefinitions.WixBundleCatalog, null, null) + { + } + + public WixBundleCatalogSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundleCatalog, sourceLineNumber, id) + { + } + + public IntermediateField this[WixBundleCatalogSymbolFields index] => this.Fields[(int)index]; + + public string PayloadRef + { + get => (string)this.Fields[(int)WixBundleCatalogSymbolFields.PayloadRef]; + set => this.Set((int)WixBundleCatalogSymbolFields.PayloadRef, value); + } + } +} diff --git a/src/WixToolset.Data/Symbols/WixBundleContainerSymbol.cs b/src/WixToolset.Data/Symbols/WixBundleContainerSymbol.cs new file mode 100644 index 00000000..80beda0a --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixBundleContainerSymbol.cs @@ -0,0 +1,103 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixBundleContainer = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixBundleContainer, + new[] + { + new IntermediateFieldDefinition(nameof(WixBundleContainerSymbolFields.Name), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleContainerSymbolFields.Type), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(WixBundleContainerSymbolFields.DownloadUrl), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleContainerSymbolFields.Size), IntermediateFieldType.LargeNumber), + new IntermediateFieldDefinition(nameof(WixBundleContainerSymbolFields.Hash), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleContainerSymbolFields.AttachedContainerIndex), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(WixBundleContainerSymbolFields.WorkingPath), IntermediateFieldType.String), + }, + typeof(WixBundleContainerSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + using System; + + public enum WixBundleContainerSymbolFields + { + Name, + Type, + DownloadUrl, + Size, + Hash, + AttachedContainerIndex, + WorkingPath, + } + + /// + /// Types of bundle packages. + /// + public enum ContainerType + { + Attached, + Detached, + } + + public class WixBundleContainerSymbol : IntermediateSymbol + { + public WixBundleContainerSymbol() : base(SymbolDefinitions.WixBundleContainer, null, null) + { + } + + public WixBundleContainerSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundleContainer, sourceLineNumber, id) + { + } + + public IntermediateField this[WixBundleContainerSymbolFields index] => this.Fields[(int)index]; + + public string Name + { + get => (string)this.Fields[(int)WixBundleContainerSymbolFields.Name]; + set => this.Set((int)WixBundleContainerSymbolFields.Name, value); + } + + public ContainerType Type + { + get => (ContainerType)this.Fields[(int)WixBundleContainerSymbolFields.Type].AsNumber(); + set => this.Set((int)WixBundleContainerSymbolFields.Type, (int)value); + } + + public string DownloadUrl + { + get => (string)this.Fields[(int)WixBundleContainerSymbolFields.DownloadUrl]; + set => this.Set((int)WixBundleContainerSymbolFields.DownloadUrl, value); + } + + public long? Size + { + get => (long?)this.Fields[(int)WixBundleContainerSymbolFields.Size]; + set => this.Set((int)WixBundleContainerSymbolFields.Size, value); + } + + public string Hash + { + get => (string)this.Fields[(int)WixBundleContainerSymbolFields.Hash]; + set => this.Set((int)WixBundleContainerSymbolFields.Hash, value); + } + + public int? AttachedContainerIndex + { + get => (int?)this.Fields[(int)WixBundleContainerSymbolFields.AttachedContainerIndex]; + set => this.Set((int)WixBundleContainerSymbolFields.AttachedContainerIndex, value); + } + + public string WorkingPath + { + get => (string)this.Fields[(int)WixBundleContainerSymbolFields.WorkingPath]; + set => this.Set((int)WixBundleContainerSymbolFields.WorkingPath, value); + } + } +} diff --git a/src/WixToolset.Data/Symbols/WixBundleCustomDataAttributeSymbol.cs b/src/WixToolset.Data/Symbols/WixBundleCustomDataAttributeSymbol.cs new file mode 100644 index 00000000..c0a657ee --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixBundleCustomDataAttributeSymbol.cs @@ -0,0 +1,52 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixBundleCustomDataAttribute = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixBundleCustomDataAttribute, + new[] + { + new IntermediateFieldDefinition(nameof(WixBundleCustomDataAttributeSymbolFields.CustomDataRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleCustomDataAttributeSymbolFields.Name), IntermediateFieldType.String), + }, + typeof(WixBundleCustomDataAttributeSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum WixBundleCustomDataAttributeSymbolFields + { + CustomDataRef, + Name, + } + + public class WixBundleCustomDataAttributeSymbol : IntermediateSymbol + { + public WixBundleCustomDataAttributeSymbol() : base(SymbolDefinitions.WixBundleCustomDataAttribute, null, null) + { + } + + public WixBundleCustomDataAttributeSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundleCustomDataAttribute, sourceLineNumber, id) + { + } + + public IntermediateField this[WixBundleCustomDataAttributeSymbolFields index] => this.Fields[(int)index]; + + public string CustomDataRef + { + get => (string)this.Fields[(int)WixBundleCustomDataAttributeSymbolFields.CustomDataRef]; + set => this.Set((int)WixBundleCustomDataAttributeSymbolFields.CustomDataRef, value); + } + + public string Name + { + get => (string)this.Fields[(int)WixBundleCustomDataAttributeSymbolFields.Name]; + set => this.Set((int)WixBundleCustomDataAttributeSymbolFields.Name, value); + } + } +} diff --git a/src/WixToolset.Data/Symbols/WixBundleCustomDataCellSymbol.cs b/src/WixToolset.Data/Symbols/WixBundleCustomDataCellSymbol.cs new file mode 100644 index 00000000..0488969a --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixBundleCustomDataCellSymbol.cs @@ -0,0 +1,68 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixBundleCustomDataCell = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixBundleCustomDataCell, + new[] + { + new IntermediateFieldDefinition(nameof(WixBundleCustomDataCellSymbolFields.CustomDataRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleCustomDataCellSymbolFields.AttributeRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleCustomDataCellSymbolFields.ElementId), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleCustomDataCellSymbolFields.Value), IntermediateFieldType.String), + }, + typeof(WixBundleCustomDataCellSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum WixBundleCustomDataCellSymbolFields + { + CustomDataRef, + AttributeRef, + ElementId, + Value, + } + + public class WixBundleCustomDataCellSymbol : IntermediateSymbol + { + public WixBundleCustomDataCellSymbol() : base(SymbolDefinitions.WixBundleCustomDataCell, null, null) + { + } + + public WixBundleCustomDataCellSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundleCustomDataCell, sourceLineNumber, id) + { + } + + public IntermediateField this[WixBundleCustomDataCellSymbolFields index] => this.Fields[(int)index]; + + public string CustomDataRef + { + get => (string)this.Fields[(int)WixBundleCustomDataCellSymbolFields.CustomDataRef]; + set => this.Set((int)WixBundleCustomDataCellSymbolFields.CustomDataRef, value); + } + + public string AttributeRef + { + get => (string)this.Fields[(int)WixBundleCustomDataCellSymbolFields.AttributeRef]; + set => this.Set((int)WixBundleCustomDataCellSymbolFields.AttributeRef, value); + } + + public string ElementId + { + get => (string)this.Fields[(int)WixBundleCustomDataCellSymbolFields.ElementId]; + set => this.Set((int)WixBundleCustomDataCellSymbolFields.ElementId, value); + } + + public string Value + { + get => (string)this.Fields[(int)WixBundleCustomDataCellSymbolFields.Value]; + set => this.Set((int)WixBundleCustomDataCellSymbolFields.Value, value); + } + } +} diff --git a/src/WixToolset.Data/Symbols/WixBundleCustomDataSymbol.cs b/src/WixToolset.Data/Symbols/WixBundleCustomDataSymbol.cs new file mode 100644 index 00000000..0490f9f7 --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixBundleCustomDataSymbol.cs @@ -0,0 +1,71 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixBundleCustomData = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixBundleCustomData, + new[] + { + new IntermediateFieldDefinition(nameof(WixBundleCustomDataSymbolFields.AttributeNames), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleCustomDataSymbolFields.Type), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(WixBundleCustomDataSymbolFields.BundleExtensionRef), IntermediateFieldType.String), + }, + typeof(WixBundleCustomDataSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum WixBundleCustomDataSymbolFields + { + AttributeNames, + Type, + BundleExtensionRef, + } + + public enum WixBundleCustomDataType + { + Unknown, + BootstrapperApplication, + BundleExtension, + } + + public class WixBundleCustomDataSymbol : IntermediateSymbol + { + public const char AttributeNamesSeparator = '\x85'; + + public WixBundleCustomDataSymbol() : base(SymbolDefinitions.WixBundleCustomData, null, null) + { + } + + public WixBundleCustomDataSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundleCustomData, sourceLineNumber, id) + { + } + + public IntermediateField this[WixBundleCustomDataSymbolFields index] => this.Fields[(int)index]; + + public string AttributeNames + { + get => (string)this.Fields[(int)WixBundleCustomDataSymbolFields.AttributeNames]; + set => this.Set((int)WixBundleCustomDataSymbolFields.AttributeNames, value); + } + + public WixBundleCustomDataType Type + { + get => (WixBundleCustomDataType)this.Fields[(int)WixBundleCustomDataSymbolFields.Type].AsNumber(); + set => this.Set((int)WixBundleCustomDataSymbolFields.Type, (int)value); + } + + public string BundleExtensionRef + { + get => (string)this.Fields[(int)WixBundleCustomDataSymbolFields.BundleExtensionRef]; + set => this.Set((int)WixBundleCustomDataSymbolFields.BundleExtensionRef, value); + } + + public string[] AttributeNamesSeparated => this.AttributeNames.Split(AttributeNamesSeparator); + } +} diff --git a/src/WixToolset.Data/Symbols/WixBundleExePackageSymbol.cs b/src/WixToolset.Data/Symbols/WixBundleExePackageSymbol.cs new file mode 100644 index 00000000..8a8cff1b --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixBundleExePackageSymbol.cs @@ -0,0 +1,94 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixBundleExePackage = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixBundleExePackage, + new[] + { + new IntermediateFieldDefinition(nameof(WixBundleExePackageSymbolFields.Attributes), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(WixBundleExePackageSymbolFields.DetectCondition), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleExePackageSymbolFields.InstallCommand), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleExePackageSymbolFields.RepairCommand), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleExePackageSymbolFields.UninstallCommand), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleExePackageSymbolFields.ExeProtocol), IntermediateFieldType.String), + }, + typeof(WixBundleExePackageSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + using System; + + public enum WixBundleExePackageSymbolFields + { + Attributes, + DetectCondition, + InstallCommand, + RepairCommand, + UninstallCommand, + ExeProtocol, + } + + [Flags] + public enum WixBundleExePackageAttributes + { + None = 0, + } + + public class WixBundleExePackageSymbol : IntermediateSymbol + { + public WixBundleExePackageSymbol() : base(SymbolDefinitions.WixBundleExePackage, null, null) + { + } + + public WixBundleExePackageSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundleExePackage, sourceLineNumber, id) + { + } + + public IntermediateField this[WixBundleExePackageSymbolFields index] => this.Fields[(int)index]; + + public WixBundleExePackageAttributes Attributes + { + get => (WixBundleExePackageAttributes)(int)this.Fields[(int)WixBundleExePackageSymbolFields.Attributes]; + set => this.Set((int)WixBundleExePackageSymbolFields.Attributes, (int)value); + } + + public string DetectCondition + { + get => (string)this.Fields[(int)WixBundleExePackageSymbolFields.DetectCondition]; + set => this.Set((int)WixBundleExePackageSymbolFields.DetectCondition, value); + } + + public string InstallCommand + { + get => (string)this.Fields[(int)WixBundleExePackageSymbolFields.InstallCommand]; + set => this.Set((int)WixBundleExePackageSymbolFields.InstallCommand, value); + } + + public string RepairCommand + { + get => (string)this.Fields[(int)WixBundleExePackageSymbolFields.RepairCommand]; + set => this.Set((int)WixBundleExePackageSymbolFields.RepairCommand, value); + } + + public string UninstallCommand + { + get => (string)this.Fields[(int)WixBundleExePackageSymbolFields.UninstallCommand]; + set => this.Set((int)WixBundleExePackageSymbolFields.UninstallCommand, value); + } + + public string ExeProtocol + { + get => (string)this.Fields[(int)WixBundleExePackageSymbolFields.ExeProtocol]; + set => this.Set((int)WixBundleExePackageSymbolFields.ExeProtocol, value); + } + + public bool Repairable => !String.IsNullOrEmpty(this.RepairCommand); + } +} diff --git a/src/WixToolset.Data/Symbols/WixBundleExtensionSymbol.cs b/src/WixToolset.Data/Symbols/WixBundleExtensionSymbol.cs new file mode 100644 index 00000000..8e6bea58 --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixBundleExtensionSymbol.cs @@ -0,0 +1,44 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixBundleExtension = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixBundleExtension, + new[] + { + new IntermediateFieldDefinition(nameof(WixBundleExtensionSymbolFields.PayloadRef), IntermediateFieldType.String), + }, + typeof(WixBundleExtensionSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum WixBundleExtensionSymbolFields + { + PayloadRef, + } + + public class WixBundleExtensionSymbol : IntermediateSymbol + { + public WixBundleExtensionSymbol() : base(SymbolDefinitions.WixBundleExtension, null, null) + { + } + + public WixBundleExtensionSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundleExtension, sourceLineNumber, id) + { + } + + public IntermediateField this[WixBundleExtensionSymbolFields index] => this.Fields[(int)index]; + + public string PayloadRef + { + get => (string)this.Fields[(int)WixBundleExtensionSymbolFields.PayloadRef]; + set => this.Set((int)WixBundleExtensionSymbolFields.PayloadRef, value); + } + } +} diff --git a/src/WixToolset.Data/Symbols/WixBundleMsiFeatureSymbol.cs b/src/WixToolset.Data/Symbols/WixBundleMsiFeatureSymbol.cs new file mode 100644 index 00000000..f81da5b8 --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixBundleMsiFeatureSymbol.cs @@ -0,0 +1,116 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixBundleMsiFeature = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixBundleMsiFeature, + new[] + { + new IntermediateFieldDefinition(nameof(WixBundleMsiFeatureSymbolFields.PackageRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleMsiFeatureSymbolFields.Name), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleMsiFeatureSymbolFields.Size), IntermediateFieldType.LargeNumber), + new IntermediateFieldDefinition(nameof(WixBundleMsiFeatureSymbolFields.Parent), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleMsiFeatureSymbolFields.Title), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleMsiFeatureSymbolFields.Description), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleMsiFeatureSymbolFields.Display), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(WixBundleMsiFeatureSymbolFields.Level), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(WixBundleMsiFeatureSymbolFields.Directory), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleMsiFeatureSymbolFields.Attributes), IntermediateFieldType.Number), + }, + typeof(WixBundleMsiFeatureSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum WixBundleMsiFeatureSymbolFields + { + PackageRef, + Name, + Size, + Parent, + Title, + Description, + Display, + Level, + Directory, + Attributes, + } + + public class WixBundleMsiFeatureSymbol : IntermediateSymbol + { + public WixBundleMsiFeatureSymbol() : base(SymbolDefinitions.WixBundleMsiFeature, null, null) + { + } + + public WixBundleMsiFeatureSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundleMsiFeature, sourceLineNumber, id) + { + } + + public IntermediateField this[WixBundleMsiFeatureSymbolFields index] => this.Fields[(int)index]; + + public string PackageRef + { + get => (string)this.Fields[(int)WixBundleMsiFeatureSymbolFields.PackageRef]; + set => this.Set((int)WixBundleMsiFeatureSymbolFields.PackageRef, value); + } + + public string Name + { + get => (string)this.Fields[(int)WixBundleMsiFeatureSymbolFields.Name]; + set => this.Set((int)WixBundleMsiFeatureSymbolFields.Name, value); + } + + public long Size + { + get => (long)this.Fields[(int)WixBundleMsiFeatureSymbolFields.Size]; + set => this.Set((int)WixBundleMsiFeatureSymbolFields.Size, value); + } + + public string Parent + { + get => (string)this.Fields[(int)WixBundleMsiFeatureSymbolFields.Parent]; + set => this.Set((int)WixBundleMsiFeatureSymbolFields.Parent, value); + } + + public string Title + { + get => (string)this.Fields[(int)WixBundleMsiFeatureSymbolFields.Title]; + set => this.Set((int)WixBundleMsiFeatureSymbolFields.Title, value); + } + + public string Description + { + get => (string)this.Fields[(int)WixBundleMsiFeatureSymbolFields.Description]; + set => this.Set((int)WixBundleMsiFeatureSymbolFields.Description, value); + } + + public int Display + { + get => (int)this.Fields[(int)WixBundleMsiFeatureSymbolFields.Display]; + set => this.Set((int)WixBundleMsiFeatureSymbolFields.Display, value); + } + + public int Level + { + get => (int)this.Fields[(int)WixBundleMsiFeatureSymbolFields.Level]; + set => this.Set((int)WixBundleMsiFeatureSymbolFields.Level, value); + } + + public string Directory + { + get => (string)this.Fields[(int)WixBundleMsiFeatureSymbolFields.Directory]; + set => this.Set((int)WixBundleMsiFeatureSymbolFields.Directory, value); + } + + public int Attributes + { + get => (int)this.Fields[(int)WixBundleMsiFeatureSymbolFields.Attributes]; + set => this.Set((int)WixBundleMsiFeatureSymbolFields.Attributes, value); + } + } +} diff --git a/src/WixToolset.Data/Symbols/WixBundleMsiPackageSymbol.cs b/src/WixToolset.Data/Symbols/WixBundleMsiPackageSymbol.cs new file mode 100644 index 00000000..21735f64 --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixBundleMsiPackageSymbol.cs @@ -0,0 +1,105 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixBundleMsiPackage = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixBundleMsiPackage, + new[] + { + new IntermediateFieldDefinition(nameof(WixBundleMsiPackageSymbolFields.Attributes), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(WixBundleMsiPackageSymbolFields.ProductCode), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleMsiPackageSymbolFields.UpgradeCode), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleMsiPackageSymbolFields.ProductVersion), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleMsiPackageSymbolFields.ProductLanguage), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(WixBundleMsiPackageSymbolFields.ProductName), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleMsiPackageSymbolFields.Manufacturer), IntermediateFieldType.String), + }, + typeof(WixBundleMsiPackageSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + using System; + + public enum WixBundleMsiPackageSymbolFields + { + Attributes, + ProductCode, + UpgradeCode, + ProductVersion, + ProductLanguage, + ProductName, + Manufacturer, + } + + [Flags] + public enum WixBundleMsiPackageAttributes + { + EnableFeatureSelection = 0x4, + ForcePerMachine = 0x2, + } + + public class WixBundleMsiPackageSymbol : IntermediateSymbol + { + public WixBundleMsiPackageSymbol() : base(SymbolDefinitions.WixBundleMsiPackage, null, null) + { + } + + public WixBundleMsiPackageSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundleMsiPackage, sourceLineNumber, id) + { + } + + public IntermediateField this[WixBundleMsiPackageSymbolFields index] => this.Fields[(int)index]; + + public WixBundleMsiPackageAttributes Attributes + { + get => (WixBundleMsiPackageAttributes)(int)this.Fields[(int)WixBundleMsiPackageSymbolFields.Attributes]; + set => this.Set((int)WixBundleMsiPackageSymbolFields.Attributes, (int)value); + } + + public string ProductCode + { + get => (string)this.Fields[(int)WixBundleMsiPackageSymbolFields.ProductCode]; + set => this.Set((int)WixBundleMsiPackageSymbolFields.ProductCode, value); + } + + public string UpgradeCode + { + get => (string)this.Fields[(int)WixBundleMsiPackageSymbolFields.UpgradeCode]; + set => this.Set((int)WixBundleMsiPackageSymbolFields.UpgradeCode, value); + } + + public string ProductVersion + { + get => (string)this.Fields[(int)WixBundleMsiPackageSymbolFields.ProductVersion]; + set => this.Set((int)WixBundleMsiPackageSymbolFields.ProductVersion, value); + } + + public int ProductLanguage + { + get => (int)this.Fields[(int)WixBundleMsiPackageSymbolFields.ProductLanguage]; + set => this.Set((int)WixBundleMsiPackageSymbolFields.ProductLanguage, value); + } + + public string ProductName + { + get => (string)this.Fields[(int)WixBundleMsiPackageSymbolFields.ProductName]; + set => this.Set((int)WixBundleMsiPackageSymbolFields.ProductName, value); + } + + public string Manufacturer + { + get => (string)this.Fields[(int)WixBundleMsiPackageSymbolFields.Manufacturer]; + set => this.Set((int)WixBundleMsiPackageSymbolFields.Manufacturer, value); + } + + public bool EnableFeatureSelection => (this.Attributes & WixBundleMsiPackageAttributes.EnableFeatureSelection) == WixBundleMsiPackageAttributes.EnableFeatureSelection; + + public bool ForcePerMachine => (this.Attributes & WixBundleMsiPackageAttributes.ForcePerMachine) == WixBundleMsiPackageAttributes.ForcePerMachine; + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/WixBundleMsiPropertySymbol.cs b/src/WixToolset.Data/Symbols/WixBundleMsiPropertySymbol.cs new file mode 100644 index 00000000..0d87f87d --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixBundleMsiPropertySymbol.cs @@ -0,0 +1,68 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixBundleMsiProperty = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixBundleMsiProperty, + new[] + { + new IntermediateFieldDefinition(nameof(WixBundleMsiPropertySymbolFields.PackageRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleMsiPropertySymbolFields.Name), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleMsiPropertySymbolFields.Value), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleMsiPropertySymbolFields.Condition), IntermediateFieldType.String), + }, + typeof(WixBundleMsiPropertySymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum WixBundleMsiPropertySymbolFields + { + PackageRef, + Name, + Value, + Condition, + } + + public class WixBundleMsiPropertySymbol : IntermediateSymbol + { + public WixBundleMsiPropertySymbol() : base(SymbolDefinitions.WixBundleMsiProperty, null, null) + { + } + + public WixBundleMsiPropertySymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundleMsiProperty, sourceLineNumber, id) + { + } + + public IntermediateField this[WixBundleMsiPropertySymbolFields index] => this.Fields[(int)index]; + + public string PackageRef + { + get => (string)this.Fields[(int)WixBundleMsiPropertySymbolFields.PackageRef]; + set => this.Set((int)WixBundleMsiPropertySymbolFields.PackageRef, value); + } + + public string Name + { + get => (string)this.Fields[(int)WixBundleMsiPropertySymbolFields.Name]; + set => this.Set((int)WixBundleMsiPropertySymbolFields.Name, value); + } + + public string Value + { + get => (string)this.Fields[(int)WixBundleMsiPropertySymbolFields.Value]; + set => this.Set((int)WixBundleMsiPropertySymbolFields.Value, value); + } + + public string Condition + { + get => (string)this.Fields[(int)WixBundleMsiPropertySymbolFields.Condition]; + set => this.Set((int)WixBundleMsiPropertySymbolFields.Condition, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/WixBundleMspPackageSymbol.cs b/src/WixToolset.Data/Symbols/WixBundleMspPackageSymbol.cs new file mode 100644 index 00000000..3784c2ff --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixBundleMspPackageSymbol.cs @@ -0,0 +1,81 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixBundleMspPackage = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixBundleMspPackage, + new[] + { + new IntermediateFieldDefinition(nameof(WixBundleMspPackageSymbolFields.Attributes), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(WixBundleMspPackageSymbolFields.PatchCode), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleMspPackageSymbolFields.Manufacturer), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleMspPackageSymbolFields.PatchXml), IntermediateFieldType.String), + }, + typeof(WixBundleMspPackageSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + using System; + + public enum WixBundleMspPackageSymbolFields + { + Attributes, + PatchCode, + Manufacturer, + PatchXml, + } + + [Flags] + public enum WixBundleMspPackageAttributes + { + Slipstream = 0x2, + TargetUnspecified = 0x4, + } + + public class WixBundleMspPackageSymbol : IntermediateSymbol + { + public WixBundleMspPackageSymbol() : base(SymbolDefinitions.WixBundleMspPackage, null, null) + { + } + + public WixBundleMspPackageSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundleMspPackage, sourceLineNumber, id) + { + } + + public IntermediateField this[WixBundleMspPackageSymbolFields index] => this.Fields[(int)index]; + + public WixBundleMspPackageAttributes Attributes + { + get => (WixBundleMspPackageAttributes)(int)this.Fields[(int)WixBundleMspPackageSymbolFields.Attributes]; + set => this.Set((int)WixBundleMspPackageSymbolFields.Attributes, (int)value); + } + + public string PatchCode + { + get => (string)this.Fields[(int)WixBundleMspPackageSymbolFields.PatchCode]; + set => this.Set((int)WixBundleMspPackageSymbolFields.PatchCode, value); + } + + public string Manufacturer + { + get => (string)this.Fields[(int)WixBundleMspPackageSymbolFields.Manufacturer]; + set => this.Set((int)WixBundleMspPackageSymbolFields.Manufacturer, value); + } + + public string PatchXml + { + get => (string)this.Fields[(int)WixBundleMspPackageSymbolFields.PatchXml]; + set => this.Set((int)WixBundleMspPackageSymbolFields.PatchXml, value); + } + + public bool Slipstream => (this.Attributes & WixBundleMspPackageAttributes.Slipstream) == WixBundleMspPackageAttributes.Slipstream; + + public bool TargetUnspecified => (this.Attributes & WixBundleMspPackageAttributes.TargetUnspecified) == WixBundleMspPackageAttributes.TargetUnspecified; + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/WixBundleMsuPackageSymbol.cs b/src/WixToolset.Data/Symbols/WixBundleMsuPackageSymbol.cs new file mode 100644 index 00000000..e52a9b2d --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixBundleMsuPackageSymbol.cs @@ -0,0 +1,52 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixBundleMsuPackage = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixBundleMsuPackage, + new[] + { + new IntermediateFieldDefinition(nameof(WixBundleMsuPackageSymbolFields.DetectCondition), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleMsuPackageSymbolFields.MsuKB), IntermediateFieldType.String), + }, + typeof(WixBundleMsuPackageSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum WixBundleMsuPackageSymbolFields + { + DetectCondition, + MsuKB, + } + + public class WixBundleMsuPackageSymbol : IntermediateSymbol + { + public WixBundleMsuPackageSymbol() : base(SymbolDefinitions.WixBundleMsuPackage, null, null) + { + } + + public WixBundleMsuPackageSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundleMsuPackage, sourceLineNumber, id) + { + } + + public IntermediateField this[WixBundleMsuPackageSymbolFields index] => this.Fields[(int)index]; + + public string DetectCondition + { + get => (string)this.Fields[(int)WixBundleMsuPackageSymbolFields.DetectCondition]; + set => this.Set((int)WixBundleMsuPackageSymbolFields.DetectCondition, value); + } + + public string MsuKB + { + get => (string)this.Fields[(int)WixBundleMsuPackageSymbolFields.MsuKB]; + set => this.Set((int)WixBundleMsuPackageSymbolFields.MsuKB, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/WixBundlePackageCommandLineSymbol.cs b/src/WixToolset.Data/Symbols/WixBundlePackageCommandLineSymbol.cs new file mode 100644 index 00000000..7ef254a6 --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixBundlePackageCommandLineSymbol.cs @@ -0,0 +1,76 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixBundlePackageCommandLine = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixBundlePackageCommandLine, + new[] + { + new IntermediateFieldDefinition(nameof(WixBundlePackageCommandLineSymbolFields.WixBundlePackageRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundlePackageCommandLineSymbolFields.InstallArgument), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundlePackageCommandLineSymbolFields.UninstallArgument), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundlePackageCommandLineSymbolFields.RepairArgument), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundlePackageCommandLineSymbolFields.Condition), IntermediateFieldType.String), + }, + typeof(WixBundlePackageCommandLineSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum WixBundlePackageCommandLineSymbolFields + { + WixBundlePackageRef, + InstallArgument, + UninstallArgument, + RepairArgument, + Condition, + } + + public class WixBundlePackageCommandLineSymbol : IntermediateSymbol + { + public WixBundlePackageCommandLineSymbol() : base(SymbolDefinitions.WixBundlePackageCommandLine, null, null) + { + } + + public WixBundlePackageCommandLineSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundlePackageCommandLine, sourceLineNumber, id) + { + } + + public IntermediateField this[WixBundlePackageCommandLineSymbolFields index] => this.Fields[(int)index]; + + public string WixBundlePackageRef + { + get => (string)this.Fields[(int)WixBundlePackageCommandLineSymbolFields.WixBundlePackageRef]; + set => this.Set((int)WixBundlePackageCommandLineSymbolFields.WixBundlePackageRef, value); + } + + public string InstallArgument + { + get => (string)this.Fields[(int)WixBundlePackageCommandLineSymbolFields.InstallArgument]; + set => this.Set((int)WixBundlePackageCommandLineSymbolFields.InstallArgument, value); + } + + public string UninstallArgument + { + get => (string)this.Fields[(int)WixBundlePackageCommandLineSymbolFields.UninstallArgument]; + set => this.Set((int)WixBundlePackageCommandLineSymbolFields.UninstallArgument, value); + } + + public string RepairArgument + { + get => (string)this.Fields[(int)WixBundlePackageCommandLineSymbolFields.RepairArgument]; + set => this.Set((int)WixBundlePackageCommandLineSymbolFields.RepairArgument, value); + } + + public string Condition + { + get => (string)this.Fields[(int)WixBundlePackageCommandLineSymbolFields.Condition]; + set => this.Set((int)WixBundlePackageCommandLineSymbolFields.Condition, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/WixBundlePackageExitCodeSymbol.cs b/src/WixToolset.Data/Symbols/WixBundlePackageExitCodeSymbol.cs new file mode 100644 index 00000000..d77d9d58 --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixBundlePackageExitCodeSymbol.cs @@ -0,0 +1,71 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixBundlePackageExitCode = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixBundlePackageExitCode, + new[] + { + new IntermediateFieldDefinition(nameof(WixBundlePackageExitCodeSymbolFields.ChainPackageId), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundlePackageExitCodeSymbolFields.Code), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(WixBundlePackageExitCodeSymbolFields.Behavior), IntermediateFieldType.String), + }, + typeof(WixBundlePackageExitCodeSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + using System; + + public enum WixBundlePackageExitCodeSymbolFields + { + ChainPackageId, + Code, + Behavior, + } + + public enum ExitCodeBehaviorType + { + NotSet = -1, + Success, + Error, + ScheduleReboot, + ForceReboot, + } + + public class WixBundlePackageExitCodeSymbol : IntermediateSymbol + { + public WixBundlePackageExitCodeSymbol() : base(SymbolDefinitions.WixBundlePackageExitCode, null, null) + { + } + + public WixBundlePackageExitCodeSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundlePackageExitCode, sourceLineNumber, id) + { + } + + public IntermediateField this[WixBundlePackageExitCodeSymbolFields index] => this.Fields[(int)index]; + + public string ChainPackageId + { + get => (string)this.Fields[(int)WixBundlePackageExitCodeSymbolFields.ChainPackageId]; + set => this.Set((int)WixBundlePackageExitCodeSymbolFields.ChainPackageId, value); + } + + public int? Code + { + get => (int?)this.Fields[(int)WixBundlePackageExitCodeSymbolFields.Code]; + set => this.Set((int)WixBundlePackageExitCodeSymbolFields.Code, value); + } + + public ExitCodeBehaviorType Behavior + { + get => Enum.TryParse((string)this.Fields[(int)WixBundlePackageExitCodeSymbolFields.Behavior], true, out ExitCodeBehaviorType value) ? value : ExitCodeBehaviorType.NotSet; + set => this.Set((int)WixBundlePackageExitCodeSymbolFields.Behavior, value.ToString()); + } + } +} diff --git a/src/WixToolset.Data/Symbols/WixBundlePackageGroupSymbol.cs b/src/WixToolset.Data/Symbols/WixBundlePackageGroupSymbol.cs new file mode 100644 index 00000000..a5e1943b --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixBundlePackageGroupSymbol.cs @@ -0,0 +1,36 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixBundlePackageGroup = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixBundlePackageGroup, + new IntermediateFieldDefinition[] + { + }, + typeof(WixBundlePackageGroupSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum WixBundlePackageGroupSymbolFields + { + } + + public class WixBundlePackageGroupSymbol : IntermediateSymbol + { + public WixBundlePackageGroupSymbol() : base(SymbolDefinitions.WixBundlePackageGroup, null, null) + { + } + + public WixBundlePackageGroupSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundlePackageGroup, sourceLineNumber, id) + { + } + + public IntermediateField this[WixBundlePackageGroupSymbolFields index] => this.Fields[(int)index]; + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/WixBundlePackageSymbol.cs b/src/WixToolset.Data/Symbols/WixBundlePackageSymbol.cs new file mode 100644 index 00000000..8f073900 --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixBundlePackageSymbol.cs @@ -0,0 +1,212 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixBundlePackage = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixBundlePackage, + new[] + { + new IntermediateFieldDefinition(nameof(WixBundlePackageSymbolFields.Type), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundlePackageSymbolFields.PayloadRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundlePackageSymbolFields.Attributes), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(WixBundlePackageSymbolFields.InstallCondition), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundlePackageSymbolFields.Cache), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundlePackageSymbolFields.CacheId), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundlePackageSymbolFields.Vital), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(WixBundlePackageSymbolFields.PerMachine), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundlePackageSymbolFields.LogPathVariable), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundlePackageSymbolFields.RollbackLogPathVariable), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundlePackageSymbolFields.Size), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(WixBundlePackageSymbolFields.InstallSize), IntermediateFieldType.LargeNumber), + new IntermediateFieldDefinition(nameof(WixBundlePackageSymbolFields.Version), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundlePackageSymbolFields.Language), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(WixBundlePackageSymbolFields.DisplayName), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundlePackageSymbolFields.Description), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundlePackageSymbolFields.RollbackBoundaryRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundlePackageSymbolFields.RollbackBoundaryBackwardRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundlePackageSymbolFields.Win64), IntermediateFieldType.Bool), + }, + typeof(WixBundlePackageSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + using System; + + public enum WixBundlePackageSymbolFields + { + Type, + PayloadRef, + Attributes, + InstallCondition, + Cache, + CacheId, + Vital, + PerMachine, + LogPathVariable, + RollbackLogPathVariable, + Size, + InstallSize, + Version, + Language, + DisplayName, + Description, + RollbackBoundaryRef, + RollbackBoundaryBackwardRef, + Win64, + } + + /// + /// Types of bundle packages. + /// + public enum WixBundlePackageType + { + Exe, + Msi, + Msp, + Msu, + } + + [Flags] + public enum WixBundlePackageAttributes + { + Permanent = 0x1, + Visible = 0x2, + PerMachine = 0x4, + Win64 = 0x8, + } + + public class WixBundlePackageSymbol : IntermediateSymbol + { + public WixBundlePackageSymbol() : base(SymbolDefinitions.WixBundlePackage, null, null) + { + } + + public WixBundlePackageSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundlePackage, sourceLineNumber, id) + { + } + + public IntermediateField this[WixBundlePackageSymbolFields index] => this.Fields[(int)index]; + + public WixBundlePackageType Type + { + get => (WixBundlePackageType)Enum.Parse(typeof(WixBundlePackageType), (string)this.Fields[(int)WixBundlePackageSymbolFields.Type], true); + set => this.Set((int)WixBundlePackageSymbolFields.Type, value.ToString()); + } + + public string PayloadRef + { + get => (string)this.Fields[(int)WixBundlePackageSymbolFields.PayloadRef]; + set => this.Set((int)WixBundlePackageSymbolFields.PayloadRef, value); + } + + public WixBundlePackageAttributes Attributes + { + get => (WixBundlePackageAttributes)(int)this.Fields[(int)WixBundlePackageSymbolFields.Attributes]; + set => this.Set((int)WixBundlePackageSymbolFields.Attributes, (int)value); + } + + public string InstallCondition + { + get => (string)this.Fields[(int)WixBundlePackageSymbolFields.InstallCondition]; + set => this.Set((int)WixBundlePackageSymbolFields.InstallCondition, value); + } + + public YesNoAlwaysType Cache + { + get => Enum.TryParse((string)this.Fields[(int)WixBundlePackageSymbolFields.Cache], true, out YesNoAlwaysType value) ? value : YesNoAlwaysType.NotSet; + set => this.Set((int)WixBundlePackageSymbolFields.Cache, value.ToString().ToLowerInvariant()); + } + + public string CacheId + { + get => (string)this.Fields[(int)WixBundlePackageSymbolFields.CacheId]; + set => this.Set((int)WixBundlePackageSymbolFields.CacheId, value); + } + + public bool? Vital + { + get => (bool?)this.Fields[(int)WixBundlePackageSymbolFields.Vital]; + set => this.Set((int)WixBundlePackageSymbolFields.Vital, value); + } + + public YesNoDefaultType PerMachine + { + get => Enum.TryParse((string)this.Fields[(int)WixBundlePackageSymbolFields.PerMachine], true, out YesNoDefaultType value) ? value : YesNoDefaultType.NotSet; + set => this.Set((int)WixBundlePackageSymbolFields.PerMachine, value.ToString().ToLowerInvariant()); + } + + public string LogPathVariable + { + get => (string)this.Fields[(int)WixBundlePackageSymbolFields.LogPathVariable]; + set => this.Set((int)WixBundlePackageSymbolFields.LogPathVariable, value); + } + + public string RollbackLogPathVariable + { + get => (string)this.Fields[(int)WixBundlePackageSymbolFields.RollbackLogPathVariable]; + set => this.Set((int)WixBundlePackageSymbolFields.RollbackLogPathVariable, value); + } + + public int Size + { + get => (int)this.Fields[(int)WixBundlePackageSymbolFields.Size]; + set => this.Set((int)WixBundlePackageSymbolFields.Size, value); + } + + public long? InstallSize + { + get => (long?)this.Fields[(int)WixBundlePackageSymbolFields.InstallSize]; + set => this.Set((int)WixBundlePackageSymbolFields.InstallSize, value); + } + + public string Version + { + get => (string)this.Fields[(int)WixBundlePackageSymbolFields.Version]; + set => this.Set((int)WixBundlePackageSymbolFields.Version, value); + } + + public int? Language + { + get => (int?)this.Fields[(int)WixBundlePackageSymbolFields.Language]; + set => this.Set((int)WixBundlePackageSymbolFields.Language, value); + } + + public string DisplayName + { + get => (string)this.Fields[(int)WixBundlePackageSymbolFields.DisplayName]; + set => this.Set((int)WixBundlePackageSymbolFields.DisplayName, value); + } + + public string Description + { + get => (string)this.Fields[(int)WixBundlePackageSymbolFields.Description]; + set => this.Set((int)WixBundlePackageSymbolFields.Description, value); + } + + public string RollbackBoundaryRef + { + get => (string)this.Fields[(int)WixBundlePackageSymbolFields.RollbackBoundaryRef]; + set => this.Set((int)WixBundlePackageSymbolFields.RollbackBoundaryRef, value); + } + + public string RollbackBoundaryBackwardRef + { + get => (string)this.Fields[(int)WixBundlePackageSymbolFields.RollbackBoundaryBackwardRef]; + set => this.Set((int)WixBundlePackageSymbolFields.RollbackBoundaryBackwardRef, value); + } + + public bool Win64 + { + get => (bool)this.Fields[(int)WixBundlePackageSymbolFields.Win64]; + set => this.Set((int)WixBundlePackageSymbolFields.Win64, value); + } + + public bool Permanent => (this.Attributes & WixBundlePackageAttributes.Permanent) == WixBundlePackageAttributes.Permanent; + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/WixBundlePatchTargetCodeSymbol.cs b/src/WixToolset.Data/Symbols/WixBundlePatchTargetCodeSymbol.cs new file mode 100644 index 00000000..b1aa9c77 --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixBundlePatchTargetCodeSymbol.cs @@ -0,0 +1,82 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixBundlePatchTargetCode = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixBundlePatchTargetCode, + new[] + { + new IntermediateFieldDefinition(nameof(WixBundlePatchTargetCodeSymbolFields.PackageRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundlePatchTargetCodeSymbolFields.TargetCode), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundlePatchTargetCodeSymbolFields.Attributes), IntermediateFieldType.Number), + }, + typeof(WixBundlePatchTargetCodeSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + using System; + + public enum WixBundlePatchTargetCodeSymbolFields + { + PackageRef, + TargetCode, + Attributes, + } + + [Flags] + public enum WixBundlePatchTargetCodeAttributes : int + { + None = 0, + + /// + /// The transform targets a specific ProductCode. + /// + TargetsProductCode = 1, + + /// + /// The transform targets a specific UpgradeCode. + /// + TargetsUpgradeCode = 2, + } + + public class WixBundlePatchTargetCodeSymbol : IntermediateSymbol + { + public WixBundlePatchTargetCodeSymbol() : base(SymbolDefinitions.WixBundlePatchTargetCode, null, null) + { + } + + public WixBundlePatchTargetCodeSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundlePatchTargetCode, sourceLineNumber, id) + { + } + + public IntermediateField this[WixBundlePatchTargetCodeSymbolFields index] => this.Fields[(int)index]; + + public string PackageRef + { + get => (string)this.Fields[(int)WixBundlePatchTargetCodeSymbolFields.PackageRef]; + set => this.Set((int)WixBundlePatchTargetCodeSymbolFields.PackageRef, value); + } + + public string TargetCode + { + get => (string)this.Fields[(int)WixBundlePatchTargetCodeSymbolFields.TargetCode]; + set => this.Set((int)WixBundlePatchTargetCodeSymbolFields.TargetCode, value); + } + + public WixBundlePatchTargetCodeAttributes Attributes + { + get => (WixBundlePatchTargetCodeAttributes)this.Fields[(int)WixBundlePatchTargetCodeSymbolFields.Attributes].AsNumber(); + set => this.Set((int)WixBundlePatchTargetCodeSymbolFields.Attributes, (int)value); + } + + public bool TargetsProductCode => (this.Attributes & WixBundlePatchTargetCodeAttributes.TargetsProductCode) == WixBundlePatchTargetCodeAttributes.TargetsProductCode; + + public bool TargetsUpgradeCode => (this.Attributes & WixBundlePatchTargetCodeAttributes.TargetsUpgradeCode) == WixBundlePatchTargetCodeAttributes.TargetsUpgradeCode; + } +} diff --git a/src/WixToolset.Data/Symbols/WixBundlePayloadGroupSymbol.cs b/src/WixToolset.Data/Symbols/WixBundlePayloadGroupSymbol.cs new file mode 100644 index 00000000..c53f6e73 --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixBundlePayloadGroupSymbol.cs @@ -0,0 +1,36 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixBundlePayloadGroup = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixBundlePayloadGroup, + new IntermediateFieldDefinition[] + { + }, + typeof(WixBundlePayloadGroupSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum WixBundlePayloadGroupSymbolFields + { + } + + public class WixBundlePayloadGroupSymbol : IntermediateSymbol + { + public WixBundlePayloadGroupSymbol() : base(SymbolDefinitions.WixBundlePayloadGroup, null, null) + { + } + + public WixBundlePayloadGroupSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundlePayloadGroup, sourceLineNumber, id) + { + } + + public IntermediateField this[WixBundlePayloadGroupSymbolFields index] => this.Fields[(int)index]; + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/WixBundlePayloadSymbol.cs b/src/WixToolset.Data/Symbols/WixBundlePayloadSymbol.cs new file mode 100644 index 00000000..94a02af8 --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixBundlePayloadSymbol.cs @@ -0,0 +1,206 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixBundlePayload = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixBundlePayload, + new[] + { + new IntermediateFieldDefinition(nameof(WixBundlePayloadSymbolFields.Name), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundlePayloadSymbolFields.SourceFile), IntermediateFieldType.Path), + new IntermediateFieldDefinition(nameof(WixBundlePayloadSymbolFields.DownloadUrl), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundlePayloadSymbolFields.Compressed), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(WixBundlePayloadSymbolFields.UnresolvedSourceFile), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundlePayloadSymbolFields.DisplayName), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundlePayloadSymbolFields.Description), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundlePayloadSymbolFields.EnableSignatureValidation), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(WixBundlePayloadSymbolFields.FileSize), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(WixBundlePayloadSymbolFields.Version), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundlePayloadSymbolFields.Hash), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundlePayloadSymbolFields.PublicKey), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundlePayloadSymbolFields.Thumbprint), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundlePayloadSymbolFields.CatalogRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundlePayloadSymbolFields.ContainerRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundlePayloadSymbolFields.PackageRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundlePayloadSymbolFields.ContentFile), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(WixBundlePayloadSymbolFields.EmbeddedId), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundlePayloadSymbolFields.LayoutOnly), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(WixBundlePayloadSymbolFields.Packaging), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(WixBundlePayloadSymbolFields.ParentPackagePayloadRef), IntermediateFieldType.String), + }, + typeof(WixBundlePayloadSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + using System; + + public enum WixBundlePayloadSymbolFields + { + Name, + SourceFile, + DownloadUrl, + Compressed, + UnresolvedSourceFile, + DisplayName, + Description, + EnableSignatureValidation, + FileSize, + Version, + Hash, + PublicKey, + Thumbprint, + CatalogRef, + ContainerRef, + PackageRef, + ContentFile, + EmbeddedId, + LayoutOnly, + Packaging, + ParentPackagePayloadRef, + } + + public class WixBundlePayloadSymbol : IntermediateSymbol + { + public WixBundlePayloadSymbol() : base(SymbolDefinitions.WixBundlePayload, null, null) + { + } + + public WixBundlePayloadSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundlePayload, sourceLineNumber, id) + { + } + + public IntermediateField this[WixBundlePayloadSymbolFields index] => this.Fields[(int)index]; + + public string Name + { + get => (string)this.Fields[(int)WixBundlePayloadSymbolFields.Name]; + set => this.Set((int)WixBundlePayloadSymbolFields.Name, value); + } + + public IntermediateFieldPathValue SourceFile + { + get => this.Fields[(int)WixBundlePayloadSymbolFields.SourceFile].AsPath(); + set => this.Set((int)WixBundlePayloadSymbolFields.SourceFile, value); + } + + public string DownloadUrl + { + get => (string)this.Fields[(int)WixBundlePayloadSymbolFields.DownloadUrl]; + set => this.Set((int)WixBundlePayloadSymbolFields.DownloadUrl, value); + } + + public bool? Compressed + { + get => (bool?)this.Fields[(int)WixBundlePayloadSymbolFields.Compressed]; + set => this.Set((int)WixBundlePayloadSymbolFields.Compressed, value); + } + + public string UnresolvedSourceFile + { + get => (string)this.Fields[(int)WixBundlePayloadSymbolFields.UnresolvedSourceFile]; + set => this.Set((int)WixBundlePayloadSymbolFields.UnresolvedSourceFile, value); + } + + public string DisplayName + { + get => (string)this.Fields[(int)WixBundlePayloadSymbolFields.DisplayName]; + set => this.Set((int)WixBundlePayloadSymbolFields.DisplayName, value); + } + + public string Description + { + get => (string)this.Fields[(int)WixBundlePayloadSymbolFields.Description]; + set => this.Set((int)WixBundlePayloadSymbolFields.Description, value); + } + + public bool EnableSignatureValidation + { + get => (bool)this.Fields[(int)WixBundlePayloadSymbolFields.EnableSignatureValidation]; + set => this.Set((int)WixBundlePayloadSymbolFields.EnableSignatureValidation, value); + } + + public int? FileSize + { + get => (int?)this.Fields[(int)WixBundlePayloadSymbolFields.FileSize]; + set => this.Set((int)WixBundlePayloadSymbolFields.FileSize, value); + } + + public string Version + { + get => (string)this.Fields[(int)WixBundlePayloadSymbolFields.Version]; + set => this.Set((int)WixBundlePayloadSymbolFields.Version, value); + } + + public string Hash + { + get => (string)this.Fields[(int)WixBundlePayloadSymbolFields.Hash]; + set => this.Set((int)WixBundlePayloadSymbolFields.Hash, value); + } + + public string PublicKey + { + get => (string)this.Fields[(int)WixBundlePayloadSymbolFields.PublicKey]; + set => this.Set((int)WixBundlePayloadSymbolFields.PublicKey, value); + } + + public string Thumbprint + { + get => (string)this.Fields[(int)WixBundlePayloadSymbolFields.Thumbprint]; + set => this.Set((int)WixBundlePayloadSymbolFields.Thumbprint, value); + } + + public string CatalogRef + { + get => (string)this.Fields[(int)WixBundlePayloadSymbolFields.CatalogRef]; + set => this.Set((int)WixBundlePayloadSymbolFields.CatalogRef, value); + } + + public string ContainerRef + { + get => (string)this.Fields[(int)WixBundlePayloadSymbolFields.ContainerRef]; + set => this.Set((int)WixBundlePayloadSymbolFields.ContainerRef, value); + } + + public string PackageRef + { + get => (string)this.Fields[(int)WixBundlePayloadSymbolFields.PackageRef]; + set => this.Set((int)WixBundlePayloadSymbolFields.PackageRef, value); + } + + public bool ContentFile + { + get => (bool)this.Fields[(int)WixBundlePayloadSymbolFields.ContentFile]; + set => this.Set((int)WixBundlePayloadSymbolFields.ContentFile, value); + } + + public string EmbeddedId + { + get => (string)this.Fields[(int)WixBundlePayloadSymbolFields.EmbeddedId]; + set => this.Set((int)WixBundlePayloadSymbolFields.EmbeddedId, value); + } + + public bool LayoutOnly + { + get => (bool)this.Fields[(int)WixBundlePayloadSymbolFields.LayoutOnly]; + set => this.Set((int)WixBundlePayloadSymbolFields.LayoutOnly, value); + } + + public PackagingType? Packaging + { + get => (PackagingType?)this.Fields[(int)WixBundlePayloadSymbolFields.Packaging].AsNumber(); + set => this.Set((int)WixBundlePayloadSymbolFields.Packaging, (int?)value); + } + + public string ParentPackagePayloadRef + { + get => (string)this.Fields[(int)WixBundlePayloadSymbolFields.ParentPackagePayloadRef]; + set => this.Set((int)WixBundlePayloadSymbolFields.ParentPackagePayloadRef, value); + } + } +} diff --git a/src/WixToolset.Data/Symbols/WixBundleRelatedPackageSymbol.cs b/src/WixToolset.Data/Symbols/WixBundleRelatedPackageSymbol.cs new file mode 100644 index 00000000..7bd67b7f --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixBundleRelatedPackageSymbol.cs @@ -0,0 +1,104 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixBundleRelatedPackage = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixBundleRelatedPackage, + new[] + { + new IntermediateFieldDefinition(nameof(WixBundleRelatedPackageSymbolFields.PackageRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleRelatedPackageSymbolFields.RelatedId), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleRelatedPackageSymbolFields.MinVersion), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleRelatedPackageSymbolFields.MaxVersion), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleRelatedPackageSymbolFields.Languages), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleRelatedPackageSymbolFields.Attributes), IntermediateFieldType.Number), + }, + typeof(WixBundleRelatedPackageSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + using System; + + public enum WixBundleRelatedPackageSymbolFields + { + PackageRef, + RelatedId, + MinVersion, + MaxVersion, + Languages, + Attributes, + } + + [Flags] + public enum WixBundleRelatedPackageAttributes + { + None = 0x0, + OnlyDetect = 0x1, + MinInclusive = 0x2, + MaxInclusive = 0x4, + LangInclusive = 0x8, + } + + public class WixBundleRelatedPackageSymbol : IntermediateSymbol + { + public WixBundleRelatedPackageSymbol() : base(SymbolDefinitions.WixBundleRelatedPackage, null, null) + { + } + + public WixBundleRelatedPackageSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundleRelatedPackage, sourceLineNumber, id) + { + } + + public IntermediateField this[WixBundleRelatedPackageSymbolFields index] => this.Fields[(int)index]; + + public string PackageRef + { + get => (string)this.Fields[(int)WixBundleRelatedPackageSymbolFields.PackageRef]; + set => this.Set((int)WixBundleRelatedPackageSymbolFields.PackageRef, value); + } + + public string RelatedId + { + get => (string)this.Fields[(int)WixBundleRelatedPackageSymbolFields.RelatedId]; + set => this.Set((int)WixBundleRelatedPackageSymbolFields.RelatedId, value); + } + + public string MinVersion + { + get => (string)this.Fields[(int)WixBundleRelatedPackageSymbolFields.MinVersion]; + set => this.Set((int)WixBundleRelatedPackageSymbolFields.MinVersion, value); + } + + public string MaxVersion + { + get => (string)this.Fields[(int)WixBundleRelatedPackageSymbolFields.MaxVersion]; + set => this.Set((int)WixBundleRelatedPackageSymbolFields.MaxVersion, value); + } + + public string Languages + { + get => (string)this.Fields[(int)WixBundleRelatedPackageSymbolFields.Languages]; + set => this.Set((int)WixBundleRelatedPackageSymbolFields.Languages, value); + } + + public WixBundleRelatedPackageAttributes Attributes + { + get => (WixBundleRelatedPackageAttributes)this.Fields[(int)WixBundleRelatedPackageSymbolFields.Attributes].AsNumber(); + set => this.Set((int)WixBundleRelatedPackageSymbolFields.Attributes, (int)value); + } + + public bool MinInclusive => (this.Attributes & WixBundleRelatedPackageAttributes.MinInclusive) == WixBundleRelatedPackageAttributes.MinInclusive; + + public bool MaxInclusive => (this.Attributes & WixBundleRelatedPackageAttributes.MaxInclusive) == WixBundleRelatedPackageAttributes.MaxInclusive; + + public bool OnlyDetect => (this.Attributes & WixBundleRelatedPackageAttributes.OnlyDetect) == WixBundleRelatedPackageAttributes.OnlyDetect; + + public bool LangInclusive => (this.Attributes & WixBundleRelatedPackageAttributes.LangInclusive) == WixBundleRelatedPackageAttributes.LangInclusive; + } +} diff --git a/src/WixToolset.Data/Symbols/WixBundleRollbackBoundarySymbol.cs b/src/WixToolset.Data/Symbols/WixBundleRollbackBoundarySymbol.cs new file mode 100644 index 00000000..e54e898e --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixBundleRollbackBoundarySymbol.cs @@ -0,0 +1,52 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixBundleRollbackBoundary = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixBundleRollbackBoundary, + new[] + { + new IntermediateFieldDefinition(nameof(WixBundleRollbackBoundarySymbolFields.Vital), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(WixBundleRollbackBoundarySymbolFields.Transaction), IntermediateFieldType.Number), + }, + typeof(WixBundleRollbackBoundarySymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum WixBundleRollbackBoundarySymbolFields + { + Vital, + Transaction, + } + + public class WixBundleRollbackBoundarySymbol : IntermediateSymbol + { + public WixBundleRollbackBoundarySymbol() : base(SymbolDefinitions.WixBundleRollbackBoundary, null, null) + { + } + + public WixBundleRollbackBoundarySymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundleRollbackBoundary, sourceLineNumber, id) + { + } + + public IntermediateField this[WixBundleRollbackBoundarySymbolFields index] => this.Fields[(int)index]; + + public bool? Vital + { + get => (bool?)this.Fields[(int)WixBundleRollbackBoundarySymbolFields.Vital]; + set => this.Set((int)WixBundleRollbackBoundarySymbolFields.Vital, value); + } + + public bool? Transaction + { + get => (bool?)this.Fields[(int)WixBundleRollbackBoundarySymbolFields.Transaction]; + set => this.Set((int)WixBundleRollbackBoundarySymbolFields.Transaction, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/WixBundleSlipstreamMspSymbol.cs b/src/WixToolset.Data/Symbols/WixBundleSlipstreamMspSymbol.cs new file mode 100644 index 00000000..d8e9db3f --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixBundleSlipstreamMspSymbol.cs @@ -0,0 +1,52 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixBundleSlipstreamMsp = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixBundleSlipstreamMsp, + new[] + { + new IntermediateFieldDefinition(nameof(WixBundleSlipstreamMspSymbolFields.TargetPackageRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleSlipstreamMspSymbolFields.MspPackageRef), IntermediateFieldType.String), + }, + typeof(WixBundleSlipstreamMspSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum WixBundleSlipstreamMspSymbolFields + { + TargetPackageRef, + MspPackageRef, + } + + public class WixBundleSlipstreamMspSymbol : IntermediateSymbol + { + public WixBundleSlipstreamMspSymbol() : base(SymbolDefinitions.WixBundleSlipstreamMsp, null, null) + { + } + + public WixBundleSlipstreamMspSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundleSlipstreamMsp, sourceLineNumber, id) + { + } + + public IntermediateField this[WixBundleSlipstreamMspSymbolFields index] => this.Fields[(int)index]; + + public string TargetPackageRef + { + get => (string)this.Fields[(int)WixBundleSlipstreamMspSymbolFields.TargetPackageRef]; + set => this.Set((int)WixBundleSlipstreamMspSymbolFields.TargetPackageRef, value); + } + + public string MspPackageRef + { + get => (string)this.Fields[(int)WixBundleSlipstreamMspSymbolFields.MspPackageRef]; + set => this.Set((int)WixBundleSlipstreamMspSymbolFields.MspPackageRef, value); + } + } +} diff --git a/src/WixToolset.Data/Symbols/WixBundleSymbol.cs b/src/WixToolset.Data/Symbols/WixBundleSymbol.cs new file mode 100644 index 00000000..8cad5c36 --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixBundleSymbol.cs @@ -0,0 +1,234 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixBundle = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixBundle, + new[] + { + new IntermediateFieldDefinition(nameof(WixBundleSymbolFields.UpgradeCode), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleSymbolFields.Version), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleSymbolFields.Copyright), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleSymbolFields.Name), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleSymbolFields.Manufacturer), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleSymbolFields.Attributes), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(WixBundleSymbolFields.AboutUrl), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleSymbolFields.HelpUrl), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleSymbolFields.HelpTelephone), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleSymbolFields.UpdateUrl), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleSymbolFields.Compressed), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(WixBundleSymbolFields.LogPathVariable), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleSymbolFields.LogPrefix), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleSymbolFields.LogExtension), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleSymbolFields.IconSourceFile), IntermediateFieldType.Path), + new IntermediateFieldDefinition(nameof(WixBundleSymbolFields.SplashScreenSourceFile), IntermediateFieldType.Path), + new IntermediateFieldDefinition(nameof(WixBundleSymbolFields.Condition), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleSymbolFields.Tag), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleSymbolFields.Platform), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleSymbolFields.ParentName), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleSymbolFields.BundleId), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleSymbolFields.ProviderKey), IntermediateFieldType.String), + }, + typeof(WixBundleSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + using System; + + public enum WixBundleSymbolFields + { + UpgradeCode, + Version, + Copyright, + Name, + Manufacturer, + Attributes, + AboutUrl, + HelpUrl, + HelpTelephone, + UpdateUrl, + Compressed, + LogPathVariable, + LogPrefix, + LogExtension, + IconSourceFile, + SplashScreenSourceFile, + Condition, + Tag, + Platform, + ParentName, + BundleId, + ProviderKey, + } + + [Flags] + public enum WixBundleAttributes + { + None = 0x0, + DisableModify = 0x1, + DisableRemove = 0x2, + SingleChangeUninstallButton = 0x4, + PerMachine = 0x8, + } + + public class WixBundleSymbol : IntermediateSymbol + { + public WixBundleSymbol() : base(SymbolDefinitions.WixBundle, null, null) + { + } + + public WixBundleSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundle, sourceLineNumber, id) + { + } + + public IntermediateField this[WixBundleSymbolFields index] => this.Fields[(int)index]; + + public string UpgradeCode + { + get => (string)this.Fields[(int)WixBundleSymbolFields.UpgradeCode]; + set => this.Set((int)WixBundleSymbolFields.UpgradeCode, value); + } + + public string Version + { + get => (string)this.Fields[(int)WixBundleSymbolFields.Version]; + set => this.Set((int)WixBundleSymbolFields.Version, value); + } + + public string Copyright + { + get => (string)this.Fields[(int)WixBundleSymbolFields.Copyright]; + set => this.Set((int)WixBundleSymbolFields.Copyright, value); + } + + public string Name + { + get => (string)this.Fields[(int)WixBundleSymbolFields.Name]; + set => this.Set((int)WixBundleSymbolFields.Name, value); + } + + public string Manufacturer + { + get => (string)this.Fields[(int)WixBundleSymbolFields.Manufacturer]; + set => this.Set((int)WixBundleSymbolFields.Manufacturer, value); + } + + public WixBundleAttributes Attributes + { + get => (WixBundleAttributes)this.Fields[(int)WixBundleSymbolFields.Attributes].AsNumber(); + set => this.Set((int)WixBundleSymbolFields.Attributes, (int)value); + } + + public string AboutUrl + { + get => (string)this.Fields[(int)WixBundleSymbolFields.AboutUrl]; + set => this.Set((int)WixBundleSymbolFields.AboutUrl, value); + } + + public string HelpTelephone + { + get => (string)this.Fields[(int)WixBundleSymbolFields.HelpTelephone]; + set => this.Set((int)WixBundleSymbolFields.HelpTelephone, value); + } + + public string HelpUrl + { + get => (string)this.Fields[(int)WixBundleSymbolFields.HelpUrl]; + set => this.Set((int)WixBundleSymbolFields.HelpUrl, value); + } + + public string UpdateUrl + { + get => (string)this.Fields[(int)WixBundleSymbolFields.UpdateUrl]; + set => this.Set((int)WixBundleSymbolFields.UpdateUrl, value); + } + + public bool? Compressed + { + get => (bool?)this.Fields[(int)WixBundleSymbolFields.Compressed]; + set => this.Set((int)WixBundleSymbolFields.Compressed, value); + } + + public string LogPathVariable + { + get => (string)this.Fields[(int)WixBundleSymbolFields.LogPathVariable]; + set => this.Set((int)WixBundleSymbolFields.LogPathVariable, value); + } + + public string LogPrefix + { + get => (string)this.Fields[(int)WixBundleSymbolFields.LogPrefix]; + set => this.Set((int)WixBundleSymbolFields.LogPrefix, value); + } + + public string LogExtension + { + get => (string)this.Fields[(int)WixBundleSymbolFields.LogExtension]; + set => this.Set((int)WixBundleSymbolFields.LogExtension, value); + } + + public string IconSourceFile + { + get => (string)this.Fields[(int)WixBundleSymbolFields.IconSourceFile]; + set => this.Set((int)WixBundleSymbolFields.IconSourceFile, value); + } + + public string SplashScreenSourceFile + { + get => (string)this.Fields[(int)WixBundleSymbolFields.SplashScreenSourceFile]; + set => this.Set((int)WixBundleSymbolFields.SplashScreenSourceFile, value); + } + + public string Condition + { + get => (string)this.Fields[(int)WixBundleSymbolFields.Condition]; + set => this.Set((int)WixBundleSymbolFields.Condition, value); + } + + public string Tag + { + get => (string)this.Fields[(int)WixBundleSymbolFields.Tag]; + set => this.Set((int)WixBundleSymbolFields.Tag, value); + } + + public Platform Platform + { + get => (Platform)this.Fields[(int)WixBundleSymbolFields.Platform].AsNumber(); + set => this.Set((int)WixBundleSymbolFields.Platform, (int)value); + } + + public string ParentName + { + get => (string)this.Fields[(int)WixBundleSymbolFields.ParentName]; + set => this.Set((int)WixBundleSymbolFields.ParentName, value); + } + + public string BundleId + { + get => (string)this.Fields[(int)WixBundleSymbolFields.BundleId]; + set => this.Set((int)WixBundleSymbolFields.BundleId, value); + } + + public string ProviderKey + { + get => (string)this.Fields[(int)WixBundleSymbolFields.ProviderKey]; + set => this.Set((int)WixBundleSymbolFields.ProviderKey, value); + } + + public PackagingType DefaultPackagingType => (this.Compressed.HasValue && !this.Compressed.Value) ? PackagingType.External : PackagingType.Embedded; + + public bool DisableModify => (this.Attributes & WixBundleAttributes.DisableModify) == WixBundleAttributes.DisableModify; + + public bool DisableRemove => (this.Attributes & WixBundleAttributes.DisableRemove) == WixBundleAttributes.DisableRemove; + + public bool PerMachine => (this.Attributes & WixBundleAttributes.PerMachine) == WixBundleAttributes.PerMachine; + + public bool SingleChangeUninstallButton => (this.Attributes & WixBundleAttributes.SingleChangeUninstallButton) == WixBundleAttributes.SingleChangeUninstallButton; + } +} diff --git a/src/WixToolset.Data/Symbols/WixBundleUpdateSymbol.cs b/src/WixToolset.Data/Symbols/WixBundleUpdateSymbol.cs new file mode 100644 index 00000000..d27bbc32 --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixBundleUpdateSymbol.cs @@ -0,0 +1,52 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixBundleUpdate = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixBundleUpdate, + new[] + { + new IntermediateFieldDefinition(nameof(WixBundleUpdateSymbolFields.Location), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleUpdateSymbolFields.Attributes), IntermediateFieldType.Number), + }, + typeof(WixBundleUpdateSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum WixBundleUpdateSymbolFields + { + Location, + Attributes, + } + + public class WixBundleUpdateSymbol : IntermediateSymbol + { + public WixBundleUpdateSymbol() : base(SymbolDefinitions.WixBundleUpdate, null, null) + { + } + + public WixBundleUpdateSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundleUpdate, sourceLineNumber, id) + { + } + + public IntermediateField this[WixBundleUpdateSymbolFields index] => this.Fields[(int)index]; + + public string Location + { + get => (string)this.Fields[(int)WixBundleUpdateSymbolFields.Location]; + set => this.Set((int)WixBundleUpdateSymbolFields.Location, value); + } + + public int Attributes + { + get => (int)this.Fields[(int)WixBundleUpdateSymbolFields.Attributes]; + set => this.Set((int)WixBundleUpdateSymbolFields.Attributes, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/WixBundleVariableSymbol.cs b/src/WixToolset.Data/Symbols/WixBundleVariableSymbol.cs new file mode 100644 index 00000000..85cf2798 --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixBundleVariableSymbol.cs @@ -0,0 +1,68 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixBundleVariable = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixBundleVariable, + new[] + { + new IntermediateFieldDefinition(nameof(WixBundleVariableSymbolFields.Value), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleVariableSymbolFields.Type), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleVariableSymbolFields.Hidden), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(WixBundleVariableSymbolFields.Persisted), IntermediateFieldType.Bool), + }, + typeof(WixBundleVariableSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum WixBundleVariableSymbolFields + { + Value, + Type, + Hidden, + Persisted, + } + + public class WixBundleVariableSymbol : IntermediateSymbol + { + public WixBundleVariableSymbol() : base(SymbolDefinitions.WixBundleVariable, null, null) + { + } + + public WixBundleVariableSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundleVariable, sourceLineNumber, id) + { + } + + public IntermediateField this[WixBundleVariableSymbolFields index] => this.Fields[(int)index]; + + public string Value + { + get => (string)this.Fields[(int)WixBundleVariableSymbolFields.Value]; + set => this.Set((int)WixBundleVariableSymbolFields.Value, value); + } + + public string Type + { + get => (string)this.Fields[(int)WixBundleVariableSymbolFields.Type]; + set => this.Set((int)WixBundleVariableSymbolFields.Type, value); + } + + public bool Hidden + { + get => (bool)this.Fields[(int)WixBundleVariableSymbolFields.Hidden]; + set => this.Set((int)WixBundleVariableSymbolFields.Hidden, value); + } + + public bool Persisted + { + get => (bool)this.Fields[(int)WixBundleVariableSymbolFields.Persisted]; + set => this.Set((int)WixBundleVariableSymbolFields.Persisted, value); + } + } +} diff --git a/src/WixToolset.Data/Symbols/WixChainItemSymbol.cs b/src/WixToolset.Data/Symbols/WixChainItemSymbol.cs new file mode 100644 index 00000000..c657678c --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixChainItemSymbol.cs @@ -0,0 +1,36 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixChainItem = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixChainItem, + new IntermediateFieldDefinition[] + { + }, + typeof(WixChainItemSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum WixChainItemSymbolFields + { + } + + public class WixChainItemSymbol : IntermediateSymbol + { + public WixChainItemSymbol() : base(SymbolDefinitions.WixChainItem, null, null) + { + } + + public WixChainItemSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixChainItem, sourceLineNumber, id) + { + } + + public IntermediateField this[WixChainItemSymbolFields index] => this.Fields[(int)index]; + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/WixChainSymbol.cs b/src/WixToolset.Data/Symbols/WixChainSymbol.cs new file mode 100644 index 00000000..8ec5fc63 --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixChainSymbol.cs @@ -0,0 +1,61 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixChain = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixChain, + new[] + { + new IntermediateFieldDefinition(nameof(WixChainSymbolFields.Attributes), IntermediateFieldType.Number), + }, + typeof(WixChainSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + using System; + + public enum WixChainSymbolFields + { + Attributes, + } + + [Flags] + public enum WixChainAttributes + { + None = 0x0, + DisableRollback = 0x1, + DisableSystemRestore = 0x2, + ParallelCache = 0x4, + } + + public class WixChainSymbol : IntermediateSymbol + { + public WixChainSymbol() : base(SymbolDefinitions.WixChain, null, null) + { + } + + public WixChainSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixChain, sourceLineNumber, id) + { + } + + public IntermediateField this[WixChainSymbolFields index] => this.Fields[(int)index]; + + public WixChainAttributes Attributes + { + get => (WixChainAttributes)(int)this.Fields[(int)WixChainSymbolFields.Attributes]; + set => this.Set((int)WixChainSymbolFields.Attributes, (int)value); + } + + public bool DisableRollback => (this.Attributes & WixChainAttributes.DisableRollback) == WixChainAttributes.DisableRollback; + + public bool DisableSystemRestore => (this.Attributes & WixChainAttributes.DisableSystemRestore) == WixChainAttributes.DisableSystemRestore; + + public bool ParallelCache => (this.Attributes & WixChainAttributes.ParallelCache) == WixChainAttributes.ParallelCache; + } +} diff --git a/src/WixToolset.Data/Symbols/WixComplexReferenceSymbol.cs b/src/WixToolset.Data/Symbols/WixComplexReferenceSymbol.cs new file mode 100644 index 00000000..89365605 --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixComplexReferenceSymbol.cs @@ -0,0 +1,86 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixComplexReference = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixComplexReference, + new[] + { + new IntermediateFieldDefinition(nameof(WixComplexReferenceSymbolFields.Parent), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixComplexReferenceSymbolFields.ParentAttributes), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixComplexReferenceSymbolFields.ParentLanguage), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixComplexReferenceSymbolFields.Child), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixComplexReferenceSymbolFields.ChildAttributes), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixComplexReferenceSymbolFields.Attributes), IntermediateFieldType.Bool), + }, + typeof(WixComplexReferenceSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + using System; + + public enum WixComplexReferenceSymbolFields + { + Parent, + ParentAttributes, + ParentLanguage, + Child, + ChildAttributes, + Attributes, + } + + public class WixComplexReferenceSymbol : IntermediateSymbol + { + public WixComplexReferenceSymbol() : base(SymbolDefinitions.WixComplexReference, null, null) + { + } + + public WixComplexReferenceSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixComplexReference, sourceLineNumber, id) + { + } + + public IntermediateField this[WixComplexReferenceSymbolFields index] => this.Fields[(int)index]; + + public string Parent + { + get => (string)this.Fields[(int)WixComplexReferenceSymbolFields.Parent]; + set => this.Set((int)WixComplexReferenceSymbolFields.Parent, value); + } + + public ComplexReferenceParentType ParentType + { + get => (ComplexReferenceParentType)Enum.Parse(typeof(ComplexReferenceParentType), (string)this.Fields[(int)WixComplexReferenceSymbolFields.ParentAttributes], true); + set => this.Set((int)WixComplexReferenceSymbolFields.ParentAttributes, value.ToString()); + } + + public string ParentLanguage + { + get => (string)this.Fields[(int)WixComplexReferenceSymbolFields.ParentLanguage]; + set => this.Set((int)WixComplexReferenceSymbolFields.ParentLanguage, value); + } + + public string Child + { + get => (string)this.Fields[(int)WixComplexReferenceSymbolFields.Child]; + set => this.Set((int)WixComplexReferenceSymbolFields.Child, value); + } + + public ComplexReferenceChildType ChildType + { + get => (ComplexReferenceChildType)Enum.Parse(typeof(ComplexReferenceChildType), (string)this.Fields[(int)WixComplexReferenceSymbolFields.ChildAttributes], true); + set => this.Set((int)WixComplexReferenceSymbolFields.ChildAttributes, value.ToString()); + } + + public bool IsPrimary + { + get => (bool)this.Fields[(int)WixComplexReferenceSymbolFields.Attributes]; + set => this.Set((int)WixComplexReferenceSymbolFields.Attributes, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/WixComponentGroupSymbol.cs b/src/WixToolset.Data/Symbols/WixComponentGroupSymbol.cs new file mode 100644 index 00000000..4dd5a3b5 --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixComponentGroupSymbol.cs @@ -0,0 +1,44 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixComponentGroup = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixComponentGroup, + new[] + { + new IntermediateFieldDefinition(nameof(WixComponentGroupSymbolFields.WixComponentGroup), IntermediateFieldType.String), + }, + typeof(WixComponentGroupSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum WixComponentGroupSymbolFields + { + WixComponentGroup, + } + + public class WixComponentGroupSymbol : IntermediateSymbol + { + public WixComponentGroupSymbol() : base(SymbolDefinitions.WixComponentGroup, null, null) + { + } + + public WixComponentGroupSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixComponentGroup, sourceLineNumber, id) + { + } + + public IntermediateField this[WixComponentGroupSymbolFields index] => this.Fields[(int)index]; + + public string WixComponentGroup + { + get => (string)this.Fields[(int)WixComponentGroupSymbolFields.WixComponentGroup]; + set => this.Set((int)WixComponentGroupSymbolFields.WixComponentGroup, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/WixComponentSearchSymbol.cs b/src/WixToolset.Data/Symbols/WixComponentSearchSymbol.cs new file mode 100644 index 00000000..63f7179f --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixComponentSearchSymbol.cs @@ -0,0 +1,70 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixComponentSearch = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixComponentSearch, + new[] + { + new IntermediateFieldDefinition(nameof(WixComponentSearchSymbolFields.Guid), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixComponentSearchSymbolFields.ProductCode), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixComponentSearchSymbolFields.Attributes), IntermediateFieldType.Number), + }, + typeof(WixComponentSearchSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + using System; + + public enum WixComponentSearchSymbolFields + { + Guid, + ProductCode, + Attributes, + } + + [Flags] + public enum WixComponentSearchAttributes + { + KeyPath = 0x1, + State = 0x2, + WantDirectory = 0x4, + } + + public class WixComponentSearchSymbol : IntermediateSymbol + { + public WixComponentSearchSymbol() : base(SymbolDefinitions.WixComponentSearch, null, null) + { + } + + public WixComponentSearchSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixComponentSearch, sourceLineNumber, id) + { + } + + public IntermediateField this[WixComponentSearchSymbolFields index] => this.Fields[(int)index]; + + public string Guid + { + get => (string)this.Fields[(int)WixComponentSearchSymbolFields.Guid]; + set => this.Set((int)WixComponentSearchSymbolFields.Guid, value); + } + + public string ProductCode + { + get => (string)this.Fields[(int)WixComponentSearchSymbolFields.ProductCode]; + set => this.Set((int)WixComponentSearchSymbolFields.ProductCode, value); + } + + public WixComponentSearchAttributes Attributes + { + get => (WixComponentSearchAttributes)this.Fields[(int)WixComponentSearchSymbolFields.Attributes].AsNumber(); + set => this.Set((int)WixComponentSearchSymbolFields.Attributes, (int)value); + } + } +} diff --git a/src/WixToolset.Data/Symbols/WixCustomTableCellSymbol.cs b/src/WixToolset.Data/Symbols/WixCustomTableCellSymbol.cs new file mode 100644 index 00000000..b45cda43 --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixCustomTableCellSymbol.cs @@ -0,0 +1,68 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixCustomTableCell = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixCustomTableCell, + new[] + { + new IntermediateFieldDefinition(nameof(WixCustomTableCellSymbolFields.TableRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixCustomTableCellSymbolFields.ColumnRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixCustomTableCellSymbolFields.RowId), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixCustomTableCellSymbolFields.Data), IntermediateFieldType.String), + }, + typeof(WixCustomTableCellSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum WixCustomTableCellSymbolFields + { + TableRef, + ColumnRef, + RowId, + Data, + } + + public class WixCustomTableCellSymbol : IntermediateSymbol + { + public WixCustomTableCellSymbol() : base(SymbolDefinitions.WixCustomTableCell, null, null) + { + } + + public WixCustomTableCellSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixCustomTableCell, sourceLineNumber, id) + { + } + + public IntermediateField this[WixCustomTableCellSymbolFields index] => this.Fields[(int)index]; + + public string TableRef + { + get => (string)this.Fields[(int)WixCustomTableCellSymbolFields.TableRef]; + set => this.Set((int)WixCustomTableCellSymbolFields.TableRef, value); + } + + public string ColumnRef + { + get => (string)this.Fields[(int)WixCustomTableCellSymbolFields.ColumnRef]; + set => this.Set((int)WixCustomTableCellSymbolFields.ColumnRef, value); + } + + public string RowId + { + get => (string)this.Fields[(int)WixCustomTableCellSymbolFields.RowId]; + set => this.Set((int)WixCustomTableCellSymbolFields.RowId, value); + } + + public string Data + { + get => (string)this.Fields[(int)WixCustomTableCellSymbolFields.Data]; + set => this.Set((int)WixCustomTableCellSymbolFields.Data, value); + } + } +} diff --git a/src/WixToolset.Data/Symbols/WixCustomTableColumnSymbol.cs b/src/WixToolset.Data/Symbols/WixCustomTableColumnSymbol.cs new file mode 100644 index 00000000..9ae2a904 --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixCustomTableColumnSymbol.cs @@ -0,0 +1,203 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixCustomTableColumn = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixCustomTableColumn, + new[] + { + new IntermediateFieldDefinition(nameof(WixCustomTableColumnSymbolFields.TableRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixCustomTableColumnSymbolFields.Name), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixCustomTableColumnSymbolFields.Type), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixCustomTableColumnSymbolFields.Attributes), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(WixCustomTableColumnSymbolFields.Width), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(WixCustomTableColumnSymbolFields.MinValue), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixCustomTableColumnSymbolFields.MaxValue), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixCustomTableColumnSymbolFields.KeyTable), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixCustomTableColumnSymbolFields.KeyColumn), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixCustomTableColumnSymbolFields.Category), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixCustomTableColumnSymbolFields.Set), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixCustomTableColumnSymbolFields.Description), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixCustomTableColumnSymbolFields.Modularize), IntermediateFieldType.Number) + }, + typeof(WixCustomTableColumnSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + using System; + + public enum WixCustomTableColumnSymbolFields + { + TableRef, + Name, + Type, + Attributes, + Width, + MinValue, + MaxValue, + KeyTable, + KeyColumn, + Category, + Set, + Description, + Modularize, + } + + [Flags] + public enum WixCustomTableColumnSymbolAttributes + { + None = 0x0, + PrimaryKey = 0x1, + Localizable = 0x2, + Nullable = 0x4, + Unreal = 0x8, + } + + public enum WixCustomTableColumnCategoryType + { + Text, + UpperCase, + LowerCase, + Integer, + DoubleInteger, + TimeDate, + Identifier, + Property, + Filename, + WildCardFilename, + Path, + Paths, + AnyPath, + DefaultDir, + RegPath, + Formatted, + FormattedSddl, + Template, + Condition, + Guid, + Version, + Language, + Binary, + CustomSource, + Cabinet, + Shortcut, + } + + public enum WixCustomTableColumnModularizeType + { + None, + Column, + CompanionFile, + Condition, + ControlEventArgument, + ControlText, + Icon, + Property, + SemicolonDelimited, + } + + public class WixCustomTableColumnSymbol : IntermediateSymbol + { + public WixCustomTableColumnSymbol() : base(SymbolDefinitions.WixCustomTableColumn, null, null) + { + } + + public WixCustomTableColumnSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixCustomTableColumn, sourceLineNumber, id) + { + } + + public IntermediateField this[WixCustomTableColumnSymbolFields index] => this.Fields[(int)index]; + + public string TableRef + { + get => (string)this.Fields[(int)WixCustomTableColumnSymbolFields.TableRef]; + set => this.Set((int)WixCustomTableColumnSymbolFields.TableRef, value); + } + + public string Name + { + get => (string)this.Fields[(int)WixCustomTableColumnSymbolFields.Name]; + set => this.Set((int)WixCustomTableColumnSymbolFields.Name, value); + } + + public IntermediateFieldType Type + { + get => (IntermediateFieldType)this.Fields[(int)WixCustomTableColumnSymbolFields.Type].AsNumber(); + set => this.Set((int)WixCustomTableColumnSymbolFields.Type, (int)value); + } + + public WixCustomTableColumnSymbolAttributes Attributes + { + get => (WixCustomTableColumnSymbolAttributes)this.Fields[(int)WixCustomTableColumnSymbolFields.Attributes].AsNumber(); + set => this.Set((int)WixCustomTableColumnSymbolFields.Attributes, (int)value); + } + + public int Width + { + get => (int)this.Fields[(int)WixCustomTableColumnSymbolFields.Width]; + set => this.Set((int)WixCustomTableColumnSymbolFields.Width, value); + } + + public long? MinValue + { + get => (long?)this.Fields[(int)WixCustomTableColumnSymbolFields.MinValue]; + set => this.Set((int)WixCustomTableColumnSymbolFields.MinValue, value); + } + + public long? MaxValue + { + get => (long?)this.Fields[(int)WixCustomTableColumnSymbolFields.MaxValue]; + set => this.Set((int)WixCustomTableColumnSymbolFields.MaxValue, value); + } + + public string KeyTable + { + get => (string)this.Fields[(int)WixCustomTableColumnSymbolFields.KeyTable]; + set => this.Set((int)WixCustomTableColumnSymbolFields.KeyTable, value); + } + + public int? KeyColumn + { + get => (int?)this.Fields[(int)WixCustomTableColumnSymbolFields.KeyColumn]; + set => this.Set((int)WixCustomTableColumnSymbolFields.KeyColumn, value); + } + + public WixCustomTableColumnCategoryType? Category + { + get => (WixCustomTableColumnCategoryType?)this.Fields[(int)WixCustomTableColumnSymbolFields.Category].AsNullableNumber(); + set => this.Set((int)WixCustomTableColumnSymbolFields.Category, (int?)value); + } + + public string Set + { + get => (string)this.Fields[(int)WixCustomTableColumnSymbolFields.Set]; + set => this.Set((int)WixCustomTableColumnSymbolFields.Set, value); + } + + public string Description + { + get => (string)this.Fields[(int)WixCustomTableColumnSymbolFields.Description]; + set => this.Set((int)WixCustomTableColumnSymbolFields.Description, value); + } + + public WixCustomTableColumnModularizeType? Modularize + { + get => (WixCustomTableColumnModularizeType?)this.Fields[(int)WixCustomTableColumnSymbolFields.Modularize].AsNullableNumber(); + set => this.Set((int)WixCustomTableColumnSymbolFields.Modularize, (int?)value); + } + + public bool PrimaryKey => (this.Attributes & WixCustomTableColumnSymbolAttributes.PrimaryKey) == WixCustomTableColumnSymbolAttributes.PrimaryKey; + + public bool Localizable => (this.Attributes & WixCustomTableColumnSymbolAttributes.Localizable) == WixCustomTableColumnSymbolAttributes.Localizable; + + public bool Nullable => (this.Attributes & WixCustomTableColumnSymbolAttributes.Nullable) == WixCustomTableColumnSymbolAttributes.Nullable; + + public bool Unreal => (this.Attributes & WixCustomTableColumnSymbolAttributes.Unreal) == WixCustomTableColumnSymbolAttributes.Unreal; + } +} diff --git a/src/WixToolset.Data/Symbols/WixCustomTableSymbol.cs b/src/WixToolset.Data/Symbols/WixCustomTableSymbol.cs new file mode 100644 index 00000000..af731443 --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixCustomTableSymbol.cs @@ -0,0 +1,56 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixCustomTable = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixCustomTable, + new[] + { + new IntermediateFieldDefinition(nameof(WixCustomTableSymbolFields.ColumnNames), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixCustomTableSymbolFields.Unreal), IntermediateFieldType.Bool), + }, + typeof(WixCustomTableSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum WixCustomTableSymbolFields + { + ColumnNames, + Unreal, + } + + public class WixCustomTableSymbol : IntermediateSymbol + { + public const char ColumnNamesSeparator = '\x85'; + + public WixCustomTableSymbol() : base(SymbolDefinitions.WixCustomTable, null, null) + { + } + + public WixCustomTableSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixCustomTable, sourceLineNumber, id) + { + } + + public IntermediateField this[WixCustomTableSymbolFields index] => this.Fields[(int)index]; + + public string ColumnNames + { + get => (string)this.Fields[(int)WixCustomTableSymbolFields.ColumnNames]; + set => this.Set((int)WixCustomTableSymbolFields.ColumnNames, value); + } + + public bool Unreal + { + get => (bool)this.Fields[(int)WixCustomTableSymbolFields.Unreal]; + set => this.Set((int)WixCustomTableSymbolFields.Unreal, value); + } + + public string[] ColumnNamesSeparated => this.ColumnNames.Split(ColumnNamesSeparator); + } +} diff --git a/src/WixToolset.Data/Symbols/WixDeltaPatchFileSymbol.cs b/src/WixToolset.Data/Symbols/WixDeltaPatchFileSymbol.cs new file mode 100644 index 00000000..77203b03 --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixDeltaPatchFileSymbol.cs @@ -0,0 +1,84 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixDeltaPatchFile = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixDeltaPatchFile, + new[] + { + new IntermediateFieldDefinition(nameof(WixDeltaPatchFileSymbolFields.FileRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixDeltaPatchFileSymbolFields.RetainLengths), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixDeltaPatchFileSymbolFields.IgnoreOffsets), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixDeltaPatchFileSymbolFields.IgnoreLengths), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixDeltaPatchFileSymbolFields.RetainOffsets), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixDeltaPatchFileSymbolFields.SymbolPaths), IntermediateFieldType.String), + }, + typeof(WixDeltaPatchFileSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum WixDeltaPatchFileSymbolFields + { + FileRef, + RetainLengths, + IgnoreOffsets, + IgnoreLengths, + RetainOffsets, + SymbolPaths, + } + + public class WixDeltaPatchFileSymbol : IntermediateSymbol + { + public WixDeltaPatchFileSymbol() : base(SymbolDefinitions.WixDeltaPatchFile, null, null) + { + } + + public WixDeltaPatchFileSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixDeltaPatchFile, sourceLineNumber, id) + { + } + + public IntermediateField this[WixDeltaPatchFileSymbolFields index] => this.Fields[(int)index]; + + public string FileRef + { + get => (string)this.Fields[(int)WixDeltaPatchFileSymbolFields.FileRef]; + set => this.Set((int)WixDeltaPatchFileSymbolFields.FileRef, value); + } + + public string RetainLengths + { + get => (string)this.Fields[(int)WixDeltaPatchFileSymbolFields.RetainLengths]; + set => this.Set((int)WixDeltaPatchFileSymbolFields.RetainLengths, value); + } + + public string IgnoreOffsets + { + get => (string)this.Fields[(int)WixDeltaPatchFileSymbolFields.IgnoreOffsets]; + set => this.Set((int)WixDeltaPatchFileSymbolFields.IgnoreOffsets, value); + } + + public string IgnoreLengths + { + get => (string)this.Fields[(int)WixDeltaPatchFileSymbolFields.IgnoreLengths]; + set => this.Set((int)WixDeltaPatchFileSymbolFields.IgnoreLengths, value); + } + + public string RetainOffsets + { + get => (string)this.Fields[(int)WixDeltaPatchFileSymbolFields.RetainOffsets]; + set => this.Set((int)WixDeltaPatchFileSymbolFields.RetainOffsets, value); + } + + public string SymbolPaths + { + get => (string)this.Fields[(int)WixDeltaPatchFileSymbolFields.SymbolPaths]; + set => this.Set((int)WixDeltaPatchFileSymbolFields.SymbolPaths, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/WixDeltaPatchSymbolPathsSymbol.cs b/src/WixToolset.Data/Symbols/WixDeltaPatchSymbolPathsSymbol.cs new file mode 100644 index 00000000..6e50d07f --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixDeltaPatchSymbolPathsSymbol.cs @@ -0,0 +1,75 @@ +// 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. + +using System; + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixDeltaPatchSymbolPaths = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixDeltaPatchSymbolPaths, + new[] + { + new IntermediateFieldDefinition(nameof(WixDeltaPatchSymbolPathsSymbolFields.SymbolType), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(WixDeltaPatchSymbolPathsSymbolFields.SymbolId), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixDeltaPatchSymbolPathsSymbolFields.SymbolPaths), IntermediateFieldType.String), + }, + typeof(WixDeltaPatchSymbolPathsSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum WixDeltaPatchSymbolPathsSymbolFields + { + SymbolType, + SymbolId, + SymbolPaths, + } + + /// + /// The types that the WixDeltaPatchSymbolPaths table can hold. + /// + /// The order of these values is important since WixDeltaPatchSymbolPaths are sorted by this type. + public enum SymbolPathType + { + File, + Component, + Directory, + Media, + Product + }; + + public class WixDeltaPatchSymbolPathsSymbol : IntermediateSymbol + { + public WixDeltaPatchSymbolPathsSymbol() : base(SymbolDefinitions.WixDeltaPatchSymbolPaths, null, null) + { + } + + public WixDeltaPatchSymbolPathsSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixDeltaPatchSymbolPaths, sourceLineNumber, id) + { + } + + public IntermediateField this[WixDeltaPatchSymbolPathsSymbolFields index] => this.Fields[(int)index]; + + public SymbolPathType SymbolType + { + get => (SymbolPathType)this.Fields[(int)WixDeltaPatchSymbolPathsSymbolFields.SymbolType].AsNumber(); + set => this.Set((int)WixDeltaPatchSymbolPathsSymbolFields.SymbolType, (int)value); + } + + public string SymbolId + { + get => (string)this.Fields[(int)WixDeltaPatchSymbolPathsSymbolFields.SymbolId]; + set => this.Set((int)WixDeltaPatchSymbolPathsSymbolFields.SymbolId, value); + } + + public string SymbolPaths + { + get => (string)this.Fields[(int)WixDeltaPatchSymbolPathsSymbolFields.SymbolPaths]; + set => this.Set((int)WixDeltaPatchSymbolPathsSymbolFields.SymbolPaths, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/WixDependencyProviderSymbol.cs b/src/WixToolset.Data/Symbols/WixDependencyProviderSymbol.cs new file mode 100644 index 00000000..3ede1097 --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixDependencyProviderSymbol.cs @@ -0,0 +1,87 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixDependencyProvider = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixDependencyProvider.ToString(), + new[] + { + new IntermediateFieldDefinition(nameof(WixDependencyProviderSymbolFields.ComponentRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixDependencyProviderSymbolFields.ProviderKey), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixDependencyProviderSymbolFields.Version), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixDependencyProviderSymbolFields.DisplayName), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixDependencyProviderSymbolFields.Attributes), IntermediateFieldType.Number), + }, + typeof(WixDependencyProviderSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + using System; + using WixToolset.Data; + + public enum WixDependencyProviderSymbolFields + { + ComponentRef, + ProviderKey, + Version, + DisplayName, + Attributes, + } + + [Flags] + public enum WixDependencyProviderAttributes + { + ProvidesAttributesBundle = 0x10000 + } + + public class WixDependencyProviderSymbol : IntermediateSymbol + { + public WixDependencyProviderSymbol() : base(SymbolDefinitions.WixDependencyProvider, null, null) + { + } + + public WixDependencyProviderSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixDependencyProvider, sourceLineNumber, id) + { + } + + public IntermediateField this[WixDependencyProviderSymbolFields index] => this.Fields[(int)index]; + + public string ComponentRef + { + get => this.Fields[(int)WixDependencyProviderSymbolFields.ComponentRef].AsString(); + set => this.Set((int)WixDependencyProviderSymbolFields.ComponentRef, value); + } + + public string ProviderKey + { + get => this.Fields[(int)WixDependencyProviderSymbolFields.ProviderKey].AsString(); + set => this.Set((int)WixDependencyProviderSymbolFields.ProviderKey, value); + } + + public string Version + { + get => this.Fields[(int)WixDependencyProviderSymbolFields.Version].AsString(); + set => this.Set((int)WixDependencyProviderSymbolFields.Version, value); + } + + public string DisplayName + { + get => this.Fields[(int)WixDependencyProviderSymbolFields.DisplayName].AsString(); + set => this.Set((int)WixDependencyProviderSymbolFields.DisplayName, value); + } + + public WixDependencyProviderAttributes Attributes + { + get => (WixDependencyProviderAttributes)(int)this.Fields[(int)WixDependencyProviderSymbolFields.Attributes]; + set => this.Set((int)WixDependencyProviderSymbolFields.Attributes, (int)value); + } + + public bool Bundle => (this.Attributes & WixDependencyProviderAttributes.ProvidesAttributesBundle) == WixDependencyProviderAttributes.ProvidesAttributesBundle; + } +} diff --git a/src/WixToolset.Data/Symbols/WixEnsureTableSymbol.cs b/src/WixToolset.Data/Symbols/WixEnsureTableSymbol.cs new file mode 100644 index 00000000..d13063b7 --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixEnsureTableSymbol.cs @@ -0,0 +1,44 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixEnsureTable = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixEnsureTable, + new[] + { + new IntermediateFieldDefinition(nameof(WixEnsureTableSymbolFields.Table), IntermediateFieldType.String), + }, + typeof(WixEnsureTableSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum WixEnsureTableSymbolFields + { + Table, + } + + public class WixEnsureTableSymbol : IntermediateSymbol + { + public WixEnsureTableSymbol() : base(SymbolDefinitions.WixEnsureTable, null, null) + { + } + + public WixEnsureTableSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixEnsureTable, sourceLineNumber, id) + { + } + + public IntermediateField this[WixEnsureTableSymbolFields index] => this.Fields[(int)index]; + + public string Table + { + get => (string)this.Fields[(int)WixEnsureTableSymbolFields.Table]; + set => this.Set((int)WixEnsureTableSymbolFields.Table, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/WixFeatureGroupSymbol.cs b/src/WixToolset.Data/Symbols/WixFeatureGroupSymbol.cs new file mode 100644 index 00000000..ac002bb6 --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixFeatureGroupSymbol.cs @@ -0,0 +1,36 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixFeatureGroup = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixFeatureGroup, + new IntermediateFieldDefinition[] + { + }, + typeof(WixFeatureGroupSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum WixFeatureGroupSymbolFields + { + } + + public class WixFeatureGroupSymbol : IntermediateSymbol + { + public WixFeatureGroupSymbol() : base(SymbolDefinitions.WixFeatureGroup, null, null) + { + } + + public WixFeatureGroupSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixFeatureGroup, sourceLineNumber, id) + { + } + + public IntermediateField this[WixFeatureGroupSymbolFields index] => this.Fields[(int)index]; + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/WixFeatureModulesSymbol.cs b/src/WixToolset.Data/Symbols/WixFeatureModulesSymbol.cs new file mode 100644 index 00000000..b8b3d4b9 --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixFeatureModulesSymbol.cs @@ -0,0 +1,52 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixFeatureModules = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixFeatureModules, + new[] + { + new IntermediateFieldDefinition(nameof(WixFeatureModulesSymbolFields.FeatureRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixFeatureModulesSymbolFields.WixMergeRef), IntermediateFieldType.String), + }, + typeof(WixFeatureModulesSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum WixFeatureModulesSymbolFields + { + FeatureRef, + WixMergeRef, + } + + public class WixFeatureModulesSymbol : IntermediateSymbol + { + public WixFeatureModulesSymbol() : base(SymbolDefinitions.WixFeatureModules, null, null) + { + } + + public WixFeatureModulesSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixFeatureModules, sourceLineNumber, id) + { + } + + public IntermediateField this[WixFeatureModulesSymbolFields index] => this.Fields[(int)index]; + + public string FeatureRef + { + get => (string)this.Fields[(int)WixFeatureModulesSymbolFields.FeatureRef]; + set => this.Set((int)WixFeatureModulesSymbolFields.FeatureRef, value); + } + + public string WixMergeRef + { + get => (string)this.Fields[(int)WixFeatureModulesSymbolFields.WixMergeRef]; + set => this.Set((int)WixFeatureModulesSymbolFields.WixMergeRef, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/WixFileSearchSymbol.cs b/src/WixToolset.Data/Symbols/WixFileSearchSymbol.cs new file mode 100644 index 00000000..027605c7 --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixFileSearchSymbol.cs @@ -0,0 +1,125 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixFileSearch = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixFileSearch, + new[] + { + new IntermediateFieldDefinition(nameof(WixFileSearchSymbolFields.Path), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixFileSearchSymbolFields.MinVersion), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixFileSearchSymbolFields.MaxVersion), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixFileSearchSymbolFields.MinSize), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(WixFileSearchSymbolFields.MaxSize), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(WixFileSearchSymbolFields.MinDate), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(WixFileSearchSymbolFields.MaxDate), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(WixFileSearchSymbolFields.Languages), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixFileSearchSymbolFields.Attributes), IntermediateFieldType.Number), + }, + typeof(WixFileSearchSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + using System; + + public enum WixFileSearchSymbolFields + { + Path, + MinVersion, + MaxVersion, + MinSize, + MaxSize, + MinDate, + MaxDate, + Languages, + Attributes, + } + + [Flags] + public enum WixFileSearchAttributes + { + Default = 0x001, + MinVersionInclusive = 0x002, + MaxVersionInclusive = 0x004, + MinSizeInclusive = 0x008, + MaxSizeInclusive = 0x010, + MinDateInclusive = 0x020, + MaxDateInclusive = 0x040, + WantVersion = 0x080, + WantExists = 0x100, + IsDirectory = 0x200, + } + + public class WixFileSearchSymbol : IntermediateSymbol + { + public WixFileSearchSymbol() : base(SymbolDefinitions.WixFileSearch, null, null) + { + } + + public WixFileSearchSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixFileSearch, sourceLineNumber, id) + { + } + + public IntermediateField this[WixFileSearchSymbolFields index] => this.Fields[(int)index]; + + public string Path + { + get => (string)this.Fields[(int)WixFileSearchSymbolFields.Path]; + set => this.Set((int)WixFileSearchSymbolFields.Path, value); + } + + public string MinVersion + { + get => (string)this.Fields[(int)WixFileSearchSymbolFields.MinVersion]; + set => this.Set((int)WixFileSearchSymbolFields.MinVersion, value); + } + + public string MaxVersion + { + get => (string)this.Fields[(int)WixFileSearchSymbolFields.MaxVersion]; + set => this.Set((int)WixFileSearchSymbolFields.MaxVersion, value); + } + + public int? MinSize + { + get => (int?)this.Fields[(int)WixFileSearchSymbolFields.MinSize]; + set => this.Set((int)WixFileSearchSymbolFields.MinSize, value); + } + + public int? MaxSize + { + get => (int?)this.Fields[(int)WixFileSearchSymbolFields.MaxSize]; + set => this.Set((int)WixFileSearchSymbolFields.MaxSize, value); + } + + public int? MinDate + { + get => (int?)this.Fields[(int)WixFileSearchSymbolFields.MinDate]; + set => this.Set((int)WixFileSearchSymbolFields.MinDate, value); + } + + public int? MaxDate + { + get => (int?)this.Fields[(int)WixFileSearchSymbolFields.MaxDate]; + set => this.Set((int)WixFileSearchSymbolFields.MaxDate, value); + } + + public string Languages + { + get => (string)this.Fields[(int)WixFileSearchSymbolFields.Languages]; + set => this.Set((int)WixFileSearchSymbolFields.Languages, value); + } + + public WixFileSearchAttributes Attributes + { + get => (WixFileSearchAttributes)this.Fields[(int)WixFileSearchSymbolFields.Attributes].AsNumber(); + set => this.Set((int)WixFileSearchSymbolFields.Attributes, (int)value); + } + } +} diff --git a/src/WixToolset.Data/Symbols/WixFragmentSymbol.cs b/src/WixToolset.Data/Symbols/WixFragmentSymbol.cs new file mode 100644 index 00000000..9c31b79c --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixFragmentSymbol.cs @@ -0,0 +1,36 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixFragment = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixFragment, + new IntermediateFieldDefinition[] + { + }, + typeof(WixFragmentSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum WixFragmentSymbolFields + { + } + + public class WixFragmentSymbol : IntermediateSymbol + { + public WixFragmentSymbol() : base(SymbolDefinitions.WixFragment, null, null) + { + } + + public WixFragmentSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixFragment, sourceLineNumber, id) + { + } + + public IntermediateField this[WixFragmentSymbolFields index] => this.Fields[(int)index]; + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/WixGroupSymbol.cs b/src/WixToolset.Data/Symbols/WixGroupSymbol.cs new file mode 100644 index 00000000..b9720890 --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixGroupSymbol.cs @@ -0,0 +1,70 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixGroup = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixGroup, + new[] + { + new IntermediateFieldDefinition(nameof(WixGroupSymbolFields.ParentId), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixGroupSymbolFields.ParentType), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixGroupSymbolFields.ChildId), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixGroupSymbolFields.ChildType), IntermediateFieldType.String), + }, + typeof(WixGroupSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + using System; + + public enum WixGroupSymbolFields + { + ParentId, + ParentType, + ChildId, + ChildType, + } + + public class WixGroupSymbol : IntermediateSymbol + { + public WixGroupSymbol() : base(SymbolDefinitions.WixGroup, null, null) + { + } + + public WixGroupSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixGroup, sourceLineNumber, id) + { + } + + public IntermediateField this[WixGroupSymbolFields index] => this.Fields[(int)index]; + + public string ParentId + { + get => (string)this.Fields[(int)WixGroupSymbolFields.ParentId]; + set => this.Set((int)WixGroupSymbolFields.ParentId, value); + } + + public ComplexReferenceParentType ParentType + { + get => (ComplexReferenceParentType)Enum.Parse(typeof(ComplexReferenceParentType), (string)this.Fields[(int)WixGroupSymbolFields.ParentType], true); + set => this.Set((int)WixGroupSymbolFields.ParentType, value.ToString()); + } + + public string ChildId + { + get => (string)this.Fields[(int)WixGroupSymbolFields.ChildId]; + set => this.Set((int)WixGroupSymbolFields.ChildId, value); + } + + public ComplexReferenceChildType ChildType + { + get => (ComplexReferenceChildType)Enum.Parse(typeof(ComplexReferenceChildType), (string)this.Fields[(int)WixGroupSymbolFields.ChildType], true); + set => this.Set((int)WixGroupSymbolFields.ChildType, value.ToString()); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/WixInstanceComponentSymbol.cs b/src/WixToolset.Data/Symbols/WixInstanceComponentSymbol.cs new file mode 100644 index 00000000..c9e4470c --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixInstanceComponentSymbol.cs @@ -0,0 +1,44 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixInstanceComponent = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixInstanceComponent, + new[] + { + new IntermediateFieldDefinition(nameof(WixInstanceComponentSymbolFields.ComponentRef), IntermediateFieldType.String), + }, + typeof(WixInstanceComponentSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum WixInstanceComponentSymbolFields + { + ComponentRef, + } + + public class WixInstanceComponentSymbol : IntermediateSymbol + { + public WixInstanceComponentSymbol() : base(SymbolDefinitions.WixInstanceComponent, null, null) + { + } + + public WixInstanceComponentSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixInstanceComponent, sourceLineNumber, id) + { + } + + public IntermediateField this[WixInstanceComponentSymbolFields index] => this.Fields[(int)index]; + + public string ComponentRef + { + get => (string)this.Fields[(int)WixInstanceComponentSymbolFields.ComponentRef]; + set => this.Set((int)WixInstanceComponentSymbolFields.ComponentRef, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/WixInstanceTransformsSymbol.cs b/src/WixToolset.Data/Symbols/WixInstanceTransformsSymbol.cs new file mode 100644 index 00000000..3a58cb31 --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixInstanceTransformsSymbol.cs @@ -0,0 +1,68 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixInstanceTransforms = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixInstanceTransforms, + new[] + { + new IntermediateFieldDefinition(nameof(WixInstanceTransformsSymbolFields.PropertyId), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixInstanceTransformsSymbolFields.ProductCode), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixInstanceTransformsSymbolFields.ProductName), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixInstanceTransformsSymbolFields.UpgradeCode), IntermediateFieldType.String), + }, + typeof(WixInstanceTransformsSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum WixInstanceTransformsSymbolFields + { + PropertyId, + ProductCode, + ProductName, + UpgradeCode, + } + + public class WixInstanceTransformsSymbol : IntermediateSymbol + { + public WixInstanceTransformsSymbol() : base(SymbolDefinitions.WixInstanceTransforms, null, null) + { + } + + public WixInstanceTransformsSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixInstanceTransforms, sourceLineNumber, id) + { + } + + public IntermediateField this[WixInstanceTransformsSymbolFields index] => this.Fields[(int)index]; + + public string PropertyId + { + get => (string)this.Fields[(int)WixInstanceTransformsSymbolFields.PropertyId]; + set => this.Set((int)WixInstanceTransformsSymbolFields.PropertyId, value); + } + + public string ProductCode + { + get => (string)this.Fields[(int)WixInstanceTransformsSymbolFields.ProductCode]; + set => this.Set((int)WixInstanceTransformsSymbolFields.ProductCode, value); + } + + public string ProductName + { + get => (string)this.Fields[(int)WixInstanceTransformsSymbolFields.ProductName]; + set => this.Set((int)WixInstanceTransformsSymbolFields.ProductName, value); + } + + public string UpgradeCode + { + get => (string)this.Fields[(int)WixInstanceTransformsSymbolFields.UpgradeCode]; + set => this.Set((int)WixInstanceTransformsSymbolFields.UpgradeCode, value); + } + } +} diff --git a/src/WixToolset.Data/Symbols/WixMediaTemplateSymbol.cs b/src/WixToolset.Data/Symbols/WixMediaTemplateSymbol.cs new file mode 100644 index 00000000..28695b3e --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixMediaTemplateSymbol.cs @@ -0,0 +1,86 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixMediaTemplate = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixMediaTemplate, + new[] + { + new IntermediateFieldDefinition(nameof(WixMediaTemplateSymbolFields.CabinetTemplate), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixMediaTemplateSymbolFields.CompressionLevel), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(WixMediaTemplateSymbolFields.DiskPrompt), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixMediaTemplateSymbolFields.VolumeLabel), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixMediaTemplateSymbolFields.MaximumUncompressedMediaSize), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(WixMediaTemplateSymbolFields.MaximumCabinetSizeForLargeFileSplitting), IntermediateFieldType.Number), + }, + typeof(WixMediaTemplateSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + using System; + + public enum WixMediaTemplateSymbolFields + { + CabinetTemplate, + CompressionLevel, + DiskPrompt, + VolumeLabel, + MaximumUncompressedMediaSize, + MaximumCabinetSizeForLargeFileSplitting, + } + + public class WixMediaTemplateSymbol : IntermediateSymbol + { + public WixMediaTemplateSymbol() : base(SymbolDefinitions.WixMediaTemplate, null, null) + { + } + + public WixMediaTemplateSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixMediaTemplate, sourceLineNumber, id) + { + } + + public IntermediateField this[WixMediaTemplateSymbolFields index] => this.Fields[(int)index]; + + public string CabinetTemplate + { + get => (string)this.Fields[(int)WixMediaTemplateSymbolFields.CabinetTemplate]; + set => this.Set((int)WixMediaTemplateSymbolFields.CabinetTemplate, value); + } + + public CompressionLevel? CompressionLevel + { + get => (CompressionLevel?)this.Fields[(int)WixMediaTemplateSymbolFields.CompressionLevel].AsNullableNumber(); + set => this.Set((int)WixMediaTemplateSymbolFields.CompressionLevel, (int?)value); + } + + public string DiskPrompt + { + get => (string)this.Fields[(int)WixMediaTemplateSymbolFields.DiskPrompt]; + set => this.Set((int)WixMediaTemplateSymbolFields.DiskPrompt, value); + } + + public string VolumeLabel + { + get => (string)this.Fields[(int)WixMediaTemplateSymbolFields.VolumeLabel]; + set => this.Set((int)WixMediaTemplateSymbolFields.VolumeLabel, value); + } + + public int? MaximumUncompressedMediaSize + { + get => (int?)this.Fields[(int)WixMediaTemplateSymbolFields.MaximumUncompressedMediaSize]; + set => this.Set((int)WixMediaTemplateSymbolFields.MaximumUncompressedMediaSize, value); + } + + public int? MaximumCabinetSizeForLargeFileSplitting + { + get => (int?)this.Fields[(int)WixMediaTemplateSymbolFields.MaximumCabinetSizeForLargeFileSplitting]; + set => this.Set((int)WixMediaTemplateSymbolFields.MaximumCabinetSizeForLargeFileSplitting, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/WixMergeSymbol.cs b/src/WixToolset.Data/Symbols/WixMergeSymbol.cs new file mode 100644 index 00000000..d066fa8e --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixMergeSymbol.cs @@ -0,0 +1,92 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixMerge = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixMerge, + new[] + { + new IntermediateFieldDefinition(nameof(WixMergeSymbolFields.Language), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(WixMergeSymbolFields.DirectoryRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixMergeSymbolFields.SourceFile), IntermediateFieldType.Path), + new IntermediateFieldDefinition(nameof(WixMergeSymbolFields.DiskId), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(WixMergeSymbolFields.FileAttributes), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(WixMergeSymbolFields.ConfigurationData), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixMergeSymbolFields.FeatureRef), IntermediateFieldType.String), + }, + typeof(WixMergeSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum WixMergeSymbolFields + { + Language, + DirectoryRef, + SourceFile, + DiskId, + FileAttributes, + ConfigurationData, + FeatureRef, + } + + public class WixMergeSymbol : IntermediateSymbol + { + public WixMergeSymbol() : base(SymbolDefinitions.WixMerge, null, null) + { + } + + public WixMergeSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixMerge, sourceLineNumber, id) + { + } + + public IntermediateField this[WixMergeSymbolFields index] => this.Fields[(int)index]; + + public int Language + { + get => (int)this.Fields[(int)WixMergeSymbolFields.Language]; + set => this.Set((int)WixMergeSymbolFields.Language, value); + } + + public string DirectoryRef + { + get => (string)this.Fields[(int)WixMergeSymbolFields.DirectoryRef]; + set => this.Set((int)WixMergeSymbolFields.DirectoryRef, value); + } + + public string SourceFile + { + get => (string)this.Fields[(int)WixMergeSymbolFields.SourceFile]; + set => this.Set((int)WixMergeSymbolFields.SourceFile, value); + } + + public int DiskId + { + get => (int)this.Fields[(int)WixMergeSymbolFields.DiskId]; + set => this.Set((int)WixMergeSymbolFields.DiskId, value); + } + + public FileSymbolAttributes FileAttributes + { + get => (FileSymbolAttributes)this.Fields[(int)WixMergeSymbolFields.FileAttributes].AsNumber(); + set => this.Set((int)WixMergeSymbolFields.FileAttributes, (int)value); + } + + public string ConfigurationData + { + get => (string)this.Fields[(int)WixMergeSymbolFields.ConfigurationData]; + set => this.Set((int)WixMergeSymbolFields.ConfigurationData, value); + } + + public string FeatureRef + { + get => (string)this.Fields[(int)WixMergeSymbolFields.FeatureRef]; + set => this.Set((int)WixMergeSymbolFields.FeatureRef, value); + } + } +} diff --git a/src/WixToolset.Data/Symbols/WixOrderingSymbol.cs b/src/WixToolset.Data/Symbols/WixOrderingSymbol.cs new file mode 100644 index 00000000..5e6dc980 --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixOrderingSymbol.cs @@ -0,0 +1,68 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixOrdering = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixOrdering, + new[] + { + new IntermediateFieldDefinition(nameof(WixOrderingSymbolFields.ItemType), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixOrderingSymbolFields.ItemIdRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixOrderingSymbolFields.DependsOnType), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixOrderingSymbolFields.DependsOnIdRef), IntermediateFieldType.String), + }, + typeof(WixOrderingSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum WixOrderingSymbolFields + { + ItemType, + ItemIdRef, + DependsOnType, + DependsOnIdRef, + } + + public class WixOrderingSymbol : IntermediateSymbol + { + public WixOrderingSymbol() : base(SymbolDefinitions.WixOrdering, null, null) + { + } + + public WixOrderingSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixOrdering, sourceLineNumber, id) + { + } + + public IntermediateField this[WixOrderingSymbolFields index] => this.Fields[(int)index]; + + public ComplexReferenceChildType ItemType + { + get => (ComplexReferenceChildType)this.Fields[(int)WixOrderingSymbolFields.ItemType].AsNumber(); + set => this.Set((int)WixOrderingSymbolFields.ItemType, (int)value); + } + + public string ItemIdRef + { + get => (string)this.Fields[(int)WixOrderingSymbolFields.ItemIdRef]; + set => this.Set((int)WixOrderingSymbolFields.ItemIdRef, value); + } + + public ComplexReferenceChildType DependsOnType + { + get => (ComplexReferenceChildType)this.Fields[(int)WixOrderingSymbolFields.DependsOnType].AsNumber(); + set => this.Set((int)WixOrderingSymbolFields.DependsOnType, (int)value); + } + + public string DependsOnIdRef + { + get => (string)this.Fields[(int)WixOrderingSymbolFields.DependsOnIdRef]; + set => this.Set((int)WixOrderingSymbolFields.DependsOnIdRef, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/WixPatchBaselineSymbol.cs b/src/WixToolset.Data/Symbols/WixPatchBaselineSymbol.cs new file mode 100644 index 00000000..d7295424 --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixPatchBaselineSymbol.cs @@ -0,0 +1,76 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixPatchBaseline = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixPatchBaseline, + new[] + { + new IntermediateFieldDefinition(nameof(WixPatchBaselineSymbolFields.DiskId), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(WixPatchBaselineSymbolFields.ValidationFlags), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(WixPatchBaselineSymbolFields.BaselineFile), IntermediateFieldType.Path), + new IntermediateFieldDefinition(nameof(WixPatchBaselineSymbolFields.UpdateFile), IntermediateFieldType.Path), + new IntermediateFieldDefinition(nameof(WixPatchBaselineSymbolFields.TransformFile), IntermediateFieldType.Path), + }, + typeof(WixPatchBaselineSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum WixPatchBaselineSymbolFields + { + DiskId, + ValidationFlags, + BaselineFile, + UpdateFile, + TransformFile, + } + + public class WixPatchBaselineSymbol : IntermediateSymbol + { + public WixPatchBaselineSymbol() : base(SymbolDefinitions.WixPatchBaseline, null, null) + { + } + + public WixPatchBaselineSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixPatchBaseline, sourceLineNumber, id) + { + } + + public IntermediateField this[WixPatchBaselineSymbolFields index] => this.Fields[(int)index]; + + public int DiskId + { + get => (int)this.Fields[(int)WixPatchBaselineSymbolFields.DiskId]; + set => this.Set((int)WixPatchBaselineSymbolFields.DiskId, value); + } + + public TransformFlags ValidationFlags + { + get => (TransformFlags)this.Fields[(int)WixPatchBaselineSymbolFields.ValidationFlags].AsNumber(); + set => this.Set((int)WixPatchBaselineSymbolFields.ValidationFlags, (int)value); + } + + public IntermediateFieldPathValue BaselineFile + { + get => this.Fields[(int)WixPatchBaselineSymbolFields.BaselineFile].AsPath(); + set => this.Set((int)WixPatchBaselineSymbolFields.BaselineFile, value); + } + + public IntermediateFieldPathValue UpdateFile + { + get => this.Fields[(int)WixPatchBaselineSymbolFields.UpdateFile].AsPath(); + set => this.Set((int)WixPatchBaselineSymbolFields.UpdateFile, value); + } + + public IntermediateFieldPathValue TransformFile + { + get => this.Fields[(int)WixPatchBaselineSymbolFields.TransformFile].AsPath(); + set => this.Set((int)WixPatchBaselineSymbolFields.TransformFile, value); + } + } +} diff --git a/src/WixToolset.Data/Symbols/WixPatchFamilyGroupSymbol.cs b/src/WixToolset.Data/Symbols/WixPatchFamilyGroupSymbol.cs new file mode 100644 index 00000000..3ab34f1f --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixPatchFamilyGroupSymbol.cs @@ -0,0 +1,44 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixPatchFamilyGroup = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixPatchFamilyGroup, + new[] + { + new IntermediateFieldDefinition(nameof(WixPatchFamilyGroupSymbolFields.WixPatchFamilyGroup), IntermediateFieldType.String), + }, + typeof(WixPatchFamilyGroupSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum WixPatchFamilyGroupSymbolFields + { + WixPatchFamilyGroup, + } + + public class WixPatchFamilyGroupSymbol : IntermediateSymbol + { + public WixPatchFamilyGroupSymbol() : base(SymbolDefinitions.WixPatchFamilyGroup, null, null) + { + } + + public WixPatchFamilyGroupSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixPatchFamilyGroup, sourceLineNumber, id) + { + } + + public IntermediateField this[WixPatchFamilyGroupSymbolFields index] => this.Fields[(int)index]; + + public string WixPatchFamilyGroup + { + get => (string)this.Fields[(int)WixPatchFamilyGroupSymbolFields.WixPatchFamilyGroup]; + set => this.Set((int)WixPatchFamilyGroupSymbolFields.WixPatchFamilyGroup, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/WixPatchIdSymbol.cs b/src/WixToolset.Data/Symbols/WixPatchIdSymbol.cs new file mode 100644 index 00000000..c4f4324d --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixPatchIdSymbol.cs @@ -0,0 +1,60 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixPatchId = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixPatchId, + new[] + { + new IntermediateFieldDefinition(nameof(WixPatchIdSymbolFields.ClientPatchId), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixPatchIdSymbolFields.OptimizePatchSizeForLargeFiles), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(WixPatchIdSymbolFields.ApiPatchingSymbolFlags), IntermediateFieldType.Number), + }, + typeof(WixPatchIdSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum WixPatchIdSymbolFields + { + ClientPatchId, + OptimizePatchSizeForLargeFiles, + ApiPatchingSymbolFlags, + } + + public class WixPatchIdSymbol : IntermediateSymbol + { + public WixPatchIdSymbol() : base(SymbolDefinitions.WixPatchId, null, null) + { + } + + public WixPatchIdSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixPatchId, sourceLineNumber, id) + { + } + + public IntermediateField this[WixPatchIdSymbolFields index] => this.Fields[(int)index]; + + public string ClientPatchId + { + get => (string)this.Fields[(int)WixPatchIdSymbolFields.ClientPatchId]; + set => this.Set((int)WixPatchIdSymbolFields.ClientPatchId, value); + } + + public bool? OptimizePatchSizeForLargeFiles + { + get => (bool?)this.Fields[(int)WixPatchIdSymbolFields.OptimizePatchSizeForLargeFiles]; + set => this.Set((int)WixPatchIdSymbolFields.OptimizePatchSizeForLargeFiles, value); + } + + public int? ApiPatchingSymbolFlags + { + get => (int?)this.Fields[(int)WixPatchIdSymbolFields.ApiPatchingSymbolFlags]; + set => this.Set((int)WixPatchIdSymbolFields.ApiPatchingSymbolFlags, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/WixPatchRefSymbol.cs b/src/WixToolset.Data/Symbols/WixPatchRefSymbol.cs new file mode 100644 index 00000000..66257d84 --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixPatchRefSymbol.cs @@ -0,0 +1,52 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixPatchRef = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixPatchRef, + new[] + { + new IntermediateFieldDefinition(nameof(WixPatchRefSymbolFields.Table), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixPatchRefSymbolFields.PrimaryKeys), IntermediateFieldType.String), + }, + typeof(WixPatchRefSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum WixPatchRefSymbolFields + { + Table, + PrimaryKeys, + } + + public class WixPatchRefSymbol : IntermediateSymbol + { + public WixPatchRefSymbol() : base(SymbolDefinitions.WixPatchRef, null, null) + { + } + + public WixPatchRefSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixPatchRef, sourceLineNumber, id) + { + } + + public IntermediateField this[WixPatchRefSymbolFields index] => this.Fields[(int)index]; + + public string Table + { + get => (string)this.Fields[(int)WixPatchRefSymbolFields.Table]; + set => this.Set((int)WixPatchRefSymbolFields.Table, value); + } + + public string PrimaryKeys + { + get => (string)this.Fields[(int)WixPatchRefSymbolFields.PrimaryKeys]; + set => this.Set((int)WixPatchRefSymbolFields.PrimaryKeys, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/WixPatchTargetSymbol.cs b/src/WixToolset.Data/Symbols/WixPatchTargetSymbol.cs new file mode 100644 index 00000000..e8c01c26 --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixPatchTargetSymbol.cs @@ -0,0 +1,44 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixPatchTarget = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixPatchTarget, + new[] + { + new IntermediateFieldDefinition(nameof(WixPatchTargetSymbolFields.ProductCode), IntermediateFieldType.String), + }, + typeof(WixPatchTargetSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum WixPatchTargetSymbolFields + { + ProductCode, + } + + public class WixPatchTargetSymbol : IntermediateSymbol + { + public WixPatchTargetSymbol() : base(SymbolDefinitions.WixPatchTarget, null, null) + { + } + + public WixPatchTargetSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixPatchTarget, sourceLineNumber, id) + { + } + + public IntermediateField this[WixPatchTargetSymbolFields index] => this.Fields[(int)index]; + + public string ProductCode + { + get => (string)this.Fields[(int)WixPatchTargetSymbolFields.ProductCode]; + set => this.Set((int)WixPatchTargetSymbolFields.ProductCode, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/WixProductSearchSymbol.cs b/src/WixToolset.Data/Symbols/WixProductSearchSymbol.cs new file mode 100644 index 00000000..f8a17b64 --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixProductSearchSymbol.cs @@ -0,0 +1,64 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixProductSearch = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixProductSearch, + new[] + { + new IntermediateFieldDefinition(nameof(WixProductSearchSymbolFields.Guid), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixProductSearchSymbolFields.Attributes), IntermediateFieldType.Number), + }, + typeof(WixProductSearchSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + using System; + + public enum WixProductSearchSymbolFields + { + Guid, + Attributes, + } + + [Flags] + public enum WixProductSearchAttributes + { + Version = 0x1, + Language = 0x2, + State = 0x4, + Assignment = 0x8, + UpgradeCode = 0x10, + } + + public class WixProductSearchSymbol : IntermediateSymbol + { + public WixProductSearchSymbol() : base(SymbolDefinitions.WixProductSearch, null, null) + { + } + + public WixProductSearchSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixProductSearch, sourceLineNumber, id) + { + } + + public IntermediateField this[WixProductSearchSymbolFields index] => this.Fields[(int)index]; + + public string Guid + { + get => (string)this.Fields[(int)WixProductSearchSymbolFields.Guid]; + set => this.Set((int)WixProductSearchSymbolFields.Guid, value); + } + + public WixProductSearchAttributes Attributes + { + get => (WixProductSearchAttributes)this.Fields[(int)WixProductSearchSymbolFields.Attributes].AsNumber(); + set => this.Set((int)WixProductSearchSymbolFields.Attributes, (int)value); + } + } +} diff --git a/src/WixToolset.Data/Symbols/WixPropertySymbol.cs b/src/WixToolset.Data/Symbols/WixPropertySymbol.cs new file mode 100644 index 00000000..17cf59ce --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixPropertySymbol.cs @@ -0,0 +1,68 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixProperty = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixProperty, + new[] + { + new IntermediateFieldDefinition(nameof(WixPropertySymbolFields.PropertyRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixPropertySymbolFields.Admin), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(WixPropertySymbolFields.Hidden), IntermediateFieldType.Bool), + new IntermediateFieldDefinition(nameof(WixPropertySymbolFields.Secure), IntermediateFieldType.Bool), + }, + typeof(WixPropertySymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum WixPropertySymbolFields + { + PropertyRef, + Admin, + Hidden, + Secure, + } + + public class WixPropertySymbol : IntermediateSymbol + { + public WixPropertySymbol() : base(SymbolDefinitions.WixProperty, null, null) + { + } + + public WixPropertySymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixProperty, sourceLineNumber, id) + { + } + + public IntermediateField this[WixPropertySymbolFields index] => this.Fields[(int)index]; + + public string PropertyRef + { + get => (string)this.Fields[(int)WixPropertySymbolFields.PropertyRef]; + set => this.Set((int)WixPropertySymbolFields.PropertyRef, value); + } + + public bool Admin + { + get => (bool)this.Fields[(int)WixPropertySymbolFields.Admin]; + set => this.Set((int)WixPropertySymbolFields.Admin, value); + } + + public bool Hidden + { + get => (bool)this.Fields[(int)WixPropertySymbolFields.Hidden]; + set => this.Set((int)WixPropertySymbolFields.Hidden, value); + } + + public bool Secure + { + get => (bool)this.Fields[(int)WixPropertySymbolFields.Secure]; + set => this.Set((int)WixPropertySymbolFields.Secure, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/WixRegistrySearchSymbol.cs b/src/WixToolset.Data/Symbols/WixRegistrySearchSymbol.cs new file mode 100644 index 00000000..dffa8410 --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixRegistrySearchSymbol.cs @@ -0,0 +1,81 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixRegistrySearch = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixRegistrySearch, + new[] + { + new IntermediateFieldDefinition(nameof(WixRegistrySearchSymbolFields.Root), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(WixRegistrySearchSymbolFields.Key), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixRegistrySearchSymbolFields.Value), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixRegistrySearchSymbolFields.Attributes), IntermediateFieldType.Number), + }, + typeof(WixRegistrySearchSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + using System; + + public enum WixRegistrySearchSymbolFields + { + Root, + Key, + Value, + Attributes, + } + + [Flags] + public enum WixRegistrySearchAttributes + { + Raw = 0x01, + Compatible = 0x02, + ExpandEnvironmentVariables = 0x04, + WantValue = 0x08, + WantExists = 0x10, + Win64 = 0x20, + } + + public class WixRegistrySearchSymbol : IntermediateSymbol + { + public WixRegistrySearchSymbol() : base(SymbolDefinitions.WixRegistrySearch, null, null) + { + } + + public WixRegistrySearchSymbol(SourceLineNumber sourceLineNumber , Identifier id = null) : base(SymbolDefinitions.WixRegistrySearch, sourceLineNumber, id) + { + } + + public IntermediateField this[WixRegistrySearchSymbolFields index] => this.Fields[(int)index]; + + public RegistryRootType Root + { + get => (RegistryRootType)this.Fields[(int)WixRegistrySearchSymbolFields.Root].AsNumber(); + set => this.Set((int)WixRegistrySearchSymbolFields.Root, (int)value); + } + + public string Key + { + get => (string)this.Fields[(int)WixRegistrySearchSymbolFields.Key]; + set => this.Set((int)WixRegistrySearchSymbolFields.Key, value); + } + + public string Value + { + get => (string)this.Fields[(int)WixRegistrySearchSymbolFields.Value]; + set => this.Set((int)WixRegistrySearchSymbolFields.Value, value); + } + + public WixRegistrySearchAttributes Attributes + { + get => (WixRegistrySearchAttributes)this.Fields[(int)WixRegistrySearchSymbolFields.Attributes].AsNumber(); + set => this.Set((int)WixRegistrySearchSymbolFields.Attributes, (int)value); + } + } +} diff --git a/src/WixToolset.Data/Symbols/WixRelatedBundleSymbol.cs b/src/WixToolset.Data/Symbols/WixRelatedBundleSymbol.cs new file mode 100644 index 00000000..dc544e29 --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixRelatedBundleSymbol.cs @@ -0,0 +1,60 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixRelatedBundle = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixRelatedBundle, + new[] + { + new IntermediateFieldDefinition(nameof(WixRelatedBundleSymbolFields.BundleId), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixRelatedBundleSymbolFields.Action), IntermediateFieldType.Number), + }, + typeof(WixRelatedBundleSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum WixRelatedBundleSymbolFields + { + BundleId, + Action, + } + + public enum RelatedBundleActionType + { + Detect, + Upgrade, + Addon, + Patch + } + + public class WixRelatedBundleSymbol : IntermediateSymbol + { + public WixRelatedBundleSymbol() : base(SymbolDefinitions.WixRelatedBundle, null, null) + { + } + + public WixRelatedBundleSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixRelatedBundle, sourceLineNumber, id) + { + } + + public IntermediateField this[WixRelatedBundleSymbolFields index] => this.Fields[(int)index]; + + public string BundleId + { + get => (string)this.Fields[(int)WixRelatedBundleSymbolFields.BundleId]; + set => this.Set((int)WixRelatedBundleSymbolFields.BundleId, value); + } + + public RelatedBundleActionType Action + { + get => (RelatedBundleActionType)this.Fields[(int)WixRelatedBundleSymbolFields.Action].AsNumber(); + set => this.Set((int)WixRelatedBundleSymbolFields.Action, (int)value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/WixSearchRelationSymbol.cs b/src/WixToolset.Data/Symbols/WixSearchRelationSymbol.cs new file mode 100644 index 00000000..6b47833a --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixSearchRelationSymbol.cs @@ -0,0 +1,52 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixSearchRelation = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixSearchRelation, + new[] + { + new IntermediateFieldDefinition(nameof(WixSearchRelationSymbolFields.ParentSearchRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixSearchRelationSymbolFields.Attributes), IntermediateFieldType.Number), + }, + typeof(WixSearchRelationSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum WixSearchRelationSymbolFields + { + ParentSearchRef, + Attributes, + } + + public class WixSearchRelationSymbol : IntermediateSymbol + { + public WixSearchRelationSymbol() : base(SymbolDefinitions.WixSearchRelation, null, null) + { + } + + public WixSearchRelationSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixSearchRelation, sourceLineNumber, id) + { + } + + public IntermediateField this[WixSearchRelationSymbolFields index] => this.Fields[(int)index]; + + public string ParentSearchRef + { + get => (string)this.Fields[(int)WixSearchRelationSymbolFields.ParentSearchRef]; + set => this.Set((int)WixSearchRelationSymbolFields.ParentSearchRef, value); + } + + public int Attributes + { + get => (int)this.Fields[(int)WixSearchRelationSymbolFields.Attributes]; + set => this.Set((int)WixSearchRelationSymbolFields.Attributes, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/WixSearchSymbol.cs b/src/WixToolset.Data/Symbols/WixSearchSymbol.cs new file mode 100644 index 00000000..2d6a927c --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixSearchSymbol.cs @@ -0,0 +1,60 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixSearch = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixSearch, + new[] + { + new IntermediateFieldDefinition(nameof(WixSearchSymbolFields.Variable), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixSearchSymbolFields.Condition), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixSearchSymbolFields.BundleExtensionRef), IntermediateFieldType.String), + }, + typeof(WixSearchSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum WixSearchSymbolFields + { + Variable, + Condition, + BundleExtensionRef, + } + + public class WixSearchSymbol : IntermediateSymbol + { + public WixSearchSymbol() : base(SymbolDefinitions.WixSearch, null, null) + { + } + + public WixSearchSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixSearch, sourceLineNumber, id) + { + } + + public IntermediateField this[WixSearchSymbolFields index] => this.Fields[(int)index]; + + public string Variable + { + get => (string)this.Fields[(int)WixSearchSymbolFields.Variable]; + set => this.Set((int)WixSearchSymbolFields.Variable, value); + } + + public string Condition + { + get => (string)this.Fields[(int)WixSearchSymbolFields.Condition]; + set => this.Set((int)WixSearchSymbolFields.Condition, value); + } + + public string BundleExtensionRef + { + get => (string)this.Fields[(int)WixSearchSymbolFields.BundleExtensionRef]; + set => this.Set((int)WixSearchSymbolFields.BundleExtensionRef, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/WixSetVariableSymbol.cs b/src/WixToolset.Data/Symbols/WixSetVariableSymbol.cs new file mode 100644 index 00000000..503c328b --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixSetVariableSymbol.cs @@ -0,0 +1,52 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixSetVariable = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixSetVariable, + new[] + { + new IntermediateFieldDefinition(nameof(WixSetVariableSymbolFields.Value), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixSetVariableSymbolFields.Type), IntermediateFieldType.String), + }, + typeof(WixSetVariableSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum WixSetVariableSymbolFields + { + Value, + Type, + } + + public class WixSetVariableSymbol : IntermediateSymbol + { + public WixSetVariableSymbol() : base(SymbolDefinitions.WixSetVariable, null, null) + { + } + + public WixSetVariableSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixSetVariable, sourceLineNumber, id) + { + } + + public IntermediateField this[WixSetVariableSymbolFields index] => this.Fields[(int)index]; + + public string Value + { + get => (string)this.Fields[(int)WixSetVariableSymbolFields.Value]; + set => this.Set((int)WixSetVariableSymbolFields.Value, value); + } + + public string Type + { + get => (string)this.Fields[(int)WixSetVariableSymbolFields.Type]; + set => this.Set((int)WixSetVariableSymbolFields.Type, value); + } + } +} diff --git a/src/WixToolset.Data/Symbols/WixSimpleReferenceSymbol.cs b/src/WixToolset.Data/Symbols/WixSimpleReferenceSymbol.cs new file mode 100644 index 00000000..1091b715 --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixSimpleReferenceSymbol.cs @@ -0,0 +1,62 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixSimpleReference = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixSimpleReference, + new[] + { + new IntermediateFieldDefinition(nameof(WixSimpleReferenceSymbolFields.Table), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixSimpleReferenceSymbolFields.PrimaryKeys), IntermediateFieldType.String), + }, + typeof(WixSimpleReferenceSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + using System; + using System.Diagnostics; + + public enum WixSimpleReferenceSymbolFields + { + Table, + PrimaryKeys, + } + + [DebuggerDisplay("{SymbolicName}")] + public class WixSimpleReferenceSymbol : IntermediateSymbol + { + public WixSimpleReferenceSymbol() : base(SymbolDefinitions.WixSimpleReference, null, null) + { + } + + public WixSimpleReferenceSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixSimpleReference, sourceLineNumber, id) + { + } + + public IntermediateField this[WixSimpleReferenceSymbolFields index] => this.Fields[(int)index]; + + public string Table + { + get => (string)this.Fields[(int)WixSimpleReferenceSymbolFields.Table]; + set => this.Set((int)WixSimpleReferenceSymbolFields.Table, value); + } + + public string PrimaryKeys + { + get => (string)this.Fields[(int)WixSimpleReferenceSymbolFields.PrimaryKeys]; + set => this.Set((int)WixSimpleReferenceSymbolFields.PrimaryKeys, value); + } + + /// + /// Gets the symbolic name. + /// + /// Symbolic name. + public string SymbolicName => String.Concat(this.Table, ":", this.PrimaryKeys); + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/WixSuppressActionSymbol.cs b/src/WixToolset.Data/Symbols/WixSuppressActionSymbol.cs new file mode 100644 index 00000000..f99246f0 --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixSuppressActionSymbol.cs @@ -0,0 +1,54 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixSuppressAction = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixSuppressAction, + new[] + { + new IntermediateFieldDefinition(nameof(WixSuppressActionSymbolFields.SequenceTable), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixSuppressActionSymbolFields.Action), IntermediateFieldType.String), + }, + typeof(WixSuppressActionSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + using System; + + public enum WixSuppressActionSymbolFields + { + SequenceTable, + Action, + } + + public class WixSuppressActionSymbol : IntermediateSymbol + { + public WixSuppressActionSymbol() : base(SymbolDefinitions.WixSuppressAction, null, null) + { + } + + public WixSuppressActionSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixSuppressAction, sourceLineNumber, id) + { + } + + public IntermediateField this[WixSuppressActionSymbolFields index] => this.Fields[(int)index]; + + public SequenceTable SequenceTable + { + get => (SequenceTable)Enum.Parse(typeof(SequenceTable), (string)this.Fields[(int)WixSuppressActionSymbolFields.SequenceTable]); + set => this.Set((int)WixSuppressActionSymbolFields.SequenceTable, value.ToString()); + } + + public string Action + { + get => (string)this.Fields[(int)WixSuppressActionSymbolFields.Action]; + set => this.Set((int)WixSuppressActionSymbolFields.Action, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/WixSuppressModularizationSymbol.cs b/src/WixToolset.Data/Symbols/WixSuppressModularizationSymbol.cs new file mode 100644 index 00000000..1bdffd5e --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixSuppressModularizationSymbol.cs @@ -0,0 +1,36 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixSuppressModularization = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixSuppressModularization, + new IntermediateFieldDefinition[] + { + }, + typeof(WixSuppressModularizationSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum WixSuppressModularizationSymbolFields + { + } + + public class WixSuppressModularizationSymbol : IntermediateSymbol + { + public WixSuppressModularizationSymbol() : base(SymbolDefinitions.WixSuppressModularization, null, null) + { + } + + public WixSuppressModularizationSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixSuppressModularization, sourceLineNumber, id) + { + } + + public IntermediateField this[WixSuppressModularizationSymbolFields index] => this.Fields[(int)index]; + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/WixUISymbol.cs b/src/WixToolset.Data/Symbols/WixUISymbol.cs new file mode 100644 index 00000000..f1254952 --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixUISymbol.cs @@ -0,0 +1,36 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixUI = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixUI, + new IntermediateFieldDefinition[] + { + }, + typeof(WixUISymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum WixUISymbolFields + { + } + + public class WixUISymbol : IntermediateSymbol + { + public WixUISymbol() : base(SymbolDefinitions.WixUI, null, null) + { + } + + public WixUISymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixUI, sourceLineNumber, id) + { + } + + public IntermediateField this[WixUISymbolFields index] => this.Fields[(int)index]; + } +} diff --git a/src/WixToolset.Data/Symbols/WixUpdateRegistrationSymbol.cs b/src/WixToolset.Data/Symbols/WixUpdateRegistrationSymbol.cs new file mode 100644 index 00000000..1320dfd5 --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixUpdateRegistrationSymbol.cs @@ -0,0 +1,76 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixUpdateRegistration = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixUpdateRegistration, + new[] + { + new IntermediateFieldDefinition(nameof(WixUpdateRegistrationSymbolFields.Manufacturer), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixUpdateRegistrationSymbolFields.Department), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixUpdateRegistrationSymbolFields.ProductFamily), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixUpdateRegistrationSymbolFields.Name), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixUpdateRegistrationSymbolFields.Classification), IntermediateFieldType.String), + }, + typeof(WixUpdateRegistrationSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum WixUpdateRegistrationSymbolFields + { + Manufacturer, + Department, + ProductFamily, + Name, + Classification, + } + + public class WixUpdateRegistrationSymbol : IntermediateSymbol + { + public WixUpdateRegistrationSymbol() : base(SymbolDefinitions.WixUpdateRegistration, null, null) + { + } + + public WixUpdateRegistrationSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixUpdateRegistration, sourceLineNumber, id) + { + } + + public IntermediateField this[WixUpdateRegistrationSymbolFields index] => this.Fields[(int)index]; + + public string Manufacturer + { + get => (string)this.Fields[(int)WixUpdateRegistrationSymbolFields.Manufacturer]; + set => this.Set((int)WixUpdateRegistrationSymbolFields.Manufacturer, value); + } + + public string Department + { + get => (string)this.Fields[(int)WixUpdateRegistrationSymbolFields.Department]; + set => this.Set((int)WixUpdateRegistrationSymbolFields.Department, value); + } + + public string ProductFamily + { + get => (string)this.Fields[(int)WixUpdateRegistrationSymbolFields.ProductFamily]; + set => this.Set((int)WixUpdateRegistrationSymbolFields.ProductFamily, value); + } + + public string Name + { + get => (string)this.Fields[(int)WixUpdateRegistrationSymbolFields.Name]; + set => this.Set((int)WixUpdateRegistrationSymbolFields.Name, value); + } + + public string Classification + { + get => (string)this.Fields[(int)WixUpdateRegistrationSymbolFields.Classification]; + set => this.Set((int)WixUpdateRegistrationSymbolFields.Classification, value); + } + } +} \ No newline at end of file diff --git a/src/WixToolset.Data/Symbols/WixVariableSymbol.cs b/src/WixToolset.Data/Symbols/WixVariableSymbol.cs new file mode 100644 index 00000000..0a56dcbf --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixVariableSymbol.cs @@ -0,0 +1,52 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Symbols; + + public static partial class SymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixVariable = new IntermediateSymbolDefinition( + SymbolDefinitionType.WixVariable, + new[] + { + new IntermediateFieldDefinition(nameof(WixVariableSymbolFields.Value), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixVariableSymbolFields.Overridable), IntermediateFieldType.Bool), + }, + typeof(WixVariableSymbol)); + } +} + +namespace WixToolset.Data.Symbols +{ + public enum WixVariableSymbolFields + { + Value, + Overridable, + } + + public class WixVariableSymbol : IntermediateSymbol + { + public WixVariableSymbol() : base(SymbolDefinitions.WixVariable, null, null) + { + } + + public WixVariableSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixVariable, sourceLineNumber, id) + { + } + + public IntermediateField this[WixVariableSymbolFields index] => this.Fields[(int)index]; + + public string Value + { + get => (string)this.Fields[(int)WixVariableSymbolFields.Value]; + set => this.Set((int)WixVariableSymbolFields.Value, value); + } + + public bool Overridable + { + get => (bool)this.Fields[(int)WixVariableSymbolFields.Overridable]; + set => this.Set((int)WixVariableSymbolFields.Overridable, value); + } + } +} diff --git a/src/WixToolset.Data/Tuples/ActionTextTuple.cs b/src/WixToolset.Data/Tuples/ActionTextTuple.cs deleted file mode 100644 index 80662060..00000000 --- a/src/WixToolset.Data/Tuples/ActionTextTuple.cs +++ /dev/null @@ -1,60 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition ActionText = new IntermediateSymbolDefinition( - SymbolDefinitionType.ActionText, - new[] - { - new IntermediateFieldDefinition(nameof(ActionTextSymbolFields.Action), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ActionTextSymbolFields.Description), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ActionTextSymbolFields.Template), IntermediateFieldType.String), - }, - typeof(ActionTextSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum ActionTextSymbolFields - { - Action, - Description, - Template, - } - - public class ActionTextSymbol : IntermediateSymbol - { - public ActionTextSymbol() : base(SymbolDefinitions.ActionText, null, null) - { - } - - public ActionTextSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ActionText, sourceLineNumber, id) - { - } - - public IntermediateField this[ActionTextSymbolFields index] => this.Fields[(int)index]; - - public string Action - { - get => (string)this.Fields[(int)ActionTextSymbolFields.Action]; - set => this.Set((int)ActionTextSymbolFields.Action, value); - } - - public string Description - { - get => (string)this.Fields[(int)ActionTextSymbolFields.Description]; - set => this.Set((int)ActionTextSymbolFields.Description, value); - } - - public string Template - { - get => (string)this.Fields[(int)ActionTextSymbolFields.Template]; - set => this.Set((int)ActionTextSymbolFields.Template, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/AppIdTuple.cs b/src/WixToolset.Data/Tuples/AppIdTuple.cs deleted file mode 100644 index 3eafa26f..00000000 --- a/src/WixToolset.Data/Tuples/AppIdTuple.cs +++ /dev/null @@ -1,92 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition AppId = new IntermediateSymbolDefinition( - SymbolDefinitionType.AppId, - new[] - { - new IntermediateFieldDefinition(nameof(AppIdSymbolFields.AppId), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(AppIdSymbolFields.RemoteServerName), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(AppIdSymbolFields.LocalService), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(AppIdSymbolFields.ServiceParameters), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(AppIdSymbolFields.DllSurrogate), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(AppIdSymbolFields.ActivateAtStorage), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(AppIdSymbolFields.RunAsInteractiveUser), IntermediateFieldType.Number), - }, - typeof(AppIdSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum AppIdSymbolFields - { - AppId, - RemoteServerName, - LocalService, - ServiceParameters, - DllSurrogate, - ActivateAtStorage, - RunAsInteractiveUser, - } - - public class AppIdSymbol : IntermediateSymbol - { - public AppIdSymbol() : base(SymbolDefinitions.AppId, null, null) - { - } - - public AppIdSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.AppId, sourceLineNumber, id) - { - } - - public IntermediateField this[AppIdSymbolFields index] => this.Fields[(int)index]; - - public string AppId - { - get => (string)this.Fields[(int)AppIdSymbolFields.AppId]; - set => this.Set((int)AppIdSymbolFields.AppId, value); - } - - public string RemoteServerName - { - get => (string)this.Fields[(int)AppIdSymbolFields.RemoteServerName]; - set => this.Set((int)AppIdSymbolFields.RemoteServerName, value); - } - - public string LocalService - { - get => (string)this.Fields[(int)AppIdSymbolFields.LocalService]; - set => this.Set((int)AppIdSymbolFields.LocalService, value); - } - - public string ServiceParameters - { - get => (string)this.Fields[(int)AppIdSymbolFields.ServiceParameters]; - set => this.Set((int)AppIdSymbolFields.ServiceParameters, value); - } - - public string DllSurrogate - { - get => (string)this.Fields[(int)AppIdSymbolFields.DllSurrogate]; - set => this.Set((int)AppIdSymbolFields.DllSurrogate, value); - } - - public bool? ActivateAtStorage - { - get => (bool?)this.Fields[(int)AppIdSymbolFields.ActivateAtStorage]; - set => this.Set((int)AppIdSymbolFields.ActivateAtStorage, value); - } - - public bool? RunAsInteractiveUser - { - get => (bool?)this.Fields[(int)AppIdSymbolFields.RunAsInteractiveUser]; - set => this.Set((int)AppIdSymbolFields.RunAsInteractiveUser, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/AppSearchTuple.cs b/src/WixToolset.Data/Tuples/AppSearchTuple.cs deleted file mode 100644 index 2bd3d6ba..00000000 --- a/src/WixToolset.Data/Tuples/AppSearchTuple.cs +++ /dev/null @@ -1,52 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition AppSearch = new IntermediateSymbolDefinition( - SymbolDefinitionType.AppSearch, - new[] - { - new IntermediateFieldDefinition(nameof(AppSearchSymbolFields.PropertyRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(AppSearchSymbolFields.SignatureRef), IntermediateFieldType.String), - }, - typeof(AppSearchSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum AppSearchSymbolFields - { - PropertyRef, - SignatureRef, - } - - public class AppSearchSymbol : IntermediateSymbol - { - public AppSearchSymbol() : base(SymbolDefinitions.AppSearch, null, null) - { - } - - public AppSearchSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.AppSearch, sourceLineNumber, id) - { - } - - public IntermediateField this[AppSearchSymbolFields index] => this.Fields[(int)index]; - - public string PropertyRef - { - get => (string)this.Fields[(int)AppSearchSymbolFields.PropertyRef]; - set => this.Set((int)AppSearchSymbolFields.PropertyRef, value); - } - - public string SignatureRef - { - get => (string)this.Fields[(int)AppSearchSymbolFields.SignatureRef]; - set => this.Set((int)AppSearchSymbolFields.SignatureRef, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/AssemblyTuple.cs b/src/WixToolset.Data/Tuples/AssemblyTuple.cs deleted file mode 100644 index 192ca4eb..00000000 --- a/src/WixToolset.Data/Tuples/AssemblyTuple.cs +++ /dev/null @@ -1,96 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition Assembly = new IntermediateSymbolDefinition( - SymbolDefinitionType.Assembly, - new[] - { - new IntermediateFieldDefinition(nameof(AssemblySymbolFields.ComponentRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(AssemblySymbolFields.FeatureRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(AssemblySymbolFields.ManifestFileRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(AssemblySymbolFields.ApplicationFileRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(AssemblySymbolFields.Type), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(AssemblySymbolFields.ProcessorArchitecture), IntermediateFieldType.String), - }, - typeof(AssemblySymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum AssemblySymbolFields - { - ComponentRef, - FeatureRef, - ManifestFileRef, - ApplicationFileRef, - Type, - ProcessorArchitecture, - } - - public enum AssemblyType - { - /// File is not an assembly. - NotAnAssembly, - - /// File is a Common Language Runtime Assembly. - DotNetAssembly, - - /// File is Win32 SxS assembly. - Win32Assembly, - } - - public class AssemblySymbol : IntermediateSymbol - { - public AssemblySymbol() : base(SymbolDefinitions.Assembly, null, null) - { - } - - public AssemblySymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Assembly, sourceLineNumber, id) - { - } - - public IntermediateField this[AssemblySymbolFields index] => this.Fields[(int)index]; - - public string ComponentRef - { - get => (string)this.Fields[(int)AssemblySymbolFields.ComponentRef]; - set => this.Set((int)AssemblySymbolFields.ComponentRef, value); - } - - public string FeatureRef - { - get => (string)this.Fields[(int)AssemblySymbolFields.FeatureRef]; - set => this.Set((int)AssemblySymbolFields.FeatureRef, value); - } - - public string ManifestFileRef - { - get => (string)this.Fields[(int)AssemblySymbolFields.ManifestFileRef]; - set => this.Set((int)AssemblySymbolFields.ManifestFileRef, value); - } - - public string ApplicationFileRef - { - get => (string)this.Fields[(int)AssemblySymbolFields.ApplicationFileRef]; - set => this.Set((int)AssemblySymbolFields.ApplicationFileRef, value); - } - - public AssemblyType Type - { - get => (AssemblyType)this.Fields[(int)AssemblySymbolFields.Type].AsNumber(); - set => this.Set((int)AssemblySymbolFields.Type, (int)value); - } - - public string ProcessorArchitecture - { - get => (string)this.Fields[(int)AssemblySymbolFields.ProcessorArchitecture]; - set => this.Set((int)AssemblySymbolFields.ProcessorArchitecture, value); - } - } -} diff --git a/src/WixToolset.Data/Tuples/BBControlTuple.cs b/src/WixToolset.Data/Tuples/BBControlTuple.cs deleted file mode 100644 index 277d1d85..00000000 --- a/src/WixToolset.Data/Tuples/BBControlTuple.cs +++ /dev/null @@ -1,180 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition BBControl = new IntermediateSymbolDefinition( - SymbolDefinitionType.BBControl, - new[] - { - new IntermediateFieldDefinition(nameof(BBControlSymbolFields.BillboardRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(BBControlSymbolFields.BBControl), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(BBControlSymbolFields.Type), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(BBControlSymbolFields.X), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(BBControlSymbolFields.Y), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(BBControlSymbolFields.Width), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(BBControlSymbolFields.Height), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(BBControlSymbolFields.Attributes), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(BBControlSymbolFields.Enabled), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(BBControlSymbolFields.Indirect), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(BBControlSymbolFields.Integer), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(BBControlSymbolFields.LeftScroll), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(BBControlSymbolFields.RightAligned), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(BBControlSymbolFields.RightToLeft), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(BBControlSymbolFields.Sunken), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(BBControlSymbolFields.Visible), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(BBControlSymbolFields.Text), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(BBControlSymbolFields.SourceFile), IntermediateFieldType.Path), - }, - typeof(BBControlSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum BBControlSymbolFields - { - BillboardRef, - BBControl, - Type, - X, - Y, - Width, - Height, - Attributes, - Enabled, - Indirect, - Integer, - LeftScroll, - RightAligned, - RightToLeft, - Sunken, - Visible, - Text, - SourceFile - } - - public class BBControlSymbol : IntermediateSymbol - { - public BBControlSymbol() : base(SymbolDefinitions.BBControl, null, null) - { - } - - public BBControlSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.BBControl, sourceLineNumber, id) - { - } - - public IntermediateField this[BBControlSymbolFields index] => this.Fields[(int)index]; - - public string BillboardRef - { - get => (string)this.Fields[(int)BBControlSymbolFields.BillboardRef]; - set => this.Set((int)BBControlSymbolFields.BillboardRef, value); - } - - public string BBControl - { - get => (string)this.Fields[(int)BBControlSymbolFields.BBControl]; - set => this.Set((int)BBControlSymbolFields.BBControl, value); - } - - public string Type - { - get => (string)this.Fields[(int)BBControlSymbolFields.Type]; - set => this.Set((int)BBControlSymbolFields.Type, value); - } - - public int X - { - get => (int)this.Fields[(int)BBControlSymbolFields.X]; - set => this.Set((int)BBControlSymbolFields.X, value); - } - - public int Y - { - get => (int)this.Fields[(int)BBControlSymbolFields.Y]; - set => this.Set((int)BBControlSymbolFields.Y, value); - } - - public int Width - { - get => (int)this.Fields[(int)BBControlSymbolFields.Width].AsNumber(); - set => this.Set((int)BBControlSymbolFields.Width, value); - } - - public int Height - { - get => (int)this.Fields[(int)BBControlSymbolFields.Height]; - set => this.Set((int)BBControlSymbolFields.Height, value); - } - - public int Attributes - { - get => this.Fields[(int)BBControlSymbolFields.Attributes].AsNumber(); - set => this.Set((int)BBControlSymbolFields.Attributes, value); - } - - public bool Enabled - { - get => this.Fields[(int)BBControlSymbolFields.Enabled].AsBool(); - set => this.Set((int)BBControlSymbolFields.Enabled, value); - } - - public bool Indirect - { - get => this.Fields[(int)BBControlSymbolFields.Indirect].AsBool(); - set => this.Set((int)BBControlSymbolFields.Indirect, value); - } - - public bool Integer - { - get => this.Fields[(int)BBControlSymbolFields.Integer].AsBool(); - set => this.Set((int)BBControlSymbolFields.Integer, value); - } - - public bool LeftScroll - { - get => this.Fields[(int)BBControlSymbolFields.LeftScroll].AsBool(); - set => this.Set((int)BBControlSymbolFields.LeftScroll, value); - } - - public bool RightAligned - { - get => this.Fields[(int)BBControlSymbolFields.RightAligned].AsBool(); - set => this.Set((int)BBControlSymbolFields.RightAligned, value); - } - - public bool RightToLeft - { - get => this.Fields[(int)BBControlSymbolFields.RightToLeft].AsBool(); - set => this.Set((int)BBControlSymbolFields.RightToLeft, value); - } - - public bool Sunken - { - get => this.Fields[(int)BBControlSymbolFields.Sunken].AsBool(); - set => this.Set((int)BBControlSymbolFields.Sunken, value); - } - - public bool Visible - { - get => this.Fields[(int)BBControlSymbolFields.Visible].AsBool(); - set => this.Set((int)BBControlSymbolFields.Visible, value); - } - - public string Text - { - get => (string)this.Fields[(int)BBControlSymbolFields.Text]; - set => this.Set((int)BBControlSymbolFields.Text, value); - } - - public IntermediateFieldPathValue SourceFile - { - get => this.Fields[(int)BBControlSymbolFields.SourceFile].AsPath(); - set => this.Set((int)BBControlSymbolFields.SourceFile, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/BillboardTuple.cs b/src/WixToolset.Data/Tuples/BillboardTuple.cs deleted file mode 100644 index 77f60bcb..00000000 --- a/src/WixToolset.Data/Tuples/BillboardTuple.cs +++ /dev/null @@ -1,60 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition Billboard = new IntermediateSymbolDefinition( - SymbolDefinitionType.Billboard, - new[] - { - new IntermediateFieldDefinition(nameof(BillboardSymbolFields.FeatureRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(BillboardSymbolFields.Action), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(BillboardSymbolFields.Ordering), IntermediateFieldType.Number), - }, - typeof(BillboardSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum BillboardSymbolFields - { - FeatureRef, - Action, - Ordering, - } - - public class BillboardSymbol : IntermediateSymbol - { - public BillboardSymbol() : base(SymbolDefinitions.Billboard, null, null) - { - } - - public BillboardSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Billboard, sourceLineNumber, id) - { - } - - public IntermediateField this[BillboardSymbolFields index] => this.Fields[(int)index]; - - public string FeatureRef - { - get => (string)this.Fields[(int)BillboardSymbolFields.FeatureRef]; - set => this.Set((int)BillboardSymbolFields.FeatureRef, value); - } - - public string Action - { - get => (string)this.Fields[(int)BillboardSymbolFields.Action]; - set => this.Set((int)BillboardSymbolFields.Action, value); - } - - public int? Ordering - { - get => (int?)this.Fields[(int)BillboardSymbolFields.Ordering]; - set => this.Set((int)BillboardSymbolFields.Ordering, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/BinaryTuple.cs b/src/WixToolset.Data/Tuples/BinaryTuple.cs deleted file mode 100644 index ec26b01a..00000000 --- a/src/WixToolset.Data/Tuples/BinaryTuple.cs +++ /dev/null @@ -1,44 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition Binary = new IntermediateSymbolDefinition( - SymbolDefinitionType.Binary, - new[] - { - new IntermediateFieldDefinition(nameof(BinarySymbolFields.Data), IntermediateFieldType.Path), - }, - typeof(BinarySymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum BinarySymbolFields - { - Data, - } - - public class BinarySymbol : IntermediateSymbol - { - public BinarySymbol() : base(SymbolDefinitions.Binary, null, null) - { - } - - public BinarySymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Binary, sourceLineNumber, id) - { - } - - public IntermediateField this[BinarySymbolFields index] => this.Fields[(int)index]; - - public IntermediateFieldPathValue Data - { - get => this.Fields[(int)BinarySymbolFields.Data].AsPath(); - set => this.Set((int)BinarySymbolFields.Data, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/CCPSearchTuple.cs b/src/WixToolset.Data/Tuples/CCPSearchTuple.cs deleted file mode 100644 index 6f6227fd..00000000 --- a/src/WixToolset.Data/Tuples/CCPSearchTuple.cs +++ /dev/null @@ -1,36 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition CCPSearch = new IntermediateSymbolDefinition( - SymbolDefinitionType.CCPSearch, - new IntermediateFieldDefinition[] - { - }, - typeof(CCPSearchSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum CCPSearchSymbolFields - { - } - - public class CCPSearchSymbol : IntermediateSymbol - { - public CCPSearchSymbol() : base(SymbolDefinitions.CCPSearch, null, null) - { - } - - public CCPSearchSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.CCPSearch, sourceLineNumber, id) - { - } - - public IntermediateField this[CCPSearchSymbolFields index] => this.Fields[(int)index]; - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/CheckBoxTuple.cs b/src/WixToolset.Data/Tuples/CheckBoxTuple.cs deleted file mode 100644 index cd6355c4..00000000 --- a/src/WixToolset.Data/Tuples/CheckBoxTuple.cs +++ /dev/null @@ -1,52 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition CheckBox = new IntermediateSymbolDefinition( - SymbolDefinitionType.CheckBox, - new[] - { - new IntermediateFieldDefinition(nameof(CheckBoxSymbolFields.Property), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(CheckBoxSymbolFields.Value), IntermediateFieldType.String), - }, - typeof(CheckBoxSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum CheckBoxSymbolFields - { - Property, - Value, - } - - public class CheckBoxSymbol : IntermediateSymbol - { - public CheckBoxSymbol() : base(SymbolDefinitions.CheckBox, null, null) - { - } - - public CheckBoxSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.CheckBox, sourceLineNumber, id) - { - } - - public IntermediateField this[CheckBoxSymbolFields index] => this.Fields[(int)index]; - - public string Property - { - get => (string)this.Fields[(int)CheckBoxSymbolFields.Property]; - set => this.Set((int)CheckBoxSymbolFields.Property, value); - } - - public string Value - { - get => (string)this.Fields[(int)CheckBoxSymbolFields.Value]; - set => this.Set((int)CheckBoxSymbolFields.Value, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/ClassTuple.cs b/src/WixToolset.Data/Tuples/ClassTuple.cs deleted file mode 100644 index 833867b1..00000000 --- a/src/WixToolset.Data/Tuples/ClassTuple.cs +++ /dev/null @@ -1,140 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition Class = new IntermediateSymbolDefinition( - SymbolDefinitionType.Class, - new[] - { - new IntermediateFieldDefinition(nameof(ClassSymbolFields.CLSID), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ClassSymbolFields.Context), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ClassSymbolFields.ComponentRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ClassSymbolFields.DefaultProgIdRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ClassSymbolFields.Description), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ClassSymbolFields.AppIdRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ClassSymbolFields.FileTypeMask), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ClassSymbolFields.IconRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ClassSymbolFields.IconIndex), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(ClassSymbolFields.DefInprocHandler), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ClassSymbolFields.Argument), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ClassSymbolFields.FeatureRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ClassSymbolFields.RelativePath), IntermediateFieldType.Bool), - }, - typeof(ClassSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum ClassSymbolFields - { - CLSID, - Context, - ComponentRef, - DefaultProgIdRef, - Description, - AppIdRef, - FileTypeMask, - IconRef, - IconIndex, - DefInprocHandler, - Argument, - FeatureRef, - RelativePath, - } - - public class ClassSymbol : IntermediateSymbol - { - public ClassSymbol() : base(SymbolDefinitions.Class, null, null) - { - } - - public ClassSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Class, sourceLineNumber, id) - { - } - - public IntermediateField this[ClassSymbolFields index] => this.Fields[(int)index]; - - public string CLSID - { - get => (string)this.Fields[(int)ClassSymbolFields.CLSID]; - set => this.Set((int)ClassSymbolFields.CLSID, value); - } - - public string Context - { - get => (string)this.Fields[(int)ClassSymbolFields.Context]; - set => this.Set((int)ClassSymbolFields.Context, value); - } - - public string ComponentRef - { - get => (string)this.Fields[(int)ClassSymbolFields.ComponentRef]; - set => this.Set((int)ClassSymbolFields.ComponentRef, value); - } - - public string DefaultProgIdRef - { - get => (string)this.Fields[(int)ClassSymbolFields.DefaultProgIdRef]; - set => this.Set((int)ClassSymbolFields.DefaultProgIdRef, value); - } - - public string Description - { - get => (string)this.Fields[(int)ClassSymbolFields.Description]; - set => this.Set((int)ClassSymbolFields.Description, value); - } - - public string AppIdRef - { - get => (string)this.Fields[(int)ClassSymbolFields.AppIdRef]; - set => this.Set((int)ClassSymbolFields.AppIdRef, value); - } - - public string FileTypeMask - { - get => (string)this.Fields[(int)ClassSymbolFields.FileTypeMask]; - set => this.Set((int)ClassSymbolFields.FileTypeMask, value); - } - - public string IconRef - { - get => (string)this.Fields[(int)ClassSymbolFields.IconRef]; - set => this.Set((int)ClassSymbolFields.IconRef, value); - } - - public int? IconIndex - { - get => (int?)this.Fields[(int)ClassSymbolFields.IconIndex]; - set => this.Set((int)ClassSymbolFields.IconIndex, value); - } - - public string DefInprocHandler - { - get => (string)this.Fields[(int)ClassSymbolFields.DefInprocHandler]; - set => this.Set((int)ClassSymbolFields.DefInprocHandler, value); - } - - public string Argument - { - get => (string)this.Fields[(int)ClassSymbolFields.Argument]; - set => this.Set((int)ClassSymbolFields.Argument, value); - } - - public string FeatureRef - { - get => (string)this.Fields[(int)ClassSymbolFields.FeatureRef]; - set => this.Set((int)ClassSymbolFields.FeatureRef, value); - } - - public bool RelativePath - { - get => this.Fields[(int)ClassSymbolFields.RelativePath].AsBool(); - set => this.Set((int)ClassSymbolFields.RelativePath, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/ComboBoxTuple.cs b/src/WixToolset.Data/Tuples/ComboBoxTuple.cs deleted file mode 100644 index c7d8d986..00000000 --- a/src/WixToolset.Data/Tuples/ComboBoxTuple.cs +++ /dev/null @@ -1,68 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition ComboBox = new IntermediateSymbolDefinition( - SymbolDefinitionType.ComboBox, - new[] - { - new IntermediateFieldDefinition(nameof(ComboBoxSymbolFields.Property), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ComboBoxSymbolFields.Order), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(ComboBoxSymbolFields.Value), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ComboBoxSymbolFields.Text), IntermediateFieldType.String), - }, - typeof(ComboBoxSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum ComboBoxSymbolFields - { - Property, - Order, - Value, - Text, - } - - public class ComboBoxSymbol : IntermediateSymbol - { - public ComboBoxSymbol() : base(SymbolDefinitions.ComboBox, null, null) - { - } - - public ComboBoxSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ComboBox, sourceLineNumber, id) - { - } - - public IntermediateField this[ComboBoxSymbolFields index] => this.Fields[(int)index]; - - public string Property - { - get => (string)this.Fields[(int)ComboBoxSymbolFields.Property]; - set => this.Set((int)ComboBoxSymbolFields.Property, value); - } - - public int Order - { - get => (int)this.Fields[(int)ComboBoxSymbolFields.Order]; - set => this.Set((int)ComboBoxSymbolFields.Order, value); - } - - public string Value - { - get => (string)this.Fields[(int)ComboBoxSymbolFields.Value]; - set => this.Set((int)ComboBoxSymbolFields.Value, value); - } - - public string Text - { - get => (string)this.Fields[(int)ComboBoxSymbolFields.Text]; - set => this.Set((int)ComboBoxSymbolFields.Text, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/CompLocatorTuple.cs b/src/WixToolset.Data/Tuples/CompLocatorTuple.cs deleted file mode 100644 index 9004859c..00000000 --- a/src/WixToolset.Data/Tuples/CompLocatorTuple.cs +++ /dev/null @@ -1,60 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition CompLocator = new IntermediateSymbolDefinition( - SymbolDefinitionType.CompLocator, - new[] - { - new IntermediateFieldDefinition(nameof(CompLocatorSymbolFields.SignatureRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(CompLocatorSymbolFields.ComponentId), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(CompLocatorSymbolFields.Type), IntermediateFieldType.Number), - }, - typeof(CompLocatorSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum CompLocatorSymbolFields - { - SignatureRef, - ComponentId, - Type, - } - - public class CompLocatorSymbol : IntermediateSymbol - { - public CompLocatorSymbol() : base(SymbolDefinitions.CompLocator, null, null) - { - } - - public CompLocatorSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.CompLocator, sourceLineNumber, id) - { - } - - public IntermediateField this[CompLocatorSymbolFields index] => this.Fields[(int)index]; - - public string SignatureRef - { - get => (string)this.Fields[(int)CompLocatorSymbolFields.SignatureRef]; - set => this.Set((int)CompLocatorSymbolFields.SignatureRef, value); - } - - public string ComponentId - { - get => (string)this.Fields[(int)CompLocatorSymbolFields.ComponentId]; - set => this.Set((int)CompLocatorSymbolFields.ComponentId, value); - } - - public LocatorType Type - { - get => (LocatorType)this.Fields[(int)CompLocatorSymbolFields.Type].AsNumber(); - set => this.Set((int)CompLocatorSymbolFields.Type, (int)value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/ComplusTuple.cs b/src/WixToolset.Data/Tuples/ComplusTuple.cs deleted file mode 100644 index fa16af86..00000000 --- a/src/WixToolset.Data/Tuples/ComplusTuple.cs +++ /dev/null @@ -1,52 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition Complus = new IntermediateSymbolDefinition( - SymbolDefinitionType.Complus, - new[] - { - new IntermediateFieldDefinition(nameof(ComplusSymbolFields.ComponentRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ComplusSymbolFields.ExpType), IntermediateFieldType.Number), - }, - typeof(ComplusSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum ComplusSymbolFields - { - ComponentRef, - ExpType, - } - - public class ComplusSymbol : IntermediateSymbol - { - public ComplusSymbol() : base(SymbolDefinitions.Complus, null, null) - { - } - - public ComplusSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Complus, sourceLineNumber, id) - { - } - - public IntermediateField this[ComplusSymbolFields index] => this.Fields[(int)index]; - - public string ComponentRef - { - get => (string)this.Fields[(int)ComplusSymbolFields.ComponentRef]; - set => this.Set((int)ComplusSymbolFields.ComponentRef, value); - } - - public int? ExpType - { - get => (int?)this.Fields[(int)ComplusSymbolFields.ExpType]; - set => this.Set((int)ComplusSymbolFields.ExpType, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/ComponentTuple.cs b/src/WixToolset.Data/Tuples/ComponentTuple.cs deleted file mode 100644 index 13d398b1..00000000 --- a/src/WixToolset.Data/Tuples/ComponentTuple.cs +++ /dev/null @@ -1,155 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition Component = new IntermediateSymbolDefinition( - SymbolDefinitionType.Component, - new[] - { - new IntermediateFieldDefinition(nameof(ComponentSymbolFields.ComponentId), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ComponentSymbolFields.DirectoryRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ComponentSymbolFields.Location), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(ComponentSymbolFields.DisableRegistryReflection), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(ComponentSymbolFields.NeverOverwrite), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(ComponentSymbolFields.Permanent), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(ComponentSymbolFields.SharedDllRefCount), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(ComponentSymbolFields.Shared), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(ComponentSymbolFields.Transitive), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(ComponentSymbolFields.UninstallWhenSuperseded), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(ComponentSymbolFields.Win64), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(ComponentSymbolFields.Condition), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ComponentSymbolFields.KeyPath), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ComponentSymbolFields.KeyPathType), IntermediateFieldType.Number), - }, - typeof(ComponentSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum ComponentSymbolFields - { - ComponentId, - DirectoryRef, - Location, - DisableRegistryReflection, - NeverOverwrite, - Permanent, - SharedDllRefCount, - Shared, - Transitive, - UninstallWhenSuperseded, - Win64, - Condition, - KeyPath, - KeyPathType, - } - - public enum ComponentLocation - { - LocalOnly, - SourceOnly, - Either - } - - public class ComponentSymbol : IntermediateSymbol - { - public ComponentSymbol() : base(SymbolDefinitions.Component, null, null) - { - } - - public ComponentSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Component, sourceLineNumber, id) - { - } - - public IntermediateField this[ComponentSymbolFields index] => this.Fields[(int)index]; - - public string ComponentId - { - get => (string)this.Fields[(int)ComponentSymbolFields.ComponentId]; - set => this.Set((int)ComponentSymbolFields.ComponentId, value); - } - - public string DirectoryRef - { - get => (string)this.Fields[(int)ComponentSymbolFields.DirectoryRef]; - set => this.Set((int)ComponentSymbolFields.DirectoryRef, value); - } - - public ComponentLocation Location - { - get => (ComponentLocation)this.Fields[(int)ComponentSymbolFields.Location].AsNumber(); - set => this.Set((int)ComponentSymbolFields.Location, (int)value); - } - - public bool DisableRegistryReflection - { - get => this.Fields[(int)ComponentSymbolFields.DisableRegistryReflection].AsBool(); - set => this.Set((int)ComponentSymbolFields.DisableRegistryReflection, value); - } - - public bool NeverOverwrite - { - get => this.Fields[(int)ComponentSymbolFields.NeverOverwrite].AsBool(); - set => this.Set((int)ComponentSymbolFields.NeverOverwrite, value); - } - - public bool Permanent - { - get => this.Fields[(int)ComponentSymbolFields.Permanent].AsBool(); - set => this.Set((int)ComponentSymbolFields.Permanent, value); - } - - public bool SharedDllRefCount - { - get => this.Fields[(int)ComponentSymbolFields.SharedDllRefCount].AsBool(); - set => this.Set((int)ComponentSymbolFields.SharedDllRefCount, value); - } - - public bool Shared - { - get => this.Fields[(int)ComponentSymbolFields.Shared].AsBool(); - set => this.Set((int)ComponentSymbolFields.Shared, value); - } - - public bool Transitive - { - get => this.Fields[(int)ComponentSymbolFields.Transitive].AsBool(); - set => this.Set((int)ComponentSymbolFields.Transitive, value); - } - - public bool UninstallWhenSuperseded - { - get => this.Fields[(int)ComponentSymbolFields.UninstallWhenSuperseded].AsBool(); - set => this.Set((int)ComponentSymbolFields.UninstallWhenSuperseded, value); - } - - public bool Win64 - { - get => this.Fields[(int)ComponentSymbolFields.Win64].AsBool(); - set => this.Set((int)ComponentSymbolFields.Win64, value); - } - - public string Condition - { - get => (string)this.Fields[(int)ComponentSymbolFields.Condition]; - set => this.Set((int)ComponentSymbolFields.Condition, value); - } - - public string KeyPath - { - get => (string)this.Fields[(int)ComponentSymbolFields.KeyPath]; - set => this.Set((int)ComponentSymbolFields.KeyPath, value); - } - - public ComponentKeyPathType KeyPathType - { - get => (ComponentKeyPathType)this.Fields[(int)ComponentSymbolFields.KeyPathType].AsNumber(); - set => this.Set((int)ComponentSymbolFields.KeyPathType, (int)value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/ConditionTuple.cs b/src/WixToolset.Data/Tuples/ConditionTuple.cs deleted file mode 100644 index 3a94ebb1..00000000 --- a/src/WixToolset.Data/Tuples/ConditionTuple.cs +++ /dev/null @@ -1,60 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition Condition = new IntermediateSymbolDefinition( - SymbolDefinitionType.Condition, - new[] - { - new IntermediateFieldDefinition(nameof(ConditionSymbolFields.FeatureRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ConditionSymbolFields.Level), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(ConditionSymbolFields.Condition), IntermediateFieldType.String), - }, - typeof(ConditionSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum ConditionSymbolFields - { - FeatureRef, - Level, - Condition, - } - - public class ConditionSymbol : IntermediateSymbol - { - public ConditionSymbol() : base(SymbolDefinitions.Condition, null, null) - { - } - - public ConditionSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Condition, sourceLineNumber, id) - { - } - - public IntermediateField this[ConditionSymbolFields index] => this.Fields[(int)index]; - - public string FeatureRef - { - get => (string)this.Fields[(int)ConditionSymbolFields.FeatureRef]; - set => this.Set((int)ConditionSymbolFields.FeatureRef, value); - } - - public int Level - { - get => (int)this.Fields[(int)ConditionSymbolFields.Level]; - set => this.Set((int)ConditionSymbolFields.Level, value); - } - - public string Condition - { - get => (string)this.Fields[(int)ConditionSymbolFields.Condition]; - set => this.Set((int)ConditionSymbolFields.Condition, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/ControlConditionTuple.cs b/src/WixToolset.Data/Tuples/ControlConditionTuple.cs deleted file mode 100644 index cc5f2d74..00000000 --- a/src/WixToolset.Data/Tuples/ControlConditionTuple.cs +++ /dev/null @@ -1,68 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition ControlCondition = new IntermediateSymbolDefinition( - SymbolDefinitionType.ControlCondition, - new[] - { - new IntermediateFieldDefinition(nameof(ControlConditionSymbolFields.DialogRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ControlConditionSymbolFields.ControlRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ControlConditionSymbolFields.Action), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ControlConditionSymbolFields.Condition), IntermediateFieldType.String), - }, - typeof(ControlConditionSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum ControlConditionSymbolFields - { - DialogRef, - ControlRef, - Action, - Condition, - } - - public class ControlConditionSymbol : IntermediateSymbol - { - public ControlConditionSymbol() : base(SymbolDefinitions.ControlCondition, null, null) - { - } - - public ControlConditionSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ControlCondition, sourceLineNumber, id) - { - } - - public IntermediateField this[ControlConditionSymbolFields index] => this.Fields[(int)index]; - - public string DialogRef - { - get => (string)this.Fields[(int)ControlConditionSymbolFields.DialogRef]; - set => this.Set((int)ControlConditionSymbolFields.DialogRef, value); - } - - public string ControlRef - { - get => (string)this.Fields[(int)ControlConditionSymbolFields.ControlRef]; - set => this.Set((int)ControlConditionSymbolFields.ControlRef, value); - } - - public string Action - { - get => (string)this.Fields[(int)ControlConditionSymbolFields.Action]; - set => this.Set((int)ControlConditionSymbolFields.Action, value); - } - - public string Condition - { - get => (string)this.Fields[(int)ControlConditionSymbolFields.Condition]; - set => this.Set((int)ControlConditionSymbolFields.Condition, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/ControlEventTuple.cs b/src/WixToolset.Data/Tuples/ControlEventTuple.cs deleted file mode 100644 index 3cf6da53..00000000 --- a/src/WixToolset.Data/Tuples/ControlEventTuple.cs +++ /dev/null @@ -1,84 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition ControlEvent = new IntermediateSymbolDefinition( - SymbolDefinitionType.ControlEvent, - new[] - { - new IntermediateFieldDefinition(nameof(ControlEventSymbolFields.DialogRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ControlEventSymbolFields.ControlRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ControlEventSymbolFields.Event), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ControlEventSymbolFields.Argument), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ControlEventSymbolFields.Condition), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ControlEventSymbolFields.Ordering), IntermediateFieldType.Number), - }, - typeof(ControlEventSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum ControlEventSymbolFields - { - DialogRef, - ControlRef, - Event, - Argument, - Condition, - Ordering, - } - - public class ControlEventSymbol : IntermediateSymbol - { - public ControlEventSymbol() : base(SymbolDefinitions.ControlEvent, null, null) - { - } - - public ControlEventSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ControlEvent, sourceLineNumber, id) - { - } - - public IntermediateField this[ControlEventSymbolFields index] => this.Fields[(int)index]; - - public string DialogRef - { - get => (string)this.Fields[(int)ControlEventSymbolFields.DialogRef]; - set => this.Set((int)ControlEventSymbolFields.DialogRef, value); - } - - public string ControlRef - { - get => (string)this.Fields[(int)ControlEventSymbolFields.ControlRef]; - set => this.Set((int)ControlEventSymbolFields.ControlRef, value); - } - - public string Event - { - get => (string)this.Fields[(int)ControlEventSymbolFields.Event]; - set => this.Set((int)ControlEventSymbolFields.Event, value); - } - - public string Argument - { - get => (string)this.Fields[(int)ControlEventSymbolFields.Argument]; - set => this.Set((int)ControlEventSymbolFields.Argument, value); - } - - public string Condition - { - get => (string)this.Fields[(int)ControlEventSymbolFields.Condition]; - set => this.Set((int)ControlEventSymbolFields.Condition, value); - } - - public int? Ordering - { - get => (int?)this.Fields[(int)ControlEventSymbolFields.Ordering]; - set => this.Set((int)ControlEventSymbolFields.Ordering, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/ControlTuple.cs b/src/WixToolset.Data/Tuples/ControlTuple.cs deleted file mode 100644 index 732566d5..00000000 --- a/src/WixToolset.Data/Tuples/ControlTuple.cs +++ /dev/null @@ -1,303 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition Control = new IntermediateSymbolDefinition( - SymbolDefinitionType.Control, - new[] - { - new IntermediateFieldDefinition(nameof(ControlSymbolFields.DialogRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ControlSymbolFields.Control), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ControlSymbolFields.Type), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ControlSymbolFields.X), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(ControlSymbolFields.Y), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(ControlSymbolFields.Width), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(ControlSymbolFields.Height), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(ControlSymbolFields.Attributes), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(ControlSymbolFields.Enabled), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(ControlSymbolFields.Indirect), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(ControlSymbolFields.Integer), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(ControlSymbolFields.LeftScroll), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(ControlSymbolFields.RightAligned), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(ControlSymbolFields.RightToLeft), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(ControlSymbolFields.Sunken), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(ControlSymbolFields.Visible), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(ControlSymbolFields.Property), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ControlSymbolFields.Text), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ControlSymbolFields.NextControlRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ControlSymbolFields.Help), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ControlSymbolFields.TrackDiskSpace), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(ControlSymbolFields.SourceFile), IntermediateFieldType.Path), - }, - typeof(ControlSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum ControlSymbolFields - { - DialogRef, - Control, - Type, - X, - Y, - Width, - Height, - Attributes, - Enabled, - Indirect, - Integer, - LeftScroll, - RightAligned, - RightToLeft, - Sunken, - Visible, - Property, - Text, - NextControlRef, - Help, - TrackDiskSpace, - SourceFile, - } - - public class ControlSymbol : IntermediateSymbol - { - public ControlSymbol() : base(SymbolDefinitions.Control, null, null) - { - } - - public ControlSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Control, sourceLineNumber, id) - { - } - - public IntermediateField this[ControlSymbolFields index] => this.Fields[(int)index]; - - public string DialogRef - { - get => (string)this.Fields[(int)ControlSymbolFields.DialogRef]; - set => this.Set((int)ControlSymbolFields.DialogRef, value); - } - - public string Control - { - get => (string)this.Fields[(int)ControlSymbolFields.Control]; - set => this.Set((int)ControlSymbolFields.Control, value); - } - - public string Type - { - get => (string)this.Fields[(int)ControlSymbolFields.Type]; - set => this.Set((int)ControlSymbolFields.Type, value); - } - - public int X - { - get => (int)this.Fields[(int)ControlSymbolFields.X]; - set => this.Set((int)ControlSymbolFields.X, value); - } - - public int Y - { - get => (int)this.Fields[(int)ControlSymbolFields.Y]; - set => this.Set((int)ControlSymbolFields.Y, value); - } - - public int Width - { - get => (int)this.Fields[(int)ControlSymbolFields.Width]; - set => this.Set((int)ControlSymbolFields.Width, value); - } - - public int Height - { - get => (int)this.Fields[(int)ControlSymbolFields.Height]; - set => this.Set((int)ControlSymbolFields.Height, value); - } - - public int? Attributes - { - get => (int?)this.Fields[(int)ControlSymbolFields.Attributes]; - set => this.Set((int)ControlSymbolFields.Attributes, value); - } - - public bool Enabled - { - get => this.Fields[(int)ControlSymbolFields.Enabled].AsBool(); - set => this.Set((int)ControlSymbolFields.Enabled, value); - } - - public bool Indirect - { - get => this.Fields[(int)ControlSymbolFields.Indirect].AsBool(); - set => this.Set((int)ControlSymbolFields.Indirect, value); - } - - public bool Integer - { - get => this.Fields[(int)ControlSymbolFields.Integer].AsBool(); - set => this.Set((int)ControlSymbolFields.Integer, value); - } - /* - /// PictureButton control - public bool Bitmap - { - get => this.Fields[(int)ControlSymbolFields.Bitmap].AsBool(); - set => this.Set((int)ControlSymbolFields.Bitmap, value); - } - - /// RadioButton control - public bool Border - { - get => this.Fields[(int)ControlSymbolFields.Border].AsBool(); - set => this.Set((int)ControlSymbolFields.Border, value); - } - - /// ListBox and ComboBox control - public bool ComboList - { - get => this.Fields[(int)ControlSymbolFields.ComboList].AsBool(); - set => this.Set((int)ControlSymbolFields.ComboList, value); - } - - /// PushButton control - public bool ElevationShield - { - get => this.Fields[(int)ControlSymbolFields.ElevationShield].AsBool(); - set => this.Set((int)ControlSymbolFields.ElevationShield, value); - } - - /// PictureButton control - public bool FixedSize - { - get => this.Fields[(int)ControlSymbolFields.FixedSize].AsBool(); - set => this.Set((int)ControlSymbolFields.FixedSize, value); - } - - /// PictureButton control - public bool Icon - { - get => this.Fields[(int)ControlSymbolFields.Icon].AsBool(); - set => this.Set((int)ControlSymbolFields.Icon, value); - } - - /// PictureButton control - public bool Icon16 - { - get => this.Fields[(int)ControlSymbolFields.Icon16].AsBool(); - set => this.Set((int)ControlSymbolFields.Icon16, value); - } - - /// PictureButton control - public bool Icon32 - { - get => this.Fields[(int)ControlSymbolFields.Icon32].AsBool(); - set => this.Set((int)ControlSymbolFields.Icon32, value); - } - - /// PictureButton control - public bool Icon48 - { - get => this.Fields[(int)ControlSymbolFields.Icon48].AsBool(); - set => this.Set((int)ControlSymbolFields.Icon48, value); - } - */ - public bool LeftScroll - { - get => this.Fields[(int)ControlSymbolFields.LeftScroll].AsBool(); - set => this.Set((int)ControlSymbolFields.LeftScroll, value); - } - /* - /// PictureButton control - public bool PushLike - { - get => this.Fields[(int)ControlSymbolFields.PushLike].AsBool(); - set => this.Set((int)ControlSymbolFields.PushLike, value); - } - - /// Edit control - public bool Mulitline - { - get => this.Fields[(int)ControlSymbolFields.Mulitline].AsBool(); - set => this.Set((int)ControlSymbolFields.Mulitline, value); - } - */ - public bool RightAligned - { - get => this.Fields[(int)ControlSymbolFields.RightAligned].AsBool(); - set => this.Set((int)ControlSymbolFields.RightAligned, value); - } - - public bool RightToLeft - { - get => this.Fields[(int)ControlSymbolFields.RightToLeft].AsBool(); - set => this.Set((int)ControlSymbolFields.RightToLeft, value); - } - /* - /// VolumeCostList control - public bool ShowRollbackCost - { - get => this.Fields[(int)ControlSymbolFields.ShowRollbackCost].AsBool(); - set => this.Set((int)ControlSymbolFields.ShowRollbackCost, value); - } - - /// ListBox and ComboBox control - public bool Sorted - { - get => this.Fields[(int)ControlSymbolFields.Sorted].AsBool(); - set => this.Set((int)ControlSymbolFields.Sorted, value); - } - */ - public bool Sunken - { - get => this.Fields[(int)ControlSymbolFields.Sunken].AsBool(); - set => this.Set((int)ControlSymbolFields.Sunken, value); - } - - public bool Visible - { - get => this.Fields[(int)ControlSymbolFields.Visible].AsBool(); - set => this.Set((int)ControlSymbolFields.Visible, value); - } - - public string Property - { - get => (string)this.Fields[(int)ControlSymbolFields.Property]; - set => this.Set((int)ControlSymbolFields.Property, value); - } - - public string Text - { - get => (string)this.Fields[(int)ControlSymbolFields.Text]; - set => this.Set((int)ControlSymbolFields.Text, value); - } - - public string NextControlRef - { - get => (string)this.Fields[(int)ControlSymbolFields.NextControlRef]; - set => this.Set((int)ControlSymbolFields.NextControlRef, value); - } - - public string Help - { - get => (string)this.Fields[(int)ControlSymbolFields.Help]; - set => this.Set((int)ControlSymbolFields.Help, value); - } - - public bool TrackDiskSpace - { - get => this.Fields[(int)ControlSymbolFields.TrackDiskSpace].AsBool(); - set => this.Set((int)ControlSymbolFields.TrackDiskSpace, value); - } - - public IntermediateFieldPathValue SourceFile - { - get => this.Fields[(int)ControlSymbolFields.SourceFile].AsPath(); - set => this.Set((int)ControlSymbolFields.SourceFile, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/CreateFolderTuple.cs b/src/WixToolset.Data/Tuples/CreateFolderTuple.cs deleted file mode 100644 index 2b282266..00000000 --- a/src/WixToolset.Data/Tuples/CreateFolderTuple.cs +++ /dev/null @@ -1,52 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition CreateFolder = new IntermediateSymbolDefinition( - SymbolDefinitionType.CreateFolder, - new[] - { - new IntermediateFieldDefinition(nameof(CreateFolderSymbolFields.DirectoryRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(CreateFolderSymbolFields.ComponentRef), IntermediateFieldType.String), - }, - typeof(CreateFolderSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum CreateFolderSymbolFields - { - DirectoryRef, - ComponentRef, - } - - public class CreateFolderSymbol : IntermediateSymbol - { - public CreateFolderSymbol() : base(SymbolDefinitions.CreateFolder, null, null) - { - } - - public CreateFolderSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.CreateFolder, sourceLineNumber, id) - { - } - - public IntermediateField this[CreateFolderSymbolFields index] => this.Fields[(int)index]; - - public string DirectoryRef - { - get => (string)this.Fields[(int)CreateFolderSymbolFields.DirectoryRef]; - set => this.Set((int)CreateFolderSymbolFields.DirectoryRef, value); - } - - public string ComponentRef - { - get => (string)this.Fields[(int)CreateFolderSymbolFields.ComponentRef]; - set => this.Set((int)CreateFolderSymbolFields.ComponentRef, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/CustomActionTuple.cs b/src/WixToolset.Data/Tuples/CustomActionTuple.cs deleted file mode 100644 index 1180dab4..00000000 --- a/src/WixToolset.Data/Tuples/CustomActionTuple.cs +++ /dev/null @@ -1,168 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition CustomAction = new IntermediateSymbolDefinition( - SymbolDefinitionType.CustomAction, - new[] - { - new IntermediateFieldDefinition(nameof(CustomActionSymbolFields.ExecutionType), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(CustomActionSymbolFields.Source), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(CustomActionSymbolFields.SourceType), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(CustomActionSymbolFields.Target), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(CustomActionSymbolFields.TargetType), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(CustomActionSymbolFields.Async), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(CustomActionSymbolFields.Hidden), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(CustomActionSymbolFields.IgnoreResult), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(CustomActionSymbolFields.Impersonate), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(CustomActionSymbolFields.PatchUninstall), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(CustomActionSymbolFields.TSAware), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(CustomActionSymbolFields.Win64), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(CustomActionSymbolFields.ScriptFile), IntermediateFieldType.Path), - }, - typeof(CustomActionSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum CustomActionSymbolFields - { - ExecutionType, - Source, - SourceType, - Target, - TargetType, - Async, - Hidden, - IgnoreResult, - Impersonate, - PatchUninstall, - TSAware, - Win64, - ScriptFile - } - - public enum CustomActionExecutionType - { - Immediate, - FirstSequence = 256, - OncePerProcess = 512, - ClientRepeat = 768, - Deferred = 1024, - Rollback = 1280, - Commit = 1536, - } - - public enum CustomActionSourceType - { - Binary, - File = 0x10, - Directory = 0x20, - Property = 0x30, - } - - public enum CustomActionTargetType - { - Dll = 1, - Exe = 2, - TextData = 3, - JScript = 5, - VBScript = 6, - } - - public class CustomActionSymbol : IntermediateSymbol - { - public CustomActionSymbol() : base(SymbolDefinitions.CustomAction, null, null) - { - } - - public CustomActionSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.CustomAction, sourceLineNumber, id) - { - } - - public IntermediateField this[CustomActionSymbolFields index] => this.Fields[(int)index]; - - public CustomActionExecutionType ExecutionType - { - get => (CustomActionExecutionType)this.Fields[(int)CustomActionSymbolFields.ExecutionType].AsNumber(); - set => this.Set((int)CustomActionSymbolFields.ExecutionType, (int)value); - } - - public string Source - { - get => (string)this.Fields[(int)CustomActionSymbolFields.Source]; - set => this.Set((int)CustomActionSymbolFields.Source, value); - } - - public CustomActionSourceType SourceType - { - get => (CustomActionSourceType)this.Fields[(int)CustomActionSymbolFields.SourceType].AsNumber(); - set => this.Set((int)CustomActionSymbolFields.SourceType, (int)value); - } - - public string Target - { - get => (string)this.Fields[(int)CustomActionSymbolFields.Target]; - set => this.Set((int)CustomActionSymbolFields.Target, value); - } - - public CustomActionTargetType TargetType - { - get => (CustomActionTargetType)this.Fields[(int)CustomActionSymbolFields.TargetType].AsNumber(); - set => this.Set((int)CustomActionSymbolFields.TargetType, (int)value); - } - - public bool Async - { - get => this.Fields[(int)CustomActionSymbolFields.Async].AsBool(); - set => this.Set((int)CustomActionSymbolFields.Async, value); - } - - public bool Hidden - { - get => this.Fields[(int)CustomActionSymbolFields.Hidden].AsBool(); - set => this.Set((int)CustomActionSymbolFields.Hidden, value); - } - - public bool IgnoreResult - { - get => this.Fields[(int)CustomActionSymbolFields.IgnoreResult].AsBool(); - set => this.Set((int)CustomActionSymbolFields.IgnoreResult, value); - } - - public bool Impersonate - { - get => this.Fields[(int)CustomActionSymbolFields.Impersonate].AsBool(); - set => this.Set((int)CustomActionSymbolFields.Impersonate, value); - } - - public bool PatchUninstall - { - get => this.Fields[(int)CustomActionSymbolFields.PatchUninstall].AsBool(); - set => this.Set((int)CustomActionSymbolFields.PatchUninstall, value); - } - - public bool TSAware - { - get => this.Fields[(int)CustomActionSymbolFields.TSAware].AsBool(); - set => this.Set((int)CustomActionSymbolFields.TSAware, value); - } - - public bool Win64 - { - get => this.Fields[(int)CustomActionSymbolFields.Win64].AsBool(); - set => this.Set((int)CustomActionSymbolFields.Win64, value); - } - - public IntermediateFieldPathValue ScriptFile - { - get => this.Fields[(int)CustomActionSymbolFields.ScriptFile].AsPath(); - set => this.Set((int)CustomActionSymbolFields.ScriptFile, value); - } - } -} diff --git a/src/WixToolset.Data/Tuples/DialogTuple.cs b/src/WixToolset.Data/Tuples/DialogTuple.cs deleted file mode 100644 index ee030405..00000000 --- a/src/WixToolset.Data/Tuples/DialogTuple.cs +++ /dev/null @@ -1,188 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition Dialog = new IntermediateSymbolDefinition( - SymbolDefinitionType.Dialog, - new[] - { - new IntermediateFieldDefinition(nameof(DialogSymbolFields.HCentering), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(DialogSymbolFields.VCentering), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(DialogSymbolFields.Width), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(DialogSymbolFields.Height), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(DialogSymbolFields.CustomPalette), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(DialogSymbolFields.ErrorDialog), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(DialogSymbolFields.Visible), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(DialogSymbolFields.Modal), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(DialogSymbolFields.KeepModeless), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(DialogSymbolFields.LeftScroll), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(DialogSymbolFields.Minimize), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(DialogSymbolFields.RightAligned), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(DialogSymbolFields.RightToLeft), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(DialogSymbolFields.SystemModal), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(DialogSymbolFields.TrackDiskSpace), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(DialogSymbolFields.Title), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(DialogSymbolFields.FirstControlRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(DialogSymbolFields.DefaultControlRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(DialogSymbolFields.CancelControlRef), IntermediateFieldType.String), - }, - typeof(DialogSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum DialogSymbolFields - { - HCentering, - VCentering, - Width, - Height, - CustomPalette, - ErrorDialog, - Visible, - Modal, - KeepModeless, - LeftScroll, - Minimize, - RightAligned, - RightToLeft, - SystemModal, - TrackDiskSpace, - Title, - FirstControlRef, - DefaultControlRef, - CancelControlRef, - } - - public class DialogSymbol : IntermediateSymbol - { - public DialogSymbol() : base(SymbolDefinitions.Dialog, null, null) - { - } - - public DialogSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Dialog, sourceLineNumber, id) - { - } - - public IntermediateField this[DialogSymbolFields index] => this.Fields[(int)index]; - - public int HCentering - { - get => (int)this.Fields[(int)DialogSymbolFields.HCentering]; - set => this.Set((int)DialogSymbolFields.HCentering, value); - } - - public int VCentering - { - get => (int)this.Fields[(int)DialogSymbolFields.VCentering]; - set => this.Set((int)DialogSymbolFields.VCentering, value); - } - - public int Width - { - get => (int)this.Fields[(int)DialogSymbolFields.Width]; - set => this.Set((int)DialogSymbolFields.Width, value); - } - - public int Height - { - get => (int)this.Fields[(int)DialogSymbolFields.Height]; - set => this.Set((int)DialogSymbolFields.Height, value); - } - - public bool CustomPalette - { - get => this.Fields[(int)DialogSymbolFields.CustomPalette].AsBool(); - set => this.Set((int)DialogSymbolFields.CustomPalette, value); - } - - public bool ErrorDialog - { - get => this.Fields[(int)DialogSymbolFields.ErrorDialog].AsBool(); - set => this.Set((int)DialogSymbolFields.ErrorDialog, value); - } - - public bool Visible - { - get => this.Fields[(int)DialogSymbolFields.Visible].AsBool(); - set => this.Set((int)DialogSymbolFields.Visible, value); - } - - public bool Modal - { - get => this.Fields[(int)DialogSymbolFields.Modal].AsBool(); - set => this.Set((int)DialogSymbolFields.Modal, value); - } - - public bool KeepModeless - { - get => this.Fields[(int)DialogSymbolFields.KeepModeless].AsBool(); - set => this.Set((int)DialogSymbolFields.KeepModeless, value); - } - - public bool LeftScroll - { - get => this.Fields[(int)DialogSymbolFields.LeftScroll].AsBool(); - set => this.Set((int)DialogSymbolFields.LeftScroll, value); - } - - public bool Minimize - { - get => this.Fields[(int)DialogSymbolFields.Minimize].AsBool(); - set => this.Set((int)DialogSymbolFields.Minimize, value); - } - - public bool RightAligned - { - get => this.Fields[(int)DialogSymbolFields.RightAligned].AsBool(); - set => this.Set((int)DialogSymbolFields.RightAligned, value); - } - - public bool RightToLeft - { - get => this.Fields[(int)DialogSymbolFields.RightToLeft].AsBool(); - set => this.Set((int)DialogSymbolFields.RightToLeft, value); - } - - public bool TrackDiskSpace - { - get => this.Fields[(int)DialogSymbolFields.TrackDiskSpace].AsBool(); - set => this.Set((int)DialogSymbolFields.TrackDiskSpace, value); - } - - public bool SystemModal - { - get => this.Fields[(int)DialogSymbolFields.SystemModal].AsBool(); - set => this.Set((int)DialogSymbolFields.SystemModal, value); - } - - public string Title - { - get => (string)this.Fields[(int)DialogSymbolFields.Title]; - set => this.Set((int)DialogSymbolFields.Title, value); - } - - public string FirstControlRef - { - get => (string)this.Fields[(int)DialogSymbolFields.FirstControlRef]; - set => this.Set((int)DialogSymbolFields.FirstControlRef, value); - } - - public string DefaultControlRef - { - get => (string)this.Fields[(int)DialogSymbolFields.DefaultControlRef]; - set => this.Set((int)DialogSymbolFields.DefaultControlRef, value); - } - - public string CancelControlRef - { - get => (string)this.Fields[(int)DialogSymbolFields.CancelControlRef]; - set => this.Set((int)DialogSymbolFields.CancelControlRef, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/DirectoryTuple.cs b/src/WixToolset.Data/Tuples/DirectoryTuple.cs deleted file mode 100644 index 209f5ca1..00000000 --- a/src/WixToolset.Data/Tuples/DirectoryTuple.cs +++ /dev/null @@ -1,84 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition Directory = new IntermediateSymbolDefinition( - SymbolDefinitionType.Directory, - new[] - { - new IntermediateFieldDefinition(nameof(DirectorySymbolFields.ParentDirectoryRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(DirectorySymbolFields.Name), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(DirectorySymbolFields.ShortName), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(DirectorySymbolFields.SourceName), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(DirectorySymbolFields.SourceShortName), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(DirectorySymbolFields.ComponentGuidGenerationSeed), IntermediateFieldType.String), - }, - typeof(DirectorySymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum DirectorySymbolFields - { - ParentDirectoryRef, - Name, - ShortName, - SourceName, - SourceShortName, - ComponentGuidGenerationSeed, - } - - public class DirectorySymbol : IntermediateSymbol - { - public DirectorySymbol() : base(SymbolDefinitions.Directory, null, null) - { - } - - public DirectorySymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Directory, sourceLineNumber, id) - { - } - - public IntermediateField this[DirectorySymbolFields index] => this.Fields[(int)index]; - - public string ParentDirectoryRef - { - get => (string)this.Fields[(int)DirectorySymbolFields.ParentDirectoryRef]; - set => this.Set((int)DirectorySymbolFields.ParentDirectoryRef, value); - } - - public string Name - { - get => (string)this.Fields[(int)DirectorySymbolFields.Name]; - set => this.Set((int)DirectorySymbolFields.Name, value); - } - - public string ShortName - { - get => (string)this.Fields[(int)DirectorySymbolFields.ShortName]; - set => this.Set((int)DirectorySymbolFields.ShortName, value); - } - - public string SourceName - { - get => (string)this.Fields[(int)DirectorySymbolFields.SourceName]; - set => this.Set((int)DirectorySymbolFields.SourceName, value); - } - - public string SourceShortName - { - get => (string)this.Fields[(int)DirectorySymbolFields.SourceShortName]; - set => this.Set((int)DirectorySymbolFields.SourceShortName, value); - } - - public string ComponentGuidGenerationSeed - { - get => (string)this.Fields[(int)DirectorySymbolFields.ComponentGuidGenerationSeed]; - set => this.Set((int)DirectorySymbolFields.ComponentGuidGenerationSeed, value); - } - } -} diff --git a/src/WixToolset.Data/Tuples/DrLocatorTuple.cs b/src/WixToolset.Data/Tuples/DrLocatorTuple.cs deleted file mode 100644 index e403c61c..00000000 --- a/src/WixToolset.Data/Tuples/DrLocatorTuple.cs +++ /dev/null @@ -1,68 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition DrLocator = new IntermediateSymbolDefinition( - SymbolDefinitionType.DrLocator, - new[] - { - new IntermediateFieldDefinition(nameof(DrLocatorSymbolFields.SignatureRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(DrLocatorSymbolFields.Parent), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(DrLocatorSymbolFields.Path), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(DrLocatorSymbolFields.Depth), IntermediateFieldType.Number), - }, - typeof(DrLocatorSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum DrLocatorSymbolFields - { - SignatureRef, - Parent, - Path, - Depth, - } - - public class DrLocatorSymbol : IntermediateSymbol - { - public DrLocatorSymbol() : base(SymbolDefinitions.DrLocator, null, null) - { - } - - public DrLocatorSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.DrLocator, sourceLineNumber, id) - { - } - - public IntermediateField this[DrLocatorSymbolFields index] => this.Fields[(int)index]; - - public string SignatureRef - { - get => (string)this.Fields[(int)DrLocatorSymbolFields.SignatureRef]; - set => this.Set((int)DrLocatorSymbolFields.SignatureRef, value); - } - - public string Parent - { - get => (string)this.Fields[(int)DrLocatorSymbolFields.Parent]; - set => this.Set((int)DrLocatorSymbolFields.Parent, value); - } - - public string Path - { - get => (string)this.Fields[(int)DrLocatorSymbolFields.Path]; - set => this.Set((int)DrLocatorSymbolFields.Path, value); - } - - public int? Depth - { - get => (int?)this.Fields[(int)DrLocatorSymbolFields.Depth]; - set => this.Set((int)DrLocatorSymbolFields.Depth, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/DuplicateFileTuple.cs b/src/WixToolset.Data/Tuples/DuplicateFileTuple.cs deleted file mode 100644 index 1344ced4..00000000 --- a/src/WixToolset.Data/Tuples/DuplicateFileTuple.cs +++ /dev/null @@ -1,68 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition DuplicateFile = new IntermediateSymbolDefinition( - SymbolDefinitionType.DuplicateFile, - new[] - { - new IntermediateFieldDefinition(nameof(DuplicateFileSymbolFields.ComponentRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(DuplicateFileSymbolFields.FileRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(DuplicateFileSymbolFields.DestinationName), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(DuplicateFileSymbolFields.DestinationFolder), IntermediateFieldType.String), - }, - typeof(DuplicateFileSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum DuplicateFileSymbolFields - { - ComponentRef, - FileRef, - DestinationName, - DestinationFolder, - } - - public class DuplicateFileSymbol : IntermediateSymbol - { - public DuplicateFileSymbol() : base(SymbolDefinitions.DuplicateFile, null, null) - { - } - - public DuplicateFileSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.DuplicateFile, sourceLineNumber, id) - { - } - - public IntermediateField this[DuplicateFileSymbolFields index] => this.Fields[(int)index]; - - public string ComponentRef - { - get => (string)this.Fields[(int)DuplicateFileSymbolFields.ComponentRef]; - set => this.Set((int)DuplicateFileSymbolFields.ComponentRef, value); - } - - public string FileRef - { - get => (string)this.Fields[(int)DuplicateFileSymbolFields.FileRef]; - set => this.Set((int)DuplicateFileSymbolFields.FileRef, value); - } - - public string DestinationName - { - get => (string)this.Fields[(int)DuplicateFileSymbolFields.DestinationName]; - set => this.Set((int)DuplicateFileSymbolFields.DestinationName, value); - } - - public string DestinationFolder - { - get => (string)this.Fields[(int)DuplicateFileSymbolFields.DestinationFolder]; - set => this.Set((int)DuplicateFileSymbolFields.DestinationFolder, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/EnvironmentTuple.cs b/src/WixToolset.Data/Tuples/EnvironmentTuple.cs deleted file mode 100644 index 3fe12d4b..00000000 --- a/src/WixToolset.Data/Tuples/EnvironmentTuple.cs +++ /dev/null @@ -1,114 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition Environment = new IntermediateSymbolDefinition( - SymbolDefinitionType.Environment, - new[] - { - new IntermediateFieldDefinition(nameof(EnvironmentSymbolFields.Name), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(EnvironmentSymbolFields.Value), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(EnvironmentSymbolFields.Separator), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(EnvironmentSymbolFields.Action), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(EnvironmentSymbolFields.Part), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(EnvironmentSymbolFields.Permanent), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(EnvironmentSymbolFields.System), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(EnvironmentSymbolFields.ComponentRef), IntermediateFieldType.String), - }, - typeof(EnvironmentSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum EnvironmentSymbolFields - { - Name, - Value, - Separator, - Action, - Part, - Permanent, - System, - ComponentRef, - } - - public enum EnvironmentActionType - { - Set, - Create, - Remove - } - - public enum EnvironmentPartType - { - All, - First, - Last - } - - public class EnvironmentSymbol : IntermediateSymbol - { - public EnvironmentSymbol() : base(SymbolDefinitions.Environment, null, null) - { - } - - public EnvironmentSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Environment, sourceLineNumber, id) - { - } - - public IntermediateField this[EnvironmentSymbolFields index] => this.Fields[(int)index]; - - public string Name - { - get => (string)this.Fields[(int)EnvironmentSymbolFields.Name]; - set => this.Set((int)EnvironmentSymbolFields.Name, value); - } - - public string Value - { - get => (string)this.Fields[(int)EnvironmentSymbolFields.Value]; - set => this.Set((int)EnvironmentSymbolFields.Value, value); - } - - public string Separator - { - get => (string)this.Fields[(int)EnvironmentSymbolFields.Separator]; - set => this.Set((int)EnvironmentSymbolFields.Separator, value); - } - - public EnvironmentActionType? Action - { - get => (EnvironmentActionType?)this.Fields[(int)EnvironmentSymbolFields.Action].AsNullableNumber(); - set => this.Set((int)EnvironmentSymbolFields.Action, (int?)value); - } - - public EnvironmentPartType? Part - { - get => (EnvironmentPartType?)this.Fields[(int)EnvironmentSymbolFields.Part].AsNullableNumber(); - set => this.Set((int)EnvironmentSymbolFields.Part, (int?)value); - } - - public bool Permanent - { - get => this.Fields[(int)EnvironmentSymbolFields.Permanent].AsBool(); - set => this.Set((int)EnvironmentSymbolFields.Permanent, value); - } - - public bool System - { - get => this.Fields[(int)EnvironmentSymbolFields.System].AsBool(); - set => this.Set((int)EnvironmentSymbolFields.System, value); - } - - public string ComponentRef - { - get => (string)this.Fields[(int)EnvironmentSymbolFields.ComponentRef]; - set => this.Set((int)EnvironmentSymbolFields.ComponentRef, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/ErrorTuple.cs b/src/WixToolset.Data/Tuples/ErrorTuple.cs deleted file mode 100644 index d2994598..00000000 --- a/src/WixToolset.Data/Tuples/ErrorTuple.cs +++ /dev/null @@ -1,44 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition Error = new IntermediateSymbolDefinition( - SymbolDefinitionType.Error, - new[] - { - new IntermediateFieldDefinition(nameof(ErrorSymbolFields.Message), IntermediateFieldType.String), - }, - typeof(ErrorSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum ErrorSymbolFields - { - Message, - } - - public class ErrorSymbol : IntermediateSymbol - { - public ErrorSymbol() : base(SymbolDefinitions.Error, null, null) - { - } - - public ErrorSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Error, sourceLineNumber, id) - { - } - - public IntermediateField this[ErrorSymbolFields index] => this.Fields[(int)index]; - - public string Message - { - get => (string)this.Fields[(int)ErrorSymbolFields.Message]; - set => this.Set((int)ErrorSymbolFields.Message, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/EventMappingTuple.cs b/src/WixToolset.Data/Tuples/EventMappingTuple.cs deleted file mode 100644 index fec7be3b..00000000 --- a/src/WixToolset.Data/Tuples/EventMappingTuple.cs +++ /dev/null @@ -1,68 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition EventMapping = new IntermediateSymbolDefinition( - SymbolDefinitionType.EventMapping, - new[] - { - new IntermediateFieldDefinition(nameof(EventMappingSymbolFields.DialogRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(EventMappingSymbolFields.ControlRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(EventMappingSymbolFields.Event), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(EventMappingSymbolFields.Attribute), IntermediateFieldType.String), - }, - typeof(EventMappingSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum EventMappingSymbolFields - { - DialogRef, - ControlRef, - Event, - Attribute, - } - - public class EventMappingSymbol : IntermediateSymbol - { - public EventMappingSymbol() : base(SymbolDefinitions.EventMapping, null, null) - { - } - - public EventMappingSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.EventMapping, sourceLineNumber, id) - { - } - - public IntermediateField this[EventMappingSymbolFields index] => this.Fields[(int)index]; - - public string DialogRef - { - get => (string)this.Fields[(int)EventMappingSymbolFields.DialogRef]; - set => this.Set((int)EventMappingSymbolFields.DialogRef, value); - } - - public string ControlRef - { - get => (string)this.Fields[(int)EventMappingSymbolFields.ControlRef]; - set => this.Set((int)EventMappingSymbolFields.ControlRef, value); - } - - public string Event - { - get => (string)this.Fields[(int)EventMappingSymbolFields.Event]; - set => this.Set((int)EventMappingSymbolFields.Event, value); - } - - public string Attribute - { - get => (string)this.Fields[(int)EventMappingSymbolFields.Attribute]; - set => this.Set((int)EventMappingSymbolFields.Attribute, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/ExtensionTuple.cs b/src/WixToolset.Data/Tuples/ExtensionTuple.cs deleted file mode 100644 index b8806971..00000000 --- a/src/WixToolset.Data/Tuples/ExtensionTuple.cs +++ /dev/null @@ -1,76 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition Extension = new IntermediateSymbolDefinition( - SymbolDefinitionType.Extension, - new[] - { - new IntermediateFieldDefinition(nameof(ExtensionSymbolFields.Extension), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ExtensionSymbolFields.ComponentRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ExtensionSymbolFields.ProgIdRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ExtensionSymbolFields.MimeRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ExtensionSymbolFields.FeatureRef), IntermediateFieldType.String), - }, - typeof(ExtensionSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum ExtensionSymbolFields - { - Extension, - ComponentRef, - ProgIdRef, - MimeRef, - FeatureRef, - } - - public class ExtensionSymbol : IntermediateSymbol - { - public ExtensionSymbol() : base(SymbolDefinitions.Extension, null, null) - { - } - - public ExtensionSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Extension, sourceLineNumber, id) - { - } - - public IntermediateField this[ExtensionSymbolFields index] => this.Fields[(int)index]; - - public string Extension - { - get => (string)this.Fields[(int)ExtensionSymbolFields.Extension]; - set => this.Set((int)ExtensionSymbolFields.Extension, value); - } - - public string ComponentRef - { - get => (string)this.Fields[(int)ExtensionSymbolFields.ComponentRef]; - set => this.Set((int)ExtensionSymbolFields.ComponentRef, value); - } - - public string ProgIdRef - { - get => (string)this.Fields[(int)ExtensionSymbolFields.ProgIdRef]; - set => this.Set((int)ExtensionSymbolFields.ProgIdRef, value); - } - - public string MimeRef - { - get => (string)this.Fields[(int)ExtensionSymbolFields.MimeRef]; - set => this.Set((int)ExtensionSymbolFields.MimeRef, value); - } - - public string FeatureRef - { - get => (string)this.Fields[(int)ExtensionSymbolFields.FeatureRef]; - set => this.Set((int)ExtensionSymbolFields.FeatureRef, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/ExternalFilesTuple.cs b/src/WixToolset.Data/Tuples/ExternalFilesTuple.cs deleted file mode 100644 index 87888f0b..00000000 --- a/src/WixToolset.Data/Tuples/ExternalFilesTuple.cs +++ /dev/null @@ -1,100 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition ExternalFiles = new IntermediateSymbolDefinition( - SymbolDefinitionType.ExternalFiles, - new[] - { - new IntermediateFieldDefinition(nameof(ExternalFilesSymbolFields.Family), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ExternalFilesSymbolFields.FTK), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ExternalFilesSymbolFields.FilePath), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ExternalFilesSymbolFields.SymbolPaths), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ExternalFilesSymbolFields.IgnoreOffsets), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ExternalFilesSymbolFields.IgnoreLengths), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ExternalFilesSymbolFields.RetainOffsets), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ExternalFilesSymbolFields.Order), IntermediateFieldType.Number), - }, - typeof(ExternalFilesSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum ExternalFilesSymbolFields - { - Family, - FTK, - FilePath, - SymbolPaths, - IgnoreOffsets, - IgnoreLengths, - RetainOffsets, - Order, - } - - public class ExternalFilesSymbol : IntermediateSymbol - { - public ExternalFilesSymbol() : base(SymbolDefinitions.ExternalFiles, null, null) - { - } - - public ExternalFilesSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ExternalFiles, sourceLineNumber, id) - { - } - - public IntermediateField this[ExternalFilesSymbolFields index] => this.Fields[(int)index]; - - public string Family - { - get => (string)this.Fields[(int)ExternalFilesSymbolFields.Family]; - set => this.Set((int)ExternalFilesSymbolFields.Family, value); - } - - public string FTK - { - get => (string)this.Fields[(int)ExternalFilesSymbolFields.FTK]; - set => this.Set((int)ExternalFilesSymbolFields.FTK, value); - } - - public string FilePath - { - get => (string)this.Fields[(int)ExternalFilesSymbolFields.FilePath]; - set => this.Set((int)ExternalFilesSymbolFields.FilePath, value); - } - - public string SymbolPaths - { - get => (string)this.Fields[(int)ExternalFilesSymbolFields.SymbolPaths]; - set => this.Set((int)ExternalFilesSymbolFields.SymbolPaths, value); - } - - public string IgnoreOffsets - { - get => (string)this.Fields[(int)ExternalFilesSymbolFields.IgnoreOffsets]; - set => this.Set((int)ExternalFilesSymbolFields.IgnoreOffsets, value); - } - - public string IgnoreLengths - { - get => (string)this.Fields[(int)ExternalFilesSymbolFields.IgnoreLengths]; - set => this.Set((int)ExternalFilesSymbolFields.IgnoreLengths, value); - } - - public string RetainOffsets - { - get => (string)this.Fields[(int)ExternalFilesSymbolFields.RetainOffsets]; - set => this.Set((int)ExternalFilesSymbolFields.RetainOffsets, value); - } - - public int Order - { - get => (int)this.Fields[(int)ExternalFilesSymbolFields.Order]; - set => this.Set((int)ExternalFilesSymbolFields.Order, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/FamilyFileRangesTuple.cs b/src/WixToolset.Data/Tuples/FamilyFileRangesTuple.cs deleted file mode 100644 index 84cd5b4b..00000000 --- a/src/WixToolset.Data/Tuples/FamilyFileRangesTuple.cs +++ /dev/null @@ -1,68 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition FamilyFileRanges = new IntermediateSymbolDefinition( - SymbolDefinitionType.FamilyFileRanges, - new[] - { - new IntermediateFieldDefinition(nameof(FamilyFileRangesSymbolFields.Family), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(FamilyFileRangesSymbolFields.FTK), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(FamilyFileRangesSymbolFields.RetainOffsets), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(FamilyFileRangesSymbolFields.RetainLengths), IntermediateFieldType.String), - }, - typeof(FamilyFileRangesSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum FamilyFileRangesSymbolFields - { - Family, - FTK, - RetainOffsets, - RetainLengths, - } - - public class FamilyFileRangesSymbol : IntermediateSymbol - { - public FamilyFileRangesSymbol() : base(SymbolDefinitions.FamilyFileRanges, null, null) - { - } - - public FamilyFileRangesSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.FamilyFileRanges, sourceLineNumber, id) - { - } - - public IntermediateField this[FamilyFileRangesSymbolFields index] => this.Fields[(int)index]; - - public string Family - { - get => (string)this.Fields[(int)FamilyFileRangesSymbolFields.Family]; - set => this.Set((int)FamilyFileRangesSymbolFields.Family, value); - } - - public string FTK - { - get => (string)this.Fields[(int)FamilyFileRangesSymbolFields.FTK]; - set => this.Set((int)FamilyFileRangesSymbolFields.FTK, value); - } - - public string RetainOffsets - { - get => (string)this.Fields[(int)FamilyFileRangesSymbolFields.RetainOffsets]; - set => this.Set((int)FamilyFileRangesSymbolFields.RetainOffsets, value); - } - - public string RetainLengths - { - get => (string)this.Fields[(int)FamilyFileRangesSymbolFields.RetainLengths]; - set => this.Set((int)FamilyFileRangesSymbolFields.RetainLengths, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/FeatureComponentsTuple.cs b/src/WixToolset.Data/Tuples/FeatureComponentsTuple.cs deleted file mode 100644 index af51daed..00000000 --- a/src/WixToolset.Data/Tuples/FeatureComponentsTuple.cs +++ /dev/null @@ -1,52 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition FeatureComponents = new IntermediateSymbolDefinition( - SymbolDefinitionType.FeatureComponents, - new[] - { - new IntermediateFieldDefinition(nameof(FeatureComponentsSymbolFields.FeatureRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(FeatureComponentsSymbolFields.ComponentRef), IntermediateFieldType.String), - }, - typeof(FeatureComponentsSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum FeatureComponentsSymbolFields - { - FeatureRef, - ComponentRef, - } - - public class FeatureComponentsSymbol : IntermediateSymbol - { - public FeatureComponentsSymbol() : base(SymbolDefinitions.FeatureComponents, null, null) - { - } - - public FeatureComponentsSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.FeatureComponents, sourceLineNumber, id) - { - } - - public IntermediateField this[FeatureComponentsSymbolFields index] => this.Fields[(int)index]; - - public string FeatureRef - { - get => (string)this.Fields[(int)FeatureComponentsSymbolFields.FeatureRef]; - set => this.Set((int)FeatureComponentsSymbolFields.FeatureRef, value); - } - - public string ComponentRef - { - get => (string)this.Fields[(int)FeatureComponentsSymbolFields.ComponentRef]; - set => this.Set((int)FeatureComponentsSymbolFields.ComponentRef, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/FeatureTuple.cs b/src/WixToolset.Data/Tuples/FeatureTuple.cs deleted file mode 100644 index 67972b63..00000000 --- a/src/WixToolset.Data/Tuples/FeatureTuple.cs +++ /dev/null @@ -1,129 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition Feature = new IntermediateSymbolDefinition( - SymbolDefinitionType.Feature, - new[] - { - new IntermediateFieldDefinition(nameof(FeatureSymbolFields.ParentFeatureRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(FeatureSymbolFields.Title), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(FeatureSymbolFields.Description), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(FeatureSymbolFields.Display), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(FeatureSymbolFields.Level), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(FeatureSymbolFields.DirectoryRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(FeatureSymbolFields.DisallowAbsent), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(FeatureSymbolFields.DisallowAdvertise), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(FeatureSymbolFields.InstallDefault), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(FeatureSymbolFields.TypicalDefault), IntermediateFieldType.Number), - }, - typeof(FeatureSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum FeatureSymbolFields - { - ParentFeatureRef, - Title, - Description, - Display, - Level, - DirectoryRef, - DisallowAbsent, - DisallowAdvertise, - InstallDefault, - TypicalDefault, - } - - public enum FeatureInstallDefault - { - Local, - Source, - FollowParent, - } - - public enum FeatureTypicalDefault - { - Install, - Advertise - } - - public class FeatureSymbol : IntermediateSymbol - { - public FeatureSymbol() : base(SymbolDefinitions.Feature, null, null) - { - } - - public FeatureSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Feature, sourceLineNumber, id) - { - } - - public IntermediateField this[FeatureSymbolFields index] => this.Fields[(int)index]; - - public string ParentFeatureRef - { - get => (string)this.Fields[(int)FeatureSymbolFields.ParentFeatureRef]; - set => this.Set((int)FeatureSymbolFields.ParentFeatureRef, value); - } - - public string Title - { - get => (string)this.Fields[(int)FeatureSymbolFields.Title]; - set => this.Set((int)FeatureSymbolFields.Title, value); - } - - public string Description - { - get => (string)this.Fields[(int)FeatureSymbolFields.Description]; - set => this.Set((int)FeatureSymbolFields.Description, value); - } - - public int Display - { - get => (int)this.Fields[(int)FeatureSymbolFields.Display]; - set => this.Set((int)FeatureSymbolFields.Display, value); - } - - public int Level - { - get => (int)this.Fields[(int)FeatureSymbolFields.Level]; - set => this.Set((int)FeatureSymbolFields.Level, value); - } - - public string DirectoryRef - { - get => (string)this.Fields[(int)FeatureSymbolFields.DirectoryRef]; - set => this.Set((int)FeatureSymbolFields.DirectoryRef, value); - } - - public bool DisallowAbsent - { - get => this.Fields[(int)FeatureSymbolFields.DisallowAbsent].AsBool(); - set => this.Set((int)FeatureSymbolFields.DisallowAbsent, value); - } - - public bool DisallowAdvertise - { - get => this.Fields[(int)FeatureSymbolFields.DisallowAdvertise].AsBool(); - set => this.Set((int)FeatureSymbolFields.DisallowAdvertise, value); - } - - public FeatureInstallDefault InstallDefault - { - get => (FeatureInstallDefault)this.Fields[(int)FeatureSymbolFields.InstallDefault].AsNumber(); - set => this.Set((int)FeatureSymbolFields.InstallDefault, (int)value); - } - - public FeatureTypicalDefault TypicalDefault - { - get => (FeatureTypicalDefault)this.Fields[(int)FeatureSymbolFields.TypicalDefault].AsNumber(); - set => this.Set((int)FeatureSymbolFields.TypicalDefault, (int)value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/FileSFPCatalogTuple.cs b/src/WixToolset.Data/Tuples/FileSFPCatalogTuple.cs deleted file mode 100644 index 3abf2915..00000000 --- a/src/WixToolset.Data/Tuples/FileSFPCatalogTuple.cs +++ /dev/null @@ -1,52 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition FileSFPCatalog = new IntermediateSymbolDefinition( - SymbolDefinitionType.FileSFPCatalog, - new[] - { - new IntermediateFieldDefinition(nameof(FileSFPCatalogSymbolFields.FileRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(FileSFPCatalogSymbolFields.SFPCatalogRef), IntermediateFieldType.String), - }, - typeof(FileSFPCatalogSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum FileSFPCatalogSymbolFields - { - FileRef, - SFPCatalogRef, - } - - public class FileSFPCatalogSymbol : IntermediateSymbol - { - public FileSFPCatalogSymbol() : base(SymbolDefinitions.FileSFPCatalog, null, null) - { - } - - public FileSFPCatalogSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.FileSFPCatalog, sourceLineNumber, id) - { - } - - public IntermediateField this[FileSFPCatalogSymbolFields index] => this.Fields[(int)index]; - - public string FileRef - { - get => (string)this.Fields[(int)FileSFPCatalogSymbolFields.FileRef]; - set => this.Set((int)FileSFPCatalogSymbolFields.FileRef, value); - } - - public string SFPCatalogRef - { - get => (string)this.Fields[(int)FileSFPCatalogSymbolFields.SFPCatalogRef]; - set => this.Set((int)FileSFPCatalogSymbolFields.SFPCatalogRef, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/FileTuple.cs b/src/WixToolset.Data/Tuples/FileTuple.cs deleted file mode 100644 index 7d1afdb7..00000000 --- a/src/WixToolset.Data/Tuples/FileTuple.cs +++ /dev/null @@ -1,257 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition File = new IntermediateSymbolDefinition( - SymbolDefinitionType.File, - new[] - { - new IntermediateFieldDefinition(nameof(FileSymbolFields.ComponentRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(FileSymbolFields.Name), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(FileSymbolFields.ShortName), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(FileSymbolFields.FileSize), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(FileSymbolFields.Version), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(FileSymbolFields.Language), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(FileSymbolFields.Attributes), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(FileSymbolFields.DirectoryRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(FileSymbolFields.DiskId), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(FileSymbolFields.Source), IntermediateFieldType.Path), - - new IntermediateFieldDefinition(nameof(FileSymbolFields.FontTitle), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(FileSymbolFields.SelfRegCost), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(FileSymbolFields.BindPath), IntermediateFieldType.String), - - new IntermediateFieldDefinition(nameof(FileSymbolFields.Sequence), IntermediateFieldType.Number), - - new IntermediateFieldDefinition(nameof(FileSymbolFields.PatchGroup), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(FileSymbolFields.PatchAttributes), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(FileSymbolFields.DeltaPatchHeaderSource), IntermediateFieldType.String), - - new IntermediateFieldDefinition(nameof(FileSymbolFields.RetainLengths), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(FileSymbolFields.IgnoreOffsets), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(FileSymbolFields.IgnoreLengths), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(FileSymbolFields.RetainOffsets), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(FileSymbolFields.SymbolPaths), IntermediateFieldType.String), - }, - typeof(FileSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - using System; - - public enum FileSymbolFields - { - ComponentRef, - Name, - ShortName, - FileSize, - Version, - Language, - Attributes, - DirectoryRef, - DiskId, - Source, - - FontTitle, - SelfRegCost, - BindPath, - - Sequence, - - PatchGroup, - PatchAttributes, - DeltaPatchHeaderSource, - - RetainLengths, - IgnoreOffsets, - IgnoreLengths, - RetainOffsets, - SymbolPaths, - } - - [Flags] - public enum FileSymbolAttributes : int - { - None = 0x0, - ReadOnly = 0x1, - Hidden = 0x2, - System = 0x4, - Vital = 0x8, - Compressed = 0x10, - Uncompressed = 0x20, - Checksum = 0x40, - GeneratedShortFileName = 0x80, - } - - /// - /// PatchAttribute values - /// - [Flags] - public enum PatchAttributeType - { - None = 0, - - /// Prevents the updating of the file that is in fact changed in the upgraded image relative to the target images. - Ignore = 1, - - /// Set if the entire file should be installed rather than creating a binary patch. - IncludeWholeFile = 2, - - /// Set to indicate that the patch is non-vital. - AllowIgnoreOnError = 4, - - /// Allowed bits. - Defined = Ignore | IncludeWholeFile | AllowIgnoreOnError - } - - public class FileSymbol : IntermediateSymbol - { - public FileSymbol() : base(SymbolDefinitions.File, null, null) - { - } - - public FileSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.File, sourceLineNumber, id) - { - } - - public IntermediateField this[FileSymbolFields index] => this.Fields[(int)index]; - - public string ComponentRef - { - get => (string)this.Fields[(int)FileSymbolFields.ComponentRef]; - set => this.Set((int)FileSymbolFields.ComponentRef, value); - } - - public string Name - { - get => (string)this.Fields[(int)FileSymbolFields.Name]; - set => this.Set((int)FileSymbolFields.Name, value); - } - - public string ShortName - { - get => (string)this.Fields[(int)FileSymbolFields.ShortName]; - set => this.Set((int)FileSymbolFields.ShortName, value); - } - - public int FileSize - { - get => (int)this.Fields[(int)FileSymbolFields.FileSize]; - set => this.Set((int)FileSymbolFields.FileSize, value); - } - - public string Version - { - get => (string)this.Fields[(int)FileSymbolFields.Version]; - set => this.Set((int)FileSymbolFields.Version, value); - } - - public string Language - { - get => (string)this.Fields[(int)FileSymbolFields.Language]; - set => this.Set((int)FileSymbolFields.Language, value); - } - - public FileSymbolAttributes Attributes - { - get => (FileSymbolAttributes)this.Fields[(int)FileSymbolFields.Attributes].AsNumber(); - set => this.Set((int)FileSymbolFields.Attributes, (int)value); - } - - public string DirectoryRef - { - get => (string)this.Fields[(int)FileSymbolFields.DirectoryRef]; - set => this.Set((int)FileSymbolFields.DirectoryRef, value); - } - - public int? DiskId - { - get => (int?)this.Fields[(int)FileSymbolFields.DiskId]; - set => this.Set((int)FileSymbolFields.DiskId, value); - } - - public IntermediateFieldPathValue Source - { - get => this.Fields[(int)FileSymbolFields.Source].AsPath(); - set => this.Set((int)FileSymbolFields.Source, value); - } - - public string FontTitle - { - get => (string)this.Fields[(int)FileSymbolFields.FontTitle]; - set => this.Set((int)FileSymbolFields.FontTitle, value); - } - - public int? SelfRegCost - { - get => (int?)this.Fields[(int)FileSymbolFields.SelfRegCost]; - set => this.Set((int)FileSymbolFields.SelfRegCost, value); - } - - public string BindPath - { - get => (string)this.Fields[(int)FileSymbolFields.BindPath]; - set => this.Set((int)FileSymbolFields.BindPath, value); - } - - public int Sequence - { - get => (int)this.Fields[(int)FileSymbolFields.Sequence]; - set => this.Set((int)FileSymbolFields.Sequence, value); - } - - public int? PatchGroup - { - get => (int?)this.Fields[(int)FileSymbolFields.PatchGroup]; - set => this.Set((int)FileSymbolFields.PatchGroup, value); - } - - public PatchAttributeType? PatchAttributes - { - get => (PatchAttributeType?)this.Fields[(int)FileSymbolFields.PatchAttributes].AsNullableNumber(); - set => this.Set((int)FileSymbolFields.PatchAttributes, (int?)value); - } - - public string DeltaPatchHeaderSource - { - get => (string)this.Fields[(int)FileSymbolFields.DeltaPatchHeaderSource]; - set => this.Set((int)FileSymbolFields.DeltaPatchHeaderSource, value); - } - - public string RetainLengths - { - get => (string)this.Fields[(int)FileSymbolFields.RetainLengths]; - set => this.Set((int)FileSymbolFields.RetainLengths, value); - } - - public string IgnoreOffsets - { - get => (string)this.Fields[(int)FileSymbolFields.IgnoreOffsets]; - set => this.Set((int)FileSymbolFields.IgnoreOffsets, value); - } - - public string IgnoreLengths - { - get => (string)this.Fields[(int)FileSymbolFields.IgnoreLengths]; - set => this.Set((int)FileSymbolFields.IgnoreLengths, value); - } - - public string RetainOffsets - { - get => (string)this.Fields[(int)FileSymbolFields.RetainOffsets]; - set => this.Set((int)FileSymbolFields.RetainOffsets, value); - } - - public string SymbolPaths - { - get => (string)this.Fields[(int)FileSymbolFields.SymbolPaths]; - set => this.Set((int)FileSymbolFields.SymbolPaths, value); - } - } -} diff --git a/src/WixToolset.Data/Tuples/IconTuple.cs b/src/WixToolset.Data/Tuples/IconTuple.cs deleted file mode 100644 index f3c825ec..00000000 --- a/src/WixToolset.Data/Tuples/IconTuple.cs +++ /dev/null @@ -1,44 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition Icon = new IntermediateSymbolDefinition( - SymbolDefinitionType.Icon, - new[] - { - new IntermediateFieldDefinition(nameof(IconSymbolFields.Data), IntermediateFieldType.Path), - }, - typeof(IconSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum IconSymbolFields - { - Data, - } - - public class IconSymbol : IntermediateSymbol - { - public IconSymbol() : base(SymbolDefinitions.Icon, null, null) - { - } - - public IconSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Icon, sourceLineNumber, id) - { - } - - public IntermediateField this[IconSymbolFields index] => this.Fields[(int)index]; - - public IntermediateFieldPathValue Data - { - get => this.Fields[(int)IconSymbolFields.Data].AsPath(); - set => this.Set((int)IconSymbolFields.Data, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/ImageFamiliesTuple.cs b/src/WixToolset.Data/Tuples/ImageFamiliesTuple.cs deleted file mode 100644 index 090628ef..00000000 --- a/src/WixToolset.Data/Tuples/ImageFamiliesTuple.cs +++ /dev/null @@ -1,84 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition ImageFamilies = new IntermediateSymbolDefinition( - SymbolDefinitionType.ImageFamilies, - new[] - { - new IntermediateFieldDefinition(nameof(ImageFamiliesSymbolFields.Family), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ImageFamiliesSymbolFields.MediaSrcPropName), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ImageFamiliesSymbolFields.MediaDiskId), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(ImageFamiliesSymbolFields.FileSequenceStart), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(ImageFamiliesSymbolFields.DiskPrompt), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ImageFamiliesSymbolFields.VolumeLabel), IntermediateFieldType.String), - }, - typeof(ImageFamiliesSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum ImageFamiliesSymbolFields - { - Family, - MediaSrcPropName, - MediaDiskId, - FileSequenceStart, - DiskPrompt, - VolumeLabel, - } - - public class ImageFamiliesSymbol : IntermediateSymbol - { - public ImageFamiliesSymbol() : base(SymbolDefinitions.ImageFamilies, null, null) - { - } - - public ImageFamiliesSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ImageFamilies, sourceLineNumber, id) - { - } - - public IntermediateField this[ImageFamiliesSymbolFields index] => this.Fields[(int)index]; - - public string Family - { - get => (string)this.Fields[(int)ImageFamiliesSymbolFields.Family]; - set => this.Set((int)ImageFamiliesSymbolFields.Family, value); - } - - public string MediaSrcPropName - { - get => (string)this.Fields[(int)ImageFamiliesSymbolFields.MediaSrcPropName]; - set => this.Set((int)ImageFamiliesSymbolFields.MediaSrcPropName, value); - } - - public int? MediaDiskId - { - get => (int?)this.Fields[(int)ImageFamiliesSymbolFields.MediaDiskId]; - set => this.Set((int)ImageFamiliesSymbolFields.MediaDiskId, value); - } - - public int? FileSequenceStart - { - get => (int?)this.Fields[(int)ImageFamiliesSymbolFields.FileSequenceStart]; - set => this.Set((int)ImageFamiliesSymbolFields.FileSequenceStart, value); - } - - public string DiskPrompt - { - get => (string)this.Fields[(int)ImageFamiliesSymbolFields.DiskPrompt]; - set => this.Set((int)ImageFamiliesSymbolFields.DiskPrompt, value); - } - - public string VolumeLabel - { - get => (string)this.Fields[(int)ImageFamiliesSymbolFields.VolumeLabel]; - set => this.Set((int)ImageFamiliesSymbolFields.VolumeLabel, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/IniFileTuple.cs b/src/WixToolset.Data/Tuples/IniFileTuple.cs deleted file mode 100644 index e23f6039..00000000 --- a/src/WixToolset.Data/Tuples/IniFileTuple.cs +++ /dev/null @@ -1,92 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition IniFile = new IntermediateSymbolDefinition( - SymbolDefinitionType.IniFile, - new[] - { - new IntermediateFieldDefinition(nameof(IniFileSymbolFields.FileName), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IniFileSymbolFields.DirProperty), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IniFileSymbolFields.Section), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IniFileSymbolFields.Key), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IniFileSymbolFields.Value), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IniFileSymbolFields.Action), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(IniFileSymbolFields.ComponentRef), IntermediateFieldType.String), - }, - typeof(IniFileSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum IniFileSymbolFields - { - FileName, - DirProperty, - Section, - Key, - Value, - Action, - ComponentRef, - } - - public class IniFileSymbol : IntermediateSymbol - { - public IniFileSymbol() : base(SymbolDefinitions.IniFile, null, null) - { - } - - public IniFileSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.IniFile, sourceLineNumber, id) - { - } - - public IntermediateField this[IniFileSymbolFields index] => this.Fields[(int)index]; - - public string FileName - { - get => (string)this.Fields[(int)IniFileSymbolFields.FileName]; - set => this.Set((int)IniFileSymbolFields.FileName, value); - } - - public string DirProperty - { - get => (string)this.Fields[(int)IniFileSymbolFields.DirProperty]; - set => this.Set((int)IniFileSymbolFields.DirProperty, value); - } - - public string Section - { - get => (string)this.Fields[(int)IniFileSymbolFields.Section]; - set => this.Set((int)IniFileSymbolFields.Section, value); - } - - public string Key - { - get => (string)this.Fields[(int)IniFileSymbolFields.Key]; - set => this.Set((int)IniFileSymbolFields.Key, value); - } - - public string Value - { - get => (string)this.Fields[(int)IniFileSymbolFields.Value]; - set => this.Set((int)IniFileSymbolFields.Value, value); - } - - public InifFileActionType Action - { - get => (InifFileActionType)this.Fields[(int)IniFileSymbolFields.Action]?.AsNumber(); - set => this.Set((int)IniFileSymbolFields.Action, (int)value); - } - - public string ComponentRef - { - get => (string)this.Fields[(int)IniFileSymbolFields.ComponentRef]; - set => this.Set((int)IniFileSymbolFields.ComponentRef, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/IniLocatorTuple.cs b/src/WixToolset.Data/Tuples/IniLocatorTuple.cs deleted file mode 100644 index 64351681..00000000 --- a/src/WixToolset.Data/Tuples/IniLocatorTuple.cs +++ /dev/null @@ -1,84 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition IniLocator = new IntermediateSymbolDefinition( - SymbolDefinitionType.IniLocator, - new[] - { - new IntermediateFieldDefinition(nameof(IniLocatorSymbolFields.SignatureRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IniLocatorSymbolFields.FileName), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IniLocatorSymbolFields.Section), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IniLocatorSymbolFields.Key), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IniLocatorSymbolFields.Field), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(IniLocatorSymbolFields.Type), IntermediateFieldType.Number), - }, - typeof(IniLocatorSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum IniLocatorSymbolFields - { - SignatureRef, - FileName, - Section, - Key, - Field, - Type, - } - - public class IniLocatorSymbol : IntermediateSymbol - { - public IniLocatorSymbol() : base(SymbolDefinitions.IniLocator, null, null) - { - } - - public IniLocatorSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.IniLocator, sourceLineNumber, id) - { - } - - public IntermediateField this[IniLocatorSymbolFields index] => this.Fields[(int)index]; - - public string SignatureRef - { - get => (string)this.Fields[(int)IniLocatorSymbolFields.SignatureRef]; - set => this.Set((int)IniLocatorSymbolFields.SignatureRef, value); - } - - public string FileName - { - get => (string)this.Fields[(int)IniLocatorSymbolFields.FileName]; - set => this.Set((int)IniLocatorSymbolFields.FileName, value); - } - - public string Section - { - get => (string)this.Fields[(int)IniLocatorSymbolFields.Section]; - set => this.Set((int)IniLocatorSymbolFields.Section, value); - } - - public string Key - { - get => (string)this.Fields[(int)IniLocatorSymbolFields.Key]; - set => this.Set((int)IniLocatorSymbolFields.Key, value); - } - - public int? Field - { - get => (int?)this.Fields[(int)IniLocatorSymbolFields.Field]; - set => this.Set((int)IniLocatorSymbolFields.Field, value); - } - - public int? Type - { - get => (int?)this.Fields[(int)IniLocatorSymbolFields.Type]; - set => this.Set((int)IniLocatorSymbolFields.Type, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/InifFileActionType.cs b/src/WixToolset.Data/Tuples/InifFileActionType.cs deleted file mode 100644 index 8b642323..00000000 --- a/src/WixToolset.Data/Tuples/InifFileActionType.cs +++ /dev/null @@ -1,13 +0,0 @@ -// 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. - -namespace WixToolset.Data.Symbols -{ - public enum InifFileActionType - { - AddLine, - AddTag, - CreateLine, - RemoveLine, - RemoveTag, - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/IsolatedComponentTuple.cs b/src/WixToolset.Data/Tuples/IsolatedComponentTuple.cs deleted file mode 100644 index 681f1030..00000000 --- a/src/WixToolset.Data/Tuples/IsolatedComponentTuple.cs +++ /dev/null @@ -1,52 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition IsolatedComponent = new IntermediateSymbolDefinition( - SymbolDefinitionType.IsolatedComponent, - new[] - { - new IntermediateFieldDefinition(nameof(IsolatedComponentSymbolFields.SharedComponentRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IsolatedComponentSymbolFields.ApplicationComponentRef), IntermediateFieldType.String), - }, - typeof(IsolatedComponentSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum IsolatedComponentSymbolFields - { - SharedComponentRef, - ApplicationComponentRef, - } - - public class IsolatedComponentSymbol : IntermediateSymbol - { - public IsolatedComponentSymbol() : base(SymbolDefinitions.IsolatedComponent, null, null) - { - } - - public IsolatedComponentSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.IsolatedComponent, sourceLineNumber, id) - { - } - - public IntermediateField this[IsolatedComponentSymbolFields index] => this.Fields[(int)index]; - - public string SharedComponentRef - { - get => (string)this.Fields[(int)IsolatedComponentSymbolFields.SharedComponentRef]; - set => this.Set((int)IsolatedComponentSymbolFields.SharedComponentRef, value); - } - - public string ApplicationComponentRef - { - get => (string)this.Fields[(int)IsolatedComponentSymbolFields.ApplicationComponentRef]; - set => this.Set((int)IsolatedComponentSymbolFields.ApplicationComponentRef, value); - } - } -} diff --git a/src/WixToolset.Data/Tuples/LaunchConditionTuple.cs b/src/WixToolset.Data/Tuples/LaunchConditionTuple.cs deleted file mode 100644 index a160f25f..00000000 --- a/src/WixToolset.Data/Tuples/LaunchConditionTuple.cs +++ /dev/null @@ -1,52 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition LaunchCondition = new IntermediateSymbolDefinition( - SymbolDefinitionType.LaunchCondition, - new[] - { - new IntermediateFieldDefinition(nameof(LaunchConditionSymbolFields.Condition), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(LaunchConditionSymbolFields.Description), IntermediateFieldType.String), - }, - typeof(LaunchConditionSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum LaunchConditionSymbolFields - { - Condition, - Description, - } - - public class LaunchConditionSymbol : IntermediateSymbol - { - public LaunchConditionSymbol() : base(SymbolDefinitions.LaunchCondition, null, null) - { - } - - public LaunchConditionSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.LaunchCondition, sourceLineNumber, id) - { - } - - public IntermediateField this[LaunchConditionSymbolFields index] => this.Fields[(int)index]; - - public string Condition - { - get => (string)this.Fields[(int)LaunchConditionSymbolFields.Condition]; - set => this.Set((int)LaunchConditionSymbolFields.Condition, value); - } - - public string Description - { - get => (string)this.Fields[(int)LaunchConditionSymbolFields.Description]; - set => this.Set((int)LaunchConditionSymbolFields.Description, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/ListBoxTuple.cs b/src/WixToolset.Data/Tuples/ListBoxTuple.cs deleted file mode 100644 index 174327d1..00000000 --- a/src/WixToolset.Data/Tuples/ListBoxTuple.cs +++ /dev/null @@ -1,68 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition ListBox = new IntermediateSymbolDefinition( - SymbolDefinitionType.ListBox, - new[] - { - new IntermediateFieldDefinition(nameof(ListBoxSymbolFields.Property), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ListBoxSymbolFields.Order), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(ListBoxSymbolFields.Value), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ListBoxSymbolFields.Text), IntermediateFieldType.String), - }, - typeof(ListBoxSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum ListBoxSymbolFields - { - Property, - Order, - Value, - Text, - } - - public class ListBoxSymbol : IntermediateSymbol - { - public ListBoxSymbol() : base(SymbolDefinitions.ListBox, null, null) - { - } - - public ListBoxSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ListBox, sourceLineNumber, id) - { - } - - public IntermediateField this[ListBoxSymbolFields index] => this.Fields[(int)index]; - - public string Property - { - get => (string)this.Fields[(int)ListBoxSymbolFields.Property]; - set => this.Set((int)ListBoxSymbolFields.Property, value); - } - - public int Order - { - get => (int)this.Fields[(int)ListBoxSymbolFields.Order]; - set => this.Set((int)ListBoxSymbolFields.Order, value); - } - - public string Value - { - get => (string)this.Fields[(int)ListBoxSymbolFields.Value]; - set => this.Set((int)ListBoxSymbolFields.Value, value); - } - - public string Text - { - get => (string)this.Fields[(int)ListBoxSymbolFields.Text]; - set => this.Set((int)ListBoxSymbolFields.Text, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/ListViewTuple.cs b/src/WixToolset.Data/Tuples/ListViewTuple.cs deleted file mode 100644 index 09543ab1..00000000 --- a/src/WixToolset.Data/Tuples/ListViewTuple.cs +++ /dev/null @@ -1,76 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition ListView = new IntermediateSymbolDefinition( - SymbolDefinitionType.ListView, - new[] - { - new IntermediateFieldDefinition(nameof(ListViewSymbolFields.Property), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ListViewSymbolFields.Order), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(ListViewSymbolFields.Value), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ListViewSymbolFields.Text), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ListViewSymbolFields.BinaryRef), IntermediateFieldType.String), - }, - typeof(ListViewSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum ListViewSymbolFields - { - Property, - Order, - Value, - Text, - BinaryRef, - } - - public class ListViewSymbol : IntermediateSymbol - { - public ListViewSymbol() : base(SymbolDefinitions.ListView, null, null) - { - } - - public ListViewSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ListView, sourceLineNumber, id) - { - } - - public IntermediateField this[ListViewSymbolFields index] => this.Fields[(int)index]; - - public string Property - { - get => (string)this.Fields[(int)ListViewSymbolFields.Property]; - set => this.Set((int)ListViewSymbolFields.Property, value); - } - - public int Order - { - get => (int)this.Fields[(int)ListViewSymbolFields.Order]; - set => this.Set((int)ListViewSymbolFields.Order, value); - } - - public string Value - { - get => (string)this.Fields[(int)ListViewSymbolFields.Value]; - set => this.Set((int)ListViewSymbolFields.Value, value); - } - - public string Text - { - get => (string)this.Fields[(int)ListViewSymbolFields.Text]; - set => this.Set((int)ListViewSymbolFields.Text, value); - } - - public string BinaryRef - { - get => (string)this.Fields[(int)ListViewSymbolFields.BinaryRef]; - set => this.Set((int)ListViewSymbolFields.BinaryRef, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/LocatorType.cs b/src/WixToolset.Data/Tuples/LocatorType.cs deleted file mode 100644 index 6f136389..00000000 --- a/src/WixToolset.Data/Tuples/LocatorType.cs +++ /dev/null @@ -1,12 +0,0 @@ -// 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. - -namespace WixToolset.Data.Symbols -{ - public enum LocatorType - { - Directory, - Filename, - RawValue, - x64 = 16, - } -} diff --git a/src/WixToolset.Data/Tuples/LockPermissionsTuple.cs b/src/WixToolset.Data/Tuples/LockPermissionsTuple.cs deleted file mode 100644 index 12562fd1..00000000 --- a/src/WixToolset.Data/Tuples/LockPermissionsTuple.cs +++ /dev/null @@ -1,76 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition LockPermissions = new IntermediateSymbolDefinition( - SymbolDefinitionType.LockPermissions, - new[] - { - new IntermediateFieldDefinition(nameof(LockPermissionsSymbolFields.LockObject), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(LockPermissionsSymbolFields.Table), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(LockPermissionsSymbolFields.Domain), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(LockPermissionsSymbolFields.User), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(LockPermissionsSymbolFields.Permission), IntermediateFieldType.Number), - }, - typeof(LockPermissionsSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum LockPermissionsSymbolFields - { - LockObject, - Table, - Domain, - User, - Permission, - } - - public class LockPermissionsSymbol : IntermediateSymbol - { - public LockPermissionsSymbol() : base(SymbolDefinitions.LockPermissions, null, null) - { - } - - public LockPermissionsSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.LockPermissions, sourceLineNumber, id) - { - } - - public IntermediateField this[LockPermissionsSymbolFields index] => this.Fields[(int)index]; - - public string LockObject - { - get => (string)this.Fields[(int)LockPermissionsSymbolFields.LockObject]; - set => this.Set((int)LockPermissionsSymbolFields.LockObject, value); - } - - public string Table - { - get => (string)this.Fields[(int)LockPermissionsSymbolFields.Table]; - set => this.Set((int)LockPermissionsSymbolFields.Table, value); - } - - public string Domain - { - get => (string)this.Fields[(int)LockPermissionsSymbolFields.Domain]; - set => this.Set((int)LockPermissionsSymbolFields.Domain, value); - } - - public string User - { - get => (string)this.Fields[(int)LockPermissionsSymbolFields.User]; - set => this.Set((int)LockPermissionsSymbolFields.User, value); - } - - public int? Permission - { - get => (int?)this.Fields[(int)LockPermissionsSymbolFields.Permission]; - set => this.Set((int)LockPermissionsSymbolFields.Permission, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/MIMETuple.cs b/src/WixToolset.Data/Tuples/MIMETuple.cs deleted file mode 100644 index f66d05b8..00000000 --- a/src/WixToolset.Data/Tuples/MIMETuple.cs +++ /dev/null @@ -1,60 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition MIME = new IntermediateSymbolDefinition( - SymbolDefinitionType.MIME, - new[] - { - new IntermediateFieldDefinition(nameof(MIMESymbolFields.ContentType), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(MIMESymbolFields.ExtensionRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(MIMESymbolFields.CLSID), IntermediateFieldType.String), - }, - typeof(MIMESymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum MIMESymbolFields - { - ContentType, - ExtensionRef, - CLSID, - } - - public class MIMESymbol : IntermediateSymbol - { - public MIMESymbol() : base(SymbolDefinitions.MIME, null, null) - { - } - - public MIMESymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.MIME, sourceLineNumber, id) - { - } - - public IntermediateField this[MIMESymbolFields index] => this.Fields[(int)index]; - - public string ContentType - { - get => (string)this.Fields[(int)MIMESymbolFields.ContentType]; - set => this.Set((int)MIMESymbolFields.ContentType, value); - } - - public string ExtensionRef - { - get => (string)this.Fields[(int)MIMESymbolFields.ExtensionRef]; - set => this.Set((int)MIMESymbolFields.ExtensionRef, value); - } - - public string CLSID - { - get => (string)this.Fields[(int)MIMESymbolFields.CLSID]; - set => this.Set((int)MIMESymbolFields.CLSID, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/MediaTuple.cs b/src/WixToolset.Data/Tuples/MediaTuple.cs deleted file mode 100644 index f216cddc..00000000 --- a/src/WixToolset.Data/Tuples/MediaTuple.cs +++ /dev/null @@ -1,100 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition Media = new IntermediateSymbolDefinition( - SymbolDefinitionType.Media, - new[] - { - new IntermediateFieldDefinition(nameof(MediaSymbolFields.DiskId), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(MediaSymbolFields.LastSequence), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(MediaSymbolFields.DiskPrompt), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(MediaSymbolFields.Cabinet), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(MediaSymbolFields.VolumeLabel), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(MediaSymbolFields.Source), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(MediaSymbolFields.CompressionLevel), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(MediaSymbolFields.Layout), IntermediateFieldType.String), - }, - typeof(MediaSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum MediaSymbolFields - { - DiskId, - LastSequence, - DiskPrompt, - Cabinet, - VolumeLabel, - Source, - CompressionLevel, - Layout, - } - - public class MediaSymbol : IntermediateSymbol - { - public MediaSymbol() : base(SymbolDefinitions.Media, null, null) - { - } - - public MediaSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Media, sourceLineNumber, id) - { - } - - public IntermediateField this[MediaSymbolFields index] => this.Fields[(int)index]; - - public int DiskId - { - get => (int)this.Fields[(int)MediaSymbolFields.DiskId]; - set => this.Set((int)MediaSymbolFields.DiskId, value); - } - - public int? LastSequence - { - get => (int?)this.Fields[(int)MediaSymbolFields.LastSequence]; - set => this.Set((int)MediaSymbolFields.LastSequence, value); - } - - public string DiskPrompt - { - get => (string)this.Fields[(int)MediaSymbolFields.DiskPrompt]; - set => this.Set((int)MediaSymbolFields.DiskPrompt, value); - } - - public string Cabinet - { - get => (string)this.Fields[(int)MediaSymbolFields.Cabinet]; - set => this.Set((int)MediaSymbolFields.Cabinet, value); - } - - public string VolumeLabel - { - get => (string)this.Fields[(int)MediaSymbolFields.VolumeLabel]; - set => this.Set((int)MediaSymbolFields.VolumeLabel, value); - } - - public string Source - { - get => (string)this.Fields[(int)MediaSymbolFields.Source]; - set => this.Set((int)MediaSymbolFields.Source, value); - } - - public CompressionLevel? CompressionLevel - { - get => (CompressionLevel?)this.Fields[(int)MediaSymbolFields.CompressionLevel].AsNullableNumber(); - set => this.Set((int)MediaSymbolFields.CompressionLevel, (int?)value); - } - - public string Layout - { - get => (string)this.Fields[(int)MediaSymbolFields.Layout]; - set => this.Set((int)MediaSymbolFields.Layout, value); - } - } -} diff --git a/src/WixToolset.Data/Tuples/ModuleComponentsTuple.cs b/src/WixToolset.Data/Tuples/ModuleComponentsTuple.cs deleted file mode 100644 index 287819ab..00000000 --- a/src/WixToolset.Data/Tuples/ModuleComponentsTuple.cs +++ /dev/null @@ -1,60 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition ModuleComponents = new IntermediateSymbolDefinition( - SymbolDefinitionType.ModuleComponents, - new[] - { - new IntermediateFieldDefinition(nameof(ModuleComponentsSymbolFields.Component), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ModuleComponentsSymbolFields.ModuleID), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ModuleComponentsSymbolFields.Language), IntermediateFieldType.Number), - }, - typeof(ModuleComponentsSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum ModuleComponentsSymbolFields - { - Component, - ModuleID, - Language, - } - - public class ModuleComponentsSymbol : IntermediateSymbol - { - public ModuleComponentsSymbol() : base(SymbolDefinitions.ModuleComponents, null, null) - { - } - - public ModuleComponentsSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ModuleComponents, sourceLineNumber, id) - { - } - - public IntermediateField this[ModuleComponentsSymbolFields index] => this.Fields[(int)index]; - - public string Component - { - get => (string)this.Fields[(int)ModuleComponentsSymbolFields.Component]; - set => this.Set((int)ModuleComponentsSymbolFields.Component, value); - } - - public string ModuleID - { - get => (string)this.Fields[(int)ModuleComponentsSymbolFields.ModuleID]; - set => this.Set((int)ModuleComponentsSymbolFields.ModuleID, value); - } - - public int Language - { - get => (int)this.Fields[(int)ModuleComponentsSymbolFields.Language]; - set => this.Set((int)ModuleComponentsSymbolFields.Language, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/ModuleConfigurationTuple.cs b/src/WixToolset.Data/Tuples/ModuleConfigurationTuple.cs deleted file mode 100644 index 8188dc87..00000000 --- a/src/WixToolset.Data/Tuples/ModuleConfigurationTuple.cs +++ /dev/null @@ -1,116 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition ModuleConfiguration = new IntermediateSymbolDefinition( - SymbolDefinitionType.ModuleConfiguration, - new[] - { - new IntermediateFieldDefinition(nameof(ModuleConfigurationSymbolFields.Format), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(ModuleConfigurationSymbolFields.Type), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ModuleConfigurationSymbolFields.ContextData), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ModuleConfigurationSymbolFields.DefaultValue), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ModuleConfigurationSymbolFields.KeyNoOrphan), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(ModuleConfigurationSymbolFields.NonNullable), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(ModuleConfigurationSymbolFields.DisplayName), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ModuleConfigurationSymbolFields.Description), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ModuleConfigurationSymbolFields.HelpLocation), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ModuleConfigurationSymbolFields.HelpKeyword), IntermediateFieldType.String), - }, - typeof(ModuleConfigurationSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum ModuleConfigurationSymbolFields - { - Format, - Type, - ContextData, - DefaultValue, - KeyNoOrphan, - NonNullable, - DisplayName, - Description, - HelpLocation, - HelpKeyword, - } - - public class ModuleConfigurationSymbol : IntermediateSymbol - { - public ModuleConfigurationSymbol() : base(SymbolDefinitions.ModuleConfiguration, null, null) - { - } - - public ModuleConfigurationSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ModuleConfiguration, sourceLineNumber, id) - { - } - - public IntermediateField this[ModuleConfigurationSymbolFields index] => this.Fields[(int)index]; - - public int Format - { - get => (int)this.Fields[(int)ModuleConfigurationSymbolFields.Format]; - set => this.Set((int)ModuleConfigurationSymbolFields.Format, value); - } - - public string Type - { - get => (string)this.Fields[(int)ModuleConfigurationSymbolFields.Type]; - set => this.Set((int)ModuleConfigurationSymbolFields.Type, value); - } - - public string ContextData - { - get => (string)this.Fields[(int)ModuleConfigurationSymbolFields.ContextData]; - set => this.Set((int)ModuleConfigurationSymbolFields.ContextData, value); - } - - public string DefaultValue - { - get => (string)this.Fields[(int)ModuleConfigurationSymbolFields.DefaultValue]; - set => this.Set((int)ModuleConfigurationSymbolFields.DefaultValue, value); - } - - public bool KeyNoOrphan - { - get => this.Fields[(int)ModuleConfigurationSymbolFields.KeyNoOrphan].AsBool(); - set => this.Set((int)ModuleConfigurationSymbolFields.KeyNoOrphan, value); - } - - public bool NonNullable - { - get => this.Fields[(int)ModuleConfigurationSymbolFields.NonNullable].AsBool(); - set => this.Set((int)ModuleConfigurationSymbolFields.NonNullable, value); - } - - public string DisplayName - { - get => (string)this.Fields[(int)ModuleConfigurationSymbolFields.DisplayName]; - set => this.Set((int)ModuleConfigurationSymbolFields.DisplayName, value); - } - - public string Description - { - get => (string)this.Fields[(int)ModuleConfigurationSymbolFields.Description]; - set => this.Set((int)ModuleConfigurationSymbolFields.Description, value); - } - - public string HelpLocation - { - get => (string)this.Fields[(int)ModuleConfigurationSymbolFields.HelpLocation]; - set => this.Set((int)ModuleConfigurationSymbolFields.HelpLocation, value); - } - - public string HelpKeyword - { - get => (string)this.Fields[(int)ModuleConfigurationSymbolFields.HelpKeyword]; - set => this.Set((int)ModuleConfigurationSymbolFields.HelpKeyword, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/ModuleDependencyTuple.cs b/src/WixToolset.Data/Tuples/ModuleDependencyTuple.cs deleted file mode 100644 index 80d2d5f6..00000000 --- a/src/WixToolset.Data/Tuples/ModuleDependencyTuple.cs +++ /dev/null @@ -1,76 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition ModuleDependency = new IntermediateSymbolDefinition( - SymbolDefinitionType.ModuleDependency, - new[] - { - new IntermediateFieldDefinition(nameof(ModuleDependencySymbolFields.ModuleID), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ModuleDependencySymbolFields.ModuleLanguage), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(ModuleDependencySymbolFields.RequiredID), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ModuleDependencySymbolFields.RequiredLanguage), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(ModuleDependencySymbolFields.RequiredVersion), IntermediateFieldType.String), - }, - typeof(ModuleDependencySymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum ModuleDependencySymbolFields - { - ModuleID, - ModuleLanguage, - RequiredID, - RequiredLanguage, - RequiredVersion, - } - - public class ModuleDependencySymbol : IntermediateSymbol - { - public ModuleDependencySymbol() : base(SymbolDefinitions.ModuleDependency, null, null) - { - } - - public ModuleDependencySymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ModuleDependency, sourceLineNumber, id) - { - } - - public IntermediateField this[ModuleDependencySymbolFields index] => this.Fields[(int)index]; - - public string ModuleID - { - get => (string)this.Fields[(int)ModuleDependencySymbolFields.ModuleID]; - set => this.Set((int)ModuleDependencySymbolFields.ModuleID, value); - } - - public int ModuleLanguage - { - get => (int)this.Fields[(int)ModuleDependencySymbolFields.ModuleLanguage]; - set => this.Set((int)ModuleDependencySymbolFields.ModuleLanguage, value); - } - - public string RequiredID - { - get => (string)this.Fields[(int)ModuleDependencySymbolFields.RequiredID]; - set => this.Set((int)ModuleDependencySymbolFields.RequiredID, value); - } - - public int RequiredLanguage - { - get => (int)this.Fields[(int)ModuleDependencySymbolFields.RequiredLanguage]; - set => this.Set((int)ModuleDependencySymbolFields.RequiredLanguage, value); - } - - public string RequiredVersion - { - get => (string)this.Fields[(int)ModuleDependencySymbolFields.RequiredVersion]; - set => this.Set((int)ModuleDependencySymbolFields.RequiredVersion, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/ModuleExclusionTuple.cs b/src/WixToolset.Data/Tuples/ModuleExclusionTuple.cs deleted file mode 100644 index 0c45abfa..00000000 --- a/src/WixToolset.Data/Tuples/ModuleExclusionTuple.cs +++ /dev/null @@ -1,84 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition ModuleExclusion = new IntermediateSymbolDefinition( - SymbolDefinitionType.ModuleExclusion, - new[] - { - new IntermediateFieldDefinition(nameof(ModuleExclusionSymbolFields.ModuleID), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ModuleExclusionSymbolFields.ModuleLanguage), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(ModuleExclusionSymbolFields.ExcludedID), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ModuleExclusionSymbolFields.ExcludedLanguage), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(ModuleExclusionSymbolFields.ExcludedMinVersion), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ModuleExclusionSymbolFields.ExcludedMaxVersion), IntermediateFieldType.String), - }, - typeof(ModuleExclusionSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum ModuleExclusionSymbolFields - { - ModuleID, - ModuleLanguage, - ExcludedID, - ExcludedLanguage, - ExcludedMinVersion, - ExcludedMaxVersion, - } - - public class ModuleExclusionSymbol : IntermediateSymbol - { - public ModuleExclusionSymbol() : base(SymbolDefinitions.ModuleExclusion, null, null) - { - } - - public ModuleExclusionSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ModuleExclusion, sourceLineNumber, id) - { - } - - public IntermediateField this[ModuleExclusionSymbolFields index] => this.Fields[(int)index]; - - public string ModuleID - { - get => (string)this.Fields[(int)ModuleExclusionSymbolFields.ModuleID]; - set => this.Set((int)ModuleExclusionSymbolFields.ModuleID, value); - } - - public int ModuleLanguage - { - get => (int)this.Fields[(int)ModuleExclusionSymbolFields.ModuleLanguage]; - set => this.Set((int)ModuleExclusionSymbolFields.ModuleLanguage, value); - } - - public string ExcludedID - { - get => (string)this.Fields[(int)ModuleExclusionSymbolFields.ExcludedID]; - set => this.Set((int)ModuleExclusionSymbolFields.ExcludedID, value); - } - - public int ExcludedLanguage - { - get => (int)this.Fields[(int)ModuleExclusionSymbolFields.ExcludedLanguage]; - set => this.Set((int)ModuleExclusionSymbolFields.ExcludedLanguage, value); - } - - public string ExcludedMinVersion - { - get => (string)this.Fields[(int)ModuleExclusionSymbolFields.ExcludedMinVersion]; - set => this.Set((int)ModuleExclusionSymbolFields.ExcludedMinVersion, value); - } - - public string ExcludedMaxVersion - { - get => (string)this.Fields[(int)ModuleExclusionSymbolFields.ExcludedMaxVersion]; - set => this.Set((int)ModuleExclusionSymbolFields.ExcludedMaxVersion, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/ModuleIgnoreTableTuple.cs b/src/WixToolset.Data/Tuples/ModuleIgnoreTableTuple.cs deleted file mode 100644 index 07302df8..00000000 --- a/src/WixToolset.Data/Tuples/ModuleIgnoreTableTuple.cs +++ /dev/null @@ -1,36 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition ModuleIgnoreTable = new IntermediateSymbolDefinition( - SymbolDefinitionType.ModuleIgnoreTable, - new IntermediateFieldDefinition[] - { - }, - typeof(ModuleIgnoreTableSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum ModuleIgnoreTableSymbolFields - { - } - - public class ModuleIgnoreTableSymbol : IntermediateSymbol - { - public ModuleIgnoreTableSymbol() : base(SymbolDefinitions.ModuleIgnoreTable, null, null) - { - } - - public ModuleIgnoreTableSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ModuleIgnoreTable, sourceLineNumber, id) - { - } - - public IntermediateField this[ModuleIgnoreTableSymbolFields index] => this.Fields[(int)index]; - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/ModuleSignatureTuple.cs b/src/WixToolset.Data/Tuples/ModuleSignatureTuple.cs deleted file mode 100644 index 5f6ded09..00000000 --- a/src/WixToolset.Data/Tuples/ModuleSignatureTuple.cs +++ /dev/null @@ -1,60 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition ModuleSignature = new IntermediateSymbolDefinition( - SymbolDefinitionType.ModuleSignature, - new[] - { - new IntermediateFieldDefinition(nameof(ModuleSignatureSymbolFields.ModuleID), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ModuleSignatureSymbolFields.Language), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(ModuleSignatureSymbolFields.Version), IntermediateFieldType.String), - }, - typeof(ModuleSignatureSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum ModuleSignatureSymbolFields - { - ModuleID, - Language, - Version, - } - - public class ModuleSignatureSymbol : IntermediateSymbol - { - public ModuleSignatureSymbol() : base(SymbolDefinitions.ModuleSignature, null, null) - { - } - - public ModuleSignatureSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ModuleSignature, sourceLineNumber, id) - { - } - - public IntermediateField this[ModuleSignatureSymbolFields index] => this.Fields[(int)index]; - - public string ModuleID - { - get => (string)this.Fields[(int)ModuleSignatureSymbolFields.ModuleID]; - set => this.Set((int)ModuleSignatureSymbolFields.ModuleID, value); - } - - public int Language - { - get => (int)this.Fields[(int)ModuleSignatureSymbolFields.Language]; - set => this.Set((int)ModuleSignatureSymbolFields.Language, value); - } - - public string Version - { - get => (string)this.Fields[(int)ModuleSignatureSymbolFields.Version]; - set => this.Set((int)ModuleSignatureSymbolFields.Version, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/ModuleSubstitutionTuple.cs b/src/WixToolset.Data/Tuples/ModuleSubstitutionTuple.cs deleted file mode 100644 index 50d615b0..00000000 --- a/src/WixToolset.Data/Tuples/ModuleSubstitutionTuple.cs +++ /dev/null @@ -1,68 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition ModuleSubstitution = new IntermediateSymbolDefinition( - SymbolDefinitionType.ModuleSubstitution, - new[] - { - new IntermediateFieldDefinition(nameof(ModuleSubstitutionSymbolFields.Table), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ModuleSubstitutionSymbolFields.Row), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ModuleSubstitutionSymbolFields.Column), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ModuleSubstitutionSymbolFields.Value), IntermediateFieldType.String), - }, - typeof(ModuleSubstitutionSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum ModuleSubstitutionSymbolFields - { - Table, - Row, - Column, - Value, - } - - public class ModuleSubstitutionSymbol : IntermediateSymbol - { - public ModuleSubstitutionSymbol() : base(SymbolDefinitions.ModuleSubstitution, null, null) - { - } - - public ModuleSubstitutionSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ModuleSubstitution, sourceLineNumber, id) - { - } - - public IntermediateField this[ModuleSubstitutionSymbolFields index] => this.Fields[(int)index]; - - public string Table - { - get => (string)this.Fields[(int)ModuleSubstitutionSymbolFields.Table]; - set => this.Set((int)ModuleSubstitutionSymbolFields.Table, value); - } - - public string Row - { - get => (string)this.Fields[(int)ModuleSubstitutionSymbolFields.Row]; - set => this.Set((int)ModuleSubstitutionSymbolFields.Row, value); - } - - public string Column - { - get => (string)this.Fields[(int)ModuleSubstitutionSymbolFields.Column]; - set => this.Set((int)ModuleSubstitutionSymbolFields.Column, value); - } - - public string Value - { - get => (string)this.Fields[(int)ModuleSubstitutionSymbolFields.Value]; - set => this.Set((int)ModuleSubstitutionSymbolFields.Value, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/MoveFileTuple.cs b/src/WixToolset.Data/Tuples/MoveFileTuple.cs deleted file mode 100644 index 84089965..00000000 --- a/src/WixToolset.Data/Tuples/MoveFileTuple.cs +++ /dev/null @@ -1,84 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition MoveFile = new IntermediateSymbolDefinition( - SymbolDefinitionType.MoveFile, - new[] - { - new IntermediateFieldDefinition(nameof(MoveFileSymbolFields.ComponentRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(MoveFileSymbolFields.SourceName), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(MoveFileSymbolFields.DestName), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(MoveFileSymbolFields.SourceFolder), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(MoveFileSymbolFields.DestFolder), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(MoveFileSymbolFields.Delete), IntermediateFieldType.Bool), - }, - typeof(MoveFileSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum MoveFileSymbolFields - { - ComponentRef, - SourceName, - DestName, - SourceFolder, - DestFolder, - Delete, - } - - public class MoveFileSymbol : IntermediateSymbol - { - public MoveFileSymbol() : base(SymbolDefinitions.MoveFile, null, null) - { - } - - public MoveFileSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.MoveFile, sourceLineNumber, id) - { - } - - public IntermediateField this[MoveFileSymbolFields index] => this.Fields[(int)index]; - - public string ComponentRef - { - get => (string)this.Fields[(int)MoveFileSymbolFields.ComponentRef]; - set => this.Set((int)MoveFileSymbolFields.ComponentRef, value); - } - - public string SourceName - { - get => (string)this.Fields[(int)MoveFileSymbolFields.SourceName]; - set => this.Set((int)MoveFileSymbolFields.SourceName, value); - } - - public string DestName - { - get => (string)this.Fields[(int)MoveFileSymbolFields.DestName]; - set => this.Set((int)MoveFileSymbolFields.DestName, value); - } - - public string SourceFolder - { - get => (string)this.Fields[(int)MoveFileSymbolFields.SourceFolder]; - set => this.Set((int)MoveFileSymbolFields.SourceFolder, value); - } - - public string DestFolder - { - get => (string)this.Fields[(int)MoveFileSymbolFields.DestFolder]; - set => this.Set((int)MoveFileSymbolFields.DestFolder, value); - } - - public bool Delete - { - get => (bool)this.Fields[(int)MoveFileSymbolFields.Delete]; - set => this.Set((int)MoveFileSymbolFields.Delete, value); - } - } -} diff --git a/src/WixToolset.Data/Tuples/MsiAssemblyNameTuple.cs b/src/WixToolset.Data/Tuples/MsiAssemblyNameTuple.cs deleted file mode 100644 index 99c9806d..00000000 --- a/src/WixToolset.Data/Tuples/MsiAssemblyNameTuple.cs +++ /dev/null @@ -1,60 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition MsiAssemblyName = new IntermediateSymbolDefinition( - SymbolDefinitionType.MsiAssemblyName, - new[] - { - new IntermediateFieldDefinition(nameof(MsiAssemblyNameSymbolFields.ComponentRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(MsiAssemblyNameSymbolFields.Name), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(MsiAssemblyNameSymbolFields.Value), IntermediateFieldType.String), - }, - typeof(MsiAssemblyNameSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum MsiAssemblyNameSymbolFields - { - ComponentRef, - Name, - Value, - } - - public class MsiAssemblyNameSymbol : IntermediateSymbol - { - public MsiAssemblyNameSymbol() : base(SymbolDefinitions.MsiAssemblyName, null, null) - { - } - - public MsiAssemblyNameSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.MsiAssemblyName, sourceLineNumber, id) - { - } - - public IntermediateField this[MsiAssemblyNameSymbolFields index] => this.Fields[(int)index]; - - public string ComponentRef - { - get => (string)this.Fields[(int)MsiAssemblyNameSymbolFields.ComponentRef]; - set => this.Set((int)MsiAssemblyNameSymbolFields.ComponentRef, value); - } - - public string Name - { - get => (string)this.Fields[(int)MsiAssemblyNameSymbolFields.Name]; - set => this.Set((int)MsiAssemblyNameSymbolFields.Name, value); - } - - public string Value - { - get => (string)this.Fields[(int)MsiAssemblyNameSymbolFields.Value]; - set => this.Set((int)MsiAssemblyNameSymbolFields.Value, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/MsiDigitalCertificateTuple.cs b/src/WixToolset.Data/Tuples/MsiDigitalCertificateTuple.cs deleted file mode 100644 index febd51cc..00000000 --- a/src/WixToolset.Data/Tuples/MsiDigitalCertificateTuple.cs +++ /dev/null @@ -1,44 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition MsiDigitalCertificate = new IntermediateSymbolDefinition( - SymbolDefinitionType.MsiDigitalCertificate, - new[] - { - new IntermediateFieldDefinition(nameof(MsiDigitalCertificateSymbolFields.CertData), IntermediateFieldType.Path), - }, - typeof(MsiDigitalCertificateSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum MsiDigitalCertificateSymbolFields - { - CertData, - } - - public class MsiDigitalCertificateSymbol : IntermediateSymbol - { - public MsiDigitalCertificateSymbol() : base(SymbolDefinitions.MsiDigitalCertificate, null, null) - { - } - - public MsiDigitalCertificateSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.MsiDigitalCertificate, sourceLineNumber, id) - { - } - - public IntermediateField this[MsiDigitalCertificateSymbolFields index] => this.Fields[(int)index]; - - public string CertData - { - get => (string)this.Fields[(int)MsiDigitalCertificateSymbolFields.CertData]; - set => this.Set((int)MsiDigitalCertificateSymbolFields.CertData, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/MsiDigitalSignatureTuple.cs b/src/WixToolset.Data/Tuples/MsiDigitalSignatureTuple.cs deleted file mode 100644 index 560f3590..00000000 --- a/src/WixToolset.Data/Tuples/MsiDigitalSignatureTuple.cs +++ /dev/null @@ -1,68 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition MsiDigitalSignature = new IntermediateSymbolDefinition( - SymbolDefinitionType.MsiDigitalSignature, - new[] - { - new IntermediateFieldDefinition(nameof(MsiDigitalSignatureSymbolFields.Table), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(MsiDigitalSignatureSymbolFields.SignObject), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(MsiDigitalSignatureSymbolFields.DigitalCertificateRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(MsiDigitalSignatureSymbolFields.Hash), IntermediateFieldType.Path), - }, - typeof(MsiDigitalSignatureSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum MsiDigitalSignatureSymbolFields - { - Table, - SignObject, - DigitalCertificateRef, - Hash, - } - - public class MsiDigitalSignatureSymbol : IntermediateSymbol - { - public MsiDigitalSignatureSymbol() : base(SymbolDefinitions.MsiDigitalSignature, null, null) - { - } - - public MsiDigitalSignatureSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.MsiDigitalSignature, sourceLineNumber, id) - { - } - - public IntermediateField this[MsiDigitalSignatureSymbolFields index] => this.Fields[(int)index]; - - public string Table - { - get => (string)this.Fields[(int)MsiDigitalSignatureSymbolFields.Table]; - set => this.Set((int)MsiDigitalSignatureSymbolFields.Table, value); - } - - public string SignObject - { - get => (string)this.Fields[(int)MsiDigitalSignatureSymbolFields.SignObject]; - set => this.Set((int)MsiDigitalSignatureSymbolFields.SignObject, value); - } - - public string DigitalCertificateRef - { - get => (string)this.Fields[(int)MsiDigitalSignatureSymbolFields.DigitalCertificateRef]; - set => this.Set((int)MsiDigitalSignatureSymbolFields.DigitalCertificateRef, value); - } - - public string Hash - { - get => (string)this.Fields[(int)MsiDigitalSignatureSymbolFields.Hash]; - set => this.Set((int)MsiDigitalSignatureSymbolFields.Hash, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/MsiEmbeddedChainerTuple.cs b/src/WixToolset.Data/Tuples/MsiEmbeddedChainerTuple.cs deleted file mode 100644 index eeed1673..00000000 --- a/src/WixToolset.Data/Tuples/MsiEmbeddedChainerTuple.cs +++ /dev/null @@ -1,68 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition MsiEmbeddedChainer = new IntermediateSymbolDefinition( - SymbolDefinitionType.MsiEmbeddedChainer, - new[] - { - new IntermediateFieldDefinition(nameof(MsiEmbeddedChainerSymbolFields.Condition), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(MsiEmbeddedChainerSymbolFields.CommandLine), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(MsiEmbeddedChainerSymbolFields.Source), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(MsiEmbeddedChainerSymbolFields.Type), IntermediateFieldType.Number), - }, - typeof(MsiEmbeddedChainerSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum MsiEmbeddedChainerSymbolFields - { - Condition, - CommandLine, - Source, - Type, - } - - public class MsiEmbeddedChainerSymbol : IntermediateSymbol - { - public MsiEmbeddedChainerSymbol() : base(SymbolDefinitions.MsiEmbeddedChainer, null, null) - { - } - - public MsiEmbeddedChainerSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.MsiEmbeddedChainer, sourceLineNumber, id) - { - } - - public IntermediateField this[MsiEmbeddedChainerSymbolFields index] => this.Fields[(int)index]; - - public string Condition - { - get => (string)this.Fields[(int)MsiEmbeddedChainerSymbolFields.Condition]; - set => this.Set((int)MsiEmbeddedChainerSymbolFields.Condition, value); - } - - public string CommandLine - { - get => (string)this.Fields[(int)MsiEmbeddedChainerSymbolFields.CommandLine]; - set => this.Set((int)MsiEmbeddedChainerSymbolFields.CommandLine, value); - } - - public string Source - { - get => (string)this.Fields[(int)MsiEmbeddedChainerSymbolFields.Source]; - set => this.Set((int)MsiEmbeddedChainerSymbolFields.Source, value); - } - - public int Type - { - get => (int)this.Fields[(int)MsiEmbeddedChainerSymbolFields.Type]; - set => this.Set((int)MsiEmbeddedChainerSymbolFields.Type, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/MsiEmbeddedUITuple.cs b/src/WixToolset.Data/Tuples/MsiEmbeddedUITuple.cs deleted file mode 100644 index 87c9481a..00000000 --- a/src/WixToolset.Data/Tuples/MsiEmbeddedUITuple.cs +++ /dev/null @@ -1,76 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition MsiEmbeddedUI = new IntermediateSymbolDefinition( - SymbolDefinitionType.MsiEmbeddedUI, - new[] - { - new IntermediateFieldDefinition(nameof(MsiEmbeddedUISymbolFields.FileName), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(MsiEmbeddedUISymbolFields.EntryPoint), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(MsiEmbeddedUISymbolFields.SupportsBasicUI), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(MsiEmbeddedUISymbolFields.MessageFilter), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(MsiEmbeddedUISymbolFields.Source), IntermediateFieldType.Path), - }, - typeof(MsiEmbeddedUISymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum MsiEmbeddedUISymbolFields - { - FileName, - EntryPoint, - SupportsBasicUI, - MessageFilter, - Source, - } - - public class MsiEmbeddedUISymbol : IntermediateSymbol - { - public MsiEmbeddedUISymbol() : base(SymbolDefinitions.MsiEmbeddedUI, null, null) - { - } - - public MsiEmbeddedUISymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.MsiEmbeddedUI, sourceLineNumber, id) - { - } - - public IntermediateField this[MsiEmbeddedUISymbolFields index] => this.Fields[(int)index]; - - public string FileName - { - get => (string)this.Fields[(int)MsiEmbeddedUISymbolFields.FileName]; - set => this.Set((int)MsiEmbeddedUISymbolFields.FileName, value); - } - - public bool EntryPoint - { - get => this.Fields[(int)MsiEmbeddedUISymbolFields.EntryPoint].AsBool(); - set => this.Set((int)MsiEmbeddedUISymbolFields.EntryPoint, value); - } - - public bool SupportsBasicUI - { - get => this.Fields[(int)MsiEmbeddedUISymbolFields.SupportsBasicUI].AsBool(); - set => this.Set((int)MsiEmbeddedUISymbolFields.SupportsBasicUI, value); - } - - public int? MessageFilter - { - get => (int?)this.Fields[(int)MsiEmbeddedUISymbolFields.MessageFilter]; - set => this.Set((int)MsiEmbeddedUISymbolFields.MessageFilter, value); - } - - public string Source - { - get => (string)this.Fields[(int)MsiEmbeddedUISymbolFields.Source]; - set => this.Set((int)MsiEmbeddedUISymbolFields.Source, value); - } - } -} diff --git a/src/WixToolset.Data/Tuples/MsiFileHashTuple.cs b/src/WixToolset.Data/Tuples/MsiFileHashTuple.cs deleted file mode 100644 index bfec1c12..00000000 --- a/src/WixToolset.Data/Tuples/MsiFileHashTuple.cs +++ /dev/null @@ -1,76 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition MsiFileHash = new IntermediateSymbolDefinition( - SymbolDefinitionType.MsiFileHash, - new[] - { - new IntermediateFieldDefinition(nameof(MsiFileHashSymbolFields.Options), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(MsiFileHashSymbolFields.HashPart1), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(MsiFileHashSymbolFields.HashPart2), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(MsiFileHashSymbolFields.HashPart3), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(MsiFileHashSymbolFields.HashPart4), IntermediateFieldType.Number), - }, - typeof(MsiFileHashSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum MsiFileHashSymbolFields - { - Options, - HashPart1, - HashPart2, - HashPart3, - HashPart4, - } - - public class MsiFileHashSymbol : IntermediateSymbol - { - public MsiFileHashSymbol() : base(SymbolDefinitions.MsiFileHash, null, null) - { - } - - public MsiFileHashSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.MsiFileHash, sourceLineNumber, id) - { - } - - public IntermediateField this[MsiFileHashSymbolFields index] => this.Fields[(int)index]; - - public int Options - { - get => (int)this.Fields[(int)MsiFileHashSymbolFields.Options]; - set => this.Set((int)MsiFileHashSymbolFields.Options, value); - } - - public int HashPart1 - { - get => (int)this.Fields[(int)MsiFileHashSymbolFields.HashPart1]; - set => this.Set((int)MsiFileHashSymbolFields.HashPart1, value); - } - - public int HashPart2 - { - get => (int)this.Fields[(int)MsiFileHashSymbolFields.HashPart2]; - set => this.Set((int)MsiFileHashSymbolFields.HashPart2, value); - } - - public int HashPart3 - { - get => (int)this.Fields[(int)MsiFileHashSymbolFields.HashPart3]; - set => this.Set((int)MsiFileHashSymbolFields.HashPart3, value); - } - - public int HashPart4 - { - get => (int)this.Fields[(int)MsiFileHashSymbolFields.HashPart4]; - set => this.Set((int)MsiFileHashSymbolFields.HashPart4, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/MsiLockPermissionsExTuple.cs b/src/WixToolset.Data/Tuples/MsiLockPermissionsExTuple.cs deleted file mode 100644 index 88e7d019..00000000 --- a/src/WixToolset.Data/Tuples/MsiLockPermissionsExTuple.cs +++ /dev/null @@ -1,68 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition MsiLockPermissionsEx = new IntermediateSymbolDefinition( - SymbolDefinitionType.MsiLockPermissionsEx, - new[] - { - new IntermediateFieldDefinition(nameof(MsiLockPermissionsExSymbolFields.LockObject), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(MsiLockPermissionsExSymbolFields.Table), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(MsiLockPermissionsExSymbolFields.SDDLText), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(MsiLockPermissionsExSymbolFields.Condition), IntermediateFieldType.String), - }, - typeof(MsiLockPermissionsExSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum MsiLockPermissionsExSymbolFields - { - LockObject, - Table, - SDDLText, - Condition, - } - - public class MsiLockPermissionsExSymbol : IntermediateSymbol - { - public MsiLockPermissionsExSymbol() : base(SymbolDefinitions.MsiLockPermissionsEx, null, null) - { - } - - public MsiLockPermissionsExSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.MsiLockPermissionsEx, sourceLineNumber, id) - { - } - - public IntermediateField this[MsiLockPermissionsExSymbolFields index] => this.Fields[(int)index]; - - public string LockObject - { - get => (string)this.Fields[(int)MsiLockPermissionsExSymbolFields.LockObject]; - set => this.Set((int)MsiLockPermissionsExSymbolFields.LockObject, value); - } - - public string Table - { - get => (string)this.Fields[(int)MsiLockPermissionsExSymbolFields.Table]; - set => this.Set((int)MsiLockPermissionsExSymbolFields.Table, value); - } - - public string SDDLText - { - get => (string)this.Fields[(int)MsiLockPermissionsExSymbolFields.SDDLText]; - set => this.Set((int)MsiLockPermissionsExSymbolFields.SDDLText, value); - } - - public string Condition - { - get => (string)this.Fields[(int)MsiLockPermissionsExSymbolFields.Condition]; - set => this.Set((int)MsiLockPermissionsExSymbolFields.Condition, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/MsiPackageCertificateTuple.cs b/src/WixToolset.Data/Tuples/MsiPackageCertificateTuple.cs deleted file mode 100644 index 4a6774b1..00000000 --- a/src/WixToolset.Data/Tuples/MsiPackageCertificateTuple.cs +++ /dev/null @@ -1,52 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition MsiPackageCertificate = new IntermediateSymbolDefinition( - SymbolDefinitionType.MsiPackageCertificate, - new[] - { - new IntermediateFieldDefinition(nameof(MsiPackageCertificateSymbolFields.PackageCertificate), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(MsiPackageCertificateSymbolFields.DigitalCertificateRef), IntermediateFieldType.String), - }, - typeof(MsiPackageCertificateSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum MsiPackageCertificateSymbolFields - { - PackageCertificate, - DigitalCertificateRef, - } - - public class MsiPackageCertificateSymbol : IntermediateSymbol - { - public MsiPackageCertificateSymbol() : base(SymbolDefinitions.MsiPackageCertificate, null, null) - { - } - - public MsiPackageCertificateSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.MsiPackageCertificate, sourceLineNumber, id) - { - } - - public IntermediateField this[MsiPackageCertificateSymbolFields index] => this.Fields[(int)index]; - - public string PackageCertificate - { - get => (string)this.Fields[(int)MsiPackageCertificateSymbolFields.PackageCertificate]; - set => this.Set((int)MsiPackageCertificateSymbolFields.PackageCertificate, value); - } - - public string DigitalCertificateRef - { - get => (string)this.Fields[(int)MsiPackageCertificateSymbolFields.DigitalCertificateRef]; - set => this.Set((int)MsiPackageCertificateSymbolFields.DigitalCertificateRef, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/MsiPatchCertificateTuple.cs b/src/WixToolset.Data/Tuples/MsiPatchCertificateTuple.cs deleted file mode 100644 index 7d6ce24e..00000000 --- a/src/WixToolset.Data/Tuples/MsiPatchCertificateTuple.cs +++ /dev/null @@ -1,52 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition MsiPatchCertificate = new IntermediateSymbolDefinition( - SymbolDefinitionType.MsiPatchCertificate, - new[] - { - new IntermediateFieldDefinition(nameof(MsiPatchCertificateSymbolFields.PatchCertificate), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(MsiPatchCertificateSymbolFields.DigitalCertificateRef), IntermediateFieldType.String), - }, - typeof(MsiPatchCertificateSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum MsiPatchCertificateSymbolFields - { - PatchCertificate, - DigitalCertificateRef, - } - - public class MsiPatchCertificateSymbol : IntermediateSymbol - { - public MsiPatchCertificateSymbol() : base(SymbolDefinitions.MsiPatchCertificate, null, null) - { - } - - public MsiPatchCertificateSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.MsiPatchCertificate, sourceLineNumber, id) - { - } - - public IntermediateField this[MsiPatchCertificateSymbolFields index] => this.Fields[(int)index]; - - public string PatchCertificate - { - get => (string)this.Fields[(int)MsiPatchCertificateSymbolFields.PatchCertificate]; - set => this.Set((int)MsiPatchCertificateSymbolFields.PatchCertificate, value); - } - - public string DigitalCertificateRef - { - get => (string)this.Fields[(int)MsiPatchCertificateSymbolFields.DigitalCertificateRef]; - set => this.Set((int)MsiPatchCertificateSymbolFields.DigitalCertificateRef, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/MsiPatchHeadersTuple.cs b/src/WixToolset.Data/Tuples/MsiPatchHeadersTuple.cs deleted file mode 100644 index 0c68b164..00000000 --- a/src/WixToolset.Data/Tuples/MsiPatchHeadersTuple.cs +++ /dev/null @@ -1,52 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition MsiPatchHeaders = new IntermediateSymbolDefinition( - SymbolDefinitionType.MsiPatchHeaders, - new[] - { - new IntermediateFieldDefinition(nameof(MsiPatchHeadersSymbolFields.StreamRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(MsiPatchHeadersSymbolFields.Header), IntermediateFieldType.Path), - }, - typeof(MsiPatchHeadersSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum MsiPatchHeadersSymbolFields - { - StreamRef, - Header, - } - - public class MsiPatchHeadersSymbol : IntermediateSymbol - { - public MsiPatchHeadersSymbol() : base(SymbolDefinitions.MsiPatchHeaders, null, null) - { - } - - public MsiPatchHeadersSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.MsiPatchHeaders, sourceLineNumber, id) - { - } - - public IntermediateField this[MsiPatchHeadersSymbolFields index] => this.Fields[(int)index]; - - public string StreamRef - { - get => (string)this.Fields[(int)MsiPatchHeadersSymbolFields.StreamRef]; - set => this.Set((int)MsiPatchHeadersSymbolFields.StreamRef, value); - } - - public string Header - { - get => (string)this.Fields[(int)MsiPatchHeadersSymbolFields.Header]; - set => this.Set((int)MsiPatchHeadersSymbolFields.Header, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/MsiPatchMetadataTuple.cs b/src/WixToolset.Data/Tuples/MsiPatchMetadataTuple.cs deleted file mode 100644 index 682adbca..00000000 --- a/src/WixToolset.Data/Tuples/MsiPatchMetadataTuple.cs +++ /dev/null @@ -1,60 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition MsiPatchMetadata = new IntermediateSymbolDefinition( - SymbolDefinitionType.MsiPatchMetadata, - new[] - { - new IntermediateFieldDefinition(nameof(MsiPatchMetadataSymbolFields.Company), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(MsiPatchMetadataSymbolFields.Property), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(MsiPatchMetadataSymbolFields.Value), IntermediateFieldType.String), - }, - typeof(MsiPatchMetadataSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum MsiPatchMetadataSymbolFields - { - Company, - Property, - Value, - } - - public class MsiPatchMetadataSymbol : IntermediateSymbol - { - public MsiPatchMetadataSymbol() : base(SymbolDefinitions.MsiPatchMetadata, null, null) - { - } - - public MsiPatchMetadataSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.MsiPatchMetadata, sourceLineNumber, id) - { - } - - public IntermediateField this[MsiPatchMetadataSymbolFields index] => this.Fields[(int)index]; - - public string Company - { - get => (string)this.Fields[(int)MsiPatchMetadataSymbolFields.Company]; - set => this.Set((int)MsiPatchMetadataSymbolFields.Company, value); - } - - public string Property - { - get => (string)this.Fields[(int)MsiPatchMetadataSymbolFields.Property]; - set => this.Set((int)MsiPatchMetadataSymbolFields.Property, value); - } - - public string Value - { - get => (string)this.Fields[(int)MsiPatchMetadataSymbolFields.Value]; - set => this.Set((int)MsiPatchMetadataSymbolFields.Value, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/MsiPatchOldAssemblyFileTuple.cs b/src/WixToolset.Data/Tuples/MsiPatchOldAssemblyFileTuple.cs deleted file mode 100644 index 75385ba8..00000000 --- a/src/WixToolset.Data/Tuples/MsiPatchOldAssemblyFileTuple.cs +++ /dev/null @@ -1,52 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition MsiPatchOldAssemblyFile = new IntermediateSymbolDefinition( - SymbolDefinitionType.MsiPatchOldAssemblyFile, - new[] - { - new IntermediateFieldDefinition(nameof(MsiPatchOldAssemblyFileSymbolFields.FileRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(MsiPatchOldAssemblyFileSymbolFields.AssemblyRef), IntermediateFieldType.String), - }, - typeof(MsiPatchOldAssemblyFileSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum MsiPatchOldAssemblyFileSymbolFields - { - FileRef, - AssemblyRef, - } - - public class MsiPatchOldAssemblyFileSymbol : IntermediateSymbol - { - public MsiPatchOldAssemblyFileSymbol() : base(SymbolDefinitions.MsiPatchOldAssemblyFile, null, null) - { - } - - public MsiPatchOldAssemblyFileSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.MsiPatchOldAssemblyFile, sourceLineNumber, id) - { - } - - public IntermediateField this[MsiPatchOldAssemblyFileSymbolFields index] => this.Fields[(int)index]; - - public string FileRef - { - get => (string)this.Fields[(int)MsiPatchOldAssemblyFileSymbolFields.FileRef]; - set => this.Set((int)MsiPatchOldAssemblyFileSymbolFields.FileRef, value); - } - - public string AssemblyRef - { - get => (string)this.Fields[(int)MsiPatchOldAssemblyFileSymbolFields.AssemblyRef]; - set => this.Set((int)MsiPatchOldAssemblyFileSymbolFields.AssemblyRef, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/MsiPatchOldAssemblyNameTuple.cs b/src/WixToolset.Data/Tuples/MsiPatchOldAssemblyNameTuple.cs deleted file mode 100644 index 199f5ff7..00000000 --- a/src/WixToolset.Data/Tuples/MsiPatchOldAssemblyNameTuple.cs +++ /dev/null @@ -1,60 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition MsiPatchOldAssemblyName = new IntermediateSymbolDefinition( - SymbolDefinitionType.MsiPatchOldAssemblyName, - new[] - { - new IntermediateFieldDefinition(nameof(MsiPatchOldAssemblyNameSymbolFields.Assembly), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(MsiPatchOldAssemblyNameSymbolFields.Name), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(MsiPatchOldAssemblyNameSymbolFields.Value), IntermediateFieldType.String), - }, - typeof(MsiPatchOldAssemblyNameSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum MsiPatchOldAssemblyNameSymbolFields - { - Assembly, - Name, - Value, - } - - public class MsiPatchOldAssemblyNameSymbol : IntermediateSymbol - { - public MsiPatchOldAssemblyNameSymbol() : base(SymbolDefinitions.MsiPatchOldAssemblyName, null, null) - { - } - - public MsiPatchOldAssemblyNameSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.MsiPatchOldAssemblyName, sourceLineNumber, id) - { - } - - public IntermediateField this[MsiPatchOldAssemblyNameSymbolFields index] => this.Fields[(int)index]; - - public string Assembly - { - get => (string)this.Fields[(int)MsiPatchOldAssemblyNameSymbolFields.Assembly]; - set => this.Set((int)MsiPatchOldAssemblyNameSymbolFields.Assembly, value); - } - - public string Name - { - get => (string)this.Fields[(int)MsiPatchOldAssemblyNameSymbolFields.Name]; - set => this.Set((int)MsiPatchOldAssemblyNameSymbolFields.Name, value); - } - - public string Value - { - get => (string)this.Fields[(int)MsiPatchOldAssemblyNameSymbolFields.Value]; - set => this.Set((int)MsiPatchOldAssemblyNameSymbolFields.Value, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/MsiPatchSequenceTuple.cs b/src/WixToolset.Data/Tuples/MsiPatchSequenceTuple.cs deleted file mode 100644 index ac2b0dc4..00000000 --- a/src/WixToolset.Data/Tuples/MsiPatchSequenceTuple.cs +++ /dev/null @@ -1,68 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition MsiPatchSequence = new IntermediateSymbolDefinition( - SymbolDefinitionType.MsiPatchSequence, - new[] - { - new IntermediateFieldDefinition(nameof(MsiPatchSequenceSymbolFields.PatchFamily), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(MsiPatchSequenceSymbolFields.ProductCode), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(MsiPatchSequenceSymbolFields.Sequence), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(MsiPatchSequenceSymbolFields.Attributes), IntermediateFieldType.Number), - }, - typeof(MsiPatchSequenceSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum MsiPatchSequenceSymbolFields - { - PatchFamily, - ProductCode, - Sequence, - Attributes, - } - - public class MsiPatchSequenceSymbol : IntermediateSymbol - { - public MsiPatchSequenceSymbol() : base(SymbolDefinitions.MsiPatchSequence, null, null) - { - } - - public MsiPatchSequenceSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.MsiPatchSequence, sourceLineNumber, id) - { - } - - public IntermediateField this[MsiPatchSequenceSymbolFields index] => this.Fields[(int)index]; - - public string PatchFamily - { - get => (string)this.Fields[(int)MsiPatchSequenceSymbolFields.PatchFamily]; - set => this.Set((int)MsiPatchSequenceSymbolFields.PatchFamily, value); - } - - public string ProductCode - { - get => (string)this.Fields[(int)MsiPatchSequenceSymbolFields.ProductCode]; - set => this.Set((int)MsiPatchSequenceSymbolFields.ProductCode, value); - } - - public string Sequence - { - get => (string)this.Fields[(int)MsiPatchSequenceSymbolFields.Sequence]; - set => this.Set((int)MsiPatchSequenceSymbolFields.Sequence, value); - } - - public int? Attributes - { - get => (int?)this.Fields[(int)MsiPatchSequenceSymbolFields.Attributes]; - set => this.Set((int)MsiPatchSequenceSymbolFields.Attributes, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/MsiServiceConfigFailureActionsTuple.cs b/src/WixToolset.Data/Tuples/MsiServiceConfigFailureActionsTuple.cs deleted file mode 100644 index 92ca4059..00000000 --- a/src/WixToolset.Data/Tuples/MsiServiceConfigFailureActionsTuple.cs +++ /dev/null @@ -1,116 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition MsiServiceConfigFailureActions = new IntermediateSymbolDefinition( - SymbolDefinitionType.MsiServiceConfigFailureActions, - new[] - { - new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsSymbolFields.Name), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsSymbolFields.OnInstall), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsSymbolFields.OnReinstall), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsSymbolFields.OnUninstall), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsSymbolFields.ResetPeriod), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsSymbolFields.RebootMessage), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsSymbolFields.Command), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsSymbolFields.Actions), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsSymbolFields.DelayActions), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsSymbolFields.ComponentRef), IntermediateFieldType.String), - }, - typeof(MsiServiceConfigFailureActionsSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum MsiServiceConfigFailureActionsSymbolFields - { - Name, - OnInstall, - OnReinstall, - OnUninstall, - ResetPeriod, - RebootMessage, - Command, - Actions, - DelayActions, - ComponentRef, - } - - public class MsiServiceConfigFailureActionsSymbol : IntermediateSymbol - { - public MsiServiceConfigFailureActionsSymbol() : base(SymbolDefinitions.MsiServiceConfigFailureActions, null, null) - { - } - - public MsiServiceConfigFailureActionsSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.MsiServiceConfigFailureActions, sourceLineNumber, id) - { - } - - public IntermediateField this[MsiServiceConfigFailureActionsSymbolFields index] => this.Fields[(int)index]; - - public string Name - { - get => (string)this.Fields[(int)MsiServiceConfigFailureActionsSymbolFields.Name]; - set => this.Set((int)MsiServiceConfigFailureActionsSymbolFields.Name, value); - } - - public bool OnInstall - { - get => this.Fields[(int)MsiServiceConfigFailureActionsSymbolFields.OnInstall].AsBool(); - set => this.Set((int)MsiServiceConfigFailureActionsSymbolFields.OnInstall, value); - } - - public bool OnReinstall - { - get => this.Fields[(int)MsiServiceConfigFailureActionsSymbolFields.OnReinstall].AsBool(); - set => this.Set((int)MsiServiceConfigFailureActionsSymbolFields.OnReinstall, value); - } - - public bool OnUninstall - { - get => this.Fields[(int)MsiServiceConfigFailureActionsSymbolFields.OnUninstall].AsBool(); - set => this.Set((int)MsiServiceConfigFailureActionsSymbolFields.OnUninstall, value); - } - - public int? ResetPeriod - { - get => (int?)this.Fields[(int)MsiServiceConfigFailureActionsSymbolFields.ResetPeriod]; - set => this.Set((int)MsiServiceConfigFailureActionsSymbolFields.ResetPeriod, value); - } - - public string RebootMessage - { - get => (string)this.Fields[(int)MsiServiceConfigFailureActionsSymbolFields.RebootMessage]; - set => this.Set((int)MsiServiceConfigFailureActionsSymbolFields.RebootMessage, value); - } - - public string Command - { - get => (string)this.Fields[(int)MsiServiceConfigFailureActionsSymbolFields.Command]; - set => this.Set((int)MsiServiceConfigFailureActionsSymbolFields.Command, value); - } - - public string Actions - { - get => (string)this.Fields[(int)MsiServiceConfigFailureActionsSymbolFields.Actions]; - set => this.Set((int)MsiServiceConfigFailureActionsSymbolFields.Actions, value); - } - - public string DelayActions - { - get => (string)this.Fields[(int)MsiServiceConfigFailureActionsSymbolFields.DelayActions]; - set => this.Set((int)MsiServiceConfigFailureActionsSymbolFields.DelayActions, value); - } - - public string ComponentRef - { - get => (string)this.Fields[(int)MsiServiceConfigFailureActionsSymbolFields.ComponentRef]; - set => this.Set((int)MsiServiceConfigFailureActionsSymbolFields.ComponentRef, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/MsiServiceConfigTuple.cs b/src/WixToolset.Data/Tuples/MsiServiceConfigTuple.cs deleted file mode 100644 index 9ad72d1e..00000000 --- a/src/WixToolset.Data/Tuples/MsiServiceConfigTuple.cs +++ /dev/null @@ -1,101 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition MsiServiceConfig = new IntermediateSymbolDefinition( - SymbolDefinitionType.MsiServiceConfig, - new[] - { - new IntermediateFieldDefinition(nameof(MsiServiceConfigSymbolFields.Name), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsSymbolFields.OnInstall), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsSymbolFields.OnReinstall), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsSymbolFields.OnUninstall), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(MsiServiceConfigSymbolFields.ConfigType), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(MsiServiceConfigSymbolFields.Argument), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(MsiServiceConfigSymbolFields.ComponentRef), IntermediateFieldType.String), - }, - typeof(MsiServiceConfigSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum MsiServiceConfigSymbolFields - { - Name, - OnInstall, - OnReinstall, - OnUninstall, - ConfigType, - Argument, - ComponentRef, - } - - public enum MsiServiceConfigType - { - DelayedAutoStart = 3, - FailureActionsFlag, - ServiceSidInfo, - RequiredPrivilegesInfo, - PreshutdownInfo, - } - - public class MsiServiceConfigSymbol : IntermediateSymbol - { - public MsiServiceConfigSymbol() : base(SymbolDefinitions.MsiServiceConfig, null, null) - { - } - - public MsiServiceConfigSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.MsiServiceConfig, sourceLineNumber, id) - { - } - - public IntermediateField this[MsiServiceConfigSymbolFields index] => this.Fields[(int)index]; - - public string Name - { - get => (string)this.Fields[(int)MsiServiceConfigSymbolFields.Name]; - set => this.Set((int)MsiServiceConfigSymbolFields.Name, value); - } - - public bool OnInstall - { - get => this.Fields[(int)MsiServiceConfigSymbolFields.OnInstall].AsBool(); - set => this.Set((int)MsiServiceConfigSymbolFields.OnInstall, value); - } - - public bool OnReinstall - { - get => this.Fields[(int)MsiServiceConfigSymbolFields.OnReinstall].AsBool(); - set => this.Set((int)MsiServiceConfigSymbolFields.OnReinstall, value); - } - - public bool OnUninstall - { - get => this.Fields[(int)MsiServiceConfigSymbolFields.OnUninstall].AsBool(); - set => this.Set((int)MsiServiceConfigSymbolFields.OnUninstall, value); - } - - public MsiServiceConfigType ConfigType - { - get => (MsiServiceConfigType)this.Fields[(int)MsiServiceConfigSymbolFields.ConfigType].AsNumber(); - set => this.Set((int)MsiServiceConfigSymbolFields.ConfigType, (int)value); - } - - public string Argument - { - get => (string)this.Fields[(int)MsiServiceConfigSymbolFields.Argument]; - set => this.Set((int)MsiServiceConfigSymbolFields.Argument, value); - } - - public string ComponentRef - { - get => (string)this.Fields[(int)MsiServiceConfigSymbolFields.ComponentRef]; - set => this.Set((int)MsiServiceConfigSymbolFields.ComponentRef, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/MsiShortcutPropertyTuple.cs b/src/WixToolset.Data/Tuples/MsiShortcutPropertyTuple.cs deleted file mode 100644 index 5d5a46e5..00000000 --- a/src/WixToolset.Data/Tuples/MsiShortcutPropertyTuple.cs +++ /dev/null @@ -1,60 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition MsiShortcutProperty = new IntermediateSymbolDefinition( - SymbolDefinitionType.MsiShortcutProperty, - new[] - { - new IntermediateFieldDefinition(nameof(MsiShortcutPropertySymbolFields.ShortcutRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(MsiShortcutPropertySymbolFields.PropertyKey), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(MsiShortcutPropertySymbolFields.PropVariantValue), IntermediateFieldType.String), - }, - typeof(MsiShortcutPropertySymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum MsiShortcutPropertySymbolFields - { - ShortcutRef, - PropertyKey, - PropVariantValue, - } - - public class MsiShortcutPropertySymbol : IntermediateSymbol - { - public MsiShortcutPropertySymbol() : base(SymbolDefinitions.MsiShortcutProperty, null, null) - { - } - - public MsiShortcutPropertySymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.MsiShortcutProperty, sourceLineNumber, id) - { - } - - public IntermediateField this[MsiShortcutPropertySymbolFields index] => this.Fields[(int)index]; - - public string ShortcutRef - { - get => (string)this.Fields[(int)MsiShortcutPropertySymbolFields.ShortcutRef]; - set => this.Set((int)MsiShortcutPropertySymbolFields.ShortcutRef, value); - } - - public string PropertyKey - { - get => (string)this.Fields[(int)MsiShortcutPropertySymbolFields.PropertyKey]; - set => this.Set((int)MsiShortcutPropertySymbolFields.PropertyKey, value); - } - - public string PropVariantValue - { - get => (string)this.Fields[(int)MsiShortcutPropertySymbolFields.PropVariantValue]; - set => this.Set((int)MsiShortcutPropertySymbolFields.PropVariantValue, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/ODBCAttributeTuple.cs b/src/WixToolset.Data/Tuples/ODBCAttributeTuple.cs deleted file mode 100644 index 45ca6ed8..00000000 --- a/src/WixToolset.Data/Tuples/ODBCAttributeTuple.cs +++ /dev/null @@ -1,60 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition ODBCAttribute = new IntermediateSymbolDefinition( - SymbolDefinitionType.ODBCAttribute, - new[] - { - new IntermediateFieldDefinition(nameof(ODBCAttributeSymbolFields.DriverRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ODBCAttributeSymbolFields.Attribute), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ODBCAttributeSymbolFields.Value), IntermediateFieldType.String), - }, - typeof(ODBCAttributeSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum ODBCAttributeSymbolFields - { - DriverRef, - Attribute, - Value, - } - - public class ODBCAttributeSymbol : IntermediateSymbol - { - public ODBCAttributeSymbol() : base(SymbolDefinitions.ODBCAttribute, null, null) - { - } - - public ODBCAttributeSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ODBCAttribute, sourceLineNumber, id) - { - } - - public IntermediateField this[ODBCAttributeSymbolFields index] => this.Fields[(int)index]; - - public string DriverRef - { - get => (string)this.Fields[(int)ODBCAttributeSymbolFields.DriverRef]; - set => this.Set((int)ODBCAttributeSymbolFields.DriverRef, value); - } - - public string Attribute - { - get => (string)this.Fields[(int)ODBCAttributeSymbolFields.Attribute]; - set => this.Set((int)ODBCAttributeSymbolFields.Attribute, value); - } - - public string Value - { - get => (string)this.Fields[(int)ODBCAttributeSymbolFields.Value]; - set => this.Set((int)ODBCAttributeSymbolFields.Value, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/ODBCDataSourceTuple.cs b/src/WixToolset.Data/Tuples/ODBCDataSourceTuple.cs deleted file mode 100644 index 6af140bd..00000000 --- a/src/WixToolset.Data/Tuples/ODBCDataSourceTuple.cs +++ /dev/null @@ -1,68 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition ODBCDataSource = new IntermediateSymbolDefinition( - SymbolDefinitionType.ODBCDataSource, - new[] - { - new IntermediateFieldDefinition(nameof(ODBCDataSourceSymbolFields.ComponentRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ODBCDataSourceSymbolFields.Description), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ODBCDataSourceSymbolFields.DriverDescription), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ODBCDataSourceSymbolFields.Registration), IntermediateFieldType.Number), - }, - typeof(ODBCDataSourceSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum ODBCDataSourceSymbolFields - { - ComponentRef, - Description, - DriverDescription, - Registration, - } - - public class ODBCDataSourceSymbol : IntermediateSymbol - { - public ODBCDataSourceSymbol() : base(SymbolDefinitions.ODBCDataSource, null, null) - { - } - - public ODBCDataSourceSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ODBCDataSource, sourceLineNumber, id) - { - } - - public IntermediateField this[ODBCDataSourceSymbolFields index] => this.Fields[(int)index]; - - public string ComponentRef - { - get => (string)this.Fields[(int)ODBCDataSourceSymbolFields.ComponentRef]; - set => this.Set((int)ODBCDataSourceSymbolFields.ComponentRef, value); - } - - public string Description - { - get => (string)this.Fields[(int)ODBCDataSourceSymbolFields.Description]; - set => this.Set((int)ODBCDataSourceSymbolFields.Description, value); - } - - public string DriverDescription - { - get => (string)this.Fields[(int)ODBCDataSourceSymbolFields.DriverDescription]; - set => this.Set((int)ODBCDataSourceSymbolFields.DriverDescription, value); - } - - public int Registration - { - get => (int)this.Fields[(int)ODBCDataSourceSymbolFields.Registration]; - set => this.Set((int)ODBCDataSourceSymbolFields.Registration, value); - } - } -} diff --git a/src/WixToolset.Data/Tuples/ODBCDriverTuple.cs b/src/WixToolset.Data/Tuples/ODBCDriverTuple.cs deleted file mode 100644 index b31cc4cb..00000000 --- a/src/WixToolset.Data/Tuples/ODBCDriverTuple.cs +++ /dev/null @@ -1,68 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition ODBCDriver = new IntermediateSymbolDefinition( - SymbolDefinitionType.ODBCDriver, - new[] - { - new IntermediateFieldDefinition(nameof(ODBCDriverSymbolFields.ComponentRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ODBCDriverSymbolFields.Description), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ODBCDriverSymbolFields.FileRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ODBCDriverSymbolFields.SetupFileRef), IntermediateFieldType.String), - }, - typeof(ODBCDriverSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum ODBCDriverSymbolFields - { - ComponentRef, - Description, - FileRef, - SetupFileRef, - } - - public class ODBCDriverSymbol : IntermediateSymbol - { - public ODBCDriverSymbol() : base(SymbolDefinitions.ODBCDriver, null, null) - { - } - - public ODBCDriverSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ODBCDriver, sourceLineNumber, id) - { - } - - public IntermediateField this[ODBCDriverSymbolFields index] => this.Fields[(int)index]; - - public string ComponentRef - { - get => (string)this.Fields[(int)ODBCDriverSymbolFields.ComponentRef]; - set => this.Set((int)ODBCDriverSymbolFields.ComponentRef, value); - } - - public string Description - { - get => (string)this.Fields[(int)ODBCDriverSymbolFields.Description]; - set => this.Set((int)ODBCDriverSymbolFields.Description, value); - } - - public string FileRef - { - get => (string)this.Fields[(int)ODBCDriverSymbolFields.FileRef]; - set => this.Set((int)ODBCDriverSymbolFields.FileRef, value); - } - - public string SetupFileRef - { - get => (string)this.Fields[(int)ODBCDriverSymbolFields.SetupFileRef]; - set => this.Set((int)ODBCDriverSymbolFields.SetupFileRef, value); - } - } -} diff --git a/src/WixToolset.Data/Tuples/ODBCSourceAttributeTuple.cs b/src/WixToolset.Data/Tuples/ODBCSourceAttributeTuple.cs deleted file mode 100644 index 2e25a5f7..00000000 --- a/src/WixToolset.Data/Tuples/ODBCSourceAttributeTuple.cs +++ /dev/null @@ -1,60 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition ODBCSourceAttribute = new IntermediateSymbolDefinition( - SymbolDefinitionType.ODBCSourceAttribute, - new[] - { - new IntermediateFieldDefinition(nameof(ODBCSourceAttributeSymbolFields.DataSourceRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ODBCSourceAttributeSymbolFields.Attribute), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ODBCSourceAttributeSymbolFields.Value), IntermediateFieldType.String), - }, - typeof(ODBCSourceAttributeSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum ODBCSourceAttributeSymbolFields - { - DataSourceRef, - Attribute, - Value, - } - - public class ODBCSourceAttributeSymbol : IntermediateSymbol - { - public ODBCSourceAttributeSymbol() : base(SymbolDefinitions.ODBCSourceAttribute, null, null) - { - } - - public ODBCSourceAttributeSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ODBCSourceAttribute, sourceLineNumber, id) - { - } - - public IntermediateField this[ODBCSourceAttributeSymbolFields index] => this.Fields[(int)index]; - - public string DataSourceRef - { - get => (string)this.Fields[(int)ODBCSourceAttributeSymbolFields.DataSourceRef]; - set => this.Set((int)ODBCSourceAttributeSymbolFields.DataSourceRef, value); - } - - public string Attribute - { - get => (string)this.Fields[(int)ODBCSourceAttributeSymbolFields.Attribute]; - set => this.Set((int)ODBCSourceAttributeSymbolFields.Attribute, value); - } - - public string Value - { - get => (string)this.Fields[(int)ODBCSourceAttributeSymbolFields.Value]; - set => this.Set((int)ODBCSourceAttributeSymbolFields.Value, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/ODBCTranslatorTuple.cs b/src/WixToolset.Data/Tuples/ODBCTranslatorTuple.cs deleted file mode 100644 index c444b834..00000000 --- a/src/WixToolset.Data/Tuples/ODBCTranslatorTuple.cs +++ /dev/null @@ -1,68 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition ODBCTranslator = new IntermediateSymbolDefinition( - SymbolDefinitionType.ODBCTranslator, - new[] - { - new IntermediateFieldDefinition(nameof(ODBCTranslatorSymbolFields.ComponentRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ODBCTranslatorSymbolFields.Description), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ODBCTranslatorSymbolFields.FileRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ODBCTranslatorSymbolFields.SetupFileRef), IntermediateFieldType.String), - }, - typeof(ODBCTranslatorSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum ODBCTranslatorSymbolFields - { - ComponentRef, - Description, - FileRef, - SetupFileRef, - } - - public class ODBCTranslatorSymbol : IntermediateSymbol - { - public ODBCTranslatorSymbol() : base(SymbolDefinitions.ODBCTranslator, null, null) - { - } - - public ODBCTranslatorSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ODBCTranslator, sourceLineNumber, id) - { - } - - public IntermediateField this[ODBCTranslatorSymbolFields index] => this.Fields[(int)index]; - - public string ComponentRef - { - get => (string)this.Fields[(int)ODBCTranslatorSymbolFields.ComponentRef]; - set => this.Set((int)ODBCTranslatorSymbolFields.ComponentRef, value); - } - - public string Description - { - get => (string)this.Fields[(int)ODBCTranslatorSymbolFields.Description]; - set => this.Set((int)ODBCTranslatorSymbolFields.Description, value); - } - - public string FileRef - { - get => (string)this.Fields[(int)ODBCTranslatorSymbolFields.FileRef]; - set => this.Set((int)ODBCTranslatorSymbolFields.FileRef, value); - } - - public string SetupFileRef - { - get => (string)this.Fields[(int)ODBCTranslatorSymbolFields.SetupFileRef]; - set => this.Set((int)ODBCTranslatorSymbolFields.SetupFileRef, value); - } - } -} diff --git a/src/WixToolset.Data/Tuples/PatchMetadataTuple.cs b/src/WixToolset.Data/Tuples/PatchMetadataTuple.cs deleted file mode 100644 index 3f67aef7..00000000 --- a/src/WixToolset.Data/Tuples/PatchMetadataTuple.cs +++ /dev/null @@ -1,60 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition PatchMetadata = new IntermediateSymbolDefinition( - SymbolDefinitionType.PatchMetadata, - new[] - { - new IntermediateFieldDefinition(nameof(PatchMetadataSymbolFields.Company), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(PatchMetadataSymbolFields.Property), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(PatchMetadataSymbolFields.Value), IntermediateFieldType.String), - }, - typeof(PatchMetadataSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum PatchMetadataSymbolFields - { - Company, - Property, - Value, - } - - public class PatchMetadataSymbol : IntermediateSymbol - { - public PatchMetadataSymbol() : base(SymbolDefinitions.PatchMetadata, null, null) - { - } - - public PatchMetadataSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.PatchMetadata, sourceLineNumber, id) - { - } - - public IntermediateField this[PatchMetadataSymbolFields index] => this.Fields[(int)index]; - - public string Company - { - get => (string)this.Fields[(int)PatchMetadataSymbolFields.Company]; - set => this.Set((int)PatchMetadataSymbolFields.Company, value); - } - - public string Property - { - get => (string)this.Fields[(int)PatchMetadataSymbolFields.Property]; - set => this.Set((int)PatchMetadataSymbolFields.Property, value); - } - - public string Value - { - get => (string)this.Fields[(int)PatchMetadataSymbolFields.Value]; - set => this.Set((int)PatchMetadataSymbolFields.Value, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/PatchPackageTuple.cs b/src/WixToolset.Data/Tuples/PatchPackageTuple.cs deleted file mode 100644 index 0efdfd25..00000000 --- a/src/WixToolset.Data/Tuples/PatchPackageTuple.cs +++ /dev/null @@ -1,52 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition PatchPackage = new IntermediateSymbolDefinition( - SymbolDefinitionType.PatchPackage, - new[] - { - new IntermediateFieldDefinition(nameof(PatchPackageSymbolFields.PatchId), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(PatchPackageSymbolFields.MediaDiskIdRef), IntermediateFieldType.Number), - }, - typeof(PatchPackageSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum PatchPackageSymbolFields - { - PatchId, - MediaDiskIdRef, - } - - public class PatchPackageSymbol : IntermediateSymbol - { - public PatchPackageSymbol() : base(SymbolDefinitions.PatchPackage, null, null) - { - } - - public PatchPackageSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.PatchPackage, sourceLineNumber, id) - { - } - - public IntermediateField this[PatchPackageSymbolFields index] => this.Fields[(int)index]; - - public string PatchId - { - get => (string)this.Fields[(int)PatchPackageSymbolFields.PatchId]; - set => this.Set((int)PatchPackageSymbolFields.PatchId, value); - } - - public int MediaDiskIdRef - { - get => (int)this.Fields[(int)PatchPackageSymbolFields.MediaDiskIdRef]; - set => this.Set((int)PatchPackageSymbolFields.MediaDiskIdRef, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/PatchSequenceTuple.cs b/src/WixToolset.Data/Tuples/PatchSequenceTuple.cs deleted file mode 100644 index a4cbca61..00000000 --- a/src/WixToolset.Data/Tuples/PatchSequenceTuple.cs +++ /dev/null @@ -1,68 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition PatchSequence = new IntermediateSymbolDefinition( - SymbolDefinitionType.PatchSequence, - new[] - { - new IntermediateFieldDefinition(nameof(PatchSequenceSymbolFields.PatchFamily), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(PatchSequenceSymbolFields.Target), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(PatchSequenceSymbolFields.Sequence), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(PatchSequenceSymbolFields.Supersede), IntermediateFieldType.Number), - }, - typeof(PatchSequenceSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum PatchSequenceSymbolFields - { - PatchFamily, - Target, - Sequence, - Supersede, - } - - public class PatchSequenceSymbol : IntermediateSymbol - { - public PatchSequenceSymbol() : base(SymbolDefinitions.PatchSequence, null, null) - { - } - - public PatchSequenceSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.PatchSequence, sourceLineNumber, id) - { - } - - public IntermediateField this[PatchSequenceSymbolFields index] => this.Fields[(int)index]; - - public string PatchFamily - { - get => (string)this.Fields[(int)PatchSequenceSymbolFields.PatchFamily]; - set => this.Set((int)PatchSequenceSymbolFields.PatchFamily, value); - } - - public string Target - { - get => (string)this.Fields[(int)PatchSequenceSymbolFields.Target]; - set => this.Set((int)PatchSequenceSymbolFields.Target, value); - } - - public string Sequence - { - get => (string)this.Fields[(int)PatchSequenceSymbolFields.Sequence]; - set => this.Set((int)PatchSequenceSymbolFields.Sequence, value); - } - - public int? Supersede - { - get => (int?)this.Fields[(int)PatchSequenceSymbolFields.Supersede]; - set => this.Set((int)PatchSequenceSymbolFields.Supersede, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/PatchTuple.cs b/src/WixToolset.Data/Tuples/PatchTuple.cs deleted file mode 100644 index 31e68d76..00000000 --- a/src/WixToolset.Data/Tuples/PatchTuple.cs +++ /dev/null @@ -1,84 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition Patch = new IntermediateSymbolDefinition( - SymbolDefinitionType.Patch, - new[] - { - new IntermediateFieldDefinition(nameof(PatchSymbolFields.FileRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(PatchSymbolFields.Sequence), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(PatchSymbolFields.PatchSize), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(PatchSymbolFields.Attributes), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(PatchSymbolFields.Header), IntermediateFieldType.Path), - new IntermediateFieldDefinition(nameof(PatchSymbolFields.StreamRef), IntermediateFieldType.String), - }, - typeof(PatchSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum PatchSymbolFields - { - FileRef, - Sequence, - PatchSize, - Attributes, - Header, - StreamRef, - } - - public class PatchSymbol : IntermediateSymbol - { - public PatchSymbol() : base(SymbolDefinitions.Patch, null, null) - { - } - - public PatchSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Patch, sourceLineNumber, id) - { - } - - public IntermediateField this[PatchSymbolFields index] => this.Fields[(int)index]; - - public string FileRef - { - get => (string)this.Fields[(int)PatchSymbolFields.FileRef]; - set => this.Set((int)PatchSymbolFields.FileRef, value); - } - - public int Sequence - { - get => (int)this.Fields[(int)PatchSymbolFields.Sequence]; - set => this.Set((int)PatchSymbolFields.Sequence, value); - } - - public int PatchSize - { - get => (int)this.Fields[(int)PatchSymbolFields.PatchSize]; - set => this.Set((int)PatchSymbolFields.PatchSize, value); - } - - public int Attributes - { - get => (int)this.Fields[(int)PatchSymbolFields.Attributes]; - set => this.Set((int)PatchSymbolFields.Attributes, value); - } - - public string Header - { - get => (string)this.Fields[(int)PatchSymbolFields.Header]; - set => this.Set((int)PatchSymbolFields.Header, value); - } - - public string StreamRef - { - get => (string)this.Fields[(int)PatchSymbolFields.StreamRef]; - set => this.Set((int)PatchSymbolFields.StreamRef, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/ProgIdTuple.cs b/src/WixToolset.Data/Tuples/ProgIdTuple.cs deleted file mode 100644 index 57ac758f..00000000 --- a/src/WixToolset.Data/Tuples/ProgIdTuple.cs +++ /dev/null @@ -1,84 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition ProgId = new IntermediateSymbolDefinition( - SymbolDefinitionType.ProgId, - new[] - { - new IntermediateFieldDefinition(nameof(ProgIdSymbolFields.ProgId), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ProgIdSymbolFields.ParentProgIdRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ProgIdSymbolFields.ClassRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ProgIdSymbolFields.Description), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ProgIdSymbolFields.IconRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ProgIdSymbolFields.IconIndex), IntermediateFieldType.Number), - }, - typeof(ProgIdSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum ProgIdSymbolFields - { - ProgId, - ParentProgIdRef, - ClassRef, - Description, - IconRef, - IconIndex, - } - - public class ProgIdSymbol : IntermediateSymbol - { - public ProgIdSymbol() : base(SymbolDefinitions.ProgId, null, null) - { - } - - public ProgIdSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ProgId, sourceLineNumber, id) - { - } - - public IntermediateField this[ProgIdSymbolFields index] => this.Fields[(int)index]; - - public string ProgId - { - get => (string)this.Fields[(int)ProgIdSymbolFields.ProgId]; - set => this.Set((int)ProgIdSymbolFields.ProgId, value); - } - - public string ParentProgIdRef - { - get => (string)this.Fields[(int)ProgIdSymbolFields.ParentProgIdRef]; - set => this.Set((int)ProgIdSymbolFields.ParentProgIdRef, value); - } - - public string ClassRef - { - get => (string)this.Fields[(int)ProgIdSymbolFields.ClassRef]; - set => this.Set((int)ProgIdSymbolFields.ClassRef, value); - } - - public string Description - { - get => (string)this.Fields[(int)ProgIdSymbolFields.Description]; - set => this.Set((int)ProgIdSymbolFields.Description, value); - } - - public string IconRef - { - get => (string)this.Fields[(int)ProgIdSymbolFields.IconRef]; - set => this.Set((int)ProgIdSymbolFields.IconRef, value); - } - - public int? IconIndex - { - get => (int?)this.Fields[(int)ProgIdSymbolFields.IconIndex]; - set => this.Set((int)ProgIdSymbolFields.IconIndex, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/PropertiesTuple.cs b/src/WixToolset.Data/Tuples/PropertiesTuple.cs deleted file mode 100644 index 61059aa6..00000000 --- a/src/WixToolset.Data/Tuples/PropertiesTuple.cs +++ /dev/null @@ -1,52 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition Properties = new IntermediateSymbolDefinition( - SymbolDefinitionType.Properties, - new[] - { - new IntermediateFieldDefinition(nameof(PropertiesSymbolFields.Name), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(PropertiesSymbolFields.Value), IntermediateFieldType.String), - }, - typeof(PropertiesSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum PropertiesSymbolFields - { - Name, - Value, - } - - public class PropertiesSymbol : IntermediateSymbol - { - public PropertiesSymbol() : base(SymbolDefinitions.Properties, null, null) - { - } - - public PropertiesSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Properties, sourceLineNumber, id) - { - } - - public IntermediateField this[PropertiesSymbolFields index] => this.Fields[(int)index]; - - public string Name - { - get => (string)this.Fields[(int)PropertiesSymbolFields.Name]; - set => this.Set((int)PropertiesSymbolFields.Name, value); - } - - public string Value - { - get => (string)this.Fields[(int)PropertiesSymbolFields.Value]; - set => this.Set((int)PropertiesSymbolFields.Value, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/PropertyTuple.cs b/src/WixToolset.Data/Tuples/PropertyTuple.cs deleted file mode 100644 index b93d962a..00000000 --- a/src/WixToolset.Data/Tuples/PropertyTuple.cs +++ /dev/null @@ -1,44 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition Property = new IntermediateSymbolDefinition( - SymbolDefinitionType.Property, - new[] - { - new IntermediateFieldDefinition(nameof(PropertySymbolFields.Value), IntermediateFieldType.String), - }, - typeof(PropertySymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum PropertySymbolFields - { - Value, - } - - public class PropertySymbol : IntermediateSymbol - { - public PropertySymbol() : base(SymbolDefinitions.Property, null, null) - { - } - - public PropertySymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Property, sourceLineNumber, id) - { - } - - public IntermediateField this[PropertySymbolFields index] => this.Fields[(int)index]; - - public string Value - { - get => (string)this.Fields[(int)PropertySymbolFields.Value]; - set => this.Set((int)PropertySymbolFields.Value, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/ProvidesDependencyTuple.cs b/src/WixToolset.Data/Tuples/ProvidesDependencyTuple.cs deleted file mode 100644 index 8d8cb02b..00000000 --- a/src/WixToolset.Data/Tuples/ProvidesDependencyTuple.cs +++ /dev/null @@ -1,84 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition ProvidesDependency = new IntermediateSymbolDefinition( - SymbolDefinitionType.ProvidesDependency, - new[] - { - new IntermediateFieldDefinition(nameof(ProvidesDependencySymbolFields.PackageRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ProvidesDependencySymbolFields.Key), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ProvidesDependencySymbolFields.Version), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ProvidesDependencySymbolFields.DisplayName), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ProvidesDependencySymbolFields.Attributes), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(ProvidesDependencySymbolFields.Imported), IntermediateFieldType.Bool), - }, - typeof(ProvidesDependencySymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum ProvidesDependencySymbolFields - { - PackageRef, - Key, - Version, - DisplayName, - Attributes, - Imported, - } - - public class ProvidesDependencySymbol : IntermediateSymbol - { - public ProvidesDependencySymbol() : base(SymbolDefinitions.ProvidesDependency, null, null) - { - } - - public ProvidesDependencySymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ProvidesDependency, sourceLineNumber, id) - { - } - - public IntermediateField this[ProvidesDependencySymbolFields index] => this.Fields[(int)index]; - - public string PackageRef - { - get => (string)this.Fields[(int)ProvidesDependencySymbolFields.PackageRef]; - set => this.Set((int)ProvidesDependencySymbolFields.PackageRef, value); - } - - public string Key - { - get => (string)this.Fields[(int)ProvidesDependencySymbolFields.Key]; - set => this.Set((int)ProvidesDependencySymbolFields.Key, value); - } - - public string Version - { - get => (string)this.Fields[(int)ProvidesDependencySymbolFields.Version]; - set => this.Set((int)ProvidesDependencySymbolFields.Version, value); - } - - public string DisplayName - { - get => (string)this.Fields[(int)ProvidesDependencySymbolFields.DisplayName]; - set => this.Set((int)ProvidesDependencySymbolFields.DisplayName, value); - } - - public int? Attributes - { - get => (int?)this.Fields[(int)ProvidesDependencySymbolFields.Attributes]; - set => this.Set((int)ProvidesDependencySymbolFields.Attributes, value); - } - - public bool Imported - { - get => (bool)this.Fields[(int)ProvidesDependencySymbolFields.Imported]; - set => this.Set((int)ProvidesDependencySymbolFields.Imported, value); - } - } -} diff --git a/src/WixToolset.Data/Tuples/PublishComponentTuple.cs b/src/WixToolset.Data/Tuples/PublishComponentTuple.cs deleted file mode 100644 index 3fb81801..00000000 --- a/src/WixToolset.Data/Tuples/PublishComponentTuple.cs +++ /dev/null @@ -1,76 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition PublishComponent = new IntermediateSymbolDefinition( - SymbolDefinitionType.PublishComponent, - new[] - { - new IntermediateFieldDefinition(nameof(PublishComponentSymbolFields.ComponentId), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(PublishComponentSymbolFields.Qualifier), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(PublishComponentSymbolFields.ComponentRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(PublishComponentSymbolFields.AppData), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(PublishComponentSymbolFields.FeatureRef), IntermediateFieldType.String), - }, - typeof(PublishComponentSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum PublishComponentSymbolFields - { - ComponentId, - Qualifier, - ComponentRef, - AppData, - FeatureRef, - } - - public class PublishComponentSymbol : IntermediateSymbol - { - public PublishComponentSymbol() : base(SymbolDefinitions.PublishComponent, null, null) - { - } - - public PublishComponentSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.PublishComponent, sourceLineNumber, id) - { - } - - public IntermediateField this[PublishComponentSymbolFields index] => this.Fields[(int)index]; - - public string ComponentId - { - get => (string)this.Fields[(int)PublishComponentSymbolFields.ComponentId]; - set => this.Set((int)PublishComponentSymbolFields.ComponentId, value); - } - - public string Qualifier - { - get => (string)this.Fields[(int)PublishComponentSymbolFields.Qualifier]; - set => this.Set((int)PublishComponentSymbolFields.Qualifier, value); - } - - public string ComponentRef - { - get => (string)this.Fields[(int)PublishComponentSymbolFields.ComponentRef]; - set => this.Set((int)PublishComponentSymbolFields.ComponentRef, value); - } - - public string AppData - { - get => (string)this.Fields[(int)PublishComponentSymbolFields.AppData]; - set => this.Set((int)PublishComponentSymbolFields.AppData, value); - } - - public string FeatureRef - { - get => (string)this.Fields[(int)PublishComponentSymbolFields.FeatureRef]; - set => this.Set((int)PublishComponentSymbolFields.FeatureRef, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/RadioButtonTuple.cs b/src/WixToolset.Data/Tuples/RadioButtonTuple.cs deleted file mode 100644 index 6a26e937..00000000 --- a/src/WixToolset.Data/Tuples/RadioButtonTuple.cs +++ /dev/null @@ -1,108 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition RadioButton = new IntermediateSymbolDefinition( - SymbolDefinitionType.RadioButton, - new[] - { - new IntermediateFieldDefinition(nameof(RadioButtonSymbolFields.Property), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(RadioButtonSymbolFields.Order), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(RadioButtonSymbolFields.Value), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(RadioButtonSymbolFields.X), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(RadioButtonSymbolFields.Y), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(RadioButtonSymbolFields.Width), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(RadioButtonSymbolFields.Height), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(RadioButtonSymbolFields.Text), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(RadioButtonSymbolFields.Help), IntermediateFieldType.String), - }, - typeof(RadioButtonSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum RadioButtonSymbolFields - { - Property, - Order, - Value, - X, - Y, - Width, - Height, - Text, - Help, - } - - public class RadioButtonSymbol : IntermediateSymbol - { - public RadioButtonSymbol() : base(SymbolDefinitions.RadioButton, null, null) - { - } - - public RadioButtonSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.RadioButton, sourceLineNumber, id) - { - } - - public IntermediateField this[RadioButtonSymbolFields index] => this.Fields[(int)index]; - - public string Property - { - get => (string)this.Fields[(int)RadioButtonSymbolFields.Property]; - set => this.Set((int)RadioButtonSymbolFields.Property, value); - } - - public int Order - { - get => (int)this.Fields[(int)RadioButtonSymbolFields.Order]; - set => this.Set((int)RadioButtonSymbolFields.Order, value); - } - - public string Value - { - get => (string)this.Fields[(int)RadioButtonSymbolFields.Value]; - set => this.Set((int)RadioButtonSymbolFields.Value, value); - } - - public int X - { - get => (int)this.Fields[(int)RadioButtonSymbolFields.X]; - set => this.Set((int)RadioButtonSymbolFields.X, value); - } - - public int Y - { - get => (int)this.Fields[(int)RadioButtonSymbolFields.Y]; - set => this.Set((int)RadioButtonSymbolFields.Y, value); - } - - public int Width - { - get => (int)this.Fields[(int)RadioButtonSymbolFields.Width]; - set => this.Set((int)RadioButtonSymbolFields.Width, value); - } - - public int Height - { - get => (int)this.Fields[(int)RadioButtonSymbolFields.Height]; - set => this.Set((int)RadioButtonSymbolFields.Height, value); - } - - public string Text - { - get => (string)this.Fields[(int)RadioButtonSymbolFields.Text]; - set => this.Set((int)RadioButtonSymbolFields.Text, value); - } - - public string Help - { - get => (string)this.Fields[(int)RadioButtonSymbolFields.Help]; - set => this.Set((int)RadioButtonSymbolFields.Help, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/RegLocatorTuple.cs b/src/WixToolset.Data/Tuples/RegLocatorTuple.cs deleted file mode 100644 index bf50dab7..00000000 --- a/src/WixToolset.Data/Tuples/RegLocatorTuple.cs +++ /dev/null @@ -1,83 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition RegLocator = new IntermediateSymbolDefinition( - SymbolDefinitionType.RegLocator, - new[] - { - new IntermediateFieldDefinition(nameof(RegLocatorSymbolFields.Root), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(RegLocatorSymbolFields.Key), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(RegLocatorSymbolFields.Name), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(RegLocatorSymbolFields.Type), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(RegLocatorSymbolFields.Win64), IntermediateFieldType.Bool), - }, - typeof(RegLocatorSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum RegLocatorSymbolFields - { - Root, - Key, - Name, - Type, - Win64, - } - - public enum RegLocatorType - { - Directory, - FileName, - Raw - }; - - public class RegLocatorSymbol : IntermediateSymbol - { - public RegLocatorSymbol() : base(SymbolDefinitions.RegLocator, null, null) - { - } - - public RegLocatorSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.RegLocator, sourceLineNumber, id) - { - } - - public IntermediateField this[RegLocatorSymbolFields index] => this.Fields[(int)index]; - - public RegistryRootType Root - { - get => (RegistryRootType)this.Fields[(int)RegLocatorSymbolFields.Root].AsNumber(); - set => this.Set((int)RegLocatorSymbolFields.Root, (int)value); - } - - public string Key - { - get => (string)this.Fields[(int)RegLocatorSymbolFields.Key]; - set => this.Set((int)RegLocatorSymbolFields.Key, value); - } - - public string Name - { - get => (string)this.Fields[(int)RegLocatorSymbolFields.Name]; - set => this.Set((int)RegLocatorSymbolFields.Name, value); - } - - public RegLocatorType Type - { - get => (RegLocatorType)this.Fields[(int)RegLocatorSymbolFields.Type].AsNumber(); - set => this.Set((int)RegLocatorSymbolFields.Type, (int)value); - } - - public bool Win64 - { - get => this.Fields[(int)RegLocatorSymbolFields.Win64].AsBool(); - set => this.Set((int)RegLocatorSymbolFields.Win64, value); - } - } -} diff --git a/src/WixToolset.Data/Tuples/RegistryRootType.cs b/src/WixToolset.Data/Tuples/RegistryRootType.cs deleted file mode 100644 index 9f60727c..00000000 --- a/src/WixToolset.Data/Tuples/RegistryRootType.cs +++ /dev/null @@ -1,21 +0,0 @@ -// 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. - -namespace WixToolset.Data.Symbols -{ - using System; - - /// - /// Registry root mapping. - /// - public enum RegistryRootType - { - Unknown = Int32.MaxValue, - - /// HKLM in a per-machine and HKCU in per-user. - MachineUser = -1, - ClassesRoot = 0, - CurrentUser = 1, - LocalMachine = 2, - Users = 3 - } -} diff --git a/src/WixToolset.Data/Tuples/RegistryTuple.cs b/src/WixToolset.Data/Tuples/RegistryTuple.cs deleted file mode 100644 index 371bfe98..00000000 --- a/src/WixToolset.Data/Tuples/RegistryTuple.cs +++ /dev/null @@ -1,108 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition Registry = new IntermediateSymbolDefinition( - SymbolDefinitionType.Registry, - new[] - { - new IntermediateFieldDefinition(nameof(RegistrySymbolFields.Root), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(RegistrySymbolFields.Key), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(RegistrySymbolFields.Name), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(RegistrySymbolFields.Value), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(RegistrySymbolFields.ValueType), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(RegistrySymbolFields.ValueAction), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(RegistrySymbolFields.ComponentRef), IntermediateFieldType.String), - }, - typeof(RegistrySymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum RegistrySymbolFields - { - Root, - Key, - Name, - Value, - ValueType, - ValueAction, - ComponentRef, - } - - public enum RegistryValueType - { - String, - Binary, - Expandable, - Integer, - MultiString, - } - - public enum RegistryValueActionType - { - Write, - Append, - Prepend, - } - - public class RegistrySymbol : IntermediateSymbol - { - public RegistrySymbol() : base(SymbolDefinitions.Registry, null, null) - { - } - - public RegistrySymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Registry, sourceLineNumber, id) - { - } - - public IntermediateField this[RegistrySymbolFields index] => this.Fields[(int)index]; - - public RegistryRootType Root - { - get => (RegistryRootType)this.Fields[(int)RegistrySymbolFields.Root].AsNumber(); - set => this.Set((int)RegistrySymbolFields.Root, (int)value); - } - - public string Key - { - get => (string)this.Fields[(int)RegistrySymbolFields.Key]; - set => this.Set((int)RegistrySymbolFields.Key, value); - } - - public string Name - { - get => (string)this.Fields[(int)RegistrySymbolFields.Name]; - set => this.Set((int)RegistrySymbolFields.Name, value); - } - - public string Value - { - get => this.Fields[(int)RegistrySymbolFields.Value].AsString(); - set => this.Set((int)RegistrySymbolFields.Value, value); - } - - public RegistryValueType ValueType - { - get => (RegistryValueType)this.Fields[(int)RegistrySymbolFields.ValueType].AsNumber(); - set => this.Set((int)RegistrySymbolFields.ValueType, (int)value); - } - - public RegistryValueActionType ValueAction - { - get => (RegistryValueActionType)this.Fields[(int)RegistrySymbolFields.ValueAction].AsNumber(); - set => this.Set((int)RegistrySymbolFields.ValueAction, (int)value); - } - - public string ComponentRef - { - get => (string)this.Fields[(int)RegistrySymbolFields.ComponentRef]; - set => this.Set((int)RegistrySymbolFields.ComponentRef, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/RemoveFileTuple.cs b/src/WixToolset.Data/Tuples/RemoveFileTuple.cs deleted file mode 100644 index a1791e54..00000000 --- a/src/WixToolset.Data/Tuples/RemoveFileTuple.cs +++ /dev/null @@ -1,76 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition RemoveFile = new IntermediateSymbolDefinition( - SymbolDefinitionType.RemoveFile, - new[] - { - new IntermediateFieldDefinition(nameof(RemoveFileSymbolFields.ComponentRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(RemoveFileSymbolFields.FileName), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(RemoveFileSymbolFields.DirProperty), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(RemoveFileSymbolFields.OnInstall), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(RemoveFileSymbolFields.OnUninstall), IntermediateFieldType.Bool), - }, - typeof(RemoveFileSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum RemoveFileSymbolFields - { - ComponentRef, - FileName, - DirProperty, - OnInstall, - OnUninstall, - } - - public class RemoveFileSymbol : IntermediateSymbol - { - public RemoveFileSymbol() : base(SymbolDefinitions.RemoveFile, null, null) - { - } - - public RemoveFileSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.RemoveFile, sourceLineNumber, id) - { - } - - public IntermediateField this[RemoveFileSymbolFields index] => this.Fields[(int)index]; - - public string ComponentRef - { - get => (string)this.Fields[(int)RemoveFileSymbolFields.ComponentRef]; - set => this.Set((int)RemoveFileSymbolFields.ComponentRef, value); - } - - public string FileName - { - get => (string)this.Fields[(int)RemoveFileSymbolFields.FileName]; - set => this.Set((int)RemoveFileSymbolFields.FileName, value); - } - - public string DirProperty - { - get => (string)this.Fields[(int)RemoveFileSymbolFields.DirProperty]; - set => this.Set((int)RemoveFileSymbolFields.DirProperty, value); - } - - public bool? OnInstall - { - get => (bool?)this.Fields[(int)RemoveFileSymbolFields.OnInstall]; - set => this.Set((int)RemoveFileSymbolFields.OnInstall, value); - } - - public bool? OnUninstall - { - get => (bool?)this.Fields[(int)RemoveFileSymbolFields.OnUninstall]; - set => this.Set((int)RemoveFileSymbolFields.OnUninstall, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/RemoveRegistryTuple.cs b/src/WixToolset.Data/Tuples/RemoveRegistryTuple.cs deleted file mode 100644 index a797cd33..00000000 --- a/src/WixToolset.Data/Tuples/RemoveRegistryTuple.cs +++ /dev/null @@ -1,82 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition RemoveRegistry = new IntermediateSymbolDefinition( - SymbolDefinitionType.RemoveRegistry, - new[] - { - new IntermediateFieldDefinition(nameof(RemoveRegistrySymbolFields.Root), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(RemoveRegistrySymbolFields.Key), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(RemoveRegistrySymbolFields.Name), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(RemoveRegistrySymbolFields.Action), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(RemoveRegistrySymbolFields.ComponentRef), IntermediateFieldType.String), - }, - typeof(RemoveRegistrySymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum RemoveRegistrySymbolFields - { - Root, - Key, - Name, - Action, - ComponentRef, - } - - public enum RemoveRegistryActionType - { - RemoveOnInstall, - RemoveOnUninstall - }; - - public class RemoveRegistrySymbol : IntermediateSymbol - { - public RemoveRegistrySymbol() : base(SymbolDefinitions.RemoveRegistry, null, null) - { - } - - public RemoveRegistrySymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.RemoveRegistry, sourceLineNumber, id) - { - } - - public IntermediateField this[RemoveRegistrySymbolFields index] => this.Fields[(int)index]; - - public RegistryRootType Root - { - get => (RegistryRootType)this.Fields[(int)RemoveRegistrySymbolFields.Root].AsNumber(); - set => this.Set((int)RemoveRegistrySymbolFields.Root, (int)value); - } - - public string Key - { - get => (string)this.Fields[(int)RemoveRegistrySymbolFields.Key]; - set => this.Set((int)RemoveRegistrySymbolFields.Key, value); - } - - public string Name - { - get => (string)this.Fields[(int)RemoveRegistrySymbolFields.Name]; - set => this.Set((int)RemoveRegistrySymbolFields.Name, value); - } - - public RemoveRegistryActionType Action - { - get => (RemoveRegistryActionType)this.Fields[(int)RemoveRegistrySymbolFields.Action].AsNumber(); - set => this.Set((int)RemoveRegistrySymbolFields.Action, (int)value); - } - - public string ComponentRef - { - get => (string)this.Fields[(int)RemoveRegistrySymbolFields.ComponentRef]; - set => this.Set((int)RemoveRegistrySymbolFields.ComponentRef, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/ReserveCostTuple.cs b/src/WixToolset.Data/Tuples/ReserveCostTuple.cs deleted file mode 100644 index b59dea2f..00000000 --- a/src/WixToolset.Data/Tuples/ReserveCostTuple.cs +++ /dev/null @@ -1,68 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition ReserveCost = new IntermediateSymbolDefinition( - SymbolDefinitionType.ReserveCost, - new[] - { - new IntermediateFieldDefinition(nameof(ReserveCostSymbolFields.ComponentRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ReserveCostSymbolFields.ReserveFolder), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ReserveCostSymbolFields.ReserveLocal), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(ReserveCostSymbolFields.ReserveSource), IntermediateFieldType.Number), - }, - typeof(ReserveCostSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum ReserveCostSymbolFields - { - ComponentRef, - ReserveFolder, - ReserveLocal, - ReserveSource, - } - - public class ReserveCostSymbol : IntermediateSymbol - { - public ReserveCostSymbol() : base(SymbolDefinitions.ReserveCost, null, null) - { - } - - public ReserveCostSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ReserveCost, sourceLineNumber, id) - { - } - - public IntermediateField this[ReserveCostSymbolFields index] => this.Fields[(int)index]; - - public string ComponentRef - { - get => (string)this.Fields[(int)ReserveCostSymbolFields.ComponentRef]; - set => this.Set((int)ReserveCostSymbolFields.ComponentRef, value); - } - - public string ReserveFolder - { - get => (string)this.Fields[(int)ReserveCostSymbolFields.ReserveFolder]; - set => this.Set((int)ReserveCostSymbolFields.ReserveFolder, value); - } - - public int ReserveLocal - { - get => (int)this.Fields[(int)ReserveCostSymbolFields.ReserveLocal]; - set => this.Set((int)ReserveCostSymbolFields.ReserveLocal, value); - } - - public int ReserveSource - { - get => (int)this.Fields[(int)ReserveCostSymbolFields.ReserveSource]; - set => this.Set((int)ReserveCostSymbolFields.ReserveSource, value); - } - } -} diff --git a/src/WixToolset.Data/Tuples/SFPCatalogTuple.cs b/src/WixToolset.Data/Tuples/SFPCatalogTuple.cs deleted file mode 100644 index 0d3f1558..00000000 --- a/src/WixToolset.Data/Tuples/SFPCatalogTuple.cs +++ /dev/null @@ -1,60 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition SFPCatalog = new IntermediateSymbolDefinition( - SymbolDefinitionType.SFPCatalog, - new[] - { - new IntermediateFieldDefinition(nameof(SFPCatalogSymbolFields.SFPCatalog), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(SFPCatalogSymbolFields.Catalog), IntermediateFieldType.Path), - new IntermediateFieldDefinition(nameof(SFPCatalogSymbolFields.Dependency), IntermediateFieldType.String), - }, - typeof(SFPCatalogSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum SFPCatalogSymbolFields - { - SFPCatalog, - Catalog, - Dependency, - } - - public class SFPCatalogSymbol : IntermediateSymbol - { - public SFPCatalogSymbol() : base(SymbolDefinitions.SFPCatalog, null, null) - { - } - - public SFPCatalogSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.SFPCatalog, sourceLineNumber, id) - { - } - - public IntermediateField this[SFPCatalogSymbolFields index] => this.Fields[(int)index]; - - public string SFPCatalog - { - get => (string)this.Fields[(int)SFPCatalogSymbolFields.SFPCatalog]; - set => this.Set((int)SFPCatalogSymbolFields.SFPCatalog, value); - } - - public string Catalog - { - get => (string)this.Fields[(int)SFPCatalogSymbolFields.Catalog]; - set => this.Set((int)SFPCatalogSymbolFields.Catalog, value); - } - - public string Dependency - { - get => (string)this.Fields[(int)SFPCatalogSymbolFields.Dependency]; - set => this.Set((int)SFPCatalogSymbolFields.Dependency, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/ServiceControlTuple.cs b/src/WixToolset.Data/Tuples/ServiceControlTuple.cs deleted file mode 100644 index 6e129681..00000000 --- a/src/WixToolset.Data/Tuples/ServiceControlTuple.cs +++ /dev/null @@ -1,116 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition ServiceControl = new IntermediateSymbolDefinition( - SymbolDefinitionType.ServiceControl, - new[] - { - new IntermediateFieldDefinition(nameof(ServiceControlSymbolFields.Name), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ServiceControlSymbolFields.InstallRemove), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(ServiceControlSymbolFields.UninstallRemove), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(ServiceControlSymbolFields.InstallStart), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(ServiceControlSymbolFields.UninstallStart), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(ServiceControlSymbolFields.InstallStop), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(ServiceControlSymbolFields.UninstallStop), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(ServiceControlSymbolFields.Arguments), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ServiceControlSymbolFields.Wait), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(ServiceControlSymbolFields.ComponentRef), IntermediateFieldType.String), - }, - typeof(ServiceControlSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum ServiceControlSymbolFields - { - Name, - InstallRemove, - UninstallRemove, - InstallStart, - UninstallStart, - InstallStop, - UninstallStop, - Arguments, - Wait, - ComponentRef, - } - - public class ServiceControlSymbol : IntermediateSymbol - { - public ServiceControlSymbol() : base(SymbolDefinitions.ServiceControl, null, null) - { - } - - public ServiceControlSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ServiceControl, sourceLineNumber, id) - { - } - - public IntermediateField this[ServiceControlSymbolFields index] => this.Fields[(int)index]; - - public string Name - { - get => (string)this.Fields[(int)ServiceControlSymbolFields.Name]; - set => this.Set((int)ServiceControlSymbolFields.Name, value); - } - - public bool InstallRemove - { - get => this.Fields[(int)ServiceControlSymbolFields.InstallRemove].AsBool(); - set => this.Set((int)ServiceControlSymbolFields.InstallRemove, value); - } - - public bool UninstallRemove - { - get => this.Fields[(int)ServiceControlSymbolFields.UninstallRemove].AsBool(); - set => this.Set((int)ServiceControlSymbolFields.UninstallRemove, value); - } - - public bool InstallStart - { - get => this.Fields[(int)ServiceControlSymbolFields.InstallStart].AsBool(); - set => this.Set((int)ServiceControlSymbolFields.InstallStart, value); - } - - public bool UninstallStart - { - get => this.Fields[(int)ServiceControlSymbolFields.UninstallStart].AsBool(); - set => this.Set((int)ServiceControlSymbolFields.UninstallStart, value); - } - - public bool InstallStop - { - get => this.Fields[(int)ServiceControlSymbolFields.InstallStop].AsBool(); - set => this.Set((int)ServiceControlSymbolFields.InstallStop, value); - } - - public bool UninstallStop - { - get => this.Fields[(int)ServiceControlSymbolFields.UninstallStop].AsBool(); - set => this.Set((int)ServiceControlSymbolFields.UninstallStop, value); - } - - public string Arguments - { - get => (string)this.Fields[(int)ServiceControlSymbolFields.Arguments]; - set => this.Set((int)ServiceControlSymbolFields.Arguments, value); - } - - public bool? Wait - { - get => this.Fields[(int)ServiceControlSymbolFields.Wait].AsNullableBool(); - set => this.Set((int)ServiceControlSymbolFields.Wait, value); - } - - public string ComponentRef - { - get => (string)this.Fields[(int)ServiceControlSymbolFields.ComponentRef]; - set => this.Set((int)ServiceControlSymbolFields.ComponentRef, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/ServiceInstallTuple.cs b/src/WixToolset.Data/Tuples/ServiceInstallTuple.cs deleted file mode 100644 index f7ec8dbf..00000000 --- a/src/WixToolset.Data/Tuples/ServiceInstallTuple.cs +++ /dev/null @@ -1,173 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition ServiceInstall = new IntermediateSymbolDefinition( - SymbolDefinitionType.ServiceInstall, - new[] - { - new IntermediateFieldDefinition(nameof(ServiceInstallSymbolFields.Name), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ServiceInstallSymbolFields.DisplayName), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ServiceInstallSymbolFields.ServiceType), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(ServiceInstallSymbolFields.StartType), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(ServiceInstallSymbolFields.ErrorControl), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(ServiceInstallSymbolFields.LoadOrderGroup), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ServiceInstallSymbolFields.Dependencies), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ServiceInstallSymbolFields.StartName), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ServiceInstallSymbolFields.Password), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ServiceInstallSymbolFields.Arguments), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ServiceInstallSymbolFields.ComponentRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ServiceInstallSymbolFields.Description), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ServiceInstallSymbolFields.Interactive), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(ServiceInstallSymbolFields.Vital), IntermediateFieldType.Bool), - }, - typeof(ServiceInstallSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum ServiceInstallSymbolFields - { - Name, - DisplayName, - ServiceType, - StartType, - ErrorControl, - LoadOrderGroup, - Dependencies, - StartName, - Password, - Arguments, - ComponentRef, - Description, - Interactive, - Vital, - } - - public enum ServiceType - { - KernelDriver, - SystemDriver, - OwnProcess = 0x10, - ShareProcess = 0x20, - InteractiveProcess = 0x100, - } - - public enum ServiceStartType - { - Boot, - System, - Auto, - Demand, - Disabled, - } - - public enum ServiceErrorControl - { - Ignore, - Normal, - Critical = 3, - } - - public class ServiceInstallSymbol : IntermediateSymbol - { - public ServiceInstallSymbol() : base(SymbolDefinitions.ServiceInstall, null, null) - { - } - - public ServiceInstallSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ServiceInstall, sourceLineNumber, id) - { - } - - public IntermediateField this[ServiceInstallSymbolFields index] => this.Fields[(int)index]; - - public string Name - { - get => (string)this.Fields[(int)ServiceInstallSymbolFields.Name]; - set => this.Set((int)ServiceInstallSymbolFields.Name, value); - } - - public string DisplayName - { - get => (string)this.Fields[(int)ServiceInstallSymbolFields.DisplayName]; - set => this.Set((int)ServiceInstallSymbolFields.DisplayName, value); - } - - public ServiceType ServiceType - { - get => (ServiceType)this.Fields[(int)ServiceInstallSymbolFields.ServiceType].AsNumber(); - set => this.Set((int)ServiceInstallSymbolFields.ServiceType, (int)value); - } - - public ServiceStartType StartType - { - get => (ServiceStartType)this.Fields[(int)ServiceInstallSymbolFields.StartType].AsNumber(); - set => this.Set((int)ServiceInstallSymbolFields.StartType, (int)value); - } - - public ServiceErrorControl ErrorControl - { - get => (ServiceErrorControl)this.Fields[(int)ServiceInstallSymbolFields.ErrorControl].AsNumber(); - set => this.Set((int)ServiceInstallSymbolFields.ErrorControl, (int)value); - } - - public string LoadOrderGroup - { - get => (string)this.Fields[(int)ServiceInstallSymbolFields.LoadOrderGroup]; - set => this.Set((int)ServiceInstallSymbolFields.LoadOrderGroup, value); - } - - public string Dependencies - { - get => (string)this.Fields[(int)ServiceInstallSymbolFields.Dependencies]; - set => this.Set((int)ServiceInstallSymbolFields.Dependencies, value); - } - - public string StartName - { - get => (string)this.Fields[(int)ServiceInstallSymbolFields.StartName]; - set => this.Set((int)ServiceInstallSymbolFields.StartName, value); - } - - public string Password - { - get => (string)this.Fields[(int)ServiceInstallSymbolFields.Password]; - set => this.Set((int)ServiceInstallSymbolFields.Password, value); - } - - public string Arguments - { - get => (string)this.Fields[(int)ServiceInstallSymbolFields.Arguments]; - set => this.Set((int)ServiceInstallSymbolFields.Arguments, value); - } - - public string ComponentRef - { - get => (string)this.Fields[(int)ServiceInstallSymbolFields.ComponentRef]; - set => this.Set((int)ServiceInstallSymbolFields.ComponentRef, value); - } - - public string Description - { - get => (string)this.Fields[(int)ServiceInstallSymbolFields.Description]; - set => this.Set((int)ServiceInstallSymbolFields.Description, value); - } - - public bool Interactive - { - get => this.Fields[(int)ServiceInstallSymbolFields.Interactive].AsBool(); - set => this.Set((int)ServiceInstallSymbolFields.Interactive, value); - } - - public bool Vital - { - get => this.Fields[(int)ServiceInstallSymbolFields.Vital].AsBool(); - set => this.Set((int)ServiceInstallSymbolFields.Vital, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/ShortcutTuple.cs b/src/WixToolset.Data/Tuples/ShortcutTuple.cs deleted file mode 100644 index f32fe4af..00000000 --- a/src/WixToolset.Data/Tuples/ShortcutTuple.cs +++ /dev/null @@ -1,171 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition Shortcut = new IntermediateSymbolDefinition( - SymbolDefinitionType.Shortcut, - new[] - { - new IntermediateFieldDefinition(nameof(ShortcutSymbolFields.DirectoryRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ShortcutSymbolFields.Name), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ShortcutSymbolFields.ShortName), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ShortcutSymbolFields.ComponentRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ShortcutSymbolFields.Target), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ShortcutSymbolFields.Arguments), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ShortcutSymbolFields.Description), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ShortcutSymbolFields.Hotkey), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(ShortcutSymbolFields.IconRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ShortcutSymbolFields.IconIndex), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(ShortcutSymbolFields.Show), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(ShortcutSymbolFields.WkDir), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ShortcutSymbolFields.DisplayResourceDLL), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ShortcutSymbolFields.DisplayResourceId), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(ShortcutSymbolFields.DescriptionResourceDLL), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ShortcutSymbolFields.DescriptionResourceId), IntermediateFieldType.Number), - }, - typeof(ShortcutSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum ShortcutSymbolFields - { - DirectoryRef, - Name, - ShortName, - ComponentRef, - Target, - Arguments, - Description, - Hotkey, - IconRef, - IconIndex, - Show, - WkDir, - DisplayResourceDLL, - DisplayResourceId, - DescriptionResourceDLL, - DescriptionResourceId, - } - - public enum ShortcutShowType - { - Normal = 1, - Maximized = 3, - Minimized = 7 - } - - public class ShortcutSymbol : IntermediateSymbol - { - public ShortcutSymbol() : base(SymbolDefinitions.Shortcut, null, null) - { - } - - public ShortcutSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Shortcut, sourceLineNumber, id) - { - } - - public IntermediateField this[ShortcutSymbolFields index] => this.Fields[(int)index]; - - public string DirectoryRef - { - get => (string)this.Fields[(int)ShortcutSymbolFields.DirectoryRef]; - set => this.Set((int)ShortcutSymbolFields.DirectoryRef, value); - } - - public string Name - { - get => (string)this.Fields[(int)ShortcutSymbolFields.Name]; - set => this.Set((int)ShortcutSymbolFields.Name, value); - } - - public string ShortName - { - get => (string)this.Fields[(int)ShortcutSymbolFields.ShortName]; - set => this.Set((int)ShortcutSymbolFields.ShortName, value); - } - - public string ComponentRef - { - get => (string)this.Fields[(int)ShortcutSymbolFields.ComponentRef]; - set => this.Set((int)ShortcutSymbolFields.ComponentRef, value); - } - - public string Target - { - get => (string)this.Fields[(int)ShortcutSymbolFields.Target]; - set => this.Set((int)ShortcutSymbolFields.Target, value); - } - - public string Arguments - { - get => (string)this.Fields[(int)ShortcutSymbolFields.Arguments]; - set => this.Set((int)ShortcutSymbolFields.Arguments, value); - } - - public string Description - { - get => (string)this.Fields[(int)ShortcutSymbolFields.Description]; - set => this.Set((int)ShortcutSymbolFields.Description, value); - } - - public int? Hotkey - { - get => this.Fields[(int)ShortcutSymbolFields.Hotkey].AsNullableNumber(); - set => this.Set((int)ShortcutSymbolFields.Hotkey, value); - } - - public string IconRef - { - get => (string)this.Fields[(int)ShortcutSymbolFields.IconRef]; - set => this.Set((int)ShortcutSymbolFields.IconRef, value); - } - - public int? IconIndex - { - get => this.Fields[(int)ShortcutSymbolFields.IconIndex].AsNullableNumber(); - set => this.Set((int)ShortcutSymbolFields.IconIndex, value); - } - - public ShortcutShowType? Show - { - get => (ShortcutShowType?)this.Fields[(int)ShortcutSymbolFields.Show].AsNullableNumber(); - set => this.Set((int)ShortcutSymbolFields.Show, (int?)value); - } - - public string WorkingDirectory - { - get => (string)this.Fields[(int)ShortcutSymbolFields.WkDir]; - set => this.Set((int)ShortcutSymbolFields.WkDir, value); - } - - public string DisplayResourceDll - { - get => (string)this.Fields[(int)ShortcutSymbolFields.DisplayResourceDLL]; - set => this.Set((int)ShortcutSymbolFields.DisplayResourceDLL, value); - } - - public int? DisplayResourceId - { - get => this.Fields[(int)ShortcutSymbolFields.DisplayResourceId].AsNullableNumber(); - set => this.Set((int)ShortcutSymbolFields.DisplayResourceId, value); - } - - public string DescriptionResourceDll - { - get => (string)this.Fields[(int)ShortcutSymbolFields.DescriptionResourceDLL]; - set => this.Set((int)ShortcutSymbolFields.DescriptionResourceDLL, value); - } - - public int? DescriptionResourceId - { - get => this.Fields[(int)ShortcutSymbolFields.DescriptionResourceId].AsNullableNumber(); - set => this.Set((int)ShortcutSymbolFields.DescriptionResourceId, value); - } - } -} diff --git a/src/WixToolset.Data/Tuples/SignatureTuple.cs b/src/WixToolset.Data/Tuples/SignatureTuple.cs deleted file mode 100644 index fc2ce088..00000000 --- a/src/WixToolset.Data/Tuples/SignatureTuple.cs +++ /dev/null @@ -1,100 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition Signature = new IntermediateSymbolDefinition( - SymbolDefinitionType.Signature, - new[] - { - new IntermediateFieldDefinition(nameof(SignatureSymbolFields.FileName), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(SignatureSymbolFields.MinVersion), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(SignatureSymbolFields.MaxVersion), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(SignatureSymbolFields.MinSize), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(SignatureSymbolFields.MaxSize), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(SignatureSymbolFields.MinDate), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(SignatureSymbolFields.MaxDate), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(SignatureSymbolFields.Languages), IntermediateFieldType.String), - }, - typeof(SignatureSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum SignatureSymbolFields - { - FileName, - MinVersion, - MaxVersion, - MinSize, - MaxSize, - MinDate, - MaxDate, - Languages, - } - - public class SignatureSymbol : IntermediateSymbol - { - public SignatureSymbol() : base(SymbolDefinitions.Signature, null, null) - { - } - - public SignatureSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Signature, sourceLineNumber, id) - { - } - - public IntermediateField this[SignatureSymbolFields index] => this.Fields[(int)index]; - - public string FileName - { - get => (string)this.Fields[(int)SignatureSymbolFields.FileName]; - set => this.Set((int)SignatureSymbolFields.FileName, value); - } - - public string MinVersion - { - get => (string)this.Fields[(int)SignatureSymbolFields.MinVersion]; - set => this.Set((int)SignatureSymbolFields.MinVersion, value); - } - - public string MaxVersion - { - get => (string)this.Fields[(int)SignatureSymbolFields.MaxVersion]; - set => this.Set((int)SignatureSymbolFields.MaxVersion, value); - } - - public int? MinSize - { - get => (int?)this.Fields[(int)SignatureSymbolFields.MinSize]; - set => this.Set((int)SignatureSymbolFields.MinSize, value); - } - - public int? MaxSize - { - get => (int?)this.Fields[(int)SignatureSymbolFields.MaxSize]; - set => this.Set((int)SignatureSymbolFields.MaxSize, value); - } - - public int? MinDate - { - get => (int?)this.Fields[(int)SignatureSymbolFields.MinDate]; - set => this.Set((int)SignatureSymbolFields.MinDate, value); - } - - public int? MaxDate - { - get => (int?)this.Fields[(int)SignatureSymbolFields.MaxDate]; - set => this.Set((int)SignatureSymbolFields.MaxDate, value); - } - - public string Languages - { - get => (string)this.Fields[(int)SignatureSymbolFields.Languages]; - set => this.Set((int)SignatureSymbolFields.Languages, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/SummaryInformationTuple.cs b/src/WixToolset.Data/Tuples/SummaryInformationTuple.cs deleted file mode 100644 index b3b233fe..00000000 --- a/src/WixToolset.Data/Tuples/SummaryInformationTuple.cs +++ /dev/null @@ -1,102 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition SummaryInformation = new IntermediateSymbolDefinition( - SymbolDefinitionType.SummaryInformation, - new[] - { - new IntermediateFieldDefinition(nameof(SummaryInformationSymbolFields.PropertyId), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(SummaryInformationSymbolFields.Value), IntermediateFieldType.String), - }, - typeof(SummaryInformationSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum SummaryInformationSymbolFields - { - PropertyId, - Value, - } - - public enum SummaryInformationType - { - Codepage = 1, - Title, - Subject, - PatchPackageName = 3, //used by patches - Author, - Keywords, - Comments, - PlatformAndLanguage, - PatchProductCodes = 7, // used by patches - TransformPlatformAndLanguageOrStorageNames, - TransformNames = 8, // used by patches - PackageCode, - PatchCode = 9, // used by patches - TransformProductCodes = 9, // used by transforms - Reserved11 = 11, // reserved by patches - Created, - LastSaved, - WindowsInstallerVersion, - Reserved14 = 14, // reserved by patches - WordCount, - PatchInstallerRequirement = 15, // used by patches - Reserved16, // reserved by patches - TransformValidationFlags = 16, // used by transforms - CreatingApplication = 18, - Security - } - - /// - /// Summary information values for the PachInstallerRequirement property. - /// - public enum PatchInstallerRequirement - { - /// Any version of the installer will do - Version10 = 1, - - /// At least 1.2 - Version12 = 2, - - /// At least 2.0 - Version20 = 3, - - /// At least 3.0 - Version30 = 4, - - /// At least 3.1 - Version31 = 5, - } - - public class SummaryInformationSymbol : IntermediateSymbol - { - public SummaryInformationSymbol() : base(SymbolDefinitions.SummaryInformation, null, null) - { - } - - public SummaryInformationSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.SummaryInformation, sourceLineNumber, id) - { - } - - public IntermediateField this[SummaryInformationSymbolFields index] => this.Fields[(int)index]; - - public SummaryInformationType PropertyId - { - get => (SummaryInformationType)this.Fields[(int)SummaryInformationSymbolFields.PropertyId].AsNumber(); - set => this.Set((int)SummaryInformationSymbolFields.PropertyId, (int)value); - } - - public string Value - { - get => (string)this.Fields[(int)SummaryInformationSymbolFields.Value]; - set => this.Set((int)SummaryInformationSymbolFields.Value, value); - } - } -} diff --git a/src/WixToolset.Data/Tuples/TargetFilesOptionalDataTuple.cs b/src/WixToolset.Data/Tuples/TargetFilesOptionalDataTuple.cs deleted file mode 100644 index 66fdc30c..00000000 --- a/src/WixToolset.Data/Tuples/TargetFilesOptionalDataTuple.cs +++ /dev/null @@ -1,84 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition TargetFilesOptionalData = new IntermediateSymbolDefinition( - SymbolDefinitionType.TargetFilesOptionalData, - new[] - { - new IntermediateFieldDefinition(nameof(TargetFilesOptionalDataSymbolFields.Target), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(TargetFilesOptionalDataSymbolFields.FTK), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(TargetFilesOptionalDataSymbolFields.SymbolPaths), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(TargetFilesOptionalDataSymbolFields.IgnoreOffsets), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(TargetFilesOptionalDataSymbolFields.IgnoreLengths), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(TargetFilesOptionalDataSymbolFields.RetainOffsets), IntermediateFieldType.String), - }, - typeof(TargetFilesOptionalDataSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum TargetFilesOptionalDataSymbolFields - { - Target, - FTK, - SymbolPaths, - IgnoreOffsets, - IgnoreLengths, - RetainOffsets, - } - - public class TargetFilesOptionalDataSymbol : IntermediateSymbol - { - public TargetFilesOptionalDataSymbol() : base(SymbolDefinitions.TargetFilesOptionalData, null, null) - { - } - - public TargetFilesOptionalDataSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.TargetFilesOptionalData, sourceLineNumber, id) - { - } - - public IntermediateField this[TargetFilesOptionalDataSymbolFields index] => this.Fields[(int)index]; - - public string Target - { - get => (string)this.Fields[(int)TargetFilesOptionalDataSymbolFields.Target]; - set => this.Set((int)TargetFilesOptionalDataSymbolFields.Target, value); - } - - public string FTK - { - get => (string)this.Fields[(int)TargetFilesOptionalDataSymbolFields.FTK]; - set => this.Set((int)TargetFilesOptionalDataSymbolFields.FTK, value); - } - - public string SymbolPaths - { - get => (string)this.Fields[(int)TargetFilesOptionalDataSymbolFields.SymbolPaths]; - set => this.Set((int)TargetFilesOptionalDataSymbolFields.SymbolPaths, value); - } - - public string IgnoreOffsets - { - get => (string)this.Fields[(int)TargetFilesOptionalDataSymbolFields.IgnoreOffsets]; - set => this.Set((int)TargetFilesOptionalDataSymbolFields.IgnoreOffsets, value); - } - - public string IgnoreLengths - { - get => (string)this.Fields[(int)TargetFilesOptionalDataSymbolFields.IgnoreLengths]; - set => this.Set((int)TargetFilesOptionalDataSymbolFields.IgnoreLengths, value); - } - - public string RetainOffsets - { - get => (string)this.Fields[(int)TargetFilesOptionalDataSymbolFields.RetainOffsets]; - set => this.Set((int)TargetFilesOptionalDataSymbolFields.RetainOffsets, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/TargetImagesTuple.cs b/src/WixToolset.Data/Tuples/TargetImagesTuple.cs deleted file mode 100644 index 4748b1f3..00000000 --- a/src/WixToolset.Data/Tuples/TargetImagesTuple.cs +++ /dev/null @@ -1,92 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition TargetImages = new IntermediateSymbolDefinition( - SymbolDefinitionType.TargetImages, - new[] - { - new IntermediateFieldDefinition(nameof(TargetImagesSymbolFields.Target), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(TargetImagesSymbolFields.MsiPath), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(TargetImagesSymbolFields.SymbolPaths), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(TargetImagesSymbolFields.Upgraded), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(TargetImagesSymbolFields.Order), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(TargetImagesSymbolFields.ProductValidateFlags), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(TargetImagesSymbolFields.IgnoreMissingSrcFiles), IntermediateFieldType.Bool), - }, - typeof(TargetImagesSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum TargetImagesSymbolFields - { - Target, - MsiPath, - SymbolPaths, - Upgraded, - Order, - ProductValidateFlags, - IgnoreMissingSrcFiles, - } - - public class TargetImagesSymbol : IntermediateSymbol - { - public TargetImagesSymbol() : base(SymbolDefinitions.TargetImages, null, null) - { - } - - public TargetImagesSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.TargetImages, sourceLineNumber, id) - { - } - - public IntermediateField this[TargetImagesSymbolFields index] => this.Fields[(int)index]; - - public string Target - { - get => (string)this.Fields[(int)TargetImagesSymbolFields.Target]; - set => this.Set((int)TargetImagesSymbolFields.Target, value); - } - - public string MsiPath - { - get => (string)this.Fields[(int)TargetImagesSymbolFields.MsiPath]; - set => this.Set((int)TargetImagesSymbolFields.MsiPath, value); - } - - public string SymbolPaths - { - get => (string)this.Fields[(int)TargetImagesSymbolFields.SymbolPaths]; - set => this.Set((int)TargetImagesSymbolFields.SymbolPaths, value); - } - - public string Upgraded - { - get => (string)this.Fields[(int)TargetImagesSymbolFields.Upgraded]; - set => this.Set((int)TargetImagesSymbolFields.Upgraded, value); - } - - public int Order - { - get => (int)this.Fields[(int)TargetImagesSymbolFields.Order]; - set => this.Set((int)TargetImagesSymbolFields.Order, value); - } - - public string ProductValidateFlags - { - get => (string)this.Fields[(int)TargetImagesSymbolFields.ProductValidateFlags]; - set => this.Set((int)TargetImagesSymbolFields.ProductValidateFlags, value); - } - - public bool IgnoreMissingSrcFiles - { - get => (bool)this.Fields[(int)TargetImagesSymbolFields.IgnoreMissingSrcFiles]; - set => this.Set((int)TargetImagesSymbolFields.IgnoreMissingSrcFiles, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/TextStyleTuple.cs b/src/WixToolset.Data/Tuples/TextStyleTuple.cs deleted file mode 100644 index b07615bb..00000000 --- a/src/WixToolset.Data/Tuples/TextStyleTuple.cs +++ /dev/null @@ -1,108 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition TextStyle = new IntermediateSymbolDefinition( - SymbolDefinitionType.TextStyle, - new[] - { - new IntermediateFieldDefinition(nameof(TextStyleSymbolFields.FaceName), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(TextStyleSymbolFields.Size), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(TextStyleSymbolFields.Red), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(TextStyleSymbolFields.Green), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(TextStyleSymbolFields.Blue), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(TextStyleSymbolFields.Bold), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(TextStyleSymbolFields.Italic), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(TextStyleSymbolFields.Strike), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(TextStyleSymbolFields.Underline), IntermediateFieldType.Bool), - }, - typeof(TextStyleSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum TextStyleSymbolFields - { - FaceName, - Size, - Red, - Green, - Blue, - Bold, - Italic, - Strike, - Underline, - } - - public class TextStyleSymbol : IntermediateSymbol - { - public TextStyleSymbol() : base(SymbolDefinitions.TextStyle, null, null) - { - } - - public TextStyleSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.TextStyle, sourceLineNumber, id) - { - } - - public IntermediateField this[TextStyleSymbolFields index] => this.Fields[(int)index]; - - public string FaceName - { - get => (string)this.Fields[(int)TextStyleSymbolFields.FaceName]; - set => this.Set((int)TextStyleSymbolFields.FaceName, value); - } - - public int Size - { - get => (int)this.Fields[(int)TextStyleSymbolFields.Size]; - set => this.Set((int)TextStyleSymbolFields.Size, value); - } - - public int? Red - { - get => (int?)this.Fields[(int)TextStyleSymbolFields.Red]; - set => this.Set((int)TextStyleSymbolFields.Red, value); - } - - public int? Green - { - get => (int?)this.Fields[(int)TextStyleSymbolFields.Green]; - set => this.Set((int)TextStyleSymbolFields.Green, value); - } - - public int? Blue - { - get => (int?)this.Fields[(int)TextStyleSymbolFields.Blue]; - set => this.Set((int)TextStyleSymbolFields.Blue, value); - } - - public bool Bold - { - get => (bool)this.Fields[(int)TextStyleSymbolFields.Bold]; - set => this.Set((int)TextStyleSymbolFields.Bold, value); - } - - public bool Italic - { - get => (bool)this.Fields[(int)TextStyleSymbolFields.Italic]; - set => this.Set((int)TextStyleSymbolFields.Italic, value); - } - - public bool Strike - { - get => (bool)this.Fields[(int)TextStyleSymbolFields.Strike]; - set => this.Set((int)TextStyleSymbolFields.Strike, value); - } - - public bool Underline - { - get => (bool)this.Fields[(int)TextStyleSymbolFields.Underline]; - set => this.Set((int)TextStyleSymbolFields.Underline, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/TransformsFlags.cs b/src/WixToolset.Data/Tuples/TransformsFlags.cs deleted file mode 100644 index 90f22cb4..00000000 --- a/src/WixToolset.Data/Tuples/TransformsFlags.cs +++ /dev/null @@ -1,79 +0,0 @@ -// 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. - -namespace WixToolset.Data.Symbols -{ - using System; - - /// - /// Summary information values for the CharCount property in transforms. - /// - [Flags] - public enum TransformFlags - { - /// Ignore error when adding a row that exists. - ErrorAddExistingRow = 0x1, - - /// Ignore error when deleting a row that does not exist. - ErrorDeleteMissingRow = 0x2, - - /// Ignore error when adding a table that exists. - ErrorAddExistingTable = 0x4, - - /// Ignore error when deleting a table that does not exist. - ErrorDeleteMissingTable = 0x8, - - /// Ignore error when updating a row that does not exist. - ErrorUpdateMissingRow = 0x10, - - /// Ignore error when transform and database code pages do not match, and their code pages are neutral. - ErrorChangeCodePage = 0x20, - - /// Default language must match base database. - ValidateLanguage = 0x10000, - - /// Product must match base database. - ValidateProduct = 0x20000, - - /// Check major version only. - ValidateMajorVersion = 0x80000, - - /// Check major and minor versions only. - ValidateMinorVersion = 0x100000, - - /// Check major, minor, and update versions. - ValidateUpdateVersion = 0x200000, - - /// Installed version lt base version. - ValidateNewLessBaseVersion = 0x400000, - - /// Installed version lte base version. - ValidateNewLessEqualBaseVersion = 0x800000, - - /// Installed version eq base version. - ValidateNewEqualBaseVersion = 0x1000000, - - /// Installed version gte base version. - ValidateNewGreaterEqualBaseVersion = 0x2000000, - - /// Installed version gt base version. - ValidateNewGreaterBaseVersion = 0x4000000, - - /// UpgradeCode must match base database. - ValidateUpgradeCode = 0x8000000, - - /// Masks all version checks on ProductVersion. - ProductVersionMask = ValidateMajorVersion | ValidateMinorVersion | ValidateUpdateVersion, - - /// Masks all operations on ProductVersion. - ProductVersionOperatorMask = ValidateNewLessBaseVersion | ValidateNewLessEqualBaseVersion | ValidateNewEqualBaseVersion | ValidateNewGreaterEqualBaseVersion | ValidateNewGreaterBaseVersion, - - /// Default value for instance transforms. - InstanceTransformDefault = ErrorAddExistingRow | ErrorDeleteMissingRow | ErrorAddExistingTable | ErrorDeleteMissingTable | ErrorUpdateMissingRow | ErrorChangeCodePage | ValidateProduct | ValidateUpdateVersion | ValidateNewGreaterEqualBaseVersion, - - /// Default value for language transforms. - LanguageTransformDefault = ErrorAddExistingRow | ErrorDeleteMissingRow | ErrorAddExistingTable | ErrorDeleteMissingTable | ErrorUpdateMissingRow | ErrorChangeCodePage | ValidateProduct, - - /// Default value for patch transforms. - PatchTransformDefault = ErrorAddExistingRow | ErrorDeleteMissingRow | ErrorAddExistingTable | ErrorDeleteMissingTable | ErrorUpdateMissingRow | ValidateProduct | ValidateUpdateVersion | ValidateNewEqualBaseVersion | ValidateUpgradeCode, - } -} diff --git a/src/WixToolset.Data/Tuples/TupleDefinitions.cs b/src/WixToolset.Data/Tuples/TupleDefinitions.cs deleted file mode 100644 index ea90ef7b..00000000 --- a/src/WixToolset.Data/Tuples/TupleDefinitions.cs +++ /dev/null @@ -1,736 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using System; - - public enum SymbolDefinitionType - { - SummaryInformation, - ActionText, - AppId, - AppSearch, - BBControl, - Billboard, - Binary, - CCPSearch, - CheckBox, - Class, - ComboBox, - CompLocator, - Complus, - Component, - Condition, - Control, - ControlCondition, - ControlEvent, - CreateFolder, - CustomAction, - Dialog, - Directory, - DrLocator, - DuplicateFile, - Environment, - Error, - EventMapping, - Extension, - ExternalFiles, - FamilyFileRanges, - Feature, - FeatureComponents, - File, - FileSFPCatalog, - Icon, - ImageFamilies, - IniFile, - IniLocator, - IsolatedComponent, - LaunchCondition, - ListBox, - ListView, - LockPermissions, - Media, - MIME, - ModuleComponents, - ModuleConfiguration, - ModuleDependency, - ModuleExclusion, - ModuleIgnoreTable, - ModuleSignature, - ModuleSubstitution, - MoveFile, - Assembly, - MsiAssemblyName, - MsiDigitalCertificate, - MsiDigitalSignature, - MsiEmbeddedChainer, - MsiEmbeddedUI, - MsiFileHash, - MsiLockPermissionsEx, - MsiPackageCertificate, - MsiPatchCertificate, - MsiPatchHeaders, - MsiPatchMetadata, - MsiPatchOldAssemblyFile, - MsiPatchOldAssemblyName, - MsiPatchSequence, - MsiServiceConfig, - MsiServiceConfigFailureActions, - MsiShortcutProperty, - ODBCAttribute, - ODBCDataSource, - ODBCDriver, - ODBCSourceAttribute, - ODBCTranslator, - Patch, - PatchMetadata, - PatchPackage, - PatchSequence, - ProgId, - Properties, - Property, - ProvidesDependency, - PublishComponent, - RadioButton, - Registry, - RegLocator, - RemoveFile, - RemoveRegistry, - ReserveCost, - ServiceControl, - ServiceInstall, - SFPCatalog, - Shortcut, - Signature, - TargetFilesOptionalData, - TargetImages, - TextStyle, - TypeLib, - UIText, - Upgrade, - UpgradedFilesOptionalData, - UpgradedFilesToIgnore, - UpgradedImages, - Verb, - WixAction, - WixApprovedExeForElevation, - WixBindUpdatedFiles, - WixBootstrapperApplication, - WixBuildInfo, - WixBundle, - WixBundleCatalog, - WixBundleContainer, - WixBundleCustomData, - WixBundleCustomDataAttribute, - WixBundleCustomDataCell, - WixBundleExePackage, - WixBundleExtension, - WixBundleMsiFeature, - WixBundleMsiPackage, - WixBundleMsiProperty, - WixBundleMspPackage, - WixBundleMsuPackage, - WixBundlePackage, - WixBundlePackageCommandLine, - WixBundlePackageExitCode, - WixBundlePackageGroup, - WixBundlePatchTargetCode, - WixBundlePayload, - WixBundlePayloadGroup, - WixBundleRelatedPackage, - WixBundleRollbackBoundary, - WixBundleSlipstreamMsp, - WixBundleUpdate, - WixBundleVariable, - WixChain, - WixChainItem, - WixComplexReference, - WixComponentGroup, - WixComponentSearch, - WixCustomTable, - WixCustomTableCell, - WixCustomTableColumn, - WixDeltaPatchFile, - WixDeltaPatchSymbolPaths, - WixDependencyProvider, - WixEnsureTable, - WixFeatureGroup, - WixFeatureModules, - WixFileSearch, - WixFragment, - WixGroup, - WixInstanceComponent, - WixInstanceTransforms, - WixMediaTemplate, - WixMerge, - WixOrdering, - WixPatchBaseline, - WixPatchFamilyGroup, - WixPatchId, - WixPatchRef, - WixPatchTarget, - WixProductSearch, - WixProperty, - WixRegistrySearch, - WixRelatedBundle, - WixSearch, - WixSearchRelation, - WixSetVariable, - WixSimpleReference, - WixSuppressAction, - WixSuppressModularization, - WixUI, - WixUpdateRegistration, - WixVariable, - MustBeFromAnExtension, - } - - public static partial class SymbolDefinitions - { - public static readonly Version Version = new Version("4.0.0"); - - public static IntermediateSymbolDefinition ByName(string name) - { - if (!Enum.TryParse(name, out SymbolDefinitionType type) || type == SymbolDefinitionType.MustBeFromAnExtension) - { - return null; - } - - return ByType(type); - } - - public static IntermediateSymbolDefinition ByType(SymbolDefinitionType type) - { - switch (type) - { - case SymbolDefinitionType.SummaryInformation: - return SymbolDefinitions.SummaryInformation; - - case SymbolDefinitionType.ActionText: - return SymbolDefinitions.ActionText; - - case SymbolDefinitionType.AppId: - return SymbolDefinitions.AppId; - - case SymbolDefinitionType.AppSearch: - return SymbolDefinitions.AppSearch; - - case SymbolDefinitionType.BBControl: - return SymbolDefinitions.BBControl; - - case SymbolDefinitionType.Billboard: - return SymbolDefinitions.Billboard; - - case SymbolDefinitionType.Binary: - return SymbolDefinitions.Binary; - - case SymbolDefinitionType.CCPSearch: - return SymbolDefinitions.CCPSearch; - - case SymbolDefinitionType.CheckBox: - return SymbolDefinitions.CheckBox; - - case SymbolDefinitionType.Class: - return SymbolDefinitions.Class; - - case SymbolDefinitionType.ComboBox: - return SymbolDefinitions.ComboBox; - - case SymbolDefinitionType.CompLocator: - return SymbolDefinitions.CompLocator; - - case SymbolDefinitionType.Complus: - return SymbolDefinitions.Complus; - - case SymbolDefinitionType.Component: - return SymbolDefinitions.Component; - - case SymbolDefinitionType.Condition: - return SymbolDefinitions.Condition; - - case SymbolDefinitionType.Control: - return SymbolDefinitions.Control; - - case SymbolDefinitionType.ControlCondition: - return SymbolDefinitions.ControlCondition; - - case SymbolDefinitionType.ControlEvent: - return SymbolDefinitions.ControlEvent; - - case SymbolDefinitionType.CreateFolder: - return SymbolDefinitions.CreateFolder; - - case SymbolDefinitionType.CustomAction: - return SymbolDefinitions.CustomAction; - - case SymbolDefinitionType.Dialog: - return SymbolDefinitions.Dialog; - - case SymbolDefinitionType.Directory: - return SymbolDefinitions.Directory; - - case SymbolDefinitionType.DrLocator: - return SymbolDefinitions.DrLocator; - - case SymbolDefinitionType.DuplicateFile: - return SymbolDefinitions.DuplicateFile; - - case SymbolDefinitionType.Environment: - return SymbolDefinitions.Environment; - - case SymbolDefinitionType.Error: - return SymbolDefinitions.Error; - - case SymbolDefinitionType.EventMapping: - return SymbolDefinitions.EventMapping; - - case SymbolDefinitionType.Extension: - return SymbolDefinitions.Extension; - - case SymbolDefinitionType.ExternalFiles: - return SymbolDefinitions.ExternalFiles; - - case SymbolDefinitionType.FamilyFileRanges: - return SymbolDefinitions.FamilyFileRanges; - - case SymbolDefinitionType.Feature: - return SymbolDefinitions.Feature; - - case SymbolDefinitionType.FeatureComponents: - return SymbolDefinitions.FeatureComponents; - - case SymbolDefinitionType.File: - return SymbolDefinitions.File; - - case SymbolDefinitionType.FileSFPCatalog: - return SymbolDefinitions.FileSFPCatalog; - - case SymbolDefinitionType.Icon: - return SymbolDefinitions.Icon; - - case SymbolDefinitionType.ImageFamilies: - return SymbolDefinitions.ImageFamilies; - - case SymbolDefinitionType.IniFile: - return SymbolDefinitions.IniFile; - - case SymbolDefinitionType.IniLocator: - return SymbolDefinitions.IniLocator; - - case SymbolDefinitionType.IsolatedComponent: - return SymbolDefinitions.IsolatedComponent; - - case SymbolDefinitionType.LaunchCondition: - return SymbolDefinitions.LaunchCondition; - - case SymbolDefinitionType.ListBox: - return SymbolDefinitions.ListBox; - - case SymbolDefinitionType.ListView: - return SymbolDefinitions.ListView; - - case SymbolDefinitionType.LockPermissions: - return SymbolDefinitions.LockPermissions; - - case SymbolDefinitionType.Media: - return SymbolDefinitions.Media; - - case SymbolDefinitionType.MIME: - return SymbolDefinitions.MIME; - - case SymbolDefinitionType.ModuleComponents: - return SymbolDefinitions.ModuleComponents; - - case SymbolDefinitionType.ModuleConfiguration: - return SymbolDefinitions.ModuleConfiguration; - - case SymbolDefinitionType.ModuleDependency: - return SymbolDefinitions.ModuleDependency; - - case SymbolDefinitionType.ModuleExclusion: - return SymbolDefinitions.ModuleExclusion; - - case SymbolDefinitionType.ModuleIgnoreTable: - return SymbolDefinitions.ModuleIgnoreTable; - - case SymbolDefinitionType.ModuleSignature: - return SymbolDefinitions.ModuleSignature; - - case SymbolDefinitionType.ModuleSubstitution: - return SymbolDefinitions.ModuleSubstitution; - - case SymbolDefinitionType.MoveFile: - return SymbolDefinitions.MoveFile; - - case SymbolDefinitionType.Assembly: - return SymbolDefinitions.Assembly; - - case SymbolDefinitionType.MsiAssemblyName: - return SymbolDefinitions.MsiAssemblyName; - - case SymbolDefinitionType.MsiDigitalCertificate: - return SymbolDefinitions.MsiDigitalCertificate; - - case SymbolDefinitionType.MsiDigitalSignature: - return SymbolDefinitions.MsiDigitalSignature; - - case SymbolDefinitionType.MsiEmbeddedChainer: - return SymbolDefinitions.MsiEmbeddedChainer; - - case SymbolDefinitionType.MsiEmbeddedUI: - return SymbolDefinitions.MsiEmbeddedUI; - - case SymbolDefinitionType.MsiFileHash: - return SymbolDefinitions.MsiFileHash; - - case SymbolDefinitionType.MsiLockPermissionsEx: - return SymbolDefinitions.MsiLockPermissionsEx; - - case SymbolDefinitionType.MsiPackageCertificate: - return SymbolDefinitions.MsiPackageCertificate; - - case SymbolDefinitionType.MsiPatchCertificate: - return SymbolDefinitions.MsiPatchCertificate; - - case SymbolDefinitionType.MsiPatchHeaders: - return SymbolDefinitions.MsiPatchHeaders; - - case SymbolDefinitionType.MsiPatchMetadata: - return SymbolDefinitions.MsiPatchMetadata; - - case SymbolDefinitionType.MsiPatchOldAssemblyFile: - return SymbolDefinitions.MsiPatchOldAssemblyFile; - - case SymbolDefinitionType.MsiPatchOldAssemblyName: - return SymbolDefinitions.MsiPatchOldAssemblyName; - - case SymbolDefinitionType.MsiPatchSequence: - return SymbolDefinitions.MsiPatchSequence; - - case SymbolDefinitionType.MsiServiceConfig: - return SymbolDefinitions.MsiServiceConfig; - - case SymbolDefinitionType.MsiServiceConfigFailureActions: - return SymbolDefinitions.MsiServiceConfigFailureActions; - - case SymbolDefinitionType.MsiShortcutProperty: - return SymbolDefinitions.MsiShortcutProperty; - - case SymbolDefinitionType.ODBCAttribute: - return SymbolDefinitions.ODBCAttribute; - - case SymbolDefinitionType.ODBCDataSource: - return SymbolDefinitions.ODBCDataSource; - - case SymbolDefinitionType.ODBCDriver: - return SymbolDefinitions.ODBCDriver; - - case SymbolDefinitionType.ODBCSourceAttribute: - return SymbolDefinitions.ODBCSourceAttribute; - - case SymbolDefinitionType.ODBCTranslator: - return SymbolDefinitions.ODBCTranslator; - - case SymbolDefinitionType.Patch: - return SymbolDefinitions.Patch; - - case SymbolDefinitionType.PatchMetadata: - return SymbolDefinitions.PatchMetadata; - - case SymbolDefinitionType.PatchPackage: - return SymbolDefinitions.PatchPackage; - - case SymbolDefinitionType.PatchSequence: - return SymbolDefinitions.PatchSequence; - - case SymbolDefinitionType.ProgId: - return SymbolDefinitions.ProgId; - - case SymbolDefinitionType.Properties: - return SymbolDefinitions.Properties; - - case SymbolDefinitionType.Property: - return SymbolDefinitions.Property; - - case SymbolDefinitionType.PublishComponent: - return SymbolDefinitions.PublishComponent; - - case SymbolDefinitionType.ProvidesDependency: - return SymbolDefinitions.ProvidesDependency; - - case SymbolDefinitionType.RadioButton: - return SymbolDefinitions.RadioButton; - - case SymbolDefinitionType.Registry: - return SymbolDefinitions.Registry; - - case SymbolDefinitionType.RegLocator: - return SymbolDefinitions.RegLocator; - - case SymbolDefinitionType.RemoveFile: - return SymbolDefinitions.RemoveFile; - - case SymbolDefinitionType.RemoveRegistry: - return SymbolDefinitions.RemoveRegistry; - - case SymbolDefinitionType.ReserveCost: - return SymbolDefinitions.ReserveCost; - - case SymbolDefinitionType.ServiceControl: - return SymbolDefinitions.ServiceControl; - - case SymbolDefinitionType.ServiceInstall: - return SymbolDefinitions.ServiceInstall; - - case SymbolDefinitionType.SFPCatalog: - return SymbolDefinitions.SFPCatalog; - - case SymbolDefinitionType.Shortcut: - return SymbolDefinitions.Shortcut; - - case SymbolDefinitionType.Signature: - return SymbolDefinitions.Signature; - - case SymbolDefinitionType.TargetFilesOptionalData: - return SymbolDefinitions.TargetFilesOptionalData; - - case SymbolDefinitionType.TargetImages: - return SymbolDefinitions.TargetImages; - - case SymbolDefinitionType.TextStyle: - return SymbolDefinitions.TextStyle; - - case SymbolDefinitionType.TypeLib: - return SymbolDefinitions.TypeLib; - - case SymbolDefinitionType.UIText: - return SymbolDefinitions.UIText; - - case SymbolDefinitionType.Upgrade: - return SymbolDefinitions.Upgrade; - - case SymbolDefinitionType.UpgradedFilesOptionalData: - return SymbolDefinitions.UpgradedFilesOptionalData; - - case SymbolDefinitionType.UpgradedFilesToIgnore: - return SymbolDefinitions.UpgradedFilesToIgnore; - - case SymbolDefinitionType.UpgradedImages: - return SymbolDefinitions.UpgradedImages; - - case SymbolDefinitionType.Verb: - return SymbolDefinitions.Verb; - - case SymbolDefinitionType.WixAction: - return SymbolDefinitions.WixAction; - - case SymbolDefinitionType.WixApprovedExeForElevation: - return SymbolDefinitions.WixApprovedExeForElevation; - - case SymbolDefinitionType.WixBindUpdatedFiles: - return SymbolDefinitions.WixBindUpdatedFiles; - - case SymbolDefinitionType.WixBootstrapperApplication: - return SymbolDefinitions.WixBootstrapperApplication; - - case SymbolDefinitionType.WixBuildInfo: - return SymbolDefinitions.WixBuildInfo; - - case SymbolDefinitionType.WixBundle: - return SymbolDefinitions.WixBundle; - - case SymbolDefinitionType.WixBundleCatalog: - return SymbolDefinitions.WixBundleCatalog; - - case SymbolDefinitionType.WixBundleContainer: - return SymbolDefinitions.WixBundleContainer; - - case SymbolDefinitionType.WixBundleCustomData: - return SymbolDefinitions.WixBundleCustomData; - - case SymbolDefinitionType.WixBundleCustomDataAttribute: - return SymbolDefinitions.WixBundleCustomDataAttribute; - - case SymbolDefinitionType.WixBundleCustomDataCell: - return SymbolDefinitions.WixBundleCustomDataCell; - - case SymbolDefinitionType.WixBundleExtension: - return SymbolDefinitions.WixBundleExtension; - - case SymbolDefinitionType.WixBundleExePackage: - return SymbolDefinitions.WixBundleExePackage; - - case SymbolDefinitionType.WixBundleMsiFeature: - return SymbolDefinitions.WixBundleMsiFeature; - - case SymbolDefinitionType.WixBundleMsiPackage: - return SymbolDefinitions.WixBundleMsiPackage; - - case SymbolDefinitionType.WixBundleMsiProperty: - return SymbolDefinitions.WixBundleMsiProperty; - - case SymbolDefinitionType.WixBundleMspPackage: - return SymbolDefinitions.WixBundleMspPackage; - - case SymbolDefinitionType.WixBundleMsuPackage: - return SymbolDefinitions.WixBundleMsuPackage; - - case SymbolDefinitionType.WixBundlePackage: - return SymbolDefinitions.WixBundlePackage; - - case SymbolDefinitionType.WixBundlePackageCommandLine: - return SymbolDefinitions.WixBundlePackageCommandLine; - - case SymbolDefinitionType.WixBundlePackageExitCode: - return SymbolDefinitions.WixBundlePackageExitCode; - - case SymbolDefinitionType.WixBundlePackageGroup: - return SymbolDefinitions.WixBundlePackageGroup; - - case SymbolDefinitionType.WixBundlePatchTargetCode: - return SymbolDefinitions.WixBundlePatchTargetCode; - - case SymbolDefinitionType.WixBundlePayload: - return SymbolDefinitions.WixBundlePayload; - - case SymbolDefinitionType.WixBundlePayloadGroup: - return SymbolDefinitions.WixBundlePayloadGroup; - - case SymbolDefinitionType.WixBundleRelatedPackage: - return SymbolDefinitions.WixBundleRelatedPackage; - - case SymbolDefinitionType.WixBundleRollbackBoundary: - return SymbolDefinitions.WixBundleRollbackBoundary; - - case SymbolDefinitionType.WixBundleSlipstreamMsp: - return SymbolDefinitions.WixBundleSlipstreamMsp; - - case SymbolDefinitionType.WixBundleUpdate: - return SymbolDefinitions.WixBundleUpdate; - - case SymbolDefinitionType.WixBundleVariable: - return SymbolDefinitions.WixBundleVariable; - - case SymbolDefinitionType.WixChain: - return SymbolDefinitions.WixChain; - - case SymbolDefinitionType.WixChainItem: - return SymbolDefinitions.WixChainItem; - - case SymbolDefinitionType.WixComplexReference: - return SymbolDefinitions.WixComplexReference; - - case SymbolDefinitionType.WixComponentGroup: - return SymbolDefinitions.WixComponentGroup; - - case SymbolDefinitionType.WixComponentSearch: - return SymbolDefinitions.WixComponentSearch; - - case SymbolDefinitionType.WixCustomTable: - return SymbolDefinitions.WixCustomTable; - - case SymbolDefinitionType.WixCustomTableCell: - return SymbolDefinitions.WixCustomTableCell; - - case SymbolDefinitionType.WixCustomTableColumn: - return SymbolDefinitions.WixCustomTableColumn; - - case SymbolDefinitionType.WixDeltaPatchFile: - return SymbolDefinitions.WixDeltaPatchFile; - - case SymbolDefinitionType.WixDeltaPatchSymbolPaths: - return SymbolDefinitions.WixDeltaPatchSymbolPaths; - - case SymbolDefinitionType.WixEnsureTable: - return SymbolDefinitions.WixEnsureTable; - - case SymbolDefinitionType.WixFeatureGroup: - return SymbolDefinitions.WixFeatureGroup; - - case SymbolDefinitionType.WixFeatureModules: - return SymbolDefinitions.WixFeatureModules; - - case SymbolDefinitionType.WixFileSearch: - return SymbolDefinitions.WixFileSearch; - - case SymbolDefinitionType.WixFragment: - return SymbolDefinitions.WixFragment; - - case SymbolDefinitionType.WixGroup: - return SymbolDefinitions.WixGroup; - - case SymbolDefinitionType.WixInstanceComponent: - return SymbolDefinitions.WixInstanceComponent; - - case SymbolDefinitionType.WixInstanceTransforms: - return SymbolDefinitions.WixInstanceTransforms; - - case SymbolDefinitionType.WixMediaTemplate: - return SymbolDefinitions.WixMediaTemplate; - - case SymbolDefinitionType.WixMerge: - return SymbolDefinitions.WixMerge; - - case SymbolDefinitionType.WixOrdering: - return SymbolDefinitions.WixOrdering; - - case SymbolDefinitionType.WixPatchBaseline: - return SymbolDefinitions.WixPatchBaseline; - - case SymbolDefinitionType.WixPatchFamilyGroup: - return SymbolDefinitions.WixPatchFamilyGroup; - - case SymbolDefinitionType.WixPatchId: - return SymbolDefinitions.WixPatchId; - - case SymbolDefinitionType.WixPatchRef: - return SymbolDefinitions.WixPatchRef; - - case SymbolDefinitionType.WixPatchTarget: - return SymbolDefinitions.WixPatchTarget; - - case SymbolDefinitionType.WixProductSearch: - return SymbolDefinitions.WixProductSearch; - - case SymbolDefinitionType.WixProperty: - return SymbolDefinitions.WixProperty; - - case SymbolDefinitionType.WixRegistrySearch: - return SymbolDefinitions.WixRegistrySearch; - - case SymbolDefinitionType.WixRelatedBundle: - return SymbolDefinitions.WixRelatedBundle; - - case SymbolDefinitionType.WixSearch: - return SymbolDefinitions.WixSearch; - - case SymbolDefinitionType.WixSearchRelation: - return SymbolDefinitions.WixSearchRelation; - - case SymbolDefinitionType.WixSetVariable: - return SymbolDefinitions.WixSetVariable; - - case SymbolDefinitionType.WixSimpleReference: - return SymbolDefinitions.WixSimpleReference; - - case SymbolDefinitionType.WixSuppressAction: - return SymbolDefinitions.WixSuppressAction; - - case SymbolDefinitionType.WixSuppressModularization: - return SymbolDefinitions.WixSuppressModularization; - - case SymbolDefinitionType.WixUI: - return SymbolDefinitions.WixUI; - - case SymbolDefinitionType.WixUpdateRegistration: - return SymbolDefinitions.WixUpdateRegistration; - - case SymbolDefinitionType.WixVariable: - return SymbolDefinitions.WixVariable; - - default: - throw new ArgumentOutOfRangeException(nameof(type)); - } - } - } -} diff --git a/src/WixToolset.Data/Tuples/TypeLibTuple.cs b/src/WixToolset.Data/Tuples/TypeLibTuple.cs deleted file mode 100644 index 736ee292..00000000 --- a/src/WixToolset.Data/Tuples/TypeLibTuple.cs +++ /dev/null @@ -1,100 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition TypeLib = new IntermediateSymbolDefinition( - SymbolDefinitionType.TypeLib, - new[] - { - new IntermediateFieldDefinition(nameof(TypeLibSymbolFields.LibId), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(TypeLibSymbolFields.Language), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(TypeLibSymbolFields.ComponentRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(TypeLibSymbolFields.Version), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(TypeLibSymbolFields.Description), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(TypeLibSymbolFields.DirectoryRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(TypeLibSymbolFields.FeatureRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(TypeLibSymbolFields.Cost), IntermediateFieldType.Number), - }, - typeof(TypeLibSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum TypeLibSymbolFields - { - LibId, - Language, - ComponentRef, - Version, - Description, - DirectoryRef, - FeatureRef, - Cost, - } - - public class TypeLibSymbol : IntermediateSymbol - { - public TypeLibSymbol() : base(SymbolDefinitions.TypeLib, null, null) - { - } - - public TypeLibSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.TypeLib, sourceLineNumber, id) - { - } - - public IntermediateField this[TypeLibSymbolFields index] => this.Fields[(int)index]; - - public string LibId - { - get => (string)this.Fields[(int)TypeLibSymbolFields.LibId]; - set => this.Set((int)TypeLibSymbolFields.LibId, value); - } - - public int Language - { - get => (int)this.Fields[(int)TypeLibSymbolFields.Language]; - set => this.Set((int)TypeLibSymbolFields.Language, value); - } - - public string ComponentRef - { - get => (string)this.Fields[(int)TypeLibSymbolFields.ComponentRef]; - set => this.Set((int)TypeLibSymbolFields.ComponentRef, value); - } - - public int? Version - { - get => (int?)this.Fields[(int)TypeLibSymbolFields.Version]; - set => this.Set((int)TypeLibSymbolFields.Version, value); - } - - public string Description - { - get => (string)this.Fields[(int)TypeLibSymbolFields.Description]; - set => this.Set((int)TypeLibSymbolFields.Description, value); - } - - public string DirectoryRef - { - get => (string)this.Fields[(int)TypeLibSymbolFields.DirectoryRef]; - set => this.Set((int)TypeLibSymbolFields.DirectoryRef, value); - } - - public string FeatureRef - { - get => (string)this.Fields[(int)TypeLibSymbolFields.FeatureRef]; - set => this.Set((int)TypeLibSymbolFields.FeatureRef, value); - } - - public int? Cost - { - get => (int?)this.Fields[(int)TypeLibSymbolFields.Cost]; - set => this.Set((int)TypeLibSymbolFields.Cost, value); - } - } -} diff --git a/src/WixToolset.Data/Tuples/UITextTuple.cs b/src/WixToolset.Data/Tuples/UITextTuple.cs deleted file mode 100644 index 39b99398..00000000 --- a/src/WixToolset.Data/Tuples/UITextTuple.cs +++ /dev/null @@ -1,44 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition UIText = new IntermediateSymbolDefinition( - SymbolDefinitionType.UIText, - new[] - { - new IntermediateFieldDefinition(nameof(UITextSymbolFields.Text), IntermediateFieldType.String), - }, - typeof(UITextSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum UITextSymbolFields - { - Text, - } - - public class UITextSymbol : IntermediateSymbol - { - public UITextSymbol() : base(SymbolDefinitions.UIText, null, null) - { - } - - public UITextSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.UIText, sourceLineNumber, id) - { - } - - public IntermediateField this[UITextSymbolFields index] => this.Fields[(int)index]; - - public string Text - { - get => (string)this.Fields[(int)UITextSymbolFields.Text]; - set => this.Set((int)UITextSymbolFields.Text, value); - } - } -} diff --git a/src/WixToolset.Data/Tuples/UpgradeTuple.cs b/src/WixToolset.Data/Tuples/UpgradeTuple.cs deleted file mode 100644 index d8deee73..00000000 --- a/src/WixToolset.Data/Tuples/UpgradeTuple.cs +++ /dev/null @@ -1,132 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition Upgrade = new IntermediateSymbolDefinition( - SymbolDefinitionType.Upgrade, - new[] - { - new IntermediateFieldDefinition(nameof(UpgradeSymbolFields.UpgradeCode), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(UpgradeSymbolFields.VersionMin), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(UpgradeSymbolFields.VersionMax), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(UpgradeSymbolFields.Language), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(UpgradeSymbolFields.ExcludeLanguages), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(UpgradeSymbolFields.IgnoreRemoveFailures), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(UpgradeSymbolFields.MigrateFeatures), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(UpgradeSymbolFields.OnlyDetect), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(UpgradeSymbolFields.VersionMaxInclusive), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(UpgradeSymbolFields.VersionMinInclusive), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(UpgradeSymbolFields.Remove), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(UpgradeSymbolFields.ActionProperty), IntermediateFieldType.String), - }, - typeof(UpgradeSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum UpgradeSymbolFields - { - UpgradeCode, - VersionMin, - VersionMax, - Language, - ExcludeLanguages, - IgnoreRemoveFailures, - MigrateFeatures, - OnlyDetect, - VersionMaxInclusive, - VersionMinInclusive, - Remove, - ActionProperty, - } - - public class UpgradeSymbol : IntermediateSymbol - { - public UpgradeSymbol() : base(SymbolDefinitions.Upgrade, null, null) - { - } - - public UpgradeSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Upgrade, sourceLineNumber, id) - { - } - - public IntermediateField this[UpgradeSymbolFields index] => this.Fields[(int)index]; - - public string UpgradeCode - { - get => (string)this.Fields[(int)UpgradeSymbolFields.UpgradeCode]; - set => this.Set((int)UpgradeSymbolFields.UpgradeCode, value); - } - - public string VersionMin - { - get => (string)this.Fields[(int)UpgradeSymbolFields.VersionMin]; - set => this.Set((int)UpgradeSymbolFields.VersionMin, value); - } - - public string VersionMax - { - get => (string)this.Fields[(int)UpgradeSymbolFields.VersionMax]; - set => this.Set((int)UpgradeSymbolFields.VersionMax, value); - } - - public string Language - { - get => (string)this.Fields[(int)UpgradeSymbolFields.Language]; - set => this.Set((int)UpgradeSymbolFields.Language, value); - } - - public bool ExcludeLanguages - { - get => this.Fields[(int)UpgradeSymbolFields.ExcludeLanguages].AsBool(); - set => this.Set((int)UpgradeSymbolFields.ExcludeLanguages, value); - } - - public bool IgnoreRemoveFailures - { - get => this.Fields[(int)UpgradeSymbolFields.IgnoreRemoveFailures].AsBool(); - set => this.Set((int)UpgradeSymbolFields.IgnoreRemoveFailures, value); - } - - public bool MigrateFeatures - { - get => this.Fields[(int)UpgradeSymbolFields.MigrateFeatures].AsBool(); - set => this.Set((int)UpgradeSymbolFields.MigrateFeatures, value); - } - - public bool OnlyDetect - { - get => this.Fields[(int)UpgradeSymbolFields.OnlyDetect].AsBool(); - set => this.Set((int)UpgradeSymbolFields.OnlyDetect, value); - } - - public bool VersionMaxInclusive - { - get => this.Fields[(int)UpgradeSymbolFields.VersionMaxInclusive].AsBool(); - set => this.Set((int)UpgradeSymbolFields.VersionMaxInclusive, value); - } - - public bool VersionMinInclusive - { - get => this.Fields[(int)UpgradeSymbolFields.VersionMinInclusive].AsBool(); - set => this.Set((int)UpgradeSymbolFields.VersionMinInclusive, value); - } - - public string Remove - { - get => (string)this.Fields[(int)UpgradeSymbolFields.Remove]; - set => this.Set((int)UpgradeSymbolFields.Remove, value); - } - - public string ActionProperty - { - get => (string)this.Fields[(int)UpgradeSymbolFields.ActionProperty]; - set => this.Set((int)UpgradeSymbolFields.ActionProperty, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/UpgradedFilesOptionalDataTuple.cs b/src/WixToolset.Data/Tuples/UpgradedFilesOptionalDataTuple.cs deleted file mode 100644 index 9e669ec3..00000000 --- a/src/WixToolset.Data/Tuples/UpgradedFilesOptionalDataTuple.cs +++ /dev/null @@ -1,76 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition UpgradedFilesOptionalData = new IntermediateSymbolDefinition( - SymbolDefinitionType.UpgradedFilesOptionalData, - new[] - { - new IntermediateFieldDefinition(nameof(UpgradedFilesOptionalDataSymbolFields.Upgraded), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(UpgradedFilesOptionalDataSymbolFields.FTK), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(UpgradedFilesOptionalDataSymbolFields.SymbolPaths), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(UpgradedFilesOptionalDataSymbolFields.AllowIgnoreOnPatchError), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(UpgradedFilesOptionalDataSymbolFields.IncludeWholeFile), IntermediateFieldType.Bool), - }, - typeof(UpgradedFilesOptionalDataSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum UpgradedFilesOptionalDataSymbolFields - { - Upgraded, - FTK, - SymbolPaths, - AllowIgnoreOnPatchError, - IncludeWholeFile, - } - - public class UpgradedFilesOptionalDataSymbol : IntermediateSymbol - { - public UpgradedFilesOptionalDataSymbol() : base(SymbolDefinitions.UpgradedFilesOptionalData, null, null) - { - } - - public UpgradedFilesOptionalDataSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.UpgradedFilesOptionalData, sourceLineNumber, id) - { - } - - public IntermediateField this[UpgradedFilesOptionalDataSymbolFields index] => this.Fields[(int)index]; - - public string Upgraded - { - get => (string)this.Fields[(int)UpgradedFilesOptionalDataSymbolFields.Upgraded]; - set => this.Set((int)UpgradedFilesOptionalDataSymbolFields.Upgraded, value); - } - - public string FTK - { - get => (string)this.Fields[(int)UpgradedFilesOptionalDataSymbolFields.FTK]; - set => this.Set((int)UpgradedFilesOptionalDataSymbolFields.FTK, value); - } - - public string SymbolPaths - { - get => (string)this.Fields[(int)UpgradedFilesOptionalDataSymbolFields.SymbolPaths]; - set => this.Set((int)UpgradedFilesOptionalDataSymbolFields.SymbolPaths, value); - } - - public bool? AllowIgnoreOnPatchError - { - get => (bool?)this.Fields[(int)UpgradedFilesOptionalDataSymbolFields.AllowIgnoreOnPatchError]; - set => this.Set((int)UpgradedFilesOptionalDataSymbolFields.AllowIgnoreOnPatchError, value); - } - - public bool? IncludeWholeFile - { - get => (bool?)this.Fields[(int)UpgradedFilesOptionalDataSymbolFields.IncludeWholeFile]; - set => this.Set((int)UpgradedFilesOptionalDataSymbolFields.IncludeWholeFile, value); - } - } -} diff --git a/src/WixToolset.Data/Tuples/UpgradedFilesToIgnoreTuple.cs b/src/WixToolset.Data/Tuples/UpgradedFilesToIgnoreTuple.cs deleted file mode 100644 index e21af6a2..00000000 --- a/src/WixToolset.Data/Tuples/UpgradedFilesToIgnoreTuple.cs +++ /dev/null @@ -1,52 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition UpgradedFilesToIgnore = new IntermediateSymbolDefinition( - SymbolDefinitionType.UpgradedFilesToIgnore, - new[] - { - new IntermediateFieldDefinition(nameof(UpgradedFilesToIgnoreSymbolFields.Upgraded), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(UpgradedFilesToIgnoreSymbolFields.FTK), IntermediateFieldType.String), - }, - typeof(UpgradedFilesToIgnoreSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum UpgradedFilesToIgnoreSymbolFields - { - Upgraded, - FTK, - } - - public class UpgradedFilesToIgnoreSymbol : IntermediateSymbol - { - public UpgradedFilesToIgnoreSymbol() : base(SymbolDefinitions.UpgradedFilesToIgnore, null, null) - { - } - - public UpgradedFilesToIgnoreSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.UpgradedFilesToIgnore, sourceLineNumber, id) - { - } - - public IntermediateField this[UpgradedFilesToIgnoreSymbolFields index] => this.Fields[(int)index]; - - public string Upgraded - { - get => (string)this.Fields[(int)UpgradedFilesToIgnoreSymbolFields.Upgraded]; - set => this.Set((int)UpgradedFilesToIgnoreSymbolFields.Upgraded, value); - } - - public string FTK - { - get => (string)this.Fields[(int)UpgradedFilesToIgnoreSymbolFields.FTK]; - set => this.Set((int)UpgradedFilesToIgnoreSymbolFields.FTK, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/UpgradedImagesTuple.cs b/src/WixToolset.Data/Tuples/UpgradedImagesTuple.cs deleted file mode 100644 index 28eae08a..00000000 --- a/src/WixToolset.Data/Tuples/UpgradedImagesTuple.cs +++ /dev/null @@ -1,76 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition UpgradedImages = new IntermediateSymbolDefinition( - SymbolDefinitionType.UpgradedImages, - new[] - { - new IntermediateFieldDefinition(nameof(UpgradedImagesSymbolFields.Upgraded), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(UpgradedImagesSymbolFields.MsiPath), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(UpgradedImagesSymbolFields.PatchMsiPath), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(UpgradedImagesSymbolFields.SymbolPaths), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(UpgradedImagesSymbolFields.Family), IntermediateFieldType.String), - }, - typeof(UpgradedImagesSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum UpgradedImagesSymbolFields - { - Upgraded, - MsiPath, - PatchMsiPath, - SymbolPaths, - Family, - } - - public class UpgradedImagesSymbol : IntermediateSymbol - { - public UpgradedImagesSymbol() : base(SymbolDefinitions.UpgradedImages, null, null) - { - } - - public UpgradedImagesSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.UpgradedImages, sourceLineNumber, id) - { - } - - public IntermediateField this[UpgradedImagesSymbolFields index] => this.Fields[(int)index]; - - public string Upgraded - { - get => (string)this.Fields[(int)UpgradedImagesSymbolFields.Upgraded]; - set => this.Set((int)UpgradedImagesSymbolFields.Upgraded, value); - } - - public string MsiPath - { - get => (string)this.Fields[(int)UpgradedImagesSymbolFields.MsiPath]; - set => this.Set((int)UpgradedImagesSymbolFields.MsiPath, value); - } - - public string PatchMsiPath - { - get => (string)this.Fields[(int)UpgradedImagesSymbolFields.PatchMsiPath]; - set => this.Set((int)UpgradedImagesSymbolFields.PatchMsiPath, value); - } - - public string SymbolPaths - { - get => (string)this.Fields[(int)UpgradedImagesSymbolFields.SymbolPaths]; - set => this.Set((int)UpgradedImagesSymbolFields.SymbolPaths, value); - } - - public string Family - { - get => (string)this.Fields[(int)UpgradedImagesSymbolFields.Family]; - set => this.Set((int)UpgradedImagesSymbolFields.Family, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/VerbTuple.cs b/src/WixToolset.Data/Tuples/VerbTuple.cs deleted file mode 100644 index 95f045d6..00000000 --- a/src/WixToolset.Data/Tuples/VerbTuple.cs +++ /dev/null @@ -1,76 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition Verb = new IntermediateSymbolDefinition( - SymbolDefinitionType.Verb, - new[] - { - new IntermediateFieldDefinition(nameof(VerbSymbolFields.ExtensionRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(VerbSymbolFields.Verb), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(VerbSymbolFields.Sequence), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(VerbSymbolFields.Command), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(VerbSymbolFields.Argument), IntermediateFieldType.String), - }, - typeof(VerbSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum VerbSymbolFields - { - ExtensionRef, - Verb, - Sequence, - Command, - Argument, - } - - public class VerbSymbol : IntermediateSymbol - { - public VerbSymbol() : base(SymbolDefinitions.Verb, null, null) - { - } - - public VerbSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Verb, sourceLineNumber, id) - { - } - - public IntermediateField this[VerbSymbolFields index] => this.Fields[(int)index]; - - public string ExtensionRef - { - get => (string)this.Fields[(int)VerbSymbolFields.ExtensionRef]; - set => this.Set((int)VerbSymbolFields.ExtensionRef, value); - } - - public string Verb - { - get => (string)this.Fields[(int)VerbSymbolFields.Verb]; - set => this.Set((int)VerbSymbolFields.Verb, value); - } - - public int? Sequence - { - get => (int?)this.Fields[(int)VerbSymbolFields.Sequence]; - set => this.Set((int)VerbSymbolFields.Sequence, value); - } - - public string Command - { - get => (string)this.Fields[(int)VerbSymbolFields.Command]; - set => this.Set((int)VerbSymbolFields.Command, value); - } - - public string Argument - { - get => (string)this.Fields[(int)VerbSymbolFields.Argument]; - set => this.Set((int)VerbSymbolFields.Argument, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/WixActionTuple.cs b/src/WixToolset.Data/Tuples/WixActionTuple.cs deleted file mode 100644 index a055d68f..00000000 --- a/src/WixToolset.Data/Tuples/WixActionTuple.cs +++ /dev/null @@ -1,101 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixAction = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixAction, - new[] - { - new IntermediateFieldDefinition(nameof(WixActionSymbolFields.SequenceTable), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(WixActionSymbolFields.Action), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixActionSymbolFields.Condition), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixActionSymbolFields.Sequence), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(WixActionSymbolFields.Before), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixActionSymbolFields.After), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixActionSymbolFields.Overridable), IntermediateFieldType.Bool), - }, - typeof(WixActionSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum WixActionSymbolFields - { - SequenceTable, - Action, - Condition, - Sequence, - Before, - After, - Overridable, - } - - public enum SequenceTable - { - AdminUISequence, - AdminExecuteSequence, - AdvertiseExecuteSequence, - InstallUISequence, - InstallExecuteSequence - } - - public class WixActionSymbol : IntermediateSymbol - { - public WixActionSymbol() : base(SymbolDefinitions.WixAction, null, null) - { - } - - public WixActionSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixAction, sourceLineNumber, id) - { - } - - public IntermediateField this[WixActionSymbolFields index] => this.Fields[(int)index]; - - public SequenceTable SequenceTable - { - get => (SequenceTable)this.Fields[(int)WixActionSymbolFields.SequenceTable].AsNumber(); - set => this.Set((int)WixActionSymbolFields.SequenceTable, (int)value); - } - - public string Action - { - get => (string)this.Fields[(int)WixActionSymbolFields.Action]; - set => this.Set((int)WixActionSymbolFields.Action, value); - } - - public string Condition - { - get => (string)this.Fields[(int)WixActionSymbolFields.Condition]; - set => this.Set((int)WixActionSymbolFields.Condition, value); - } - - public int? Sequence - { - get => (int?)this.Fields[(int)WixActionSymbolFields.Sequence]; - set => this.Set((int)WixActionSymbolFields.Sequence, value); - } - - public string Before - { - get => (string)this.Fields[(int)WixActionSymbolFields.Before]; - set => this.Set((int)WixActionSymbolFields.Before, value); - } - - public string After - { - get => (string)this.Fields[(int)WixActionSymbolFields.After]; - set => this.Set((int)WixActionSymbolFields.After, value); - } - - public bool Overridable - { - get => this.Fields[(int)WixActionSymbolFields.Overridable].AsBool(); - set => this.Set((int)WixActionSymbolFields.Overridable, value); - } - } -} diff --git a/src/WixToolset.Data/Tuples/WixApprovedExeForElevationTuple.cs b/src/WixToolset.Data/Tuples/WixApprovedExeForElevationTuple.cs deleted file mode 100644 index 04c6e712..00000000 --- a/src/WixToolset.Data/Tuples/WixApprovedExeForElevationTuple.cs +++ /dev/null @@ -1,71 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixApprovedExeForElevation = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixApprovedExeForElevation, - new[] - { - new IntermediateFieldDefinition(nameof(WixApprovedExeForElevationSymbolFields.Key), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixApprovedExeForElevationSymbolFields.ValueName), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixApprovedExeForElevationSymbolFields.Attributes), IntermediateFieldType.Number), - }, - typeof(WixApprovedExeForElevationSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - using System; - - public enum WixApprovedExeForElevationSymbolFields - { - Key, - ValueName, - Attributes, - } - - [Flags] - public enum WixApprovedExeForElevationAttributes - { - None = 0x0, - Win64 = 0x1, - } - - public class WixApprovedExeForElevationSymbol : IntermediateSymbol - { - public WixApprovedExeForElevationSymbol() : base(SymbolDefinitions.WixApprovedExeForElevation, null, null) - { - } - - public WixApprovedExeForElevationSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixApprovedExeForElevation, sourceLineNumber, id) - { - } - - public IntermediateField this[WixApprovedExeForElevationSymbolFields index] => this.Fields[(int)index]; - - public string Key - { - get => (string)this.Fields[(int)WixApprovedExeForElevationSymbolFields.Key]; - set => this.Set((int)WixApprovedExeForElevationSymbolFields.Key, value); - } - - public string ValueName - { - get => (string)this.Fields[(int)WixApprovedExeForElevationSymbolFields.ValueName]; - set => this.Set((int)WixApprovedExeForElevationSymbolFields.ValueName, value); - } - - public WixApprovedExeForElevationAttributes Attributes - { - get => (WixApprovedExeForElevationAttributes)this.Fields[(int)WixApprovedExeForElevationSymbolFields.Attributes].AsNumber(); - set => this.Set((int)WixApprovedExeForElevationSymbolFields.Attributes, (int)value); - } - - public bool Win64 => (this.Attributes & WixApprovedExeForElevationAttributes.Win64) == WixApprovedExeForElevationAttributes.Win64; - } -} diff --git a/src/WixToolset.Data/Tuples/WixBindUpdatedFilesTuple.cs b/src/WixToolset.Data/Tuples/WixBindUpdatedFilesTuple.cs deleted file mode 100644 index 03bdb69b..00000000 --- a/src/WixToolset.Data/Tuples/WixBindUpdatedFilesTuple.cs +++ /dev/null @@ -1,44 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixBindUpdatedFiles = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixBindUpdatedFiles, - new[] - { - new IntermediateFieldDefinition(nameof(WixBindUpdatedFilesSymbolFields.FileRef), IntermediateFieldType.String), - }, - typeof(WixBindUpdatedFilesSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum WixBindUpdatedFilesSymbolFields - { - FileRef, - } - - public class WixBindUpdatedFilesSymbol : IntermediateSymbol - { - public WixBindUpdatedFilesSymbol() : base(SymbolDefinitions.WixBindUpdatedFiles, null, null) - { - } - - public WixBindUpdatedFilesSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBindUpdatedFiles, sourceLineNumber, id) - { - } - - public IntermediateField this[WixBindUpdatedFilesSymbolFields index] => this.Fields[(int)index]; - - public string FileRef - { - get => (string)this.Fields[(int)WixBindUpdatedFilesSymbolFields.FileRef]; - set => this.Set((int)WixBindUpdatedFilesSymbolFields.FileRef, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/WixBootstrapperApplicationTuple.cs b/src/WixToolset.Data/Tuples/WixBootstrapperApplicationTuple.cs deleted file mode 100644 index 3d7876fd..00000000 --- a/src/WixToolset.Data/Tuples/WixBootstrapperApplicationTuple.cs +++ /dev/null @@ -1,36 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixBootstrapperApplication = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixBootstrapperApplication, - new IntermediateFieldDefinition[] - { - }, - typeof(WixBootstrapperApplicationSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum WixBootstrapperApplicationSymbolFields - { - } - - public class WixBootstrapperApplicationSymbol : IntermediateSymbol - { - public WixBootstrapperApplicationSymbol() : base(SymbolDefinitions.WixBootstrapperApplication, null, null) - { - } - - public WixBootstrapperApplicationSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBootstrapperApplication, sourceLineNumber, id) - { - } - - public IntermediateField this[WixBootstrapperApplicationSymbolFields index] => this.Fields[(int)index]; - } -} diff --git a/src/WixToolset.Data/Tuples/WixBuildInfoTuple.cs b/src/WixToolset.Data/Tuples/WixBuildInfoTuple.cs deleted file mode 100644 index 66e04d4b..00000000 --- a/src/WixToolset.Data/Tuples/WixBuildInfoTuple.cs +++ /dev/null @@ -1,68 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixBuildInfo = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixBuildInfo, - new[] - { - new IntermediateFieldDefinition(nameof(WixBuildInfoSymbolFields.WixVersion), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBuildInfoSymbolFields.WixOutputFile), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBuildInfoSymbolFields.WixProjectFile), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBuildInfoSymbolFields.WixPdbFile), IntermediateFieldType.String), - }, - typeof(WixBuildInfoSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum WixBuildInfoSymbolFields - { - WixVersion, - WixOutputFile, - WixProjectFile, - WixPdbFile, - } - - public class WixBuildInfoSymbol : IntermediateSymbol - { - public WixBuildInfoSymbol() : base(SymbolDefinitions.WixBuildInfo, null, null) - { - } - - public WixBuildInfoSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBuildInfo, sourceLineNumber, id) - { - } - - public IntermediateField this[WixBuildInfoSymbolFields index] => this.Fields[(int)index]; - - public string WixVersion - { - get => (string)this.Fields[(int)WixBuildInfoSymbolFields.WixVersion]; - set => this.Set((int)WixBuildInfoSymbolFields.WixVersion, value); - } - - public string WixOutputFile - { - get => (string)this.Fields[(int)WixBuildInfoSymbolFields.WixOutputFile]; - set => this.Set((int)WixBuildInfoSymbolFields.WixOutputFile, value); - } - - public string WixProjectFile - { - get => (string)this.Fields[(int)WixBuildInfoSymbolFields.WixProjectFile]; - set => this.Set((int)WixBuildInfoSymbolFields.WixProjectFile, value); - } - - public string WixPdbFile - { - get => (string)this.Fields[(int)WixBuildInfoSymbolFields.WixPdbFile]; - set => this.Set((int)WixBuildInfoSymbolFields.WixPdbFile, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/WixBundleCatalogTuple.cs b/src/WixToolset.Data/Tuples/WixBundleCatalogTuple.cs deleted file mode 100644 index 48415228..00000000 --- a/src/WixToolset.Data/Tuples/WixBundleCatalogTuple.cs +++ /dev/null @@ -1,44 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixBundleCatalog = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixBundleCatalog, - new[] - { - new IntermediateFieldDefinition(nameof(WixBundleCatalogSymbolFields.PayloadRef), IntermediateFieldType.String), - }, - typeof(WixBundleCatalogSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum WixBundleCatalogSymbolFields - { - PayloadRef, - } - - public class WixBundleCatalogSymbol : IntermediateSymbol - { - public WixBundleCatalogSymbol() : base(SymbolDefinitions.WixBundleCatalog, null, null) - { - } - - public WixBundleCatalogSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundleCatalog, sourceLineNumber, id) - { - } - - public IntermediateField this[WixBundleCatalogSymbolFields index] => this.Fields[(int)index]; - - public string PayloadRef - { - get => (string)this.Fields[(int)WixBundleCatalogSymbolFields.PayloadRef]; - set => this.Set((int)WixBundleCatalogSymbolFields.PayloadRef, value); - } - } -} diff --git a/src/WixToolset.Data/Tuples/WixBundleContainerTuple.cs b/src/WixToolset.Data/Tuples/WixBundleContainerTuple.cs deleted file mode 100644 index 80beda0a..00000000 --- a/src/WixToolset.Data/Tuples/WixBundleContainerTuple.cs +++ /dev/null @@ -1,103 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixBundleContainer = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixBundleContainer, - new[] - { - new IntermediateFieldDefinition(nameof(WixBundleContainerSymbolFields.Name), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleContainerSymbolFields.Type), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(WixBundleContainerSymbolFields.DownloadUrl), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleContainerSymbolFields.Size), IntermediateFieldType.LargeNumber), - new IntermediateFieldDefinition(nameof(WixBundleContainerSymbolFields.Hash), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleContainerSymbolFields.AttachedContainerIndex), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(WixBundleContainerSymbolFields.WorkingPath), IntermediateFieldType.String), - }, - typeof(WixBundleContainerSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - using System; - - public enum WixBundleContainerSymbolFields - { - Name, - Type, - DownloadUrl, - Size, - Hash, - AttachedContainerIndex, - WorkingPath, - } - - /// - /// Types of bundle packages. - /// - public enum ContainerType - { - Attached, - Detached, - } - - public class WixBundleContainerSymbol : IntermediateSymbol - { - public WixBundleContainerSymbol() : base(SymbolDefinitions.WixBundleContainer, null, null) - { - } - - public WixBundleContainerSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundleContainer, sourceLineNumber, id) - { - } - - public IntermediateField this[WixBundleContainerSymbolFields index] => this.Fields[(int)index]; - - public string Name - { - get => (string)this.Fields[(int)WixBundleContainerSymbolFields.Name]; - set => this.Set((int)WixBundleContainerSymbolFields.Name, value); - } - - public ContainerType Type - { - get => (ContainerType)this.Fields[(int)WixBundleContainerSymbolFields.Type].AsNumber(); - set => this.Set((int)WixBundleContainerSymbolFields.Type, (int)value); - } - - public string DownloadUrl - { - get => (string)this.Fields[(int)WixBundleContainerSymbolFields.DownloadUrl]; - set => this.Set((int)WixBundleContainerSymbolFields.DownloadUrl, value); - } - - public long? Size - { - get => (long?)this.Fields[(int)WixBundleContainerSymbolFields.Size]; - set => this.Set((int)WixBundleContainerSymbolFields.Size, value); - } - - public string Hash - { - get => (string)this.Fields[(int)WixBundleContainerSymbolFields.Hash]; - set => this.Set((int)WixBundleContainerSymbolFields.Hash, value); - } - - public int? AttachedContainerIndex - { - get => (int?)this.Fields[(int)WixBundleContainerSymbolFields.AttachedContainerIndex]; - set => this.Set((int)WixBundleContainerSymbolFields.AttachedContainerIndex, value); - } - - public string WorkingPath - { - get => (string)this.Fields[(int)WixBundleContainerSymbolFields.WorkingPath]; - set => this.Set((int)WixBundleContainerSymbolFields.WorkingPath, value); - } - } -} diff --git a/src/WixToolset.Data/Tuples/WixBundleCustomDataAttributeTuple.cs b/src/WixToolset.Data/Tuples/WixBundleCustomDataAttributeTuple.cs deleted file mode 100644 index c0a657ee..00000000 --- a/src/WixToolset.Data/Tuples/WixBundleCustomDataAttributeTuple.cs +++ /dev/null @@ -1,52 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixBundleCustomDataAttribute = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixBundleCustomDataAttribute, - new[] - { - new IntermediateFieldDefinition(nameof(WixBundleCustomDataAttributeSymbolFields.CustomDataRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleCustomDataAttributeSymbolFields.Name), IntermediateFieldType.String), - }, - typeof(WixBundleCustomDataAttributeSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum WixBundleCustomDataAttributeSymbolFields - { - CustomDataRef, - Name, - } - - public class WixBundleCustomDataAttributeSymbol : IntermediateSymbol - { - public WixBundleCustomDataAttributeSymbol() : base(SymbolDefinitions.WixBundleCustomDataAttribute, null, null) - { - } - - public WixBundleCustomDataAttributeSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundleCustomDataAttribute, sourceLineNumber, id) - { - } - - public IntermediateField this[WixBundleCustomDataAttributeSymbolFields index] => this.Fields[(int)index]; - - public string CustomDataRef - { - get => (string)this.Fields[(int)WixBundleCustomDataAttributeSymbolFields.CustomDataRef]; - set => this.Set((int)WixBundleCustomDataAttributeSymbolFields.CustomDataRef, value); - } - - public string Name - { - get => (string)this.Fields[(int)WixBundleCustomDataAttributeSymbolFields.Name]; - set => this.Set((int)WixBundleCustomDataAttributeSymbolFields.Name, value); - } - } -} diff --git a/src/WixToolset.Data/Tuples/WixBundleCustomDataCellTuple.cs b/src/WixToolset.Data/Tuples/WixBundleCustomDataCellTuple.cs deleted file mode 100644 index 0488969a..00000000 --- a/src/WixToolset.Data/Tuples/WixBundleCustomDataCellTuple.cs +++ /dev/null @@ -1,68 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixBundleCustomDataCell = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixBundleCustomDataCell, - new[] - { - new IntermediateFieldDefinition(nameof(WixBundleCustomDataCellSymbolFields.CustomDataRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleCustomDataCellSymbolFields.AttributeRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleCustomDataCellSymbolFields.ElementId), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleCustomDataCellSymbolFields.Value), IntermediateFieldType.String), - }, - typeof(WixBundleCustomDataCellSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum WixBundleCustomDataCellSymbolFields - { - CustomDataRef, - AttributeRef, - ElementId, - Value, - } - - public class WixBundleCustomDataCellSymbol : IntermediateSymbol - { - public WixBundleCustomDataCellSymbol() : base(SymbolDefinitions.WixBundleCustomDataCell, null, null) - { - } - - public WixBundleCustomDataCellSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundleCustomDataCell, sourceLineNumber, id) - { - } - - public IntermediateField this[WixBundleCustomDataCellSymbolFields index] => this.Fields[(int)index]; - - public string CustomDataRef - { - get => (string)this.Fields[(int)WixBundleCustomDataCellSymbolFields.CustomDataRef]; - set => this.Set((int)WixBundleCustomDataCellSymbolFields.CustomDataRef, value); - } - - public string AttributeRef - { - get => (string)this.Fields[(int)WixBundleCustomDataCellSymbolFields.AttributeRef]; - set => this.Set((int)WixBundleCustomDataCellSymbolFields.AttributeRef, value); - } - - public string ElementId - { - get => (string)this.Fields[(int)WixBundleCustomDataCellSymbolFields.ElementId]; - set => this.Set((int)WixBundleCustomDataCellSymbolFields.ElementId, value); - } - - public string Value - { - get => (string)this.Fields[(int)WixBundleCustomDataCellSymbolFields.Value]; - set => this.Set((int)WixBundleCustomDataCellSymbolFields.Value, value); - } - } -} diff --git a/src/WixToolset.Data/Tuples/WixBundleCustomDataTuple.cs b/src/WixToolset.Data/Tuples/WixBundleCustomDataTuple.cs deleted file mode 100644 index 0490f9f7..00000000 --- a/src/WixToolset.Data/Tuples/WixBundleCustomDataTuple.cs +++ /dev/null @@ -1,71 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixBundleCustomData = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixBundleCustomData, - new[] - { - new IntermediateFieldDefinition(nameof(WixBundleCustomDataSymbolFields.AttributeNames), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleCustomDataSymbolFields.Type), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(WixBundleCustomDataSymbolFields.BundleExtensionRef), IntermediateFieldType.String), - }, - typeof(WixBundleCustomDataSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum WixBundleCustomDataSymbolFields - { - AttributeNames, - Type, - BundleExtensionRef, - } - - public enum WixBundleCustomDataType - { - Unknown, - BootstrapperApplication, - BundleExtension, - } - - public class WixBundleCustomDataSymbol : IntermediateSymbol - { - public const char AttributeNamesSeparator = '\x85'; - - public WixBundleCustomDataSymbol() : base(SymbolDefinitions.WixBundleCustomData, null, null) - { - } - - public WixBundleCustomDataSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundleCustomData, sourceLineNumber, id) - { - } - - public IntermediateField this[WixBundleCustomDataSymbolFields index] => this.Fields[(int)index]; - - public string AttributeNames - { - get => (string)this.Fields[(int)WixBundleCustomDataSymbolFields.AttributeNames]; - set => this.Set((int)WixBundleCustomDataSymbolFields.AttributeNames, value); - } - - public WixBundleCustomDataType Type - { - get => (WixBundleCustomDataType)this.Fields[(int)WixBundleCustomDataSymbolFields.Type].AsNumber(); - set => this.Set((int)WixBundleCustomDataSymbolFields.Type, (int)value); - } - - public string BundleExtensionRef - { - get => (string)this.Fields[(int)WixBundleCustomDataSymbolFields.BundleExtensionRef]; - set => this.Set((int)WixBundleCustomDataSymbolFields.BundleExtensionRef, value); - } - - public string[] AttributeNamesSeparated => this.AttributeNames.Split(AttributeNamesSeparator); - } -} diff --git a/src/WixToolset.Data/Tuples/WixBundleExePackageTuple.cs b/src/WixToolset.Data/Tuples/WixBundleExePackageTuple.cs deleted file mode 100644 index 8a8cff1b..00000000 --- a/src/WixToolset.Data/Tuples/WixBundleExePackageTuple.cs +++ /dev/null @@ -1,94 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixBundleExePackage = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixBundleExePackage, - new[] - { - new IntermediateFieldDefinition(nameof(WixBundleExePackageSymbolFields.Attributes), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(WixBundleExePackageSymbolFields.DetectCondition), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleExePackageSymbolFields.InstallCommand), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleExePackageSymbolFields.RepairCommand), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleExePackageSymbolFields.UninstallCommand), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleExePackageSymbolFields.ExeProtocol), IntermediateFieldType.String), - }, - typeof(WixBundleExePackageSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - using System; - - public enum WixBundleExePackageSymbolFields - { - Attributes, - DetectCondition, - InstallCommand, - RepairCommand, - UninstallCommand, - ExeProtocol, - } - - [Flags] - public enum WixBundleExePackageAttributes - { - None = 0, - } - - public class WixBundleExePackageSymbol : IntermediateSymbol - { - public WixBundleExePackageSymbol() : base(SymbolDefinitions.WixBundleExePackage, null, null) - { - } - - public WixBundleExePackageSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundleExePackage, sourceLineNumber, id) - { - } - - public IntermediateField this[WixBundleExePackageSymbolFields index] => this.Fields[(int)index]; - - public WixBundleExePackageAttributes Attributes - { - get => (WixBundleExePackageAttributes)(int)this.Fields[(int)WixBundleExePackageSymbolFields.Attributes]; - set => this.Set((int)WixBundleExePackageSymbolFields.Attributes, (int)value); - } - - public string DetectCondition - { - get => (string)this.Fields[(int)WixBundleExePackageSymbolFields.DetectCondition]; - set => this.Set((int)WixBundleExePackageSymbolFields.DetectCondition, value); - } - - public string InstallCommand - { - get => (string)this.Fields[(int)WixBundleExePackageSymbolFields.InstallCommand]; - set => this.Set((int)WixBundleExePackageSymbolFields.InstallCommand, value); - } - - public string RepairCommand - { - get => (string)this.Fields[(int)WixBundleExePackageSymbolFields.RepairCommand]; - set => this.Set((int)WixBundleExePackageSymbolFields.RepairCommand, value); - } - - public string UninstallCommand - { - get => (string)this.Fields[(int)WixBundleExePackageSymbolFields.UninstallCommand]; - set => this.Set((int)WixBundleExePackageSymbolFields.UninstallCommand, value); - } - - public string ExeProtocol - { - get => (string)this.Fields[(int)WixBundleExePackageSymbolFields.ExeProtocol]; - set => this.Set((int)WixBundleExePackageSymbolFields.ExeProtocol, value); - } - - public bool Repairable => !String.IsNullOrEmpty(this.RepairCommand); - } -} diff --git a/src/WixToolset.Data/Tuples/WixBundleExtensionTuple.cs b/src/WixToolset.Data/Tuples/WixBundleExtensionTuple.cs deleted file mode 100644 index 8e6bea58..00000000 --- a/src/WixToolset.Data/Tuples/WixBundleExtensionTuple.cs +++ /dev/null @@ -1,44 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixBundleExtension = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixBundleExtension, - new[] - { - new IntermediateFieldDefinition(nameof(WixBundleExtensionSymbolFields.PayloadRef), IntermediateFieldType.String), - }, - typeof(WixBundleExtensionSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum WixBundleExtensionSymbolFields - { - PayloadRef, - } - - public class WixBundleExtensionSymbol : IntermediateSymbol - { - public WixBundleExtensionSymbol() : base(SymbolDefinitions.WixBundleExtension, null, null) - { - } - - public WixBundleExtensionSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundleExtension, sourceLineNumber, id) - { - } - - public IntermediateField this[WixBundleExtensionSymbolFields index] => this.Fields[(int)index]; - - public string PayloadRef - { - get => (string)this.Fields[(int)WixBundleExtensionSymbolFields.PayloadRef]; - set => this.Set((int)WixBundleExtensionSymbolFields.PayloadRef, value); - } - } -} diff --git a/src/WixToolset.Data/Tuples/WixBundleMsiFeatureTuple.cs b/src/WixToolset.Data/Tuples/WixBundleMsiFeatureTuple.cs deleted file mode 100644 index f81da5b8..00000000 --- a/src/WixToolset.Data/Tuples/WixBundleMsiFeatureTuple.cs +++ /dev/null @@ -1,116 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixBundleMsiFeature = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixBundleMsiFeature, - new[] - { - new IntermediateFieldDefinition(nameof(WixBundleMsiFeatureSymbolFields.PackageRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleMsiFeatureSymbolFields.Name), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleMsiFeatureSymbolFields.Size), IntermediateFieldType.LargeNumber), - new IntermediateFieldDefinition(nameof(WixBundleMsiFeatureSymbolFields.Parent), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleMsiFeatureSymbolFields.Title), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleMsiFeatureSymbolFields.Description), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleMsiFeatureSymbolFields.Display), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(WixBundleMsiFeatureSymbolFields.Level), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(WixBundleMsiFeatureSymbolFields.Directory), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleMsiFeatureSymbolFields.Attributes), IntermediateFieldType.Number), - }, - typeof(WixBundleMsiFeatureSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum WixBundleMsiFeatureSymbolFields - { - PackageRef, - Name, - Size, - Parent, - Title, - Description, - Display, - Level, - Directory, - Attributes, - } - - public class WixBundleMsiFeatureSymbol : IntermediateSymbol - { - public WixBundleMsiFeatureSymbol() : base(SymbolDefinitions.WixBundleMsiFeature, null, null) - { - } - - public WixBundleMsiFeatureSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundleMsiFeature, sourceLineNumber, id) - { - } - - public IntermediateField this[WixBundleMsiFeatureSymbolFields index] => this.Fields[(int)index]; - - public string PackageRef - { - get => (string)this.Fields[(int)WixBundleMsiFeatureSymbolFields.PackageRef]; - set => this.Set((int)WixBundleMsiFeatureSymbolFields.PackageRef, value); - } - - public string Name - { - get => (string)this.Fields[(int)WixBundleMsiFeatureSymbolFields.Name]; - set => this.Set((int)WixBundleMsiFeatureSymbolFields.Name, value); - } - - public long Size - { - get => (long)this.Fields[(int)WixBundleMsiFeatureSymbolFields.Size]; - set => this.Set((int)WixBundleMsiFeatureSymbolFields.Size, value); - } - - public string Parent - { - get => (string)this.Fields[(int)WixBundleMsiFeatureSymbolFields.Parent]; - set => this.Set((int)WixBundleMsiFeatureSymbolFields.Parent, value); - } - - public string Title - { - get => (string)this.Fields[(int)WixBundleMsiFeatureSymbolFields.Title]; - set => this.Set((int)WixBundleMsiFeatureSymbolFields.Title, value); - } - - public string Description - { - get => (string)this.Fields[(int)WixBundleMsiFeatureSymbolFields.Description]; - set => this.Set((int)WixBundleMsiFeatureSymbolFields.Description, value); - } - - public int Display - { - get => (int)this.Fields[(int)WixBundleMsiFeatureSymbolFields.Display]; - set => this.Set((int)WixBundleMsiFeatureSymbolFields.Display, value); - } - - public int Level - { - get => (int)this.Fields[(int)WixBundleMsiFeatureSymbolFields.Level]; - set => this.Set((int)WixBundleMsiFeatureSymbolFields.Level, value); - } - - public string Directory - { - get => (string)this.Fields[(int)WixBundleMsiFeatureSymbolFields.Directory]; - set => this.Set((int)WixBundleMsiFeatureSymbolFields.Directory, value); - } - - public int Attributes - { - get => (int)this.Fields[(int)WixBundleMsiFeatureSymbolFields.Attributes]; - set => this.Set((int)WixBundleMsiFeatureSymbolFields.Attributes, value); - } - } -} diff --git a/src/WixToolset.Data/Tuples/WixBundleMsiPackageTuple.cs b/src/WixToolset.Data/Tuples/WixBundleMsiPackageTuple.cs deleted file mode 100644 index 21735f64..00000000 --- a/src/WixToolset.Data/Tuples/WixBundleMsiPackageTuple.cs +++ /dev/null @@ -1,105 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixBundleMsiPackage = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixBundleMsiPackage, - new[] - { - new IntermediateFieldDefinition(nameof(WixBundleMsiPackageSymbolFields.Attributes), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(WixBundleMsiPackageSymbolFields.ProductCode), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleMsiPackageSymbolFields.UpgradeCode), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleMsiPackageSymbolFields.ProductVersion), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleMsiPackageSymbolFields.ProductLanguage), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(WixBundleMsiPackageSymbolFields.ProductName), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleMsiPackageSymbolFields.Manufacturer), IntermediateFieldType.String), - }, - typeof(WixBundleMsiPackageSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - using System; - - public enum WixBundleMsiPackageSymbolFields - { - Attributes, - ProductCode, - UpgradeCode, - ProductVersion, - ProductLanguage, - ProductName, - Manufacturer, - } - - [Flags] - public enum WixBundleMsiPackageAttributes - { - EnableFeatureSelection = 0x4, - ForcePerMachine = 0x2, - } - - public class WixBundleMsiPackageSymbol : IntermediateSymbol - { - public WixBundleMsiPackageSymbol() : base(SymbolDefinitions.WixBundleMsiPackage, null, null) - { - } - - public WixBundleMsiPackageSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundleMsiPackage, sourceLineNumber, id) - { - } - - public IntermediateField this[WixBundleMsiPackageSymbolFields index] => this.Fields[(int)index]; - - public WixBundleMsiPackageAttributes Attributes - { - get => (WixBundleMsiPackageAttributes)(int)this.Fields[(int)WixBundleMsiPackageSymbolFields.Attributes]; - set => this.Set((int)WixBundleMsiPackageSymbolFields.Attributes, (int)value); - } - - public string ProductCode - { - get => (string)this.Fields[(int)WixBundleMsiPackageSymbolFields.ProductCode]; - set => this.Set((int)WixBundleMsiPackageSymbolFields.ProductCode, value); - } - - public string UpgradeCode - { - get => (string)this.Fields[(int)WixBundleMsiPackageSymbolFields.UpgradeCode]; - set => this.Set((int)WixBundleMsiPackageSymbolFields.UpgradeCode, value); - } - - public string ProductVersion - { - get => (string)this.Fields[(int)WixBundleMsiPackageSymbolFields.ProductVersion]; - set => this.Set((int)WixBundleMsiPackageSymbolFields.ProductVersion, value); - } - - public int ProductLanguage - { - get => (int)this.Fields[(int)WixBundleMsiPackageSymbolFields.ProductLanguage]; - set => this.Set((int)WixBundleMsiPackageSymbolFields.ProductLanguage, value); - } - - public string ProductName - { - get => (string)this.Fields[(int)WixBundleMsiPackageSymbolFields.ProductName]; - set => this.Set((int)WixBundleMsiPackageSymbolFields.ProductName, value); - } - - public string Manufacturer - { - get => (string)this.Fields[(int)WixBundleMsiPackageSymbolFields.Manufacturer]; - set => this.Set((int)WixBundleMsiPackageSymbolFields.Manufacturer, value); - } - - public bool EnableFeatureSelection => (this.Attributes & WixBundleMsiPackageAttributes.EnableFeatureSelection) == WixBundleMsiPackageAttributes.EnableFeatureSelection; - - public bool ForcePerMachine => (this.Attributes & WixBundleMsiPackageAttributes.ForcePerMachine) == WixBundleMsiPackageAttributes.ForcePerMachine; - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/WixBundleMsiPropertyTuple.cs b/src/WixToolset.Data/Tuples/WixBundleMsiPropertyTuple.cs deleted file mode 100644 index 0d87f87d..00000000 --- a/src/WixToolset.Data/Tuples/WixBundleMsiPropertyTuple.cs +++ /dev/null @@ -1,68 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixBundleMsiProperty = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixBundleMsiProperty, - new[] - { - new IntermediateFieldDefinition(nameof(WixBundleMsiPropertySymbolFields.PackageRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleMsiPropertySymbolFields.Name), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleMsiPropertySymbolFields.Value), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleMsiPropertySymbolFields.Condition), IntermediateFieldType.String), - }, - typeof(WixBundleMsiPropertySymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum WixBundleMsiPropertySymbolFields - { - PackageRef, - Name, - Value, - Condition, - } - - public class WixBundleMsiPropertySymbol : IntermediateSymbol - { - public WixBundleMsiPropertySymbol() : base(SymbolDefinitions.WixBundleMsiProperty, null, null) - { - } - - public WixBundleMsiPropertySymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundleMsiProperty, sourceLineNumber, id) - { - } - - public IntermediateField this[WixBundleMsiPropertySymbolFields index] => this.Fields[(int)index]; - - public string PackageRef - { - get => (string)this.Fields[(int)WixBundleMsiPropertySymbolFields.PackageRef]; - set => this.Set((int)WixBundleMsiPropertySymbolFields.PackageRef, value); - } - - public string Name - { - get => (string)this.Fields[(int)WixBundleMsiPropertySymbolFields.Name]; - set => this.Set((int)WixBundleMsiPropertySymbolFields.Name, value); - } - - public string Value - { - get => (string)this.Fields[(int)WixBundleMsiPropertySymbolFields.Value]; - set => this.Set((int)WixBundleMsiPropertySymbolFields.Value, value); - } - - public string Condition - { - get => (string)this.Fields[(int)WixBundleMsiPropertySymbolFields.Condition]; - set => this.Set((int)WixBundleMsiPropertySymbolFields.Condition, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/WixBundleMspPackageTuple.cs b/src/WixToolset.Data/Tuples/WixBundleMspPackageTuple.cs deleted file mode 100644 index 3784c2ff..00000000 --- a/src/WixToolset.Data/Tuples/WixBundleMspPackageTuple.cs +++ /dev/null @@ -1,81 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixBundleMspPackage = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixBundleMspPackage, - new[] - { - new IntermediateFieldDefinition(nameof(WixBundleMspPackageSymbolFields.Attributes), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(WixBundleMspPackageSymbolFields.PatchCode), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleMspPackageSymbolFields.Manufacturer), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleMspPackageSymbolFields.PatchXml), IntermediateFieldType.String), - }, - typeof(WixBundleMspPackageSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - using System; - - public enum WixBundleMspPackageSymbolFields - { - Attributes, - PatchCode, - Manufacturer, - PatchXml, - } - - [Flags] - public enum WixBundleMspPackageAttributes - { - Slipstream = 0x2, - TargetUnspecified = 0x4, - } - - public class WixBundleMspPackageSymbol : IntermediateSymbol - { - public WixBundleMspPackageSymbol() : base(SymbolDefinitions.WixBundleMspPackage, null, null) - { - } - - public WixBundleMspPackageSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundleMspPackage, sourceLineNumber, id) - { - } - - public IntermediateField this[WixBundleMspPackageSymbolFields index] => this.Fields[(int)index]; - - public WixBundleMspPackageAttributes Attributes - { - get => (WixBundleMspPackageAttributes)(int)this.Fields[(int)WixBundleMspPackageSymbolFields.Attributes]; - set => this.Set((int)WixBundleMspPackageSymbolFields.Attributes, (int)value); - } - - public string PatchCode - { - get => (string)this.Fields[(int)WixBundleMspPackageSymbolFields.PatchCode]; - set => this.Set((int)WixBundleMspPackageSymbolFields.PatchCode, value); - } - - public string Manufacturer - { - get => (string)this.Fields[(int)WixBundleMspPackageSymbolFields.Manufacturer]; - set => this.Set((int)WixBundleMspPackageSymbolFields.Manufacturer, value); - } - - public string PatchXml - { - get => (string)this.Fields[(int)WixBundleMspPackageSymbolFields.PatchXml]; - set => this.Set((int)WixBundleMspPackageSymbolFields.PatchXml, value); - } - - public bool Slipstream => (this.Attributes & WixBundleMspPackageAttributes.Slipstream) == WixBundleMspPackageAttributes.Slipstream; - - public bool TargetUnspecified => (this.Attributes & WixBundleMspPackageAttributes.TargetUnspecified) == WixBundleMspPackageAttributes.TargetUnspecified; - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/WixBundleMsuPackageTuple.cs b/src/WixToolset.Data/Tuples/WixBundleMsuPackageTuple.cs deleted file mode 100644 index e52a9b2d..00000000 --- a/src/WixToolset.Data/Tuples/WixBundleMsuPackageTuple.cs +++ /dev/null @@ -1,52 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixBundleMsuPackage = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixBundleMsuPackage, - new[] - { - new IntermediateFieldDefinition(nameof(WixBundleMsuPackageSymbolFields.DetectCondition), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleMsuPackageSymbolFields.MsuKB), IntermediateFieldType.String), - }, - typeof(WixBundleMsuPackageSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum WixBundleMsuPackageSymbolFields - { - DetectCondition, - MsuKB, - } - - public class WixBundleMsuPackageSymbol : IntermediateSymbol - { - public WixBundleMsuPackageSymbol() : base(SymbolDefinitions.WixBundleMsuPackage, null, null) - { - } - - public WixBundleMsuPackageSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundleMsuPackage, sourceLineNumber, id) - { - } - - public IntermediateField this[WixBundleMsuPackageSymbolFields index] => this.Fields[(int)index]; - - public string DetectCondition - { - get => (string)this.Fields[(int)WixBundleMsuPackageSymbolFields.DetectCondition]; - set => this.Set((int)WixBundleMsuPackageSymbolFields.DetectCondition, value); - } - - public string MsuKB - { - get => (string)this.Fields[(int)WixBundleMsuPackageSymbolFields.MsuKB]; - set => this.Set((int)WixBundleMsuPackageSymbolFields.MsuKB, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/WixBundlePackageCommandLineTuple.cs b/src/WixToolset.Data/Tuples/WixBundlePackageCommandLineTuple.cs deleted file mode 100644 index 7ef254a6..00000000 --- a/src/WixToolset.Data/Tuples/WixBundlePackageCommandLineTuple.cs +++ /dev/null @@ -1,76 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixBundlePackageCommandLine = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixBundlePackageCommandLine, - new[] - { - new IntermediateFieldDefinition(nameof(WixBundlePackageCommandLineSymbolFields.WixBundlePackageRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundlePackageCommandLineSymbolFields.InstallArgument), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundlePackageCommandLineSymbolFields.UninstallArgument), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundlePackageCommandLineSymbolFields.RepairArgument), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundlePackageCommandLineSymbolFields.Condition), IntermediateFieldType.String), - }, - typeof(WixBundlePackageCommandLineSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum WixBundlePackageCommandLineSymbolFields - { - WixBundlePackageRef, - InstallArgument, - UninstallArgument, - RepairArgument, - Condition, - } - - public class WixBundlePackageCommandLineSymbol : IntermediateSymbol - { - public WixBundlePackageCommandLineSymbol() : base(SymbolDefinitions.WixBundlePackageCommandLine, null, null) - { - } - - public WixBundlePackageCommandLineSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundlePackageCommandLine, sourceLineNumber, id) - { - } - - public IntermediateField this[WixBundlePackageCommandLineSymbolFields index] => this.Fields[(int)index]; - - public string WixBundlePackageRef - { - get => (string)this.Fields[(int)WixBundlePackageCommandLineSymbolFields.WixBundlePackageRef]; - set => this.Set((int)WixBundlePackageCommandLineSymbolFields.WixBundlePackageRef, value); - } - - public string InstallArgument - { - get => (string)this.Fields[(int)WixBundlePackageCommandLineSymbolFields.InstallArgument]; - set => this.Set((int)WixBundlePackageCommandLineSymbolFields.InstallArgument, value); - } - - public string UninstallArgument - { - get => (string)this.Fields[(int)WixBundlePackageCommandLineSymbolFields.UninstallArgument]; - set => this.Set((int)WixBundlePackageCommandLineSymbolFields.UninstallArgument, value); - } - - public string RepairArgument - { - get => (string)this.Fields[(int)WixBundlePackageCommandLineSymbolFields.RepairArgument]; - set => this.Set((int)WixBundlePackageCommandLineSymbolFields.RepairArgument, value); - } - - public string Condition - { - get => (string)this.Fields[(int)WixBundlePackageCommandLineSymbolFields.Condition]; - set => this.Set((int)WixBundlePackageCommandLineSymbolFields.Condition, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/WixBundlePackageExitCodeTuple.cs b/src/WixToolset.Data/Tuples/WixBundlePackageExitCodeTuple.cs deleted file mode 100644 index d77d9d58..00000000 --- a/src/WixToolset.Data/Tuples/WixBundlePackageExitCodeTuple.cs +++ /dev/null @@ -1,71 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixBundlePackageExitCode = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixBundlePackageExitCode, - new[] - { - new IntermediateFieldDefinition(nameof(WixBundlePackageExitCodeSymbolFields.ChainPackageId), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundlePackageExitCodeSymbolFields.Code), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(WixBundlePackageExitCodeSymbolFields.Behavior), IntermediateFieldType.String), - }, - typeof(WixBundlePackageExitCodeSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - using System; - - public enum WixBundlePackageExitCodeSymbolFields - { - ChainPackageId, - Code, - Behavior, - } - - public enum ExitCodeBehaviorType - { - NotSet = -1, - Success, - Error, - ScheduleReboot, - ForceReboot, - } - - public class WixBundlePackageExitCodeSymbol : IntermediateSymbol - { - public WixBundlePackageExitCodeSymbol() : base(SymbolDefinitions.WixBundlePackageExitCode, null, null) - { - } - - public WixBundlePackageExitCodeSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundlePackageExitCode, sourceLineNumber, id) - { - } - - public IntermediateField this[WixBundlePackageExitCodeSymbolFields index] => this.Fields[(int)index]; - - public string ChainPackageId - { - get => (string)this.Fields[(int)WixBundlePackageExitCodeSymbolFields.ChainPackageId]; - set => this.Set((int)WixBundlePackageExitCodeSymbolFields.ChainPackageId, value); - } - - public int? Code - { - get => (int?)this.Fields[(int)WixBundlePackageExitCodeSymbolFields.Code]; - set => this.Set((int)WixBundlePackageExitCodeSymbolFields.Code, value); - } - - public ExitCodeBehaviorType Behavior - { - get => Enum.TryParse((string)this.Fields[(int)WixBundlePackageExitCodeSymbolFields.Behavior], true, out ExitCodeBehaviorType value) ? value : ExitCodeBehaviorType.NotSet; - set => this.Set((int)WixBundlePackageExitCodeSymbolFields.Behavior, value.ToString()); - } - } -} diff --git a/src/WixToolset.Data/Tuples/WixBundlePackageGroupTuple.cs b/src/WixToolset.Data/Tuples/WixBundlePackageGroupTuple.cs deleted file mode 100644 index a5e1943b..00000000 --- a/src/WixToolset.Data/Tuples/WixBundlePackageGroupTuple.cs +++ /dev/null @@ -1,36 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixBundlePackageGroup = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixBundlePackageGroup, - new IntermediateFieldDefinition[] - { - }, - typeof(WixBundlePackageGroupSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum WixBundlePackageGroupSymbolFields - { - } - - public class WixBundlePackageGroupSymbol : IntermediateSymbol - { - public WixBundlePackageGroupSymbol() : base(SymbolDefinitions.WixBundlePackageGroup, null, null) - { - } - - public WixBundlePackageGroupSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundlePackageGroup, sourceLineNumber, id) - { - } - - public IntermediateField this[WixBundlePackageGroupSymbolFields index] => this.Fields[(int)index]; - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/WixBundlePackageTuple.cs b/src/WixToolset.Data/Tuples/WixBundlePackageTuple.cs deleted file mode 100644 index 8f073900..00000000 --- a/src/WixToolset.Data/Tuples/WixBundlePackageTuple.cs +++ /dev/null @@ -1,212 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixBundlePackage = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixBundlePackage, - new[] - { - new IntermediateFieldDefinition(nameof(WixBundlePackageSymbolFields.Type), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundlePackageSymbolFields.PayloadRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundlePackageSymbolFields.Attributes), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(WixBundlePackageSymbolFields.InstallCondition), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundlePackageSymbolFields.Cache), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundlePackageSymbolFields.CacheId), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundlePackageSymbolFields.Vital), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(WixBundlePackageSymbolFields.PerMachine), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundlePackageSymbolFields.LogPathVariable), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundlePackageSymbolFields.RollbackLogPathVariable), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundlePackageSymbolFields.Size), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(WixBundlePackageSymbolFields.InstallSize), IntermediateFieldType.LargeNumber), - new IntermediateFieldDefinition(nameof(WixBundlePackageSymbolFields.Version), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundlePackageSymbolFields.Language), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(WixBundlePackageSymbolFields.DisplayName), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundlePackageSymbolFields.Description), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundlePackageSymbolFields.RollbackBoundaryRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundlePackageSymbolFields.RollbackBoundaryBackwardRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundlePackageSymbolFields.Win64), IntermediateFieldType.Bool), - }, - typeof(WixBundlePackageSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - using System; - - public enum WixBundlePackageSymbolFields - { - Type, - PayloadRef, - Attributes, - InstallCondition, - Cache, - CacheId, - Vital, - PerMachine, - LogPathVariable, - RollbackLogPathVariable, - Size, - InstallSize, - Version, - Language, - DisplayName, - Description, - RollbackBoundaryRef, - RollbackBoundaryBackwardRef, - Win64, - } - - /// - /// Types of bundle packages. - /// - public enum WixBundlePackageType - { - Exe, - Msi, - Msp, - Msu, - } - - [Flags] - public enum WixBundlePackageAttributes - { - Permanent = 0x1, - Visible = 0x2, - PerMachine = 0x4, - Win64 = 0x8, - } - - public class WixBundlePackageSymbol : IntermediateSymbol - { - public WixBundlePackageSymbol() : base(SymbolDefinitions.WixBundlePackage, null, null) - { - } - - public WixBundlePackageSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundlePackage, sourceLineNumber, id) - { - } - - public IntermediateField this[WixBundlePackageSymbolFields index] => this.Fields[(int)index]; - - public WixBundlePackageType Type - { - get => (WixBundlePackageType)Enum.Parse(typeof(WixBundlePackageType), (string)this.Fields[(int)WixBundlePackageSymbolFields.Type], true); - set => this.Set((int)WixBundlePackageSymbolFields.Type, value.ToString()); - } - - public string PayloadRef - { - get => (string)this.Fields[(int)WixBundlePackageSymbolFields.PayloadRef]; - set => this.Set((int)WixBundlePackageSymbolFields.PayloadRef, value); - } - - public WixBundlePackageAttributes Attributes - { - get => (WixBundlePackageAttributes)(int)this.Fields[(int)WixBundlePackageSymbolFields.Attributes]; - set => this.Set((int)WixBundlePackageSymbolFields.Attributes, (int)value); - } - - public string InstallCondition - { - get => (string)this.Fields[(int)WixBundlePackageSymbolFields.InstallCondition]; - set => this.Set((int)WixBundlePackageSymbolFields.InstallCondition, value); - } - - public YesNoAlwaysType Cache - { - get => Enum.TryParse((string)this.Fields[(int)WixBundlePackageSymbolFields.Cache], true, out YesNoAlwaysType value) ? value : YesNoAlwaysType.NotSet; - set => this.Set((int)WixBundlePackageSymbolFields.Cache, value.ToString().ToLowerInvariant()); - } - - public string CacheId - { - get => (string)this.Fields[(int)WixBundlePackageSymbolFields.CacheId]; - set => this.Set((int)WixBundlePackageSymbolFields.CacheId, value); - } - - public bool? Vital - { - get => (bool?)this.Fields[(int)WixBundlePackageSymbolFields.Vital]; - set => this.Set((int)WixBundlePackageSymbolFields.Vital, value); - } - - public YesNoDefaultType PerMachine - { - get => Enum.TryParse((string)this.Fields[(int)WixBundlePackageSymbolFields.PerMachine], true, out YesNoDefaultType value) ? value : YesNoDefaultType.NotSet; - set => this.Set((int)WixBundlePackageSymbolFields.PerMachine, value.ToString().ToLowerInvariant()); - } - - public string LogPathVariable - { - get => (string)this.Fields[(int)WixBundlePackageSymbolFields.LogPathVariable]; - set => this.Set((int)WixBundlePackageSymbolFields.LogPathVariable, value); - } - - public string RollbackLogPathVariable - { - get => (string)this.Fields[(int)WixBundlePackageSymbolFields.RollbackLogPathVariable]; - set => this.Set((int)WixBundlePackageSymbolFields.RollbackLogPathVariable, value); - } - - public int Size - { - get => (int)this.Fields[(int)WixBundlePackageSymbolFields.Size]; - set => this.Set((int)WixBundlePackageSymbolFields.Size, value); - } - - public long? InstallSize - { - get => (long?)this.Fields[(int)WixBundlePackageSymbolFields.InstallSize]; - set => this.Set((int)WixBundlePackageSymbolFields.InstallSize, value); - } - - public string Version - { - get => (string)this.Fields[(int)WixBundlePackageSymbolFields.Version]; - set => this.Set((int)WixBundlePackageSymbolFields.Version, value); - } - - public int? Language - { - get => (int?)this.Fields[(int)WixBundlePackageSymbolFields.Language]; - set => this.Set((int)WixBundlePackageSymbolFields.Language, value); - } - - public string DisplayName - { - get => (string)this.Fields[(int)WixBundlePackageSymbolFields.DisplayName]; - set => this.Set((int)WixBundlePackageSymbolFields.DisplayName, value); - } - - public string Description - { - get => (string)this.Fields[(int)WixBundlePackageSymbolFields.Description]; - set => this.Set((int)WixBundlePackageSymbolFields.Description, value); - } - - public string RollbackBoundaryRef - { - get => (string)this.Fields[(int)WixBundlePackageSymbolFields.RollbackBoundaryRef]; - set => this.Set((int)WixBundlePackageSymbolFields.RollbackBoundaryRef, value); - } - - public string RollbackBoundaryBackwardRef - { - get => (string)this.Fields[(int)WixBundlePackageSymbolFields.RollbackBoundaryBackwardRef]; - set => this.Set((int)WixBundlePackageSymbolFields.RollbackBoundaryBackwardRef, value); - } - - public bool Win64 - { - get => (bool)this.Fields[(int)WixBundlePackageSymbolFields.Win64]; - set => this.Set((int)WixBundlePackageSymbolFields.Win64, value); - } - - public bool Permanent => (this.Attributes & WixBundlePackageAttributes.Permanent) == WixBundlePackageAttributes.Permanent; - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/WixBundlePatchTargetCodeTuple.cs b/src/WixToolset.Data/Tuples/WixBundlePatchTargetCodeTuple.cs deleted file mode 100644 index b1aa9c77..00000000 --- a/src/WixToolset.Data/Tuples/WixBundlePatchTargetCodeTuple.cs +++ /dev/null @@ -1,82 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixBundlePatchTargetCode = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixBundlePatchTargetCode, - new[] - { - new IntermediateFieldDefinition(nameof(WixBundlePatchTargetCodeSymbolFields.PackageRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundlePatchTargetCodeSymbolFields.TargetCode), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundlePatchTargetCodeSymbolFields.Attributes), IntermediateFieldType.Number), - }, - typeof(WixBundlePatchTargetCodeSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - using System; - - public enum WixBundlePatchTargetCodeSymbolFields - { - PackageRef, - TargetCode, - Attributes, - } - - [Flags] - public enum WixBundlePatchTargetCodeAttributes : int - { - None = 0, - - /// - /// The transform targets a specific ProductCode. - /// - TargetsProductCode = 1, - - /// - /// The transform targets a specific UpgradeCode. - /// - TargetsUpgradeCode = 2, - } - - public class WixBundlePatchTargetCodeSymbol : IntermediateSymbol - { - public WixBundlePatchTargetCodeSymbol() : base(SymbolDefinitions.WixBundlePatchTargetCode, null, null) - { - } - - public WixBundlePatchTargetCodeSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundlePatchTargetCode, sourceLineNumber, id) - { - } - - public IntermediateField this[WixBundlePatchTargetCodeSymbolFields index] => this.Fields[(int)index]; - - public string PackageRef - { - get => (string)this.Fields[(int)WixBundlePatchTargetCodeSymbolFields.PackageRef]; - set => this.Set((int)WixBundlePatchTargetCodeSymbolFields.PackageRef, value); - } - - public string TargetCode - { - get => (string)this.Fields[(int)WixBundlePatchTargetCodeSymbolFields.TargetCode]; - set => this.Set((int)WixBundlePatchTargetCodeSymbolFields.TargetCode, value); - } - - public WixBundlePatchTargetCodeAttributes Attributes - { - get => (WixBundlePatchTargetCodeAttributes)this.Fields[(int)WixBundlePatchTargetCodeSymbolFields.Attributes].AsNumber(); - set => this.Set((int)WixBundlePatchTargetCodeSymbolFields.Attributes, (int)value); - } - - public bool TargetsProductCode => (this.Attributes & WixBundlePatchTargetCodeAttributes.TargetsProductCode) == WixBundlePatchTargetCodeAttributes.TargetsProductCode; - - public bool TargetsUpgradeCode => (this.Attributes & WixBundlePatchTargetCodeAttributes.TargetsUpgradeCode) == WixBundlePatchTargetCodeAttributes.TargetsUpgradeCode; - } -} diff --git a/src/WixToolset.Data/Tuples/WixBundlePayloadGroupTuple.cs b/src/WixToolset.Data/Tuples/WixBundlePayloadGroupTuple.cs deleted file mode 100644 index c53f6e73..00000000 --- a/src/WixToolset.Data/Tuples/WixBundlePayloadGroupTuple.cs +++ /dev/null @@ -1,36 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixBundlePayloadGroup = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixBundlePayloadGroup, - new IntermediateFieldDefinition[] - { - }, - typeof(WixBundlePayloadGroupSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum WixBundlePayloadGroupSymbolFields - { - } - - public class WixBundlePayloadGroupSymbol : IntermediateSymbol - { - public WixBundlePayloadGroupSymbol() : base(SymbolDefinitions.WixBundlePayloadGroup, null, null) - { - } - - public WixBundlePayloadGroupSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundlePayloadGroup, sourceLineNumber, id) - { - } - - public IntermediateField this[WixBundlePayloadGroupSymbolFields index] => this.Fields[(int)index]; - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/WixBundlePayloadTuple.cs b/src/WixToolset.Data/Tuples/WixBundlePayloadTuple.cs deleted file mode 100644 index 94a02af8..00000000 --- a/src/WixToolset.Data/Tuples/WixBundlePayloadTuple.cs +++ /dev/null @@ -1,206 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixBundlePayload = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixBundlePayload, - new[] - { - new IntermediateFieldDefinition(nameof(WixBundlePayloadSymbolFields.Name), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundlePayloadSymbolFields.SourceFile), IntermediateFieldType.Path), - new IntermediateFieldDefinition(nameof(WixBundlePayloadSymbolFields.DownloadUrl), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundlePayloadSymbolFields.Compressed), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(WixBundlePayloadSymbolFields.UnresolvedSourceFile), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundlePayloadSymbolFields.DisplayName), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundlePayloadSymbolFields.Description), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundlePayloadSymbolFields.EnableSignatureValidation), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(WixBundlePayloadSymbolFields.FileSize), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(WixBundlePayloadSymbolFields.Version), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundlePayloadSymbolFields.Hash), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundlePayloadSymbolFields.PublicKey), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundlePayloadSymbolFields.Thumbprint), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundlePayloadSymbolFields.CatalogRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundlePayloadSymbolFields.ContainerRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundlePayloadSymbolFields.PackageRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundlePayloadSymbolFields.ContentFile), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(WixBundlePayloadSymbolFields.EmbeddedId), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundlePayloadSymbolFields.LayoutOnly), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(WixBundlePayloadSymbolFields.Packaging), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(WixBundlePayloadSymbolFields.ParentPackagePayloadRef), IntermediateFieldType.String), - }, - typeof(WixBundlePayloadSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - using System; - - public enum WixBundlePayloadSymbolFields - { - Name, - SourceFile, - DownloadUrl, - Compressed, - UnresolvedSourceFile, - DisplayName, - Description, - EnableSignatureValidation, - FileSize, - Version, - Hash, - PublicKey, - Thumbprint, - CatalogRef, - ContainerRef, - PackageRef, - ContentFile, - EmbeddedId, - LayoutOnly, - Packaging, - ParentPackagePayloadRef, - } - - public class WixBundlePayloadSymbol : IntermediateSymbol - { - public WixBundlePayloadSymbol() : base(SymbolDefinitions.WixBundlePayload, null, null) - { - } - - public WixBundlePayloadSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundlePayload, sourceLineNumber, id) - { - } - - public IntermediateField this[WixBundlePayloadSymbolFields index] => this.Fields[(int)index]; - - public string Name - { - get => (string)this.Fields[(int)WixBundlePayloadSymbolFields.Name]; - set => this.Set((int)WixBundlePayloadSymbolFields.Name, value); - } - - public IntermediateFieldPathValue SourceFile - { - get => this.Fields[(int)WixBundlePayloadSymbolFields.SourceFile].AsPath(); - set => this.Set((int)WixBundlePayloadSymbolFields.SourceFile, value); - } - - public string DownloadUrl - { - get => (string)this.Fields[(int)WixBundlePayloadSymbolFields.DownloadUrl]; - set => this.Set((int)WixBundlePayloadSymbolFields.DownloadUrl, value); - } - - public bool? Compressed - { - get => (bool?)this.Fields[(int)WixBundlePayloadSymbolFields.Compressed]; - set => this.Set((int)WixBundlePayloadSymbolFields.Compressed, value); - } - - public string UnresolvedSourceFile - { - get => (string)this.Fields[(int)WixBundlePayloadSymbolFields.UnresolvedSourceFile]; - set => this.Set((int)WixBundlePayloadSymbolFields.UnresolvedSourceFile, value); - } - - public string DisplayName - { - get => (string)this.Fields[(int)WixBundlePayloadSymbolFields.DisplayName]; - set => this.Set((int)WixBundlePayloadSymbolFields.DisplayName, value); - } - - public string Description - { - get => (string)this.Fields[(int)WixBundlePayloadSymbolFields.Description]; - set => this.Set((int)WixBundlePayloadSymbolFields.Description, value); - } - - public bool EnableSignatureValidation - { - get => (bool)this.Fields[(int)WixBundlePayloadSymbolFields.EnableSignatureValidation]; - set => this.Set((int)WixBundlePayloadSymbolFields.EnableSignatureValidation, value); - } - - public int? FileSize - { - get => (int?)this.Fields[(int)WixBundlePayloadSymbolFields.FileSize]; - set => this.Set((int)WixBundlePayloadSymbolFields.FileSize, value); - } - - public string Version - { - get => (string)this.Fields[(int)WixBundlePayloadSymbolFields.Version]; - set => this.Set((int)WixBundlePayloadSymbolFields.Version, value); - } - - public string Hash - { - get => (string)this.Fields[(int)WixBundlePayloadSymbolFields.Hash]; - set => this.Set((int)WixBundlePayloadSymbolFields.Hash, value); - } - - public string PublicKey - { - get => (string)this.Fields[(int)WixBundlePayloadSymbolFields.PublicKey]; - set => this.Set((int)WixBundlePayloadSymbolFields.PublicKey, value); - } - - public string Thumbprint - { - get => (string)this.Fields[(int)WixBundlePayloadSymbolFields.Thumbprint]; - set => this.Set((int)WixBundlePayloadSymbolFields.Thumbprint, value); - } - - public string CatalogRef - { - get => (string)this.Fields[(int)WixBundlePayloadSymbolFields.CatalogRef]; - set => this.Set((int)WixBundlePayloadSymbolFields.CatalogRef, value); - } - - public string ContainerRef - { - get => (string)this.Fields[(int)WixBundlePayloadSymbolFields.ContainerRef]; - set => this.Set((int)WixBundlePayloadSymbolFields.ContainerRef, value); - } - - public string PackageRef - { - get => (string)this.Fields[(int)WixBundlePayloadSymbolFields.PackageRef]; - set => this.Set((int)WixBundlePayloadSymbolFields.PackageRef, value); - } - - public bool ContentFile - { - get => (bool)this.Fields[(int)WixBundlePayloadSymbolFields.ContentFile]; - set => this.Set((int)WixBundlePayloadSymbolFields.ContentFile, value); - } - - public string EmbeddedId - { - get => (string)this.Fields[(int)WixBundlePayloadSymbolFields.EmbeddedId]; - set => this.Set((int)WixBundlePayloadSymbolFields.EmbeddedId, value); - } - - public bool LayoutOnly - { - get => (bool)this.Fields[(int)WixBundlePayloadSymbolFields.LayoutOnly]; - set => this.Set((int)WixBundlePayloadSymbolFields.LayoutOnly, value); - } - - public PackagingType? Packaging - { - get => (PackagingType?)this.Fields[(int)WixBundlePayloadSymbolFields.Packaging].AsNumber(); - set => this.Set((int)WixBundlePayloadSymbolFields.Packaging, (int?)value); - } - - public string ParentPackagePayloadRef - { - get => (string)this.Fields[(int)WixBundlePayloadSymbolFields.ParentPackagePayloadRef]; - set => this.Set((int)WixBundlePayloadSymbolFields.ParentPackagePayloadRef, value); - } - } -} diff --git a/src/WixToolset.Data/Tuples/WixBundleRelatedPackageTuple.cs b/src/WixToolset.Data/Tuples/WixBundleRelatedPackageTuple.cs deleted file mode 100644 index 7bd67b7f..00000000 --- a/src/WixToolset.Data/Tuples/WixBundleRelatedPackageTuple.cs +++ /dev/null @@ -1,104 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixBundleRelatedPackage = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixBundleRelatedPackage, - new[] - { - new IntermediateFieldDefinition(nameof(WixBundleRelatedPackageSymbolFields.PackageRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleRelatedPackageSymbolFields.RelatedId), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleRelatedPackageSymbolFields.MinVersion), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleRelatedPackageSymbolFields.MaxVersion), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleRelatedPackageSymbolFields.Languages), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleRelatedPackageSymbolFields.Attributes), IntermediateFieldType.Number), - }, - typeof(WixBundleRelatedPackageSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - using System; - - public enum WixBundleRelatedPackageSymbolFields - { - PackageRef, - RelatedId, - MinVersion, - MaxVersion, - Languages, - Attributes, - } - - [Flags] - public enum WixBundleRelatedPackageAttributes - { - None = 0x0, - OnlyDetect = 0x1, - MinInclusive = 0x2, - MaxInclusive = 0x4, - LangInclusive = 0x8, - } - - public class WixBundleRelatedPackageSymbol : IntermediateSymbol - { - public WixBundleRelatedPackageSymbol() : base(SymbolDefinitions.WixBundleRelatedPackage, null, null) - { - } - - public WixBundleRelatedPackageSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundleRelatedPackage, sourceLineNumber, id) - { - } - - public IntermediateField this[WixBundleRelatedPackageSymbolFields index] => this.Fields[(int)index]; - - public string PackageRef - { - get => (string)this.Fields[(int)WixBundleRelatedPackageSymbolFields.PackageRef]; - set => this.Set((int)WixBundleRelatedPackageSymbolFields.PackageRef, value); - } - - public string RelatedId - { - get => (string)this.Fields[(int)WixBundleRelatedPackageSymbolFields.RelatedId]; - set => this.Set((int)WixBundleRelatedPackageSymbolFields.RelatedId, value); - } - - public string MinVersion - { - get => (string)this.Fields[(int)WixBundleRelatedPackageSymbolFields.MinVersion]; - set => this.Set((int)WixBundleRelatedPackageSymbolFields.MinVersion, value); - } - - public string MaxVersion - { - get => (string)this.Fields[(int)WixBundleRelatedPackageSymbolFields.MaxVersion]; - set => this.Set((int)WixBundleRelatedPackageSymbolFields.MaxVersion, value); - } - - public string Languages - { - get => (string)this.Fields[(int)WixBundleRelatedPackageSymbolFields.Languages]; - set => this.Set((int)WixBundleRelatedPackageSymbolFields.Languages, value); - } - - public WixBundleRelatedPackageAttributes Attributes - { - get => (WixBundleRelatedPackageAttributes)this.Fields[(int)WixBundleRelatedPackageSymbolFields.Attributes].AsNumber(); - set => this.Set((int)WixBundleRelatedPackageSymbolFields.Attributes, (int)value); - } - - public bool MinInclusive => (this.Attributes & WixBundleRelatedPackageAttributes.MinInclusive) == WixBundleRelatedPackageAttributes.MinInclusive; - - public bool MaxInclusive => (this.Attributes & WixBundleRelatedPackageAttributes.MaxInclusive) == WixBundleRelatedPackageAttributes.MaxInclusive; - - public bool OnlyDetect => (this.Attributes & WixBundleRelatedPackageAttributes.OnlyDetect) == WixBundleRelatedPackageAttributes.OnlyDetect; - - public bool LangInclusive => (this.Attributes & WixBundleRelatedPackageAttributes.LangInclusive) == WixBundleRelatedPackageAttributes.LangInclusive; - } -} diff --git a/src/WixToolset.Data/Tuples/WixBundleRollbackBoundaryTuple.cs b/src/WixToolset.Data/Tuples/WixBundleRollbackBoundaryTuple.cs deleted file mode 100644 index e54e898e..00000000 --- a/src/WixToolset.Data/Tuples/WixBundleRollbackBoundaryTuple.cs +++ /dev/null @@ -1,52 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixBundleRollbackBoundary = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixBundleRollbackBoundary, - new[] - { - new IntermediateFieldDefinition(nameof(WixBundleRollbackBoundarySymbolFields.Vital), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(WixBundleRollbackBoundarySymbolFields.Transaction), IntermediateFieldType.Number), - }, - typeof(WixBundleRollbackBoundarySymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum WixBundleRollbackBoundarySymbolFields - { - Vital, - Transaction, - } - - public class WixBundleRollbackBoundarySymbol : IntermediateSymbol - { - public WixBundleRollbackBoundarySymbol() : base(SymbolDefinitions.WixBundleRollbackBoundary, null, null) - { - } - - public WixBundleRollbackBoundarySymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundleRollbackBoundary, sourceLineNumber, id) - { - } - - public IntermediateField this[WixBundleRollbackBoundarySymbolFields index] => this.Fields[(int)index]; - - public bool? Vital - { - get => (bool?)this.Fields[(int)WixBundleRollbackBoundarySymbolFields.Vital]; - set => this.Set((int)WixBundleRollbackBoundarySymbolFields.Vital, value); - } - - public bool? Transaction - { - get => (bool?)this.Fields[(int)WixBundleRollbackBoundarySymbolFields.Transaction]; - set => this.Set((int)WixBundleRollbackBoundarySymbolFields.Transaction, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/WixBundleSlipstreamMspTuple.cs b/src/WixToolset.Data/Tuples/WixBundleSlipstreamMspTuple.cs deleted file mode 100644 index d8e9db3f..00000000 --- a/src/WixToolset.Data/Tuples/WixBundleSlipstreamMspTuple.cs +++ /dev/null @@ -1,52 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixBundleSlipstreamMsp = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixBundleSlipstreamMsp, - new[] - { - new IntermediateFieldDefinition(nameof(WixBundleSlipstreamMspSymbolFields.TargetPackageRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleSlipstreamMspSymbolFields.MspPackageRef), IntermediateFieldType.String), - }, - typeof(WixBundleSlipstreamMspSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum WixBundleSlipstreamMspSymbolFields - { - TargetPackageRef, - MspPackageRef, - } - - public class WixBundleSlipstreamMspSymbol : IntermediateSymbol - { - public WixBundleSlipstreamMspSymbol() : base(SymbolDefinitions.WixBundleSlipstreamMsp, null, null) - { - } - - public WixBundleSlipstreamMspSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundleSlipstreamMsp, sourceLineNumber, id) - { - } - - public IntermediateField this[WixBundleSlipstreamMspSymbolFields index] => this.Fields[(int)index]; - - public string TargetPackageRef - { - get => (string)this.Fields[(int)WixBundleSlipstreamMspSymbolFields.TargetPackageRef]; - set => this.Set((int)WixBundleSlipstreamMspSymbolFields.TargetPackageRef, value); - } - - public string MspPackageRef - { - get => (string)this.Fields[(int)WixBundleSlipstreamMspSymbolFields.MspPackageRef]; - set => this.Set((int)WixBundleSlipstreamMspSymbolFields.MspPackageRef, value); - } - } -} diff --git a/src/WixToolset.Data/Tuples/WixBundleTuple.cs b/src/WixToolset.Data/Tuples/WixBundleTuple.cs deleted file mode 100644 index 8cad5c36..00000000 --- a/src/WixToolset.Data/Tuples/WixBundleTuple.cs +++ /dev/null @@ -1,234 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixBundle = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixBundle, - new[] - { - new IntermediateFieldDefinition(nameof(WixBundleSymbolFields.UpgradeCode), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleSymbolFields.Version), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleSymbolFields.Copyright), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleSymbolFields.Name), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleSymbolFields.Manufacturer), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleSymbolFields.Attributes), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(WixBundleSymbolFields.AboutUrl), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleSymbolFields.HelpUrl), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleSymbolFields.HelpTelephone), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleSymbolFields.UpdateUrl), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleSymbolFields.Compressed), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(WixBundleSymbolFields.LogPathVariable), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleSymbolFields.LogPrefix), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleSymbolFields.LogExtension), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleSymbolFields.IconSourceFile), IntermediateFieldType.Path), - new IntermediateFieldDefinition(nameof(WixBundleSymbolFields.SplashScreenSourceFile), IntermediateFieldType.Path), - new IntermediateFieldDefinition(nameof(WixBundleSymbolFields.Condition), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleSymbolFields.Tag), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleSymbolFields.Platform), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleSymbolFields.ParentName), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleSymbolFields.BundleId), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleSymbolFields.ProviderKey), IntermediateFieldType.String), - }, - typeof(WixBundleSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - using System; - - public enum WixBundleSymbolFields - { - UpgradeCode, - Version, - Copyright, - Name, - Manufacturer, - Attributes, - AboutUrl, - HelpUrl, - HelpTelephone, - UpdateUrl, - Compressed, - LogPathVariable, - LogPrefix, - LogExtension, - IconSourceFile, - SplashScreenSourceFile, - Condition, - Tag, - Platform, - ParentName, - BundleId, - ProviderKey, - } - - [Flags] - public enum WixBundleAttributes - { - None = 0x0, - DisableModify = 0x1, - DisableRemove = 0x2, - SingleChangeUninstallButton = 0x4, - PerMachine = 0x8, - } - - public class WixBundleSymbol : IntermediateSymbol - { - public WixBundleSymbol() : base(SymbolDefinitions.WixBundle, null, null) - { - } - - public WixBundleSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundle, sourceLineNumber, id) - { - } - - public IntermediateField this[WixBundleSymbolFields index] => this.Fields[(int)index]; - - public string UpgradeCode - { - get => (string)this.Fields[(int)WixBundleSymbolFields.UpgradeCode]; - set => this.Set((int)WixBundleSymbolFields.UpgradeCode, value); - } - - public string Version - { - get => (string)this.Fields[(int)WixBundleSymbolFields.Version]; - set => this.Set((int)WixBundleSymbolFields.Version, value); - } - - public string Copyright - { - get => (string)this.Fields[(int)WixBundleSymbolFields.Copyright]; - set => this.Set((int)WixBundleSymbolFields.Copyright, value); - } - - public string Name - { - get => (string)this.Fields[(int)WixBundleSymbolFields.Name]; - set => this.Set((int)WixBundleSymbolFields.Name, value); - } - - public string Manufacturer - { - get => (string)this.Fields[(int)WixBundleSymbolFields.Manufacturer]; - set => this.Set((int)WixBundleSymbolFields.Manufacturer, value); - } - - public WixBundleAttributes Attributes - { - get => (WixBundleAttributes)this.Fields[(int)WixBundleSymbolFields.Attributes].AsNumber(); - set => this.Set((int)WixBundleSymbolFields.Attributes, (int)value); - } - - public string AboutUrl - { - get => (string)this.Fields[(int)WixBundleSymbolFields.AboutUrl]; - set => this.Set((int)WixBundleSymbolFields.AboutUrl, value); - } - - public string HelpTelephone - { - get => (string)this.Fields[(int)WixBundleSymbolFields.HelpTelephone]; - set => this.Set((int)WixBundleSymbolFields.HelpTelephone, value); - } - - public string HelpUrl - { - get => (string)this.Fields[(int)WixBundleSymbolFields.HelpUrl]; - set => this.Set((int)WixBundleSymbolFields.HelpUrl, value); - } - - public string UpdateUrl - { - get => (string)this.Fields[(int)WixBundleSymbolFields.UpdateUrl]; - set => this.Set((int)WixBundleSymbolFields.UpdateUrl, value); - } - - public bool? Compressed - { - get => (bool?)this.Fields[(int)WixBundleSymbolFields.Compressed]; - set => this.Set((int)WixBundleSymbolFields.Compressed, value); - } - - public string LogPathVariable - { - get => (string)this.Fields[(int)WixBundleSymbolFields.LogPathVariable]; - set => this.Set((int)WixBundleSymbolFields.LogPathVariable, value); - } - - public string LogPrefix - { - get => (string)this.Fields[(int)WixBundleSymbolFields.LogPrefix]; - set => this.Set((int)WixBundleSymbolFields.LogPrefix, value); - } - - public string LogExtension - { - get => (string)this.Fields[(int)WixBundleSymbolFields.LogExtension]; - set => this.Set((int)WixBundleSymbolFields.LogExtension, value); - } - - public string IconSourceFile - { - get => (string)this.Fields[(int)WixBundleSymbolFields.IconSourceFile]; - set => this.Set((int)WixBundleSymbolFields.IconSourceFile, value); - } - - public string SplashScreenSourceFile - { - get => (string)this.Fields[(int)WixBundleSymbolFields.SplashScreenSourceFile]; - set => this.Set((int)WixBundleSymbolFields.SplashScreenSourceFile, value); - } - - public string Condition - { - get => (string)this.Fields[(int)WixBundleSymbolFields.Condition]; - set => this.Set((int)WixBundleSymbolFields.Condition, value); - } - - public string Tag - { - get => (string)this.Fields[(int)WixBundleSymbolFields.Tag]; - set => this.Set((int)WixBundleSymbolFields.Tag, value); - } - - public Platform Platform - { - get => (Platform)this.Fields[(int)WixBundleSymbolFields.Platform].AsNumber(); - set => this.Set((int)WixBundleSymbolFields.Platform, (int)value); - } - - public string ParentName - { - get => (string)this.Fields[(int)WixBundleSymbolFields.ParentName]; - set => this.Set((int)WixBundleSymbolFields.ParentName, value); - } - - public string BundleId - { - get => (string)this.Fields[(int)WixBundleSymbolFields.BundleId]; - set => this.Set((int)WixBundleSymbolFields.BundleId, value); - } - - public string ProviderKey - { - get => (string)this.Fields[(int)WixBundleSymbolFields.ProviderKey]; - set => this.Set((int)WixBundleSymbolFields.ProviderKey, value); - } - - public PackagingType DefaultPackagingType => (this.Compressed.HasValue && !this.Compressed.Value) ? PackagingType.External : PackagingType.Embedded; - - public bool DisableModify => (this.Attributes & WixBundleAttributes.DisableModify) == WixBundleAttributes.DisableModify; - - public bool DisableRemove => (this.Attributes & WixBundleAttributes.DisableRemove) == WixBundleAttributes.DisableRemove; - - public bool PerMachine => (this.Attributes & WixBundleAttributes.PerMachine) == WixBundleAttributes.PerMachine; - - public bool SingleChangeUninstallButton => (this.Attributes & WixBundleAttributes.SingleChangeUninstallButton) == WixBundleAttributes.SingleChangeUninstallButton; - } -} diff --git a/src/WixToolset.Data/Tuples/WixBundleUpdateTuple.cs b/src/WixToolset.Data/Tuples/WixBundleUpdateTuple.cs deleted file mode 100644 index d27bbc32..00000000 --- a/src/WixToolset.Data/Tuples/WixBundleUpdateTuple.cs +++ /dev/null @@ -1,52 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixBundleUpdate = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixBundleUpdate, - new[] - { - new IntermediateFieldDefinition(nameof(WixBundleUpdateSymbolFields.Location), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleUpdateSymbolFields.Attributes), IntermediateFieldType.Number), - }, - typeof(WixBundleUpdateSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum WixBundleUpdateSymbolFields - { - Location, - Attributes, - } - - public class WixBundleUpdateSymbol : IntermediateSymbol - { - public WixBundleUpdateSymbol() : base(SymbolDefinitions.WixBundleUpdate, null, null) - { - } - - public WixBundleUpdateSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundleUpdate, sourceLineNumber, id) - { - } - - public IntermediateField this[WixBundleUpdateSymbolFields index] => this.Fields[(int)index]; - - public string Location - { - get => (string)this.Fields[(int)WixBundleUpdateSymbolFields.Location]; - set => this.Set((int)WixBundleUpdateSymbolFields.Location, value); - } - - public int Attributes - { - get => (int)this.Fields[(int)WixBundleUpdateSymbolFields.Attributes]; - set => this.Set((int)WixBundleUpdateSymbolFields.Attributes, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/WixBundleVariableTuple.cs b/src/WixToolset.Data/Tuples/WixBundleVariableTuple.cs deleted file mode 100644 index 85cf2798..00000000 --- a/src/WixToolset.Data/Tuples/WixBundleVariableTuple.cs +++ /dev/null @@ -1,68 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixBundleVariable = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixBundleVariable, - new[] - { - new IntermediateFieldDefinition(nameof(WixBundleVariableSymbolFields.Value), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleVariableSymbolFields.Type), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBundleVariableSymbolFields.Hidden), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(WixBundleVariableSymbolFields.Persisted), IntermediateFieldType.Bool), - }, - typeof(WixBundleVariableSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum WixBundleVariableSymbolFields - { - Value, - Type, - Hidden, - Persisted, - } - - public class WixBundleVariableSymbol : IntermediateSymbol - { - public WixBundleVariableSymbol() : base(SymbolDefinitions.WixBundleVariable, null, null) - { - } - - public WixBundleVariableSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundleVariable, sourceLineNumber, id) - { - } - - public IntermediateField this[WixBundleVariableSymbolFields index] => this.Fields[(int)index]; - - public string Value - { - get => (string)this.Fields[(int)WixBundleVariableSymbolFields.Value]; - set => this.Set((int)WixBundleVariableSymbolFields.Value, value); - } - - public string Type - { - get => (string)this.Fields[(int)WixBundleVariableSymbolFields.Type]; - set => this.Set((int)WixBundleVariableSymbolFields.Type, value); - } - - public bool Hidden - { - get => (bool)this.Fields[(int)WixBundleVariableSymbolFields.Hidden]; - set => this.Set((int)WixBundleVariableSymbolFields.Hidden, value); - } - - public bool Persisted - { - get => (bool)this.Fields[(int)WixBundleVariableSymbolFields.Persisted]; - set => this.Set((int)WixBundleVariableSymbolFields.Persisted, value); - } - } -} diff --git a/src/WixToolset.Data/Tuples/WixChainItemTuple.cs b/src/WixToolset.Data/Tuples/WixChainItemTuple.cs deleted file mode 100644 index c657678c..00000000 --- a/src/WixToolset.Data/Tuples/WixChainItemTuple.cs +++ /dev/null @@ -1,36 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixChainItem = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixChainItem, - new IntermediateFieldDefinition[] - { - }, - typeof(WixChainItemSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum WixChainItemSymbolFields - { - } - - public class WixChainItemSymbol : IntermediateSymbol - { - public WixChainItemSymbol() : base(SymbolDefinitions.WixChainItem, null, null) - { - } - - public WixChainItemSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixChainItem, sourceLineNumber, id) - { - } - - public IntermediateField this[WixChainItemSymbolFields index] => this.Fields[(int)index]; - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/WixChainTuple.cs b/src/WixToolset.Data/Tuples/WixChainTuple.cs deleted file mode 100644 index 8ec5fc63..00000000 --- a/src/WixToolset.Data/Tuples/WixChainTuple.cs +++ /dev/null @@ -1,61 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixChain = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixChain, - new[] - { - new IntermediateFieldDefinition(nameof(WixChainSymbolFields.Attributes), IntermediateFieldType.Number), - }, - typeof(WixChainSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - using System; - - public enum WixChainSymbolFields - { - Attributes, - } - - [Flags] - public enum WixChainAttributes - { - None = 0x0, - DisableRollback = 0x1, - DisableSystemRestore = 0x2, - ParallelCache = 0x4, - } - - public class WixChainSymbol : IntermediateSymbol - { - public WixChainSymbol() : base(SymbolDefinitions.WixChain, null, null) - { - } - - public WixChainSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixChain, sourceLineNumber, id) - { - } - - public IntermediateField this[WixChainSymbolFields index] => this.Fields[(int)index]; - - public WixChainAttributes Attributes - { - get => (WixChainAttributes)(int)this.Fields[(int)WixChainSymbolFields.Attributes]; - set => this.Set((int)WixChainSymbolFields.Attributes, (int)value); - } - - public bool DisableRollback => (this.Attributes & WixChainAttributes.DisableRollback) == WixChainAttributes.DisableRollback; - - public bool DisableSystemRestore => (this.Attributes & WixChainAttributes.DisableSystemRestore) == WixChainAttributes.DisableSystemRestore; - - public bool ParallelCache => (this.Attributes & WixChainAttributes.ParallelCache) == WixChainAttributes.ParallelCache; - } -} diff --git a/src/WixToolset.Data/Tuples/WixComplexReferenceTuple.cs b/src/WixToolset.Data/Tuples/WixComplexReferenceTuple.cs deleted file mode 100644 index 89365605..00000000 --- a/src/WixToolset.Data/Tuples/WixComplexReferenceTuple.cs +++ /dev/null @@ -1,86 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixComplexReference = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixComplexReference, - new[] - { - new IntermediateFieldDefinition(nameof(WixComplexReferenceSymbolFields.Parent), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixComplexReferenceSymbolFields.ParentAttributes), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixComplexReferenceSymbolFields.ParentLanguage), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixComplexReferenceSymbolFields.Child), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixComplexReferenceSymbolFields.ChildAttributes), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixComplexReferenceSymbolFields.Attributes), IntermediateFieldType.Bool), - }, - typeof(WixComplexReferenceSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - using System; - - public enum WixComplexReferenceSymbolFields - { - Parent, - ParentAttributes, - ParentLanguage, - Child, - ChildAttributes, - Attributes, - } - - public class WixComplexReferenceSymbol : IntermediateSymbol - { - public WixComplexReferenceSymbol() : base(SymbolDefinitions.WixComplexReference, null, null) - { - } - - public WixComplexReferenceSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixComplexReference, sourceLineNumber, id) - { - } - - public IntermediateField this[WixComplexReferenceSymbolFields index] => this.Fields[(int)index]; - - public string Parent - { - get => (string)this.Fields[(int)WixComplexReferenceSymbolFields.Parent]; - set => this.Set((int)WixComplexReferenceSymbolFields.Parent, value); - } - - public ComplexReferenceParentType ParentType - { - get => (ComplexReferenceParentType)Enum.Parse(typeof(ComplexReferenceParentType), (string)this.Fields[(int)WixComplexReferenceSymbolFields.ParentAttributes], true); - set => this.Set((int)WixComplexReferenceSymbolFields.ParentAttributes, value.ToString()); - } - - public string ParentLanguage - { - get => (string)this.Fields[(int)WixComplexReferenceSymbolFields.ParentLanguage]; - set => this.Set((int)WixComplexReferenceSymbolFields.ParentLanguage, value); - } - - public string Child - { - get => (string)this.Fields[(int)WixComplexReferenceSymbolFields.Child]; - set => this.Set((int)WixComplexReferenceSymbolFields.Child, value); - } - - public ComplexReferenceChildType ChildType - { - get => (ComplexReferenceChildType)Enum.Parse(typeof(ComplexReferenceChildType), (string)this.Fields[(int)WixComplexReferenceSymbolFields.ChildAttributes], true); - set => this.Set((int)WixComplexReferenceSymbolFields.ChildAttributes, value.ToString()); - } - - public bool IsPrimary - { - get => (bool)this.Fields[(int)WixComplexReferenceSymbolFields.Attributes]; - set => this.Set((int)WixComplexReferenceSymbolFields.Attributes, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/WixComponentGroupTuple.cs b/src/WixToolset.Data/Tuples/WixComponentGroupTuple.cs deleted file mode 100644 index 4dd5a3b5..00000000 --- a/src/WixToolset.Data/Tuples/WixComponentGroupTuple.cs +++ /dev/null @@ -1,44 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixComponentGroup = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixComponentGroup, - new[] - { - new IntermediateFieldDefinition(nameof(WixComponentGroupSymbolFields.WixComponentGroup), IntermediateFieldType.String), - }, - typeof(WixComponentGroupSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum WixComponentGroupSymbolFields - { - WixComponentGroup, - } - - public class WixComponentGroupSymbol : IntermediateSymbol - { - public WixComponentGroupSymbol() : base(SymbolDefinitions.WixComponentGroup, null, null) - { - } - - public WixComponentGroupSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixComponentGroup, sourceLineNumber, id) - { - } - - public IntermediateField this[WixComponentGroupSymbolFields index] => this.Fields[(int)index]; - - public string WixComponentGroup - { - get => (string)this.Fields[(int)WixComponentGroupSymbolFields.WixComponentGroup]; - set => this.Set((int)WixComponentGroupSymbolFields.WixComponentGroup, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/WixComponentSearchTuple.cs b/src/WixToolset.Data/Tuples/WixComponentSearchTuple.cs deleted file mode 100644 index 63f7179f..00000000 --- a/src/WixToolset.Data/Tuples/WixComponentSearchTuple.cs +++ /dev/null @@ -1,70 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixComponentSearch = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixComponentSearch, - new[] - { - new IntermediateFieldDefinition(nameof(WixComponentSearchSymbolFields.Guid), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixComponentSearchSymbolFields.ProductCode), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixComponentSearchSymbolFields.Attributes), IntermediateFieldType.Number), - }, - typeof(WixComponentSearchSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - using System; - - public enum WixComponentSearchSymbolFields - { - Guid, - ProductCode, - Attributes, - } - - [Flags] - public enum WixComponentSearchAttributes - { - KeyPath = 0x1, - State = 0x2, - WantDirectory = 0x4, - } - - public class WixComponentSearchSymbol : IntermediateSymbol - { - public WixComponentSearchSymbol() : base(SymbolDefinitions.WixComponentSearch, null, null) - { - } - - public WixComponentSearchSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixComponentSearch, sourceLineNumber, id) - { - } - - public IntermediateField this[WixComponentSearchSymbolFields index] => this.Fields[(int)index]; - - public string Guid - { - get => (string)this.Fields[(int)WixComponentSearchSymbolFields.Guid]; - set => this.Set((int)WixComponentSearchSymbolFields.Guid, value); - } - - public string ProductCode - { - get => (string)this.Fields[(int)WixComponentSearchSymbolFields.ProductCode]; - set => this.Set((int)WixComponentSearchSymbolFields.ProductCode, value); - } - - public WixComponentSearchAttributes Attributes - { - get => (WixComponentSearchAttributes)this.Fields[(int)WixComponentSearchSymbolFields.Attributes].AsNumber(); - set => this.Set((int)WixComponentSearchSymbolFields.Attributes, (int)value); - } - } -} diff --git a/src/WixToolset.Data/Tuples/WixCustomTableCellTuple.cs b/src/WixToolset.Data/Tuples/WixCustomTableCellTuple.cs deleted file mode 100644 index b45cda43..00000000 --- a/src/WixToolset.Data/Tuples/WixCustomTableCellTuple.cs +++ /dev/null @@ -1,68 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixCustomTableCell = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixCustomTableCell, - new[] - { - new IntermediateFieldDefinition(nameof(WixCustomTableCellSymbolFields.TableRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixCustomTableCellSymbolFields.ColumnRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixCustomTableCellSymbolFields.RowId), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixCustomTableCellSymbolFields.Data), IntermediateFieldType.String), - }, - typeof(WixCustomTableCellSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum WixCustomTableCellSymbolFields - { - TableRef, - ColumnRef, - RowId, - Data, - } - - public class WixCustomTableCellSymbol : IntermediateSymbol - { - public WixCustomTableCellSymbol() : base(SymbolDefinitions.WixCustomTableCell, null, null) - { - } - - public WixCustomTableCellSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixCustomTableCell, sourceLineNumber, id) - { - } - - public IntermediateField this[WixCustomTableCellSymbolFields index] => this.Fields[(int)index]; - - public string TableRef - { - get => (string)this.Fields[(int)WixCustomTableCellSymbolFields.TableRef]; - set => this.Set((int)WixCustomTableCellSymbolFields.TableRef, value); - } - - public string ColumnRef - { - get => (string)this.Fields[(int)WixCustomTableCellSymbolFields.ColumnRef]; - set => this.Set((int)WixCustomTableCellSymbolFields.ColumnRef, value); - } - - public string RowId - { - get => (string)this.Fields[(int)WixCustomTableCellSymbolFields.RowId]; - set => this.Set((int)WixCustomTableCellSymbolFields.RowId, value); - } - - public string Data - { - get => (string)this.Fields[(int)WixCustomTableCellSymbolFields.Data]; - set => this.Set((int)WixCustomTableCellSymbolFields.Data, value); - } - } -} diff --git a/src/WixToolset.Data/Tuples/WixCustomTableColumnTuple.cs b/src/WixToolset.Data/Tuples/WixCustomTableColumnTuple.cs deleted file mode 100644 index 9ae2a904..00000000 --- a/src/WixToolset.Data/Tuples/WixCustomTableColumnTuple.cs +++ /dev/null @@ -1,203 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixCustomTableColumn = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixCustomTableColumn, - new[] - { - new IntermediateFieldDefinition(nameof(WixCustomTableColumnSymbolFields.TableRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixCustomTableColumnSymbolFields.Name), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixCustomTableColumnSymbolFields.Type), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixCustomTableColumnSymbolFields.Attributes), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(WixCustomTableColumnSymbolFields.Width), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(WixCustomTableColumnSymbolFields.MinValue), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixCustomTableColumnSymbolFields.MaxValue), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixCustomTableColumnSymbolFields.KeyTable), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixCustomTableColumnSymbolFields.KeyColumn), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixCustomTableColumnSymbolFields.Category), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixCustomTableColumnSymbolFields.Set), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixCustomTableColumnSymbolFields.Description), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixCustomTableColumnSymbolFields.Modularize), IntermediateFieldType.Number) - }, - typeof(WixCustomTableColumnSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - using System; - - public enum WixCustomTableColumnSymbolFields - { - TableRef, - Name, - Type, - Attributes, - Width, - MinValue, - MaxValue, - KeyTable, - KeyColumn, - Category, - Set, - Description, - Modularize, - } - - [Flags] - public enum WixCustomTableColumnSymbolAttributes - { - None = 0x0, - PrimaryKey = 0x1, - Localizable = 0x2, - Nullable = 0x4, - Unreal = 0x8, - } - - public enum WixCustomTableColumnCategoryType - { - Text, - UpperCase, - LowerCase, - Integer, - DoubleInteger, - TimeDate, - Identifier, - Property, - Filename, - WildCardFilename, - Path, - Paths, - AnyPath, - DefaultDir, - RegPath, - Formatted, - FormattedSddl, - Template, - Condition, - Guid, - Version, - Language, - Binary, - CustomSource, - Cabinet, - Shortcut, - } - - public enum WixCustomTableColumnModularizeType - { - None, - Column, - CompanionFile, - Condition, - ControlEventArgument, - ControlText, - Icon, - Property, - SemicolonDelimited, - } - - public class WixCustomTableColumnSymbol : IntermediateSymbol - { - public WixCustomTableColumnSymbol() : base(SymbolDefinitions.WixCustomTableColumn, null, null) - { - } - - public WixCustomTableColumnSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixCustomTableColumn, sourceLineNumber, id) - { - } - - public IntermediateField this[WixCustomTableColumnSymbolFields index] => this.Fields[(int)index]; - - public string TableRef - { - get => (string)this.Fields[(int)WixCustomTableColumnSymbolFields.TableRef]; - set => this.Set((int)WixCustomTableColumnSymbolFields.TableRef, value); - } - - public string Name - { - get => (string)this.Fields[(int)WixCustomTableColumnSymbolFields.Name]; - set => this.Set((int)WixCustomTableColumnSymbolFields.Name, value); - } - - public IntermediateFieldType Type - { - get => (IntermediateFieldType)this.Fields[(int)WixCustomTableColumnSymbolFields.Type].AsNumber(); - set => this.Set((int)WixCustomTableColumnSymbolFields.Type, (int)value); - } - - public WixCustomTableColumnSymbolAttributes Attributes - { - get => (WixCustomTableColumnSymbolAttributes)this.Fields[(int)WixCustomTableColumnSymbolFields.Attributes].AsNumber(); - set => this.Set((int)WixCustomTableColumnSymbolFields.Attributes, (int)value); - } - - public int Width - { - get => (int)this.Fields[(int)WixCustomTableColumnSymbolFields.Width]; - set => this.Set((int)WixCustomTableColumnSymbolFields.Width, value); - } - - public long? MinValue - { - get => (long?)this.Fields[(int)WixCustomTableColumnSymbolFields.MinValue]; - set => this.Set((int)WixCustomTableColumnSymbolFields.MinValue, value); - } - - public long? MaxValue - { - get => (long?)this.Fields[(int)WixCustomTableColumnSymbolFields.MaxValue]; - set => this.Set((int)WixCustomTableColumnSymbolFields.MaxValue, value); - } - - public string KeyTable - { - get => (string)this.Fields[(int)WixCustomTableColumnSymbolFields.KeyTable]; - set => this.Set((int)WixCustomTableColumnSymbolFields.KeyTable, value); - } - - public int? KeyColumn - { - get => (int?)this.Fields[(int)WixCustomTableColumnSymbolFields.KeyColumn]; - set => this.Set((int)WixCustomTableColumnSymbolFields.KeyColumn, value); - } - - public WixCustomTableColumnCategoryType? Category - { - get => (WixCustomTableColumnCategoryType?)this.Fields[(int)WixCustomTableColumnSymbolFields.Category].AsNullableNumber(); - set => this.Set((int)WixCustomTableColumnSymbolFields.Category, (int?)value); - } - - public string Set - { - get => (string)this.Fields[(int)WixCustomTableColumnSymbolFields.Set]; - set => this.Set((int)WixCustomTableColumnSymbolFields.Set, value); - } - - public string Description - { - get => (string)this.Fields[(int)WixCustomTableColumnSymbolFields.Description]; - set => this.Set((int)WixCustomTableColumnSymbolFields.Description, value); - } - - public WixCustomTableColumnModularizeType? Modularize - { - get => (WixCustomTableColumnModularizeType?)this.Fields[(int)WixCustomTableColumnSymbolFields.Modularize].AsNullableNumber(); - set => this.Set((int)WixCustomTableColumnSymbolFields.Modularize, (int?)value); - } - - public bool PrimaryKey => (this.Attributes & WixCustomTableColumnSymbolAttributes.PrimaryKey) == WixCustomTableColumnSymbolAttributes.PrimaryKey; - - public bool Localizable => (this.Attributes & WixCustomTableColumnSymbolAttributes.Localizable) == WixCustomTableColumnSymbolAttributes.Localizable; - - public bool Nullable => (this.Attributes & WixCustomTableColumnSymbolAttributes.Nullable) == WixCustomTableColumnSymbolAttributes.Nullable; - - public bool Unreal => (this.Attributes & WixCustomTableColumnSymbolAttributes.Unreal) == WixCustomTableColumnSymbolAttributes.Unreal; - } -} diff --git a/src/WixToolset.Data/Tuples/WixCustomTableTuple.cs b/src/WixToolset.Data/Tuples/WixCustomTableTuple.cs deleted file mode 100644 index af731443..00000000 --- a/src/WixToolset.Data/Tuples/WixCustomTableTuple.cs +++ /dev/null @@ -1,56 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixCustomTable = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixCustomTable, - new[] - { - new IntermediateFieldDefinition(nameof(WixCustomTableSymbolFields.ColumnNames), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixCustomTableSymbolFields.Unreal), IntermediateFieldType.Bool), - }, - typeof(WixCustomTableSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum WixCustomTableSymbolFields - { - ColumnNames, - Unreal, - } - - public class WixCustomTableSymbol : IntermediateSymbol - { - public const char ColumnNamesSeparator = '\x85'; - - public WixCustomTableSymbol() : base(SymbolDefinitions.WixCustomTable, null, null) - { - } - - public WixCustomTableSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixCustomTable, sourceLineNumber, id) - { - } - - public IntermediateField this[WixCustomTableSymbolFields index] => this.Fields[(int)index]; - - public string ColumnNames - { - get => (string)this.Fields[(int)WixCustomTableSymbolFields.ColumnNames]; - set => this.Set((int)WixCustomTableSymbolFields.ColumnNames, value); - } - - public bool Unreal - { - get => (bool)this.Fields[(int)WixCustomTableSymbolFields.Unreal]; - set => this.Set((int)WixCustomTableSymbolFields.Unreal, value); - } - - public string[] ColumnNamesSeparated => this.ColumnNames.Split(ColumnNamesSeparator); - } -} diff --git a/src/WixToolset.Data/Tuples/WixDeltaPatchFileTuple.cs b/src/WixToolset.Data/Tuples/WixDeltaPatchFileTuple.cs deleted file mode 100644 index 77203b03..00000000 --- a/src/WixToolset.Data/Tuples/WixDeltaPatchFileTuple.cs +++ /dev/null @@ -1,84 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixDeltaPatchFile = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixDeltaPatchFile, - new[] - { - new IntermediateFieldDefinition(nameof(WixDeltaPatchFileSymbolFields.FileRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixDeltaPatchFileSymbolFields.RetainLengths), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixDeltaPatchFileSymbolFields.IgnoreOffsets), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixDeltaPatchFileSymbolFields.IgnoreLengths), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixDeltaPatchFileSymbolFields.RetainOffsets), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixDeltaPatchFileSymbolFields.SymbolPaths), IntermediateFieldType.String), - }, - typeof(WixDeltaPatchFileSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum WixDeltaPatchFileSymbolFields - { - FileRef, - RetainLengths, - IgnoreOffsets, - IgnoreLengths, - RetainOffsets, - SymbolPaths, - } - - public class WixDeltaPatchFileSymbol : IntermediateSymbol - { - public WixDeltaPatchFileSymbol() : base(SymbolDefinitions.WixDeltaPatchFile, null, null) - { - } - - public WixDeltaPatchFileSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixDeltaPatchFile, sourceLineNumber, id) - { - } - - public IntermediateField this[WixDeltaPatchFileSymbolFields index] => this.Fields[(int)index]; - - public string FileRef - { - get => (string)this.Fields[(int)WixDeltaPatchFileSymbolFields.FileRef]; - set => this.Set((int)WixDeltaPatchFileSymbolFields.FileRef, value); - } - - public string RetainLengths - { - get => (string)this.Fields[(int)WixDeltaPatchFileSymbolFields.RetainLengths]; - set => this.Set((int)WixDeltaPatchFileSymbolFields.RetainLengths, value); - } - - public string IgnoreOffsets - { - get => (string)this.Fields[(int)WixDeltaPatchFileSymbolFields.IgnoreOffsets]; - set => this.Set((int)WixDeltaPatchFileSymbolFields.IgnoreOffsets, value); - } - - public string IgnoreLengths - { - get => (string)this.Fields[(int)WixDeltaPatchFileSymbolFields.IgnoreLengths]; - set => this.Set((int)WixDeltaPatchFileSymbolFields.IgnoreLengths, value); - } - - public string RetainOffsets - { - get => (string)this.Fields[(int)WixDeltaPatchFileSymbolFields.RetainOffsets]; - set => this.Set((int)WixDeltaPatchFileSymbolFields.RetainOffsets, value); - } - - public string SymbolPaths - { - get => (string)this.Fields[(int)WixDeltaPatchFileSymbolFields.SymbolPaths]; - set => this.Set((int)WixDeltaPatchFileSymbolFields.SymbolPaths, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/WixDeltaPatchSymbolPathsTuple.cs b/src/WixToolset.Data/Tuples/WixDeltaPatchSymbolPathsTuple.cs deleted file mode 100644 index 6e50d07f..00000000 --- a/src/WixToolset.Data/Tuples/WixDeltaPatchSymbolPathsTuple.cs +++ /dev/null @@ -1,75 +0,0 @@ -// 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. - -using System; - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixDeltaPatchSymbolPaths = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixDeltaPatchSymbolPaths, - new[] - { - new IntermediateFieldDefinition(nameof(WixDeltaPatchSymbolPathsSymbolFields.SymbolType), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(WixDeltaPatchSymbolPathsSymbolFields.SymbolId), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixDeltaPatchSymbolPathsSymbolFields.SymbolPaths), IntermediateFieldType.String), - }, - typeof(WixDeltaPatchSymbolPathsSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum WixDeltaPatchSymbolPathsSymbolFields - { - SymbolType, - SymbolId, - SymbolPaths, - } - - /// - /// The types that the WixDeltaPatchSymbolPaths table can hold. - /// - /// The order of these values is important since WixDeltaPatchSymbolPaths are sorted by this type. - public enum SymbolPathType - { - File, - Component, - Directory, - Media, - Product - }; - - public class WixDeltaPatchSymbolPathsSymbol : IntermediateSymbol - { - public WixDeltaPatchSymbolPathsSymbol() : base(SymbolDefinitions.WixDeltaPatchSymbolPaths, null, null) - { - } - - public WixDeltaPatchSymbolPathsSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixDeltaPatchSymbolPaths, sourceLineNumber, id) - { - } - - public IntermediateField this[WixDeltaPatchSymbolPathsSymbolFields index] => this.Fields[(int)index]; - - public SymbolPathType SymbolType - { - get => (SymbolPathType)this.Fields[(int)WixDeltaPatchSymbolPathsSymbolFields.SymbolType].AsNumber(); - set => this.Set((int)WixDeltaPatchSymbolPathsSymbolFields.SymbolType, (int)value); - } - - public string SymbolId - { - get => (string)this.Fields[(int)WixDeltaPatchSymbolPathsSymbolFields.SymbolId]; - set => this.Set((int)WixDeltaPatchSymbolPathsSymbolFields.SymbolId, value); - } - - public string SymbolPaths - { - get => (string)this.Fields[(int)WixDeltaPatchSymbolPathsSymbolFields.SymbolPaths]; - set => this.Set((int)WixDeltaPatchSymbolPathsSymbolFields.SymbolPaths, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/WixDependencyProviderTuple.cs b/src/WixToolset.Data/Tuples/WixDependencyProviderTuple.cs deleted file mode 100644 index 3ede1097..00000000 --- a/src/WixToolset.Data/Tuples/WixDependencyProviderTuple.cs +++ /dev/null @@ -1,87 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixDependencyProvider = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixDependencyProvider.ToString(), - new[] - { - new IntermediateFieldDefinition(nameof(WixDependencyProviderSymbolFields.ComponentRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixDependencyProviderSymbolFields.ProviderKey), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixDependencyProviderSymbolFields.Version), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixDependencyProviderSymbolFields.DisplayName), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixDependencyProviderSymbolFields.Attributes), IntermediateFieldType.Number), - }, - typeof(WixDependencyProviderSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - using System; - using WixToolset.Data; - - public enum WixDependencyProviderSymbolFields - { - ComponentRef, - ProviderKey, - Version, - DisplayName, - Attributes, - } - - [Flags] - public enum WixDependencyProviderAttributes - { - ProvidesAttributesBundle = 0x10000 - } - - public class WixDependencyProviderSymbol : IntermediateSymbol - { - public WixDependencyProviderSymbol() : base(SymbolDefinitions.WixDependencyProvider, null, null) - { - } - - public WixDependencyProviderSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixDependencyProvider, sourceLineNumber, id) - { - } - - public IntermediateField this[WixDependencyProviderSymbolFields index] => this.Fields[(int)index]; - - public string ComponentRef - { - get => this.Fields[(int)WixDependencyProviderSymbolFields.ComponentRef].AsString(); - set => this.Set((int)WixDependencyProviderSymbolFields.ComponentRef, value); - } - - public string ProviderKey - { - get => this.Fields[(int)WixDependencyProviderSymbolFields.ProviderKey].AsString(); - set => this.Set((int)WixDependencyProviderSymbolFields.ProviderKey, value); - } - - public string Version - { - get => this.Fields[(int)WixDependencyProviderSymbolFields.Version].AsString(); - set => this.Set((int)WixDependencyProviderSymbolFields.Version, value); - } - - public string DisplayName - { - get => this.Fields[(int)WixDependencyProviderSymbolFields.DisplayName].AsString(); - set => this.Set((int)WixDependencyProviderSymbolFields.DisplayName, value); - } - - public WixDependencyProviderAttributes Attributes - { - get => (WixDependencyProviderAttributes)(int)this.Fields[(int)WixDependencyProviderSymbolFields.Attributes]; - set => this.Set((int)WixDependencyProviderSymbolFields.Attributes, (int)value); - } - - public bool Bundle => (this.Attributes & WixDependencyProviderAttributes.ProvidesAttributesBundle) == WixDependencyProviderAttributes.ProvidesAttributesBundle; - } -} diff --git a/src/WixToolset.Data/Tuples/WixEnsureTableTuple.cs b/src/WixToolset.Data/Tuples/WixEnsureTableTuple.cs deleted file mode 100644 index d13063b7..00000000 --- a/src/WixToolset.Data/Tuples/WixEnsureTableTuple.cs +++ /dev/null @@ -1,44 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixEnsureTable = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixEnsureTable, - new[] - { - new IntermediateFieldDefinition(nameof(WixEnsureTableSymbolFields.Table), IntermediateFieldType.String), - }, - typeof(WixEnsureTableSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum WixEnsureTableSymbolFields - { - Table, - } - - public class WixEnsureTableSymbol : IntermediateSymbol - { - public WixEnsureTableSymbol() : base(SymbolDefinitions.WixEnsureTable, null, null) - { - } - - public WixEnsureTableSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixEnsureTable, sourceLineNumber, id) - { - } - - public IntermediateField this[WixEnsureTableSymbolFields index] => this.Fields[(int)index]; - - public string Table - { - get => (string)this.Fields[(int)WixEnsureTableSymbolFields.Table]; - set => this.Set((int)WixEnsureTableSymbolFields.Table, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/WixFeatureGroupTuple.cs b/src/WixToolset.Data/Tuples/WixFeatureGroupTuple.cs deleted file mode 100644 index ac002bb6..00000000 --- a/src/WixToolset.Data/Tuples/WixFeatureGroupTuple.cs +++ /dev/null @@ -1,36 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixFeatureGroup = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixFeatureGroup, - new IntermediateFieldDefinition[] - { - }, - typeof(WixFeatureGroupSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum WixFeatureGroupSymbolFields - { - } - - public class WixFeatureGroupSymbol : IntermediateSymbol - { - public WixFeatureGroupSymbol() : base(SymbolDefinitions.WixFeatureGroup, null, null) - { - } - - public WixFeatureGroupSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixFeatureGroup, sourceLineNumber, id) - { - } - - public IntermediateField this[WixFeatureGroupSymbolFields index] => this.Fields[(int)index]; - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/WixFeatureModulesTuple.cs b/src/WixToolset.Data/Tuples/WixFeatureModulesTuple.cs deleted file mode 100644 index b8b3d4b9..00000000 --- a/src/WixToolset.Data/Tuples/WixFeatureModulesTuple.cs +++ /dev/null @@ -1,52 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixFeatureModules = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixFeatureModules, - new[] - { - new IntermediateFieldDefinition(nameof(WixFeatureModulesSymbolFields.FeatureRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixFeatureModulesSymbolFields.WixMergeRef), IntermediateFieldType.String), - }, - typeof(WixFeatureModulesSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum WixFeatureModulesSymbolFields - { - FeatureRef, - WixMergeRef, - } - - public class WixFeatureModulesSymbol : IntermediateSymbol - { - public WixFeatureModulesSymbol() : base(SymbolDefinitions.WixFeatureModules, null, null) - { - } - - public WixFeatureModulesSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixFeatureModules, sourceLineNumber, id) - { - } - - public IntermediateField this[WixFeatureModulesSymbolFields index] => this.Fields[(int)index]; - - public string FeatureRef - { - get => (string)this.Fields[(int)WixFeatureModulesSymbolFields.FeatureRef]; - set => this.Set((int)WixFeatureModulesSymbolFields.FeatureRef, value); - } - - public string WixMergeRef - { - get => (string)this.Fields[(int)WixFeatureModulesSymbolFields.WixMergeRef]; - set => this.Set((int)WixFeatureModulesSymbolFields.WixMergeRef, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/WixFileSearchTuple.cs b/src/WixToolset.Data/Tuples/WixFileSearchTuple.cs deleted file mode 100644 index 027605c7..00000000 --- a/src/WixToolset.Data/Tuples/WixFileSearchTuple.cs +++ /dev/null @@ -1,125 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixFileSearch = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixFileSearch, - new[] - { - new IntermediateFieldDefinition(nameof(WixFileSearchSymbolFields.Path), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixFileSearchSymbolFields.MinVersion), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixFileSearchSymbolFields.MaxVersion), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixFileSearchSymbolFields.MinSize), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(WixFileSearchSymbolFields.MaxSize), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(WixFileSearchSymbolFields.MinDate), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(WixFileSearchSymbolFields.MaxDate), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(WixFileSearchSymbolFields.Languages), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixFileSearchSymbolFields.Attributes), IntermediateFieldType.Number), - }, - typeof(WixFileSearchSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - using System; - - public enum WixFileSearchSymbolFields - { - Path, - MinVersion, - MaxVersion, - MinSize, - MaxSize, - MinDate, - MaxDate, - Languages, - Attributes, - } - - [Flags] - public enum WixFileSearchAttributes - { - Default = 0x001, - MinVersionInclusive = 0x002, - MaxVersionInclusive = 0x004, - MinSizeInclusive = 0x008, - MaxSizeInclusive = 0x010, - MinDateInclusive = 0x020, - MaxDateInclusive = 0x040, - WantVersion = 0x080, - WantExists = 0x100, - IsDirectory = 0x200, - } - - public class WixFileSearchSymbol : IntermediateSymbol - { - public WixFileSearchSymbol() : base(SymbolDefinitions.WixFileSearch, null, null) - { - } - - public WixFileSearchSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixFileSearch, sourceLineNumber, id) - { - } - - public IntermediateField this[WixFileSearchSymbolFields index] => this.Fields[(int)index]; - - public string Path - { - get => (string)this.Fields[(int)WixFileSearchSymbolFields.Path]; - set => this.Set((int)WixFileSearchSymbolFields.Path, value); - } - - public string MinVersion - { - get => (string)this.Fields[(int)WixFileSearchSymbolFields.MinVersion]; - set => this.Set((int)WixFileSearchSymbolFields.MinVersion, value); - } - - public string MaxVersion - { - get => (string)this.Fields[(int)WixFileSearchSymbolFields.MaxVersion]; - set => this.Set((int)WixFileSearchSymbolFields.MaxVersion, value); - } - - public int? MinSize - { - get => (int?)this.Fields[(int)WixFileSearchSymbolFields.MinSize]; - set => this.Set((int)WixFileSearchSymbolFields.MinSize, value); - } - - public int? MaxSize - { - get => (int?)this.Fields[(int)WixFileSearchSymbolFields.MaxSize]; - set => this.Set((int)WixFileSearchSymbolFields.MaxSize, value); - } - - public int? MinDate - { - get => (int?)this.Fields[(int)WixFileSearchSymbolFields.MinDate]; - set => this.Set((int)WixFileSearchSymbolFields.MinDate, value); - } - - public int? MaxDate - { - get => (int?)this.Fields[(int)WixFileSearchSymbolFields.MaxDate]; - set => this.Set((int)WixFileSearchSymbolFields.MaxDate, value); - } - - public string Languages - { - get => (string)this.Fields[(int)WixFileSearchSymbolFields.Languages]; - set => this.Set((int)WixFileSearchSymbolFields.Languages, value); - } - - public WixFileSearchAttributes Attributes - { - get => (WixFileSearchAttributes)this.Fields[(int)WixFileSearchSymbolFields.Attributes].AsNumber(); - set => this.Set((int)WixFileSearchSymbolFields.Attributes, (int)value); - } - } -} diff --git a/src/WixToolset.Data/Tuples/WixFragmentTuple.cs b/src/WixToolset.Data/Tuples/WixFragmentTuple.cs deleted file mode 100644 index 9c31b79c..00000000 --- a/src/WixToolset.Data/Tuples/WixFragmentTuple.cs +++ /dev/null @@ -1,36 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixFragment = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixFragment, - new IntermediateFieldDefinition[] - { - }, - typeof(WixFragmentSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum WixFragmentSymbolFields - { - } - - public class WixFragmentSymbol : IntermediateSymbol - { - public WixFragmentSymbol() : base(SymbolDefinitions.WixFragment, null, null) - { - } - - public WixFragmentSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixFragment, sourceLineNumber, id) - { - } - - public IntermediateField this[WixFragmentSymbolFields index] => this.Fields[(int)index]; - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/WixGroupTuple.cs b/src/WixToolset.Data/Tuples/WixGroupTuple.cs deleted file mode 100644 index b9720890..00000000 --- a/src/WixToolset.Data/Tuples/WixGroupTuple.cs +++ /dev/null @@ -1,70 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixGroup = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixGroup, - new[] - { - new IntermediateFieldDefinition(nameof(WixGroupSymbolFields.ParentId), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixGroupSymbolFields.ParentType), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixGroupSymbolFields.ChildId), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixGroupSymbolFields.ChildType), IntermediateFieldType.String), - }, - typeof(WixGroupSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - using System; - - public enum WixGroupSymbolFields - { - ParentId, - ParentType, - ChildId, - ChildType, - } - - public class WixGroupSymbol : IntermediateSymbol - { - public WixGroupSymbol() : base(SymbolDefinitions.WixGroup, null, null) - { - } - - public WixGroupSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixGroup, sourceLineNumber, id) - { - } - - public IntermediateField this[WixGroupSymbolFields index] => this.Fields[(int)index]; - - public string ParentId - { - get => (string)this.Fields[(int)WixGroupSymbolFields.ParentId]; - set => this.Set((int)WixGroupSymbolFields.ParentId, value); - } - - public ComplexReferenceParentType ParentType - { - get => (ComplexReferenceParentType)Enum.Parse(typeof(ComplexReferenceParentType), (string)this.Fields[(int)WixGroupSymbolFields.ParentType], true); - set => this.Set((int)WixGroupSymbolFields.ParentType, value.ToString()); - } - - public string ChildId - { - get => (string)this.Fields[(int)WixGroupSymbolFields.ChildId]; - set => this.Set((int)WixGroupSymbolFields.ChildId, value); - } - - public ComplexReferenceChildType ChildType - { - get => (ComplexReferenceChildType)Enum.Parse(typeof(ComplexReferenceChildType), (string)this.Fields[(int)WixGroupSymbolFields.ChildType], true); - set => this.Set((int)WixGroupSymbolFields.ChildType, value.ToString()); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/WixInstanceComponentTuple.cs b/src/WixToolset.Data/Tuples/WixInstanceComponentTuple.cs deleted file mode 100644 index c9e4470c..00000000 --- a/src/WixToolset.Data/Tuples/WixInstanceComponentTuple.cs +++ /dev/null @@ -1,44 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixInstanceComponent = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixInstanceComponent, - new[] - { - new IntermediateFieldDefinition(nameof(WixInstanceComponentSymbolFields.ComponentRef), IntermediateFieldType.String), - }, - typeof(WixInstanceComponentSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum WixInstanceComponentSymbolFields - { - ComponentRef, - } - - public class WixInstanceComponentSymbol : IntermediateSymbol - { - public WixInstanceComponentSymbol() : base(SymbolDefinitions.WixInstanceComponent, null, null) - { - } - - public WixInstanceComponentSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixInstanceComponent, sourceLineNumber, id) - { - } - - public IntermediateField this[WixInstanceComponentSymbolFields index] => this.Fields[(int)index]; - - public string ComponentRef - { - get => (string)this.Fields[(int)WixInstanceComponentSymbolFields.ComponentRef]; - set => this.Set((int)WixInstanceComponentSymbolFields.ComponentRef, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/WixInstanceTransformsTuple.cs b/src/WixToolset.Data/Tuples/WixInstanceTransformsTuple.cs deleted file mode 100644 index 3a58cb31..00000000 --- a/src/WixToolset.Data/Tuples/WixInstanceTransformsTuple.cs +++ /dev/null @@ -1,68 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixInstanceTransforms = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixInstanceTransforms, - new[] - { - new IntermediateFieldDefinition(nameof(WixInstanceTransformsSymbolFields.PropertyId), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixInstanceTransformsSymbolFields.ProductCode), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixInstanceTransformsSymbolFields.ProductName), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixInstanceTransformsSymbolFields.UpgradeCode), IntermediateFieldType.String), - }, - typeof(WixInstanceTransformsSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum WixInstanceTransformsSymbolFields - { - PropertyId, - ProductCode, - ProductName, - UpgradeCode, - } - - public class WixInstanceTransformsSymbol : IntermediateSymbol - { - public WixInstanceTransformsSymbol() : base(SymbolDefinitions.WixInstanceTransforms, null, null) - { - } - - public WixInstanceTransformsSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixInstanceTransforms, sourceLineNumber, id) - { - } - - public IntermediateField this[WixInstanceTransformsSymbolFields index] => this.Fields[(int)index]; - - public string PropertyId - { - get => (string)this.Fields[(int)WixInstanceTransformsSymbolFields.PropertyId]; - set => this.Set((int)WixInstanceTransformsSymbolFields.PropertyId, value); - } - - public string ProductCode - { - get => (string)this.Fields[(int)WixInstanceTransformsSymbolFields.ProductCode]; - set => this.Set((int)WixInstanceTransformsSymbolFields.ProductCode, value); - } - - public string ProductName - { - get => (string)this.Fields[(int)WixInstanceTransformsSymbolFields.ProductName]; - set => this.Set((int)WixInstanceTransformsSymbolFields.ProductName, value); - } - - public string UpgradeCode - { - get => (string)this.Fields[(int)WixInstanceTransformsSymbolFields.UpgradeCode]; - set => this.Set((int)WixInstanceTransformsSymbolFields.UpgradeCode, value); - } - } -} diff --git a/src/WixToolset.Data/Tuples/WixMediaTemplateTuple.cs b/src/WixToolset.Data/Tuples/WixMediaTemplateTuple.cs deleted file mode 100644 index 28695b3e..00000000 --- a/src/WixToolset.Data/Tuples/WixMediaTemplateTuple.cs +++ /dev/null @@ -1,86 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixMediaTemplate = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixMediaTemplate, - new[] - { - new IntermediateFieldDefinition(nameof(WixMediaTemplateSymbolFields.CabinetTemplate), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixMediaTemplateSymbolFields.CompressionLevel), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(WixMediaTemplateSymbolFields.DiskPrompt), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixMediaTemplateSymbolFields.VolumeLabel), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixMediaTemplateSymbolFields.MaximumUncompressedMediaSize), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(WixMediaTemplateSymbolFields.MaximumCabinetSizeForLargeFileSplitting), IntermediateFieldType.Number), - }, - typeof(WixMediaTemplateSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - using System; - - public enum WixMediaTemplateSymbolFields - { - CabinetTemplate, - CompressionLevel, - DiskPrompt, - VolumeLabel, - MaximumUncompressedMediaSize, - MaximumCabinetSizeForLargeFileSplitting, - } - - public class WixMediaTemplateSymbol : IntermediateSymbol - { - public WixMediaTemplateSymbol() : base(SymbolDefinitions.WixMediaTemplate, null, null) - { - } - - public WixMediaTemplateSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixMediaTemplate, sourceLineNumber, id) - { - } - - public IntermediateField this[WixMediaTemplateSymbolFields index] => this.Fields[(int)index]; - - public string CabinetTemplate - { - get => (string)this.Fields[(int)WixMediaTemplateSymbolFields.CabinetTemplate]; - set => this.Set((int)WixMediaTemplateSymbolFields.CabinetTemplate, value); - } - - public CompressionLevel? CompressionLevel - { - get => (CompressionLevel?)this.Fields[(int)WixMediaTemplateSymbolFields.CompressionLevel].AsNullableNumber(); - set => this.Set((int)WixMediaTemplateSymbolFields.CompressionLevel, (int?)value); - } - - public string DiskPrompt - { - get => (string)this.Fields[(int)WixMediaTemplateSymbolFields.DiskPrompt]; - set => this.Set((int)WixMediaTemplateSymbolFields.DiskPrompt, value); - } - - public string VolumeLabel - { - get => (string)this.Fields[(int)WixMediaTemplateSymbolFields.VolumeLabel]; - set => this.Set((int)WixMediaTemplateSymbolFields.VolumeLabel, value); - } - - public int? MaximumUncompressedMediaSize - { - get => (int?)this.Fields[(int)WixMediaTemplateSymbolFields.MaximumUncompressedMediaSize]; - set => this.Set((int)WixMediaTemplateSymbolFields.MaximumUncompressedMediaSize, value); - } - - public int? MaximumCabinetSizeForLargeFileSplitting - { - get => (int?)this.Fields[(int)WixMediaTemplateSymbolFields.MaximumCabinetSizeForLargeFileSplitting]; - set => this.Set((int)WixMediaTemplateSymbolFields.MaximumCabinetSizeForLargeFileSplitting, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/WixMergeTuple.cs b/src/WixToolset.Data/Tuples/WixMergeTuple.cs deleted file mode 100644 index d066fa8e..00000000 --- a/src/WixToolset.Data/Tuples/WixMergeTuple.cs +++ /dev/null @@ -1,92 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixMerge = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixMerge, - new[] - { - new IntermediateFieldDefinition(nameof(WixMergeSymbolFields.Language), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(WixMergeSymbolFields.DirectoryRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixMergeSymbolFields.SourceFile), IntermediateFieldType.Path), - new IntermediateFieldDefinition(nameof(WixMergeSymbolFields.DiskId), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(WixMergeSymbolFields.FileAttributes), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(WixMergeSymbolFields.ConfigurationData), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixMergeSymbolFields.FeatureRef), IntermediateFieldType.String), - }, - typeof(WixMergeSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum WixMergeSymbolFields - { - Language, - DirectoryRef, - SourceFile, - DiskId, - FileAttributes, - ConfigurationData, - FeatureRef, - } - - public class WixMergeSymbol : IntermediateSymbol - { - public WixMergeSymbol() : base(SymbolDefinitions.WixMerge, null, null) - { - } - - public WixMergeSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixMerge, sourceLineNumber, id) - { - } - - public IntermediateField this[WixMergeSymbolFields index] => this.Fields[(int)index]; - - public int Language - { - get => (int)this.Fields[(int)WixMergeSymbolFields.Language]; - set => this.Set((int)WixMergeSymbolFields.Language, value); - } - - public string DirectoryRef - { - get => (string)this.Fields[(int)WixMergeSymbolFields.DirectoryRef]; - set => this.Set((int)WixMergeSymbolFields.DirectoryRef, value); - } - - public string SourceFile - { - get => (string)this.Fields[(int)WixMergeSymbolFields.SourceFile]; - set => this.Set((int)WixMergeSymbolFields.SourceFile, value); - } - - public int DiskId - { - get => (int)this.Fields[(int)WixMergeSymbolFields.DiskId]; - set => this.Set((int)WixMergeSymbolFields.DiskId, value); - } - - public FileSymbolAttributes FileAttributes - { - get => (FileSymbolAttributes)this.Fields[(int)WixMergeSymbolFields.FileAttributes].AsNumber(); - set => this.Set((int)WixMergeSymbolFields.FileAttributes, (int)value); - } - - public string ConfigurationData - { - get => (string)this.Fields[(int)WixMergeSymbolFields.ConfigurationData]; - set => this.Set((int)WixMergeSymbolFields.ConfigurationData, value); - } - - public string FeatureRef - { - get => (string)this.Fields[(int)WixMergeSymbolFields.FeatureRef]; - set => this.Set((int)WixMergeSymbolFields.FeatureRef, value); - } - } -} diff --git a/src/WixToolset.Data/Tuples/WixOrderingTuple.cs b/src/WixToolset.Data/Tuples/WixOrderingTuple.cs deleted file mode 100644 index 5e6dc980..00000000 --- a/src/WixToolset.Data/Tuples/WixOrderingTuple.cs +++ /dev/null @@ -1,68 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixOrdering = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixOrdering, - new[] - { - new IntermediateFieldDefinition(nameof(WixOrderingSymbolFields.ItemType), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixOrderingSymbolFields.ItemIdRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixOrderingSymbolFields.DependsOnType), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixOrderingSymbolFields.DependsOnIdRef), IntermediateFieldType.String), - }, - typeof(WixOrderingSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum WixOrderingSymbolFields - { - ItemType, - ItemIdRef, - DependsOnType, - DependsOnIdRef, - } - - public class WixOrderingSymbol : IntermediateSymbol - { - public WixOrderingSymbol() : base(SymbolDefinitions.WixOrdering, null, null) - { - } - - public WixOrderingSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixOrdering, sourceLineNumber, id) - { - } - - public IntermediateField this[WixOrderingSymbolFields index] => this.Fields[(int)index]; - - public ComplexReferenceChildType ItemType - { - get => (ComplexReferenceChildType)this.Fields[(int)WixOrderingSymbolFields.ItemType].AsNumber(); - set => this.Set((int)WixOrderingSymbolFields.ItemType, (int)value); - } - - public string ItemIdRef - { - get => (string)this.Fields[(int)WixOrderingSymbolFields.ItemIdRef]; - set => this.Set((int)WixOrderingSymbolFields.ItemIdRef, value); - } - - public ComplexReferenceChildType DependsOnType - { - get => (ComplexReferenceChildType)this.Fields[(int)WixOrderingSymbolFields.DependsOnType].AsNumber(); - set => this.Set((int)WixOrderingSymbolFields.DependsOnType, (int)value); - } - - public string DependsOnIdRef - { - get => (string)this.Fields[(int)WixOrderingSymbolFields.DependsOnIdRef]; - set => this.Set((int)WixOrderingSymbolFields.DependsOnIdRef, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/WixPatchBaselineTuple.cs b/src/WixToolset.Data/Tuples/WixPatchBaselineTuple.cs deleted file mode 100644 index d7295424..00000000 --- a/src/WixToolset.Data/Tuples/WixPatchBaselineTuple.cs +++ /dev/null @@ -1,76 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixPatchBaseline = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixPatchBaseline, - new[] - { - new IntermediateFieldDefinition(nameof(WixPatchBaselineSymbolFields.DiskId), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(WixPatchBaselineSymbolFields.ValidationFlags), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(WixPatchBaselineSymbolFields.BaselineFile), IntermediateFieldType.Path), - new IntermediateFieldDefinition(nameof(WixPatchBaselineSymbolFields.UpdateFile), IntermediateFieldType.Path), - new IntermediateFieldDefinition(nameof(WixPatchBaselineSymbolFields.TransformFile), IntermediateFieldType.Path), - }, - typeof(WixPatchBaselineSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum WixPatchBaselineSymbolFields - { - DiskId, - ValidationFlags, - BaselineFile, - UpdateFile, - TransformFile, - } - - public class WixPatchBaselineSymbol : IntermediateSymbol - { - public WixPatchBaselineSymbol() : base(SymbolDefinitions.WixPatchBaseline, null, null) - { - } - - public WixPatchBaselineSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixPatchBaseline, sourceLineNumber, id) - { - } - - public IntermediateField this[WixPatchBaselineSymbolFields index] => this.Fields[(int)index]; - - public int DiskId - { - get => (int)this.Fields[(int)WixPatchBaselineSymbolFields.DiskId]; - set => this.Set((int)WixPatchBaselineSymbolFields.DiskId, value); - } - - public TransformFlags ValidationFlags - { - get => (TransformFlags)this.Fields[(int)WixPatchBaselineSymbolFields.ValidationFlags].AsNumber(); - set => this.Set((int)WixPatchBaselineSymbolFields.ValidationFlags, (int)value); - } - - public IntermediateFieldPathValue BaselineFile - { - get => this.Fields[(int)WixPatchBaselineSymbolFields.BaselineFile].AsPath(); - set => this.Set((int)WixPatchBaselineSymbolFields.BaselineFile, value); - } - - public IntermediateFieldPathValue UpdateFile - { - get => this.Fields[(int)WixPatchBaselineSymbolFields.UpdateFile].AsPath(); - set => this.Set((int)WixPatchBaselineSymbolFields.UpdateFile, value); - } - - public IntermediateFieldPathValue TransformFile - { - get => this.Fields[(int)WixPatchBaselineSymbolFields.TransformFile].AsPath(); - set => this.Set((int)WixPatchBaselineSymbolFields.TransformFile, value); - } - } -} diff --git a/src/WixToolset.Data/Tuples/WixPatchFamilyGroupTuple.cs b/src/WixToolset.Data/Tuples/WixPatchFamilyGroupTuple.cs deleted file mode 100644 index 3ab34f1f..00000000 --- a/src/WixToolset.Data/Tuples/WixPatchFamilyGroupTuple.cs +++ /dev/null @@ -1,44 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixPatchFamilyGroup = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixPatchFamilyGroup, - new[] - { - new IntermediateFieldDefinition(nameof(WixPatchFamilyGroupSymbolFields.WixPatchFamilyGroup), IntermediateFieldType.String), - }, - typeof(WixPatchFamilyGroupSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum WixPatchFamilyGroupSymbolFields - { - WixPatchFamilyGroup, - } - - public class WixPatchFamilyGroupSymbol : IntermediateSymbol - { - public WixPatchFamilyGroupSymbol() : base(SymbolDefinitions.WixPatchFamilyGroup, null, null) - { - } - - public WixPatchFamilyGroupSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixPatchFamilyGroup, sourceLineNumber, id) - { - } - - public IntermediateField this[WixPatchFamilyGroupSymbolFields index] => this.Fields[(int)index]; - - public string WixPatchFamilyGroup - { - get => (string)this.Fields[(int)WixPatchFamilyGroupSymbolFields.WixPatchFamilyGroup]; - set => this.Set((int)WixPatchFamilyGroupSymbolFields.WixPatchFamilyGroup, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/WixPatchIdTuple.cs b/src/WixToolset.Data/Tuples/WixPatchIdTuple.cs deleted file mode 100644 index c4f4324d..00000000 --- a/src/WixToolset.Data/Tuples/WixPatchIdTuple.cs +++ /dev/null @@ -1,60 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixPatchId = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixPatchId, - new[] - { - new IntermediateFieldDefinition(nameof(WixPatchIdSymbolFields.ClientPatchId), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixPatchIdSymbolFields.OptimizePatchSizeForLargeFiles), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(WixPatchIdSymbolFields.ApiPatchingSymbolFlags), IntermediateFieldType.Number), - }, - typeof(WixPatchIdSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum WixPatchIdSymbolFields - { - ClientPatchId, - OptimizePatchSizeForLargeFiles, - ApiPatchingSymbolFlags, - } - - public class WixPatchIdSymbol : IntermediateSymbol - { - public WixPatchIdSymbol() : base(SymbolDefinitions.WixPatchId, null, null) - { - } - - public WixPatchIdSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixPatchId, sourceLineNumber, id) - { - } - - public IntermediateField this[WixPatchIdSymbolFields index] => this.Fields[(int)index]; - - public string ClientPatchId - { - get => (string)this.Fields[(int)WixPatchIdSymbolFields.ClientPatchId]; - set => this.Set((int)WixPatchIdSymbolFields.ClientPatchId, value); - } - - public bool? OptimizePatchSizeForLargeFiles - { - get => (bool?)this.Fields[(int)WixPatchIdSymbolFields.OptimizePatchSizeForLargeFiles]; - set => this.Set((int)WixPatchIdSymbolFields.OptimizePatchSizeForLargeFiles, value); - } - - public int? ApiPatchingSymbolFlags - { - get => (int?)this.Fields[(int)WixPatchIdSymbolFields.ApiPatchingSymbolFlags]; - set => this.Set((int)WixPatchIdSymbolFields.ApiPatchingSymbolFlags, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/WixPatchRefTuple.cs b/src/WixToolset.Data/Tuples/WixPatchRefTuple.cs deleted file mode 100644 index 66257d84..00000000 --- a/src/WixToolset.Data/Tuples/WixPatchRefTuple.cs +++ /dev/null @@ -1,52 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixPatchRef = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixPatchRef, - new[] - { - new IntermediateFieldDefinition(nameof(WixPatchRefSymbolFields.Table), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixPatchRefSymbolFields.PrimaryKeys), IntermediateFieldType.String), - }, - typeof(WixPatchRefSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum WixPatchRefSymbolFields - { - Table, - PrimaryKeys, - } - - public class WixPatchRefSymbol : IntermediateSymbol - { - public WixPatchRefSymbol() : base(SymbolDefinitions.WixPatchRef, null, null) - { - } - - public WixPatchRefSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixPatchRef, sourceLineNumber, id) - { - } - - public IntermediateField this[WixPatchRefSymbolFields index] => this.Fields[(int)index]; - - public string Table - { - get => (string)this.Fields[(int)WixPatchRefSymbolFields.Table]; - set => this.Set((int)WixPatchRefSymbolFields.Table, value); - } - - public string PrimaryKeys - { - get => (string)this.Fields[(int)WixPatchRefSymbolFields.PrimaryKeys]; - set => this.Set((int)WixPatchRefSymbolFields.PrimaryKeys, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/WixPatchTargetTuple.cs b/src/WixToolset.Data/Tuples/WixPatchTargetTuple.cs deleted file mode 100644 index e8c01c26..00000000 --- a/src/WixToolset.Data/Tuples/WixPatchTargetTuple.cs +++ /dev/null @@ -1,44 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixPatchTarget = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixPatchTarget, - new[] - { - new IntermediateFieldDefinition(nameof(WixPatchTargetSymbolFields.ProductCode), IntermediateFieldType.String), - }, - typeof(WixPatchTargetSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum WixPatchTargetSymbolFields - { - ProductCode, - } - - public class WixPatchTargetSymbol : IntermediateSymbol - { - public WixPatchTargetSymbol() : base(SymbolDefinitions.WixPatchTarget, null, null) - { - } - - public WixPatchTargetSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixPatchTarget, sourceLineNumber, id) - { - } - - public IntermediateField this[WixPatchTargetSymbolFields index] => this.Fields[(int)index]; - - public string ProductCode - { - get => (string)this.Fields[(int)WixPatchTargetSymbolFields.ProductCode]; - set => this.Set((int)WixPatchTargetSymbolFields.ProductCode, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/WixProductSearchTuple.cs b/src/WixToolset.Data/Tuples/WixProductSearchTuple.cs deleted file mode 100644 index f8a17b64..00000000 --- a/src/WixToolset.Data/Tuples/WixProductSearchTuple.cs +++ /dev/null @@ -1,64 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixProductSearch = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixProductSearch, - new[] - { - new IntermediateFieldDefinition(nameof(WixProductSearchSymbolFields.Guid), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixProductSearchSymbolFields.Attributes), IntermediateFieldType.Number), - }, - typeof(WixProductSearchSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - using System; - - public enum WixProductSearchSymbolFields - { - Guid, - Attributes, - } - - [Flags] - public enum WixProductSearchAttributes - { - Version = 0x1, - Language = 0x2, - State = 0x4, - Assignment = 0x8, - UpgradeCode = 0x10, - } - - public class WixProductSearchSymbol : IntermediateSymbol - { - public WixProductSearchSymbol() : base(SymbolDefinitions.WixProductSearch, null, null) - { - } - - public WixProductSearchSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixProductSearch, sourceLineNumber, id) - { - } - - public IntermediateField this[WixProductSearchSymbolFields index] => this.Fields[(int)index]; - - public string Guid - { - get => (string)this.Fields[(int)WixProductSearchSymbolFields.Guid]; - set => this.Set((int)WixProductSearchSymbolFields.Guid, value); - } - - public WixProductSearchAttributes Attributes - { - get => (WixProductSearchAttributes)this.Fields[(int)WixProductSearchSymbolFields.Attributes].AsNumber(); - set => this.Set((int)WixProductSearchSymbolFields.Attributes, (int)value); - } - } -} diff --git a/src/WixToolset.Data/Tuples/WixPropertyTuple.cs b/src/WixToolset.Data/Tuples/WixPropertyTuple.cs deleted file mode 100644 index 17cf59ce..00000000 --- a/src/WixToolset.Data/Tuples/WixPropertyTuple.cs +++ /dev/null @@ -1,68 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixProperty = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixProperty, - new[] - { - new IntermediateFieldDefinition(nameof(WixPropertySymbolFields.PropertyRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixPropertySymbolFields.Admin), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(WixPropertySymbolFields.Hidden), IntermediateFieldType.Bool), - new IntermediateFieldDefinition(nameof(WixPropertySymbolFields.Secure), IntermediateFieldType.Bool), - }, - typeof(WixPropertySymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum WixPropertySymbolFields - { - PropertyRef, - Admin, - Hidden, - Secure, - } - - public class WixPropertySymbol : IntermediateSymbol - { - public WixPropertySymbol() : base(SymbolDefinitions.WixProperty, null, null) - { - } - - public WixPropertySymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixProperty, sourceLineNumber, id) - { - } - - public IntermediateField this[WixPropertySymbolFields index] => this.Fields[(int)index]; - - public string PropertyRef - { - get => (string)this.Fields[(int)WixPropertySymbolFields.PropertyRef]; - set => this.Set((int)WixPropertySymbolFields.PropertyRef, value); - } - - public bool Admin - { - get => (bool)this.Fields[(int)WixPropertySymbolFields.Admin]; - set => this.Set((int)WixPropertySymbolFields.Admin, value); - } - - public bool Hidden - { - get => (bool)this.Fields[(int)WixPropertySymbolFields.Hidden]; - set => this.Set((int)WixPropertySymbolFields.Hidden, value); - } - - public bool Secure - { - get => (bool)this.Fields[(int)WixPropertySymbolFields.Secure]; - set => this.Set((int)WixPropertySymbolFields.Secure, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/WixRegistrySearchTuple.cs b/src/WixToolset.Data/Tuples/WixRegistrySearchTuple.cs deleted file mode 100644 index dffa8410..00000000 --- a/src/WixToolset.Data/Tuples/WixRegistrySearchTuple.cs +++ /dev/null @@ -1,81 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixRegistrySearch = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixRegistrySearch, - new[] - { - new IntermediateFieldDefinition(nameof(WixRegistrySearchSymbolFields.Root), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(WixRegistrySearchSymbolFields.Key), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixRegistrySearchSymbolFields.Value), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixRegistrySearchSymbolFields.Attributes), IntermediateFieldType.Number), - }, - typeof(WixRegistrySearchSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - using System; - - public enum WixRegistrySearchSymbolFields - { - Root, - Key, - Value, - Attributes, - } - - [Flags] - public enum WixRegistrySearchAttributes - { - Raw = 0x01, - Compatible = 0x02, - ExpandEnvironmentVariables = 0x04, - WantValue = 0x08, - WantExists = 0x10, - Win64 = 0x20, - } - - public class WixRegistrySearchSymbol : IntermediateSymbol - { - public WixRegistrySearchSymbol() : base(SymbolDefinitions.WixRegistrySearch, null, null) - { - } - - public WixRegistrySearchSymbol(SourceLineNumber sourceLineNumber , Identifier id = null) : base(SymbolDefinitions.WixRegistrySearch, sourceLineNumber, id) - { - } - - public IntermediateField this[WixRegistrySearchSymbolFields index] => this.Fields[(int)index]; - - public RegistryRootType Root - { - get => (RegistryRootType)this.Fields[(int)WixRegistrySearchSymbolFields.Root].AsNumber(); - set => this.Set((int)WixRegistrySearchSymbolFields.Root, (int)value); - } - - public string Key - { - get => (string)this.Fields[(int)WixRegistrySearchSymbolFields.Key]; - set => this.Set((int)WixRegistrySearchSymbolFields.Key, value); - } - - public string Value - { - get => (string)this.Fields[(int)WixRegistrySearchSymbolFields.Value]; - set => this.Set((int)WixRegistrySearchSymbolFields.Value, value); - } - - public WixRegistrySearchAttributes Attributes - { - get => (WixRegistrySearchAttributes)this.Fields[(int)WixRegistrySearchSymbolFields.Attributes].AsNumber(); - set => this.Set((int)WixRegistrySearchSymbolFields.Attributes, (int)value); - } - } -} diff --git a/src/WixToolset.Data/Tuples/WixRelatedBundleTuple.cs b/src/WixToolset.Data/Tuples/WixRelatedBundleTuple.cs deleted file mode 100644 index dc544e29..00000000 --- a/src/WixToolset.Data/Tuples/WixRelatedBundleTuple.cs +++ /dev/null @@ -1,60 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixRelatedBundle = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixRelatedBundle, - new[] - { - new IntermediateFieldDefinition(nameof(WixRelatedBundleSymbolFields.BundleId), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixRelatedBundleSymbolFields.Action), IntermediateFieldType.Number), - }, - typeof(WixRelatedBundleSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum WixRelatedBundleSymbolFields - { - BundleId, - Action, - } - - public enum RelatedBundleActionType - { - Detect, - Upgrade, - Addon, - Patch - } - - public class WixRelatedBundleSymbol : IntermediateSymbol - { - public WixRelatedBundleSymbol() : base(SymbolDefinitions.WixRelatedBundle, null, null) - { - } - - public WixRelatedBundleSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixRelatedBundle, sourceLineNumber, id) - { - } - - public IntermediateField this[WixRelatedBundleSymbolFields index] => this.Fields[(int)index]; - - public string BundleId - { - get => (string)this.Fields[(int)WixRelatedBundleSymbolFields.BundleId]; - set => this.Set((int)WixRelatedBundleSymbolFields.BundleId, value); - } - - public RelatedBundleActionType Action - { - get => (RelatedBundleActionType)this.Fields[(int)WixRelatedBundleSymbolFields.Action].AsNumber(); - set => this.Set((int)WixRelatedBundleSymbolFields.Action, (int)value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/WixSearchRelationTuple.cs b/src/WixToolset.Data/Tuples/WixSearchRelationTuple.cs deleted file mode 100644 index 6b47833a..00000000 --- a/src/WixToolset.Data/Tuples/WixSearchRelationTuple.cs +++ /dev/null @@ -1,52 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixSearchRelation = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixSearchRelation, - new[] - { - new IntermediateFieldDefinition(nameof(WixSearchRelationSymbolFields.ParentSearchRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixSearchRelationSymbolFields.Attributes), IntermediateFieldType.Number), - }, - typeof(WixSearchRelationSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum WixSearchRelationSymbolFields - { - ParentSearchRef, - Attributes, - } - - public class WixSearchRelationSymbol : IntermediateSymbol - { - public WixSearchRelationSymbol() : base(SymbolDefinitions.WixSearchRelation, null, null) - { - } - - public WixSearchRelationSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixSearchRelation, sourceLineNumber, id) - { - } - - public IntermediateField this[WixSearchRelationSymbolFields index] => this.Fields[(int)index]; - - public string ParentSearchRef - { - get => (string)this.Fields[(int)WixSearchRelationSymbolFields.ParentSearchRef]; - set => this.Set((int)WixSearchRelationSymbolFields.ParentSearchRef, value); - } - - public int Attributes - { - get => (int)this.Fields[(int)WixSearchRelationSymbolFields.Attributes]; - set => this.Set((int)WixSearchRelationSymbolFields.Attributes, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/WixSearchTuple.cs b/src/WixToolset.Data/Tuples/WixSearchTuple.cs deleted file mode 100644 index 2d6a927c..00000000 --- a/src/WixToolset.Data/Tuples/WixSearchTuple.cs +++ /dev/null @@ -1,60 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixSearch = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixSearch, - new[] - { - new IntermediateFieldDefinition(nameof(WixSearchSymbolFields.Variable), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixSearchSymbolFields.Condition), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixSearchSymbolFields.BundleExtensionRef), IntermediateFieldType.String), - }, - typeof(WixSearchSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum WixSearchSymbolFields - { - Variable, - Condition, - BundleExtensionRef, - } - - public class WixSearchSymbol : IntermediateSymbol - { - public WixSearchSymbol() : base(SymbolDefinitions.WixSearch, null, null) - { - } - - public WixSearchSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixSearch, sourceLineNumber, id) - { - } - - public IntermediateField this[WixSearchSymbolFields index] => this.Fields[(int)index]; - - public string Variable - { - get => (string)this.Fields[(int)WixSearchSymbolFields.Variable]; - set => this.Set((int)WixSearchSymbolFields.Variable, value); - } - - public string Condition - { - get => (string)this.Fields[(int)WixSearchSymbolFields.Condition]; - set => this.Set((int)WixSearchSymbolFields.Condition, value); - } - - public string BundleExtensionRef - { - get => (string)this.Fields[(int)WixSearchSymbolFields.BundleExtensionRef]; - set => this.Set((int)WixSearchSymbolFields.BundleExtensionRef, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/WixSetVariableTuple.cs b/src/WixToolset.Data/Tuples/WixSetVariableTuple.cs deleted file mode 100644 index 503c328b..00000000 --- a/src/WixToolset.Data/Tuples/WixSetVariableTuple.cs +++ /dev/null @@ -1,52 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixSetVariable = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixSetVariable, - new[] - { - new IntermediateFieldDefinition(nameof(WixSetVariableSymbolFields.Value), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixSetVariableSymbolFields.Type), IntermediateFieldType.String), - }, - typeof(WixSetVariableSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum WixSetVariableSymbolFields - { - Value, - Type, - } - - public class WixSetVariableSymbol : IntermediateSymbol - { - public WixSetVariableSymbol() : base(SymbolDefinitions.WixSetVariable, null, null) - { - } - - public WixSetVariableSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixSetVariable, sourceLineNumber, id) - { - } - - public IntermediateField this[WixSetVariableSymbolFields index] => this.Fields[(int)index]; - - public string Value - { - get => (string)this.Fields[(int)WixSetVariableSymbolFields.Value]; - set => this.Set((int)WixSetVariableSymbolFields.Value, value); - } - - public string Type - { - get => (string)this.Fields[(int)WixSetVariableSymbolFields.Type]; - set => this.Set((int)WixSetVariableSymbolFields.Type, value); - } - } -} diff --git a/src/WixToolset.Data/Tuples/WixSimpleReferenceTuple.cs b/src/WixToolset.Data/Tuples/WixSimpleReferenceTuple.cs deleted file mode 100644 index 1091b715..00000000 --- a/src/WixToolset.Data/Tuples/WixSimpleReferenceTuple.cs +++ /dev/null @@ -1,62 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixSimpleReference = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixSimpleReference, - new[] - { - new IntermediateFieldDefinition(nameof(WixSimpleReferenceSymbolFields.Table), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixSimpleReferenceSymbolFields.PrimaryKeys), IntermediateFieldType.String), - }, - typeof(WixSimpleReferenceSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - using System; - using System.Diagnostics; - - public enum WixSimpleReferenceSymbolFields - { - Table, - PrimaryKeys, - } - - [DebuggerDisplay("{SymbolicName}")] - public class WixSimpleReferenceSymbol : IntermediateSymbol - { - public WixSimpleReferenceSymbol() : base(SymbolDefinitions.WixSimpleReference, null, null) - { - } - - public WixSimpleReferenceSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixSimpleReference, sourceLineNumber, id) - { - } - - public IntermediateField this[WixSimpleReferenceSymbolFields index] => this.Fields[(int)index]; - - public string Table - { - get => (string)this.Fields[(int)WixSimpleReferenceSymbolFields.Table]; - set => this.Set((int)WixSimpleReferenceSymbolFields.Table, value); - } - - public string PrimaryKeys - { - get => (string)this.Fields[(int)WixSimpleReferenceSymbolFields.PrimaryKeys]; - set => this.Set((int)WixSimpleReferenceSymbolFields.PrimaryKeys, value); - } - - /// - /// Gets the symbolic name. - /// - /// Symbolic name. - public string SymbolicName => String.Concat(this.Table, ":", this.PrimaryKeys); - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/WixSuppressActionTuple.cs b/src/WixToolset.Data/Tuples/WixSuppressActionTuple.cs deleted file mode 100644 index f99246f0..00000000 --- a/src/WixToolset.Data/Tuples/WixSuppressActionTuple.cs +++ /dev/null @@ -1,54 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixSuppressAction = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixSuppressAction, - new[] - { - new IntermediateFieldDefinition(nameof(WixSuppressActionSymbolFields.SequenceTable), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixSuppressActionSymbolFields.Action), IntermediateFieldType.String), - }, - typeof(WixSuppressActionSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - using System; - - public enum WixSuppressActionSymbolFields - { - SequenceTable, - Action, - } - - public class WixSuppressActionSymbol : IntermediateSymbol - { - public WixSuppressActionSymbol() : base(SymbolDefinitions.WixSuppressAction, null, null) - { - } - - public WixSuppressActionSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixSuppressAction, sourceLineNumber, id) - { - } - - public IntermediateField this[WixSuppressActionSymbolFields index] => this.Fields[(int)index]; - - public SequenceTable SequenceTable - { - get => (SequenceTable)Enum.Parse(typeof(SequenceTable), (string)this.Fields[(int)WixSuppressActionSymbolFields.SequenceTable]); - set => this.Set((int)WixSuppressActionSymbolFields.SequenceTable, value.ToString()); - } - - public string Action - { - get => (string)this.Fields[(int)WixSuppressActionSymbolFields.Action]; - set => this.Set((int)WixSuppressActionSymbolFields.Action, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/WixSuppressModularizationTuple.cs b/src/WixToolset.Data/Tuples/WixSuppressModularizationTuple.cs deleted file mode 100644 index 1bdffd5e..00000000 --- a/src/WixToolset.Data/Tuples/WixSuppressModularizationTuple.cs +++ /dev/null @@ -1,36 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixSuppressModularization = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixSuppressModularization, - new IntermediateFieldDefinition[] - { - }, - typeof(WixSuppressModularizationSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum WixSuppressModularizationSymbolFields - { - } - - public class WixSuppressModularizationSymbol : IntermediateSymbol - { - public WixSuppressModularizationSymbol() : base(SymbolDefinitions.WixSuppressModularization, null, null) - { - } - - public WixSuppressModularizationSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixSuppressModularization, sourceLineNumber, id) - { - } - - public IntermediateField this[WixSuppressModularizationSymbolFields index] => this.Fields[(int)index]; - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/WixUITuple.cs b/src/WixToolset.Data/Tuples/WixUITuple.cs deleted file mode 100644 index f1254952..00000000 --- a/src/WixToolset.Data/Tuples/WixUITuple.cs +++ /dev/null @@ -1,36 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixUI = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixUI, - new IntermediateFieldDefinition[] - { - }, - typeof(WixUISymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum WixUISymbolFields - { - } - - public class WixUISymbol : IntermediateSymbol - { - public WixUISymbol() : base(SymbolDefinitions.WixUI, null, null) - { - } - - public WixUISymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixUI, sourceLineNumber, id) - { - } - - public IntermediateField this[WixUISymbolFields index] => this.Fields[(int)index]; - } -} diff --git a/src/WixToolset.Data/Tuples/WixUpdateRegistrationTuple.cs b/src/WixToolset.Data/Tuples/WixUpdateRegistrationTuple.cs deleted file mode 100644 index 1320dfd5..00000000 --- a/src/WixToolset.Data/Tuples/WixUpdateRegistrationTuple.cs +++ /dev/null @@ -1,76 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixUpdateRegistration = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixUpdateRegistration, - new[] - { - new IntermediateFieldDefinition(nameof(WixUpdateRegistrationSymbolFields.Manufacturer), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixUpdateRegistrationSymbolFields.Department), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixUpdateRegistrationSymbolFields.ProductFamily), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixUpdateRegistrationSymbolFields.Name), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixUpdateRegistrationSymbolFields.Classification), IntermediateFieldType.String), - }, - typeof(WixUpdateRegistrationSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum WixUpdateRegistrationSymbolFields - { - Manufacturer, - Department, - ProductFamily, - Name, - Classification, - } - - public class WixUpdateRegistrationSymbol : IntermediateSymbol - { - public WixUpdateRegistrationSymbol() : base(SymbolDefinitions.WixUpdateRegistration, null, null) - { - } - - public WixUpdateRegistrationSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixUpdateRegistration, sourceLineNumber, id) - { - } - - public IntermediateField this[WixUpdateRegistrationSymbolFields index] => this.Fields[(int)index]; - - public string Manufacturer - { - get => (string)this.Fields[(int)WixUpdateRegistrationSymbolFields.Manufacturer]; - set => this.Set((int)WixUpdateRegistrationSymbolFields.Manufacturer, value); - } - - public string Department - { - get => (string)this.Fields[(int)WixUpdateRegistrationSymbolFields.Department]; - set => this.Set((int)WixUpdateRegistrationSymbolFields.Department, value); - } - - public string ProductFamily - { - get => (string)this.Fields[(int)WixUpdateRegistrationSymbolFields.ProductFamily]; - set => this.Set((int)WixUpdateRegistrationSymbolFields.ProductFamily, value); - } - - public string Name - { - get => (string)this.Fields[(int)WixUpdateRegistrationSymbolFields.Name]; - set => this.Set((int)WixUpdateRegistrationSymbolFields.Name, value); - } - - public string Classification - { - get => (string)this.Fields[(int)WixUpdateRegistrationSymbolFields.Classification]; - set => this.Set((int)WixUpdateRegistrationSymbolFields.Classification, value); - } - } -} \ No newline at end of file diff --git a/src/WixToolset.Data/Tuples/WixVariableTuple.cs b/src/WixToolset.Data/Tuples/WixVariableTuple.cs deleted file mode 100644 index 0a56dcbf..00000000 --- a/src/WixToolset.Data/Tuples/WixVariableTuple.cs +++ /dev/null @@ -1,52 +0,0 @@ -// 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. - -namespace WixToolset.Data -{ - using WixToolset.Data.Symbols; - - public static partial class SymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixVariable = new IntermediateSymbolDefinition( - SymbolDefinitionType.WixVariable, - new[] - { - new IntermediateFieldDefinition(nameof(WixVariableSymbolFields.Value), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixVariableSymbolFields.Overridable), IntermediateFieldType.Bool), - }, - typeof(WixVariableSymbol)); - } -} - -namespace WixToolset.Data.Symbols -{ - public enum WixVariableSymbolFields - { - Value, - Overridable, - } - - public class WixVariableSymbol : IntermediateSymbol - { - public WixVariableSymbol() : base(SymbolDefinitions.WixVariable, null, null) - { - } - - public WixVariableSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixVariable, sourceLineNumber, id) - { - } - - public IntermediateField this[WixVariableSymbolFields index] => this.Fields[(int)index]; - - public string Value - { - get => (string)this.Fields[(int)WixVariableSymbolFields.Value]; - set => this.Set((int)WixVariableSymbolFields.Value, value); - } - - public bool Overridable - { - get => (bool)this.Fields[(int)WixVariableSymbolFields.Overridable]; - set => this.Set((int)WixVariableSymbolFields.Overridable, value); - } - } -} diff --git a/src/WixToolset.Data/Tuples/tuples_new.json b/src/WixToolset.Data/Tuples/tuples_new.json deleted file mode 100644 index 9386058c..00000000 --- a/src/WixToolset.Data/Tuples/tuples_new.json +++ /dev/null @@ -1,3604 +0,0 @@ -[ - { - "_Streams": [ - { - "Name": "string" - }, - { - "Data": "path" - } - ] - }, - { - "_SummaryInformation": [ - { - "PropertyId": "number" - }, - { - "Value": "string" - } - ] - }, - { - "_TransformView": [ - { - "Table": "string" - }, - { - "Column": "string" - }, - { - "Row": "string" - }, - { - "Data": "string" - }, - { - "Current": "string" - } - ] - }, - { - "_Validation": [ - { - "Table": "string" - }, - { - "Column": "string" - }, - { - "Nullable": "string" - }, - { - "MinValue": "number" - }, - { - "MaxValue": "number" - }, - { - "KeyTable": "string" - }, - { - "KeyColumn": "number" - }, - { - "Category": "string" - }, - { - "Set": "string" - }, - { - "Description": "string" - } - ] - }, - { - "ActionText": [ - { - "Action": "string" - }, - { - "Description": "string" - }, - { - "Template": "string" - } - ] - }, - { - "AdminExecuteSequence": [ - { - "Action": "string" - }, - { - "Condition": "string" - }, - { - "Sequence": "number" - } - ] - }, - { - "AdminUISequence": [ - { - "Action": "string" - }, - { - "Condition": "string" - }, - { - "Sequence": "number" - } - ] - }, - { - "AdvtExecuteSequence": [ - { - "Action": "string" - }, - { - "Condition": "string" - }, - { - "Sequence": "number" - } - ] - }, - { - "AdvtUISequence": [ - { - "Action": "string" - }, - { - "Condition": "string" - }, - { - "Sequence": "number" - } - ] - }, - { - "AppId": [ - { - "AppId": "string" - }, - { - "RemoteServerName": "string" - }, - { - "LocalService": "string" - }, - { - "ServiceParameters": "string" - }, - { - "DllSurrogate": "string" - }, - { - "ActivateAtStorage": "number" - }, - { - "RunAsInteractiveUser": "number" - } - ] - }, - { - "AppSearch": [ - { - "Property": "string" - }, - { - "Signature_": "string" - } - ] - }, - { - "BBControl": [ - { - "Billboard_": "string" - }, - { - "BBControl": "string" - }, - { - "Type": "string" - }, - { - "X": "number" - }, - { - "Y": "number" - }, - { - "Width": "number" - }, - { - "Height": "number" - }, - { - "Attributes": "number" - }, - { - "Text": "string" - } - ] - }, - { - "Billboard": [ - { - "Billboard": "string" - }, - { - "Feature_": "string" - }, - { - "Action": "string" - }, - { - "Ordering": "number" - } - ] - }, - { - "Binary": [ - { - "Name": "string" - }, - { - "Data": "path" - } - ] - }, - { - "BindImage": [ - { - "File_": "string" - }, - { - "Path": "string" - } - ] - }, - { - "CCPSearch": [ - { - "Signature_": "string" - } - ] - }, - { - "CheckBox": [ - { - "Property": "string" - }, - { - "Value": "string" - } - ] - }, - { - "Class": [ - { - "CLSID": "string" - }, - { - "Context": "string" - }, - { - "Component_": "string" - }, - { - "ProgId_Default": "string" - }, - { - "Description": "string" - }, - { - "AppId_": "string" - }, - { - "FileTypeMask": "string" - }, - { - "Icon_": "string" - }, - { - "IconIndex": "number" - }, - { - "DefInprocHandler": "string" - }, - { - "Argument": "string" - }, - { - "Feature_": "string" - }, - { - "Attributes": "number" - } - ] - }, - { - "ComboBox": [ - { - "Property": "string" - }, - { - "Order": "number" - }, - { - "Value": "string" - }, - { - "Text": "string" - } - ] - }, - { - "CompLocator": [ - { - "Signature_": "string" - }, - { - "ComponentId": "string" - }, - { - "Type": "number" - } - ] - }, - { - "Complus": [ - { - "Component_": "string" - }, - { - "ExpType": "number" - } - ] - }, - { - "Component": [ - { - "Component": "string" - }, - { - "ComponentId": "string" - }, - { - "Directory_": "string" - }, - { - "Attributes": "number" - }, - { - "Condition": "string" - }, - { - "KeyPath": "string" - } - ] - }, - { - "Condition": [ - { - "Feature_": "string" - }, - { - "Level": "number" - }, - { - "Condition": "string" - } - ] - }, - { - "Control": [ - { - "Dialog_": "string" - }, - { - "Control": "string" - }, - { - "Type": "string" - }, - { - "X": "number" - }, - { - "Y": "number" - }, - { - "Width": "number" - }, - { - "Height": "number" - }, - { - "Attributes": "number" - }, - { - "Property": "string" - }, - { - "Text": "string" - }, - { - "Control_Next": "string" - }, - { - "Help": "string" - } - ] - }, - { - "ControlCondition": [ - { - "Dialog_": "string" - }, - { - "Control_": "string" - }, - { - "Action": "string" - }, - { - "Condition": "string" - } - ] - }, - { - "ControlEvent": [ - { - "Dialog_": "string" - }, - { - "Control_": "string" - }, - { - "Event": "string" - }, - { - "Argument": "string" - }, - { - "Condition": "string" - }, - { - "Ordering": "number" - } - ] - }, - { - "CreateFolder": [ - { - "Directory_": "string" - }, - { - "Component_": "string" - } - ] - }, - { - "CustomAction": [ - { - "Action": "string" - }, - { - "Type": "number" - }, - { - "Source": "string" - }, - { - "Target": "string" - }, - { - "ExtendedType": "number" - } - ] - }, - { - "Dialog": [ - { - "Dialog": "string" - }, - { - "HCentering": "number" - }, - { - "VCentering": "number" - }, - { - "Width": "number" - }, - { - "Height": "number" - }, - { - "Attributes": "number" - }, - { - "Title": "string" - }, - { - "Control_First": "string" - }, - { - "Control_Default": "string" - }, - { - "Control_Cancel": "string" - } - ] - }, - { - "Directory": [ - { - "Directory": "string" - }, - { - "Directory_Parent": "string" - }, - { - "DefaultDir": "string" - } - ] - }, - { - "DrLocator": [ - { - "Signature_": "string" - }, - { - "Parent": "string" - }, - { - "Path": "string" - }, - { - "Depth": "number" - } - ] - }, - { - "DuplicateFile": [ - { - "FileKey": "string" - }, - { - "Component_": "string" - }, - { - "File_": "string" - }, - { - "DestName": "string" - }, - { - "DestFolder": "string" - } - ] - }, - { - "Environment": [ - { - "Environment": "string" - }, - { - "Name": "string" - }, - { - "Value": "string" - }, - { - "Component_": "string" - } - ] - }, - { - "Error": [ - { - "Error": "number" - }, - { - "Message": "string" - } - ] - }, - { - "EventMapping": [ - { - "Dialog_": "string" - }, - { - "Control_": "string" - }, - { - "Event": "string" - }, - { - "Attribute": "string" - } - ] - }, - { - "Extension": [ - { - "Extension": "string" - }, - { - "Component_": "string" - }, - { - "ProgId_": "string" - }, - { - "MIME_": "string" - }, - { - "Feature_": "string" - } - ] - }, - { - "ExternalFiles": [ - { - "Family": "string" - }, - { - "FTK": "string" - }, - { - "FilePath": "string" - }, - { - "SymbolPaths": "string" - }, - { - "IgnoreOffsets": "string" - }, - { - "IgnoreLengths": "string" - }, - { - "RetainOffsets": "string" - }, - { - "Order": "number" - } - ] - }, - { - "FamilyFileRanges": [ - { - "Family": "string" - }, - { - "FTK": "string" - }, - { - "RetainOffsets": "string" - }, - { - "RetainLengths": "string" - } - ] - }, - { - "Feature": [ - { - "Feature": "string" - }, - { - "Feature_Parent": "string" - }, - { - "Title": "string" - }, - { - "Description": "string" - }, - { - "Display": "number" - }, - { - "Level": "number" - }, - { - "Directory_": "string" - }, - { - "Attributes": "number" - } - ] - }, - { - "FeatureComponents": [ - { - "Feature_": "string" - }, - { - "Component_": "string" - } - ] - }, - { - "File": [ - { - "File": "string" - }, - { - "Component_": "string" - }, - { - "FileName": "string" - }, - { - "FileSize": "number" - }, - { - "Version": "string" - }, - { - "Language": "string" - }, - { - "Attributes": "number" - }, - { - "Sequence": "number" - } - ] - }, - { - "FileSFPCatalog": [ - { - "File_": "string" - }, - { - "SFPCatalog_": "string" - } - ] - }, - { - "Font": [ - { - "File_": "string" - }, - { - "FontTitle": "string" - } - ] - }, - { - "Icon": [ - { - "Name": "string" - }, - { - "Data": "path" - } - ] - }, - { - "ImageFamilies": [ - { - "Family": "string" - }, - { - "MediaSrcPropName": "string" - }, - { - "MediaDiskId": "number" - }, - { - "FileSequenceStart": "number" - }, - { - "DiskPrompt": "string" - }, - { - "VolumeLabel": "string" - } - ] - }, - { - "IniFile": [ - { - "IniFile": "string" - }, - { - "FileName": "string" - }, - { - "DirProperty": "string" - }, - { - "Section": "string" - }, - { - "Key": "string" - }, - { - "Value": "string" - }, - { - "Action": "number" - }, - { - "Component_": "string" - } - ] - }, - { - "IniLocator": [ - { - "Signature_": "string" - }, - { - "FileName": "string" - }, - { - "Section": "string" - }, - { - "Key": "string" - }, - { - "Field": "number" - }, - { - "Type": "number" - } - ] - }, - { - "InstallExecuteSequence": [ - { - "Action": "string" - }, - { - "Condition": "string" - }, - { - "Sequence": "number" - } - ] - }, - { - "InstallUISequence": [ - { - "Action": "string" - }, - { - "Condition": "string" - }, - { - "Sequence": "number" - } - ] - }, - { - "IsolatedComponent": [ - { - "Component_Shared": "string" - }, - { - "Component_Application": "string" - } - ] - }, - { - "LaunchCondition": [ - { - "Condition": "string" - }, - { - "Description": "string" - } - ] - }, - { - "ListBox": [ - { - "Property": "string" - }, - { - "Order": "number" - }, - { - "Value": "string" - }, - { - "Text": "string" - } - ] - }, - { - "ListView": [ - { - "Property": "string" - }, - { - "Order": "number" - }, - { - "Value": "string" - }, - { - "Text": "string" - }, - { - "Binary_": "string" - } - ] - }, - { - "LockPermissions": [ - { - "LockObject": "string" - }, - { - "Table": "string" - }, - { - "Domain": "string" - }, - { - "User": "string" - }, - { - "Permission": "number" - } - ] - }, - { - "Media": [ - { - "DiskId": "number" - }, - { - "LastSequence": "number" - }, - { - "DiskPrompt": "string" - }, - { - "Cabinet": "string" - }, - { - "VolumeLabel": "string" - }, - { - "Source": "string" - } - ] - }, - { - "MIME": [ - { - "ContentType": "string" - }, - { - "Extension_": "string" - }, - { - "CLSID": "string" - } - ] - }, - { - "ModuleAdminExecuteSequence": [ - { - "Action": "string" - }, - { - "Sequence": "number" - }, - { - "BaseAction": "string" - }, - { - "After": "number" - }, - { - "Condition": "string" - } - ] - }, - { - "ModuleAdminUISequence": [ - { - "Action": "string" - }, - { - "Sequence": "number" - }, - { - "BaseAction": "string" - }, - { - "After": "number" - }, - { - "Condition": "string" - } - ] - }, - { - "ModuleAdvtExecuteSequence": [ - { - "Action": "string" - }, - { - "Sequence": "number" - }, - { - "BaseAction": "string" - }, - { - "After": "number" - }, - { - "Condition": "string" - } - ] - }, - { - "ModuleAdvtUISequence": [ - { - "Action": "string" - }, - { - "Sequence": "number" - }, - { - "BaseAction": "string" - }, - { - "After": "number" - }, - { - "Condition": "string" - } - ] - }, - { - "ModuleComponents": [ - { - "Component": "string" - }, - { - "ModuleID": "string" - }, - { - "Language": "number" - } - ] - }, - { - "ModuleConfiguration": [ - { - "Name": "string" - }, - { - "Format": "number" - }, - { - "Type": "string" - }, - { - "ContextData": "string" - }, - { - "DefaultValue": "string" - }, - { - "Attributes": "number" - }, - { - "DisplayName": "string" - }, - { - "Description": "string" - }, - { - "HelpLocation": "string" - }, - { - "HelpKeyword": "string" - } - ] - }, - { - "ModuleDependency": [ - { - "ModuleID": "string" - }, - { - "ModuleLanguage": "number" - }, - { - "RequiredID": "string" - }, - { - "RequiredLanguage": "number" - }, - { - "RequiredVersion": "string" - } - ] - }, - { - "ModuleExclusion": [ - { - "ModuleID": "string" - }, - { - "ModuleLanguage": "number" - }, - { - "ExcludedID": "string" - }, - { - "ExcludedLanguage": "number" - }, - { - "ExcludedMinVersion": "string" - }, - { - "ExcludedMaxVersion": "string" - } - ] - }, - { - "ModuleIgnoreTable": [ - { - "Table": "string" - } - ] - }, - { - "ModuleInstallExecuteSequence": [ - { - "Action": "string" - }, - { - "Sequence": "number" - }, - { - "BaseAction": "string" - }, - { - "After": "number" - }, - { - "Condition": "string" - } - ] - }, - { - "ModuleInstallUISequence": [ - { - "Action": "string" - }, - { - "Sequence": "number" - }, - { - "BaseAction": "string" - }, - { - "After": "number" - }, - { - "Condition": "string" - } - ] - }, - { - "ModuleSignature": [ - { - "ModuleID": "string" - }, - { - "Language": "number" - }, - { - "Version": "string" - } - ] - }, - { - "ModuleSubstitution": [ - { - "Table": "string" - }, - { - "Row": "string" - }, - { - "Column": "string" - }, - { - "Value": "string" - } - ] - }, - { - "MoveFile": [ - { - "FileKey": "string" - }, - { - "Component_": "string" - }, - { - "SourceName": "string" - }, - { - "DestName": "string" - }, - { - "SourceFolder": "string" - }, - { - "DestFolder": "string" - }, - { - "Options": "number" - } - ] - }, - { - "MsiAssembly": [ - { - "Component_": "string" - }, - { - "Feature_": "string" - }, - { - "File_Manifest": "string" - }, - { - "File_Application": "string" - }, - { - "Attributes": "number" - } - ] - }, - { - "MsiAssemblyName": [ - { - "Component_": "string" - }, - { - "Name": "string" - }, - { - "Value": "string" - } - ] - }, - { - "MsiDigitalCertificate": [ - { - "DigitalCertificate": "string" - }, - { - "CertData": "path" - } - ] - }, - { - "MsiDigitalSignature": [ - { - "Table": "string" - }, - { - "SignObject": "string" - }, - { - "DigitalCertificate_": "string" - }, - { - "Hash": "path" - } - ] - }, - { - "MsiEmbeddedChainer": [ - { - "MsiEmbeddedChainer": "string" - }, - { - "Condition": "string" - }, - { - "CommandLine": "string" - }, - { - "Source": "string" - }, - { - "Type": "number" - } - ] - }, - { - "MsiEmbeddedUI": [ - { - "MsiEmbeddedUI": "string" - }, - { - "FileName": "string" - }, - { - "Attributes": "number" - }, - { - "MessageFilter": "number" - }, - { - "Data": "path" - } - ] - }, - { - "MsiFileHash": [ - { - "File_": "string" - }, - { - "Options": "number" - }, - { - "HashPart1": "number" - }, - { - "HashPart2": "number" - }, - { - "HashPart3": "number" - }, - { - "HashPart4": "number" - } - ] - }, - { - "MsiLockPermissionsEx": [ - { - "MsiLockPermissionsEx": "string" - }, - { - "LockObject": "string" - }, - { - "Table": "string" - }, - { - "SDDLText": "string" - }, - { - "Condition": "string" - } - ] - }, - { - "MsiPackageCertificate": [ - { - "PackageCertificate": "string" - }, - { - "DigitalCertificate_": "string" - } - ] - }, - { - "MsiPatchCertificate": [ - { - "PatchCertificate": "string" - }, - { - "DigitalCertificate_": "string" - } - ] - }, - { - "MsiPatchHeaders": [ - { - "StreamRef": "string" - }, - { - "Header": "path" - } - ] - }, - { - "MsiPatchMetadata": [ - { - "Company": "string" - }, - { - "Property": "string" - }, - { - "Value": "string" - } - ] - }, - { - "MsiPatchOldAssemblyFile": [ - { - "File_": "string" - }, - { - "Assembly_": "string" - } - ] - }, - { - "MsiPatchOldAssemblyName": [ - { - "Assembly": "string" - }, - { - "Name": "string" - }, - { - "Value": "string" - } - ] - }, - { - "MsiPatchSequence": [ - { - "PatchFamily": "string" - }, - { - "ProductCode": "string" - }, - { - "Sequence": "string" - }, - { - "Attributes": "number" - } - ] - }, - { - "MsiServiceConfig": [ - { - "MsiServiceConfig": "string" - }, - { - "Name": "string" - }, - { - "Event": "number" - }, - { - "ConfigType": "number" - }, - { - "Argument": "string" - }, - { - "Component_": "string" - } - ] - }, - { - "MsiServiceConfigFailureActions": [ - { - "MsiServiceConfigFailureActions": "string" - }, - { - "Name": "string" - }, - { - "Event": "number" - }, - { - "ResetPeriod": "number" - }, - { - "RebootMessage": "string" - }, - { - "Command": "string" - }, - { - "Actions": "string" - }, - { - "DelayActions": "string" - }, - { - "Component_": "string" - } - ] - }, - { - "MsiShortcutProperty": [ - { - "MsiShortcutProperty": "string" - }, - { - "Shortcut_": "string" - }, - { - "PropertyKey": "string" - }, - { - "PropVariantValue": "string" - } - ] - }, - { - "ODBCAttribute": [ - { - "Driver_": "string" - }, - { - "Attribute": "string" - }, - { - "Value": "string" - } - ] - }, - { - "ODBCDataSource": [ - { - "DataSource": "string" - }, - { - "Component_": "string" - }, - { - "Description": "string" - }, - { - "DriverDescription": "string" - }, - { - "Registration": "number" - } - ] - }, - { - "ODBCDriver": [ - { - "Driver": "string" - }, - { - "Component_": "string" - }, - { - "Description": "string" - }, - { - "File_": "string" - }, - { - "File_Setup": "string" - } - ] - }, - { - "ODBCSourceAttribute": [ - { - "DataSource_": "string" - }, - { - "Attribute": "string" - }, - { - "Value": "string" - } - ] - }, - { - "ODBCTranslator": [ - { - "Translator": "string" - }, - { - "Component_": "string" - }, - { - "Description": "string" - }, - { - "File_": "string" - }, - { - "File_Setup": "string" - } - ] - }, - { - "Patch": [ - { - "File_": "string" - }, - { - "Sequence": "number" - }, - { - "PatchSize": "number" - }, - { - "Attributes": "number" - }, - { - "Header": "path" - }, - { - "StreamRef_": "string" - } - ] - }, - { - "PatchMetadata": [ - { - "Company": "string" - }, - { - "Property": "string" - }, - { - "Value": "string" - } - ] - }, - { - "PatchPackage": [ - { - "PatchId": "string" - }, - { - "Media_": "number" - } - ] - }, - { - "PatchSequence": [ - { - "PatchFamily": "string" - }, - { - "Target": "string" - }, - { - "Sequence": "string" - }, - { - "Supersede": "number" - } - ] - }, - { - "ProgId": [ - { - "ProgId": "string" - }, - { - "ProgId_Parent": "string" - }, - { - "Class_": "string" - }, - { - "Description": "string" - }, - { - "Icon_": "string" - }, - { - "IconIndex": "number" - } - ] - }, - { - "Properties": [ - { - "Name": "string" - }, - { - "Value": "string" - } - ] - }, - { - "Property": [ - { - "Property": "string" - }, - { - "Value": "string" - } - ] - }, - { - "PublishComponent": [ - { - "ComponentId": "string" - }, - { - "Qualifier": "string" - }, - { - "Component_": "string" - }, - { - "AppData": "string" - }, - { - "Feature_": "string" - } - ] - }, - { - "RadioButton": [ - { - "Property": "string" - }, - { - "Order": "number" - }, - { - "Value": "string" - }, - { - "X": "number" - }, - { - "Y": "number" - }, - { - "Width": "number" - }, - { - "Height": "number" - }, - { - "Text": "string" - }, - { - "Help": "string" - } - ] - }, - { - "Registry": [ - { - "Registry": "string" - }, - { - "Root": "number" - }, - { - "Key": "string" - }, - { - "Name": "string" - }, - { - "Value": "string" - }, - { - "Component_": "string" - } - ] - }, - { - "RegLocator": [ - { - "Signature_": "string" - }, - { - "Root": "number" - }, - { - "Key": "string" - }, - { - "Name": "string" - }, - { - "Type": "number" - } - ] - }, - { - "RemoveFile": [ - { - "FileKey": "string" - }, - { - "Component_": "string" - }, - { - "FileName": "string" - }, - { - "DirProperty": "string" - }, - { - "InstallMode": "number" - } - ] - }, - { - "RemoveIniFile": [ - { - "RemoveIniFile": "string" - }, - { - "FileName": "string" - }, - { - "DirProperty": "string" - }, - { - "Section": "string" - }, - { - "Key": "string" - }, - { - "Value": "string" - }, - { - "Action": "number" - }, - { - "Component_": "string" - } - ] - }, - { - "RemoveRegistry": [ - { - "RemoveRegistry": "string" - }, - { - "Root": "number" - }, - { - "Key": "string" - }, - { - "Name": "string" - }, - { - "Component_": "string" - } - ] - }, - { - "ReserveCost": [ - { - "ReserveKey": "string" - }, - { - "Component_": "string" - }, - { - "ReserveFolder": "string" - }, - { - "ReserveLocal": "number" - }, - { - "ReserveSource": "number" - } - ] - }, - { - "SelfReg": [ - { - "File_": "string" - }, - { - "Cost": "number" - } - ] - }, - { - "ServiceControl": [ - { - "ServiceControl": "string" - }, - { - "Name": "string" - }, - { - "Event": "number" - }, - { - "Arguments": "string" - }, - { - "Wait": "number" - }, - { - "Component_": "string" - } - ] - }, - { - "ServiceInstall": [ - { - "ServiceInstall": "string" - }, - { - "Name": "string" - }, - { - "DisplayName": "string" - }, - { - "ServiceType": "number" - }, - { - "StartType": "number" - }, - { - "ErrorControl": "number" - }, - { - "LoadOrderGroup": "string" - }, - { - "Dependencies": "string" - }, - { - "StartName": "string" - }, - { - "Password": "string" - }, - { - "Arguments": "string" - }, - { - "Component_": "string" - }, - { - "Description": "string" - } - ] - }, - { - "SFPCatalog": [ - { - "SFPCatalog": "string" - }, - { - "Catalog": "path" - }, - { - "Dependency": "string" - } - ] - }, - { - "Shortcut": [ - { - "Shortcut": "string" - }, - { - "Directory_": "string" - }, - { - "Name": "string" - }, - { - "Component_": "string" - }, - { - "Target": "string" - }, - { - "Arguments": "string" - }, - { - "Description": "string" - }, - { - "Hotkey": "number" - }, - { - "Icon_": "string" - }, - { - "IconIndex": "number" - }, - { - "ShowCmd": "number" - }, - { - "WkDir": "string" - }, - { - "DisplayResourceDLL": "string" - }, - { - "DisplayResourceId": "number" - }, - { - "DescriptionResourceDLL": "string" - }, - { - "DescriptionResourceId": "number" - } - ] - }, - { - "Signature": [ - { - "Signature": "string" - }, - { - "FileName": "string" - }, - { - "MinVersion": "string" - }, - { - "MaxVersion": "string" - }, - { - "MinSize": "number" - }, - { - "MaxSize": "number" - }, - { - "MinDate": "number" - }, - { - "MaxDate": "number" - }, - { - "Languages": "string" - } - ] - }, - { - "TargetFiles_OptionalData": [ - { - "Target": "string" - }, - { - "FTK": "string" - }, - { - "SymbolPaths": "string" - }, - { - "IgnoreOffsets": "string" - }, - { - "IgnoreLengths": "string" - }, - { - "RetainOffsets": "string" - } - ] - }, - { - "TargetImages": [ - { - "Target": "string" - }, - { - "MsiPath": "string" - }, - { - "SymbolPaths": "string" - }, - { - "Upgraded": "string" - }, - { - "Order": "number" - }, - { - "ProductValidateFlags": "string" - }, - { - "IgnoreMissingSrcFiles": "number" - } - ] - }, - { - "TextStyle": [ - { - "TextStyle": "string" - }, - { - "FaceName": "string" - }, - { - "Size": "number" - }, - { - "Color": "number" - }, - { - "StyleBits": "number" - } - ] - }, - { - "TypeLib": [ - { - "LibID": "string" - }, - { - "Language": "number" - }, - { - "Component_": "string" - }, - { - "Version": "number" - }, - { - "Description": "string" - }, - { - "Directory_": "string" - }, - { - "Feature_": "string" - }, - { - "Cost": "number" - } - ] - }, - { - "UIText": [ - { - "Key": "string" - }, - { - "Text": "string" - } - ] - }, - { - "Upgrade": [ - { - "UpgradeCode": "string" - }, - { - "VersionMin": "string" - }, - { - "VersionMax": "string" - }, - { - "Language": "string" - }, - { - "Attributes": "number" - }, - { - "Remove": "string" - }, - { - "ActionProperty": "string" - } - ] - }, - { - "UpgradedFiles_OptionalData": [ - { - "Upgraded": "string" - }, - { - "FTK": "string" - }, - { - "SymbolPaths": "string" - }, - { - "AllowIgnoreOnPatchError": "number" - }, - { - "IncludeWholeFile": "number" - } - ] - }, - { - "UpgradedFilesToIgnore": [ - { - "Upgraded": "string" - }, - { - "FTK": "string" - } - ] - }, - { - "UpgradedImages": [ - { - "Upgraded": "string" - }, - { - "MsiPath": "string" - }, - { - "PatchMsiPath": "string" - }, - { - "SymbolPaths": "string" - }, - { - "Family": "string" - } - ] - }, - { - "Verb": [ - { - "Extension_": "string" - }, - { - "Verb": "string" - }, - { - "Sequence": "number" - }, - { - "Command": "string" - }, - { - "Argument": "string" - } - ] - }, - { - "WixAction": [ - { - "SequenceTable": "string" - }, - { - "Action": "string" - }, - { - "Condition": "string" - }, - { - "Sequence": "number" - }, - { - "Before": "string" - }, - { - "After": "string" - }, - { - "Overridable": "number" - } - ] - }, - { - "WixApprovedExeForElevation": [ - { - "Id": "string" - }, - { - "Key": "string" - }, - { - "Value": "string" - }, - { - "Attributes": "number" - } - ] - }, - { - "WixBBControl": [ - { - "Billboard_": "string" - }, - { - "BBControl_": "string" - }, - { - "SourceFile": "path" - } - ] - }, - { - "WixBindUpdatedFiles": [ - { - "File_": "string" - } - ] - }, - { - "WixBootstrapperApplication": [ - { - "Id": "string" - } - ] - }, - { - "WixBuildInfo": [ - { - "WixVersion": "string" - }, - { - "WixOutputFile": "string" - }, - { - "WixProjectFile": "string" - }, - { - "WixPdbFile": "string" - } - ] - }, - { - "WixBundle": [ - { - "Version": "string" - }, - { - "Copyright": "string" - }, - { - "Name": "string" - }, - { - "AboutUrl": "string" - }, - { - "DisableModify": "number" - }, - { - "DisableRemove": "number" - }, - { - "DisableRepair": "number" - }, - { - "HelpTelephone": "string" - }, - { - "HelpUrl": "string" - }, - { - "Manufacturer": "string" - }, - { - "UpdateUrl": "string" - }, - { - "Compressed": "number" - }, - { - "LogPrefixAndExtension": "string" - }, - { - "IconSourceFile": "path" - }, - { - "SplashScreenSourceFile": "path" - }, - { - "Condition": "string" - }, - { - "Tag": "string" - }, - { - "Platform": "string" - }, - { - "ParentName": "string" - }, - { - "UpgradeCode": "string" - }, - { - "BundleId": "string" - }, - { - "ProviderKey": "string" - }, - { - "PerMachine": "number" - } - ] - }, - { - "WixBundleCatalog": [ - { - "WixBundleCatalog": "string" - }, - { - "Payload_": "string" - } - ] - }, - { - "WixBundleContainer": [ - { - "WixBundleContainer": "string" - }, - { - "Name": "string" - }, - { - "Type": "number" - }, - { - "DownloadUrl": "string" - }, - { - "Size": "number" - }, - { - "Hash": "string" - }, - { - "AttachedContainerIndex": "number" - }, - { - "WorkingPath": "string" - } - ] - }, - { - "WixBundleExePackage": [ - { - "WixBundlePackage_": "string" - }, - { - "Attributes": "number" - }, - { - "DetectCondition": "string" - }, - { - "InstallCommand": "string" - }, - { - "RepairCommand": "string" - }, - { - "UninstallCommand": "string" - }, - { - "ExeProtocol": "string" - } - ] - }, - { - "WixBundleMsiFeature": [ - { - "WixBundlePackage_": "string" - }, - { - "Name": "string" - }, - { - "Size": "number" - }, - { - "Parent": "string" - }, - { - "Title": "string" - }, - { - "Description": "string" - }, - { - "Display": "number" - }, - { - "Level": "number" - }, - { - "Directory": "string" - }, - { - "Attributes": "number" - } - ] - }, - { - "WixBundleMsiPackage": [ - { - "WixBundlePackage_": "string" - }, - { - "Attributes": "number" - }, - { - "ProductCode": "string" - }, - { - "UpgradeCode": "string" - }, - { - "ProductVersion": "string" - }, - { - "ProductLanguage": "number" - }, - { - "ProductName": "string" - }, - { - "Manufacturer": "string" - } - ] - }, - { - "WixBundleMsiProperty": [ - { - "WixBundlePackage_": "string" - }, - { - "Name": "string" - }, - { - "Value": "string" - }, - { - "Condition": "string" - } - ] - }, - { - "WixBundleMspPackage": [ - { - "WixBundlePackage_": "string" - }, - { - "Attributes": "number" - }, - { - "PatchCode": "string" - }, - { - "Manufacturer": "string" - }, - { - "PatchXml": "string" - } - ] - }, - { - "WixBundleMsuPackage": [ - { - "WixBundlePackage_": "string" - }, - { - "DetectCondition": "string" - }, - { - "MsuKB": "string" - } - ] - }, - { - "WixBundlePackage": [ - { - "WixChainItem_": "string" - }, - { - "Type": "number" - }, - { - "Payload_": "string" - }, - { - "Attributes": "number" - }, - { - "InstallCondition": "string" - }, - { - "Cache": "number" - }, - { - "CacheId": "string" - }, - { - "Vital": "number" - }, - { - "PerMachine": "number" - }, - { - "LogPathVariable": "string" - }, - { - "RollbackLogPathVariable": "string" - }, - { - "Size": "number" - }, - { - "InstallSize": "number" - }, - { - "Version": "string" - }, - { - "Language": "number" - }, - { - "DisplayName": "string" - }, - { - "Description": "string" - }, - { - "RollbackBoundary_": "string" - }, - { - "RollbackBoundaryBackward_": "string" - }, - { - "x64": "number" - } - ] - }, - { - "WixBundlePackageCommandLine": [ - { - "WixBundlePackage_": "string" - }, - { - "InstallArgument": "string" - }, - { - "UninstallArgument": "string" - }, - { - "RepairArgument": "string" - }, - { - "Condition": "string" - } - ] - }, - { - "WixBundlePackageExitCode": [ - { - "WixBundlePackage_": "string" - }, - { - "Code": "number" - }, - { - "Behavior": "number" - } - ] - }, - { - "WixBundlePackageGroup": [ - { - "WixBundlePackageGroup": "string" - } - ] - }, - { - "WixBundlePatchTargetCode": [ - { - "PackageId": "string" - }, - { - "TargetCode": "string" - }, - { - "Attributes": "number" - } - ] - }, - { - "WixBundlePayload": [ - { - "WixBundlePayload": "string" - }, - { - "Name": "string" - }, - { - "SourceFile": "path" - }, - { - "DownloadUrl": "string" - }, - { - "Compressed": "number" - }, - { - "UnresolvedSourceFile": "string" - }, - { - "DisplayName": "string" - }, - { - "Description": "string" - }, - { - "EnableSignatureValidation": "number" - }, - { - "FileSize": "number" - }, - { - "Version": "string" - }, - { - "Hash": "string" - }, - { - "PublicKey": "string" - }, - { - "Thumbprint": "string" - }, - { - "Catalog_": "string" - }, - { - "Container_": "string" - }, - { - "Package": "string" - }, - { - "ContentFile": "number" - }, - { - "EmbeddedId": "string" - }, - { - "LayoutOnly": "number" - }, - { - "Packaging": "number" - }, - { - "ParentPackagePayload_": "string" - } - ] - }, - { - "WixBundlePayloadGroup": [ - { - "WixBundlePayloadGroup": "string" - } - ] - }, - { - "WixBundleProperties": [ - { - "DisplayName": "string" - }, - { - "LogPathVariable": "string" - }, - { - "Compressed": "string" - }, - { - "Id": "string" - }, - { - "UpgradeCode": "string" - }, - { - "PerMachine": "string" - } - ] - }, - { - "WixBundleRelatedPackage": [ - { - "WixBundlePackage_": "string" - }, - { - "Id": "string" - }, - { - "MinVersion": "string" - }, - { - "MaxVersion": "string" - }, - { - "Languages": "string" - }, - { - "MinInclusive": "number" - }, - { - "MaxInclusive": "number" - }, - { - "LangInclusive": "number" - }, - { - "OnlyDetect": "number" - } - ] - }, - { - "WixBundleRollbackBoundary": [ - { - "WixChainItem_": "string" - }, - { - "Vital": "number" - }, - { - "Transaction": "number" - } - ] - }, - { - "WixBundleSlipstreamMsp": [ - { - "WixBundlePackage_": "string" - }, - { - "WixBundlePackage_Msp": "string" - } - ] - }, - { - "WixBundleUpdate": [ - { - "Location": "string" - }, - { - "Attributes": "number" - } - ] - }, - { - "WixBundleVariable": [ - { - "WixBundleVariable": "string" - }, - { - "Value": "string" - }, - { - "Type": "string" - }, - { - "Hidden": "number" - }, - { - "Persisted": "number" - } - ] - }, - { - "WixChain": [ - { - "Attributes": "number" - } - ] - }, - { - "WixChainItem": [ - { - "Id": "string" - } - ] - }, - { - "WixComplexReference": [ - { - "Parent": "string" - }, - { - "ParentAttributes": "number" - }, - { - "ParentLanguage": "string" - }, - { - "Child": "string" - }, - { - "ChildAttributes": "number" - }, - { - "Attributes": "number" - } - ] - }, - { - "WixComponentGroup": [ - { - "WixComponentGroup": "string" - } - ] - }, - { - "WixComponentSearch": [ - { - "WixSearch_": "string" - }, - { - "Guid": "string" - }, - { - "ProductCode": "string" - }, - { - "Attributes": "number" - } - ] - }, - { - "WixControl": [ - { - "Dialog_": "string" - }, - { - "Control_": "string" - }, - { - "SourceFile": "path" - } - ] - }, - { - "WixCustomRow": [ - { - "Table": "string" - }, - { - "FieldData": "string" - } - ] - }, - { - "WixCustomTable": [ - { - "Table": "string" - }, - { - "ColumnCount": "number" - }, - { - "ColumnNames": "string" - }, - { - "ColumnTypes": "string" - }, - { - "PrimaryKeys": "string" - }, - { - "MinValues": "string" - }, - { - "MaxValues": "string" - }, - { - "KeyTables": "string" - }, - { - "KeyColumns": "string" - }, - { - "Categories": "string" - }, - { - "Sets": "string" - }, - { - "Descriptions": "string" - }, - { - "Modularizations": "string" - }, - { - "BootstrapperApplicationData": "number" - } - ] - }, - { - "WixDeltaPatchFile": [ - { - "File_": "string" - }, - { - "RetainLengths": "preserved" - }, - { - "IgnoreOffsets": "preserved" - }, - { - "IgnoreLengths": "preserved" - }, - { - "RetainOffsets": "preserved" - }, - { - "SymbolPaths": "preserved" - } - ] - }, - { - "WixDeltaPatchSymbolPaths": [ - { - "Id": "string" - }, - { - "Type": "number" - }, - { - "SymbolPaths": "preserved" - } - ] - }, - { - "WixDirectory": [ - { - "Directory_": "string" - }, - { - "ComponentGuidGenerationSeed": "string" - } - ] - }, - { - "WixEnsureTable": [ - { - "Table": "string" - } - ] - }, - { - "WixFeatureGroup": [ - { - "WixFeatureGroup": "string" - } - ] - }, - { - "WixFeatureModules": [ - { - "Feature_": "string" - }, - { - "WixMerge_": "string" - } - ] - }, - { - "WixFile": [ - { - "File_": "string" - }, - { - "AssemblyType": "number" - }, - { - "File_AssemblyManifest": "string" - }, - { - "File_AssemblyApplication": "string" - }, - { - "Directory_": "string" - }, - { - "DiskId": "number" - }, - { - "Source": "path" - }, - { - "ProcessorArchitecture": "string" - }, - { - "PatchGroup": "number" - }, - { - "Attributes": "number" - }, - { - "PatchAttributes": "number" - }, - { - "DeltaPatchHeaderSource": "string" - } - ] - }, - { - "WixFileSearch": [ - { - "WixSearch_": "string" - }, - { - "Path": "string" - }, - { - "MinVersion": "string" - }, - { - "MaxVersion": "string" - }, - { - "MinSize": "number" - }, - { - "MaxSize": "number" - }, - { - "MinDate": "number" - }, - { - "MaxDate": "number" - }, - { - "Languages": "string" - }, - { - "Attributes": "number" - } - ] - }, - { - "WixFragment": [ - { - "WixFragment": "string" - } - ] - }, - { - "WixGroup": [ - { - "ParentId": "string" - }, - { - "ParentType": "string" - }, - { - "ChildId": "string" - }, - { - "ChildType": "string" - } - ] - }, - { - "WixInstanceComponent": [ - { - "Component_": "string" - } - ] - }, - { - "WixInstanceTransforms": [ - { - "Id": "string" - }, - { - "PropertyId": "string" - }, - { - "ProductCode": "string" - }, - { - "ProductName": "string" - }, - { - "UpgradeCode": "string" - } - ] - }, - { - "WixMedia": [ - { - "DiskId_": "number" - }, - { - "CompressionLevel": "number" - }, - { - "Layout": "string" - } - ] - }, - { - "WixMediaTemplate": [ - { - "CabinetTemplate": "string" - }, - { - "CompressionLevel": "number" - }, - { - "DiskPrompt": "string" - }, - { - "VolumeLabel": "string" - }, - { - "MaximumUncompressedMediaSize": "number" - }, - { - "MaximumCabinetSizeForLargeFileSplitting": "number" - } - ] - }, - { - "WixMerge": [ - { - "WixMerge": "string" - }, - { - "Language": "number" - }, - { - "Directory_": "string" - }, - { - "SourceFile": "path" - }, - { - "DiskId": "number" - }, - { - "FileCompression": "number" - }, - { - "ConfigurationData": "string" - }, - { - "Feature_": "string" - } - ] - }, - { - "WixOrdering": [ - { - "ItemType": "string" - }, - { - "ItemId_": "string" - }, - { - "DependsOnType": "string" - }, - { - "DependsOnId_": "string" - } - ] - }, - { - "WixPackageFeatureInfo": [ - { - "Package": "string" - }, - { - "Feature": "string" - }, - { - "Size": "string" - }, - { - "Parent": "string" - }, - { - "Title": "string" - }, - { - "Description": "string" - }, - { - "Display": "string" - }, - { - "Level": "string" - }, - { - "Directory": "string" - }, - { - "Attributes": "string" - } - ] - }, - { - "WixPackageProperties": [ - { - "Package": "string" - }, - { - "Vital": "string" - }, - { - "DisplayName": "string" - }, - { - "Description": "string" - }, - { - "DownloadSize": "string" - }, - { - "PackageSize": "string" - }, - { - "InstalledSize": "string" - }, - { - "PackageType": "string" - }, - { - "Permanent": "string" - }, - { - "LogPathVariable": "string" - }, - { - "RollbackLogPathVariable": "string" - }, - { - "Compressed": "string" - }, - { - "DisplayInternalUI": "string" - }, - { - "ProductCode": "string" - }, - { - "UpgradeCode": "string" - }, - { - "Version": "string" - }, - { - "InstallCondition": "string" - }, - { - "Cache": "string" - } - ] - }, - { - "WixPatchBaseline": [ - { - "WixPatchBaseline": "string" - }, - { - "DiskId": "number" - }, - { - "ValidationFlags": "number" - } - ] - }, - { - "WixPatchFamilyGroup": [ - { - "WixPatchFamilyGroup": "string" - } - ] - }, - { - "WixPatchId": [ - { - "ProductCode": "string" - }, - { - "ClientPatchId": "string" - }, - { - "OptimizePatchSizeForLargeFiles": "number" - }, - { - "ApiPatchingSymbolFlags": "number" - } - ] - }, - { - "WixPatchMetadata": [ - { - "Property": "string" - }, - { - "Value": "string" - } - ] - }, - { - "WixPatchRef": [ - { - "Table": "string" - }, - { - "PrimaryKeys": "string" - } - ] - }, - { - "WixPatchTarget": [ - { - "ProductCode": "string" - } - ] - }, - { - "WixPayloadProperties": [ - { - "Payload": "string" - }, - { - "Package": "string" - }, - { - "Container": "string" - }, - { - "Name": "string" - }, - { - "Size": "string" - }, - { - "DownloadUrl": "string" - }, - { - "LayoutOnly": "string" - } - ] - }, - { - "WixProductSearch": [ - { - "WixSearch_": "string" - }, - { - "Guid": "string" - }, - { - "Attributes": "number" - } - ] - }, - { - "WixProperty": [ - { - "Property_": "string" - }, - { - "Attributes": "number" - } - ] - }, - { - "WixRegistrySearch": [ - { - "WixSearch_": "string" - }, - { - "Root": "number" - }, - { - "Key": "string" - }, - { - "Value": "string" - }, - { - "Attributes": "number" - } - ] - }, - { - "WixRelatedBundle": [ - { - "Id": "string" - }, - { - "Action": "number" - } - ] - }, - { - "WixSearch": [ - { - "WixSearch": "string" - }, - { - "Variable": "string" - }, - { - "Condition": "string" - } - ] - }, - { - "WixSearchRelation": [ - { - "WixSearch_": "string" - }, - { - "ParentId_": "string" - }, - { - "Attributes": "number" - } - ] - }, - { - "WixSimpleReference": [ - { - "Table": "string" - }, - { - "PrimaryKeys": "string" - } - ] - }, - { - "WixSuppressAction": [ - { - "SequenceTable": "string" - }, - { - "Action": "string" - } - ] - }, - { - "WixSuppressModularization": [ - { - "WixSuppressModularization": "string" - } - ] - }, - { - "WixUI": [ - { - "WixUI": "string" - } - ] - }, - { - "WixUpdateRegistration": [ - { - "Manufacturer": "string" - }, - { - "Department": "string" - }, - { - "ProductFamily": "string" - }, - { - "Name": "string" - }, - { - "Classification": "string" - } - ] - }, - { - "WixVariable": [ - { - "WixVariable": "string" - }, - { - "Value": "string" - }, - { - "Attributes": "number" - } - ] - } -] \ No newline at end of file -- cgit v1.2.3-55-g6feb