| 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. |
| 2 | |
| 3 | namespace WixToolset.Data.WindowsInstaller |
| 4 | { |
| 5 | public static class WindowsInstallerConstants |
| 6 | { |
| 7 | // Component.Attributes |
| 8 | public const int MsidbComponentAttributesLocalOnly = 0; |
| 9 | public const int MsidbComponentAttributesSourceOnly = 1; |
| 10 | public const int MsidbComponentAttributesOptional = 2; |
| 11 | public const int MsidbComponentAttributesRegistryKeyPath = 4; |
| 12 | public const int MsidbComponentAttributesSharedDllRefCount = 8; |
| 13 | public const int MsidbComponentAttributesPermanent = 16; |
| 14 | public const int MsidbComponentAttributesODBCDataSource = 32; |
| 15 | public const int MsidbComponentAttributesTransitive = 64; |
| 16 | public const int MsidbComponentAttributesNeverOverwrite = 128; |
| 17 | public const int MsidbComponentAttributes64bit = 256; |
| 18 | public const int MsidbComponentAttributesDisableRegistryReflection = 512; |
| 19 | public const int MsidbComponentAttributesUninstallOnSupersedence = 1024; |
| 20 | public const int MsidbComponentAttributesShared = 2048; |
| 21 | |
| 22 | // BBControl.Attributes & Control.Attributes |
| 23 | public const int MsidbControlAttributesVisible = 0x00000001; |
| 24 | public const int MsidbControlAttributesEnabled = 0x00000002; |
| 25 | public const int MsidbControlAttributesSunken = 0x00000004; |
| 26 | public const int MsidbControlAttributesIndirect = 0x00000008; |
| 27 | public const int MsidbControlAttributesInteger = 0x00000010; |
| 28 | public const int MsidbControlAttributesRTLRO = 0x00000020; |
| 29 | public const int MsidbControlAttributesRightAligned = 0x00000040; |
| 30 | public const int MsidbControlAttributesLeftScroll = 0x00000080; |
| 31 | public const int MsidbControlAttributesBiDi = MsidbControlAttributesRTLRO | MsidbControlAttributesRightAligned | MsidbControlAttributesLeftScroll; |
| 32 | |
| 33 | // Text controls |
| 34 | public const int MsidbControlAttributesTransparent = 0x00010000; |
| 35 | public const int MsidbControlAttributesNoPrefix = 0x00020000; |
| 36 | public const int MsidbControlAttributesNoWrap = 0x00040000; |
| 37 | public const int MsidbControlAttributesFormatSize = 0x00080000; |
| 38 | public const int MsidbControlAttributesUsersLanguage = 0x00100000; |
| 39 | |
| 40 | // Edit controls |
| 41 | public const int MsidbControlAttributesMultiline = 0x00010000; |
| 42 | public const int MsidbControlAttributesPasswordInput = 0x00200000; |
| 43 | |
| 44 | // ProgressBar controls |
| 45 | public const int MsidbControlAttributesProgress95 = 0x00010000; |
| 46 | |
| 47 | // VolumeSelectCombo and DirectoryCombo controls |
| 48 | public const int MsidbControlAttributesRemovableVolume = 0x00010000; |
| 49 | public const int MsidbControlAttributesFixedVolume = 0x00020000; |
| 50 | public const int MsidbControlAttributesRemoteVolume = 0x00040000; |
| 51 | public const int MsidbControlAttributesCDROMVolume = 0x00080000; |
| 52 | public const int MsidbControlAttributesRAMDiskVolume = 0x00100000; |
| 53 | public const int MsidbControlAttributesFloppyVolume = 0x00200000; |
| 54 | |
| 55 | // VolumeCostList controls |
| 56 | public const int MsidbControlShowRollbackCost = 0x00400000; |
| 57 | |
| 58 | // ListBox and ComboBox controls |
| 59 | public const int MsidbControlAttributesSorted = 0x00010000; |
| 60 | public const int MsidbControlAttributesComboList = 0x00020000; |
| 61 | |
| 62 | // picture button controls |
| 63 | public const int MsidbControlAttributesImageHandle = 0x00010000; |
| 64 | public const int MsidbControlAttributesPushLike = 0x00020000; |
| 65 | public const int MsidbControlAttributesBitmap = 0x00040000; |
| 66 | public const int MsidbControlAttributesIcon = 0x00080000; |
| 67 | public const int MsidbControlAttributesFixedSize = 0x00100000; |
| 68 | public const int MsidbControlAttributesIconSize16 = 0x00200000; |
| 69 | public const int MsidbControlAttributesIconSize32 = 0x00400000; |
| 70 | public const int MsidbControlAttributesIconSize48 = 0x00600000; |
| 71 | public const int MsidbControlAttributesElevationShield = 0x00800000; |
| 72 | |
| 73 | // RadioButton controls |
| 74 | public const int MsidbControlAttributesHasBorder = 0x01000000; |
| 75 | |
| 76 | // CustomAction.Type |
| 77 | // executable types |
| 78 | public const int MsidbCustomActionTypeDll = 0x00000001; // Target = entry point name |
| 79 | public const int MsidbCustomActionTypeExe = 0x00000002; // Target = command line args |
| 80 | public const int MsidbCustomActionTypeTextData = 0x00000003; // Target = text string to be formatted and set into property |
| 81 | public const int MsidbCustomActionTypeJScript = 0x00000005; // Target = entry point name; null if none to call |
| 82 | public const int MsidbCustomActionTypeVBScript = 0x00000006; // Target = entry point name; null if none to call |
| 83 | public const int MsidbCustomActionTypeInstall = 0x00000007; // Target = property list for nested engine initialization |
| 84 | public const int MsidbCustomActionTypeSourceBits = 0x00000030; |
| 85 | public const int MsidbCustomActionTypeTargetBits = 0x00000007; |
| 86 | public const int MsidbCustomActionTypeReturnBits = 0x000000C0; |
| 87 | public const int MsidbCustomActionTypeExecuteBits = 0x00000700; |
| 88 | |
| 89 | // source of code |
| 90 | public const int MsidbCustomActionTypeBinaryData = 0x00000000; // Source = Binary.Name; data stored in stream |
| 91 | public const int MsidbCustomActionTypeSourceFile = 0x00000010; // Source = File.File; file part of installation |
| 92 | public const int MsidbCustomActionTypeDirectory = 0x00000020; // Source = Directory.Directory; folder containing existing file |
| 93 | public const int MsidbCustomActionTypeProperty = 0x00000030; // Source = Property.Property; full path to executable |
| 94 | |
| 95 | // return processing; default is syncronous execution; process return code |
| 96 | public const int MsidbCustomActionTypeContinue = 0x00000040; // ignore action return status; continue running |
| 97 | public const int MsidbCustomActionTypeAsync = 0x00000080; // run asynchronously |
| 98 | |
| 99 | // execution scheduling flags; default is execute whenever sequenced |
| 100 | public const int MsidbCustomActionTypeFirstSequence = 0x00000100; // skip if UI sequence already run |
| 101 | public const int MsidbCustomActionTypeOncePerProcess = 0x00000200; // skip if UI sequence already run in same process |
| 102 | public const int MsidbCustomActionTypeClientRepeat = 0x00000300; // run on client only if UI already run on client |
| 103 | public const int MsidbCustomActionTypeInScript = 0x00000400; // queue for execution within script |
| 104 | public const int MsidbCustomActionTypeRollback = 0x00000100; // in conjunction with InScript: queue in Rollback script |
| 105 | public const int MsidbCustomActionTypeCommit = 0x00000200; // in conjunction with InScript: run Commit ops from script on success |
| 106 | |
| 107 | // security context flag; default to impersonate as user; valid only if InScript |
| 108 | public const int MsidbCustomActionTypeNoImpersonate = 0x00000800; // no impersonation; run in system context |
| 109 | public const int MsidbCustomActionTypeTSAware = 0x00004000; // impersonate for per-machine installs on TS machines |
| 110 | public const int MsidbCustomActionType64BitScript = 0x00001000; // script should run in 64bit process |
| 111 | public const int MsidbCustomActionTypeHideTarget = 0x00002000; // don't record the contents of the Target field in the log file. |
| 112 | |
| 113 | public const int MsidbCustomActionTypePatchUninstall = 0x00008000; // run on patch uninstall |
| 114 | |
| 115 | // Dialog.Attributes |
| 116 | public const int MsidbDialogAttributesVisible = 0x00000001; |
| 117 | public const int MsidbDialogAttributesModal = 0x00000002; |
| 118 | public const int MsidbDialogAttributesMinimize = 0x00000004; |
| 119 | public const int MsidbDialogAttributesSysModal = 0x00000008; |
| 120 | public const int MsidbDialogAttributesKeepModeless = 0x00000010; |
| 121 | public const int MsidbDialogAttributesTrackDiskSpace = 0x00000020; |
| 122 | public const int MsidbDialogAttributesUseCustomPalette = 0x00000040; |
| 123 | public const int MsidbDialogAttributesRTLRO = 0x00000080; |
| 124 | public const int MsidbDialogAttributesRightAligned = 0x00000100; |
| 125 | public const int MsidbDialogAttributesLeftScroll = 0x00000200; |
| 126 | public const int MsidbDialogAttributesBiDi = MsidbDialogAttributesRTLRO | MsidbDialogAttributesRightAligned | MsidbDialogAttributesLeftScroll; |
| 127 | public const int MsidbDialogAttributesError = 0x00010000; |
| 128 | public const int CommonControlAttributesInvert = MsidbControlAttributesVisible + MsidbControlAttributesEnabled; |
| 129 | public const int DialogAttributesInvert = MsidbDialogAttributesVisible + MsidbDialogAttributesModal + MsidbDialogAttributesMinimize; |
| 130 | |
| 131 | // Feature.Attributes |
| 132 | public const int MsidbFeatureAttributesFavorLocal = 0; |
| 133 | public const int MsidbFeatureAttributesFavorSource = 1; |
| 134 | public const int MsidbFeatureAttributesFollowParent = 2; |
| 135 | public const int MsidbFeatureAttributesFavorAdvertise = 4; |
| 136 | public const int MsidbFeatureAttributesDisallowAdvertise = 8; |
| 137 | public const int MsidbFeatureAttributesUIDisallowAbsent = 16; |
| 138 | public const int MsidbFeatureAttributesNoUnsupportedAdvertise = 32; |
| 139 | |
| 140 | // File.Attributes |
| 141 | public const int MsidbFileAttributesReadOnly = 1; |
| 142 | public const int MsidbFileAttributesHidden = 2; |
| 143 | public const int MsidbFileAttributesSystem = 4; |
| 144 | public const int MsidbFileAttributesVital = 512; |
| 145 | public const int MsidbFileAttributesChecksum = 1024; |
| 146 | public const int MsidbFileAttributesPatchAdded = 4096; |
| 147 | public const int MsidbFileAttributesNoncompressed = 8192; |
| 148 | public const int MsidbFileAttributesCompressed = 16384; |
| 149 | |
| 150 | // IniFile.Action & RemoveIniFile.Action |
| 151 | public const int MsidbIniFileActionAddLine = 0; |
| 152 | public const int MsidbIniFileActionCreateLine = 1; |
| 153 | public const int MsidbIniFileActionRemoveLine = 2; |
| 154 | public const int MsidbIniFileActionAddTag = 3; |
| 155 | public const int MsidbIniFileActionRemoveTag = 4; |
| 156 | |
| 157 | // MoveFile.Options |
| 158 | public const int MsidbMoveFileOptionsMove = 1; |
| 159 | |
| 160 | // ServiceInstall.Attributes |
| 161 | public const int MsidbServiceInstallOwnProcess = 0x00000010; |
| 162 | public const int MsidbServiceInstallShareProcess = 0x00000020; |
| 163 | public const int MsidbServiceInstallInteractive = 0x00000100; |
| 164 | public const int MsidbServiceInstallAutoStart = 0x00000002; |
| 165 | public const int MsidbServiceInstallDemandStart = 0x00000003; |
| 166 | public const int MsidbServiceInstallDisabled = 0x00000004; |
| 167 | public const int MsidbServiceInstallErrorIgnore = 0x00000000; |
| 168 | public const int MsidbServiceInstallErrorNormal = 0x00000001; |
| 169 | public const int MsidbServiceInstallErrorCritical = 0x00000003; |
| 170 | public const int MsidbServiceInstallErrorControlVital = 0x00008000; |
| 171 | |
| 172 | // ServiceConfig.Event |
| 173 | public const int MsidbServiceConfigEventInstall = 0x00000001; |
| 174 | public const int MsidbServiceConfigEventUninstall = 0x00000002; |
| 175 | public const int MsidbServiceConfigEventReinstall = 0x00000004; |
| 176 | |
| 177 | // ServiceControl.Attributes |
| 178 | public const int MsidbServiceControlEventStart = 0x00000001; |
| 179 | public const int MsidbServiceControlEventStop = 0x00000002; |
| 180 | public const int MsidbServiceControlEventDelete = 0x00000008; |
| 181 | public const int MsidbServiceControlEventUninstallStart = 0x00000010; |
| 182 | public const int MsidbServiceControlEventUninstallStop = 0x00000020; |
| 183 | public const int MsidbServiceControlEventUninstallDelete = 0x00000080; |
| 184 | |
| 185 | // TextStyle.StyleBits |
| 186 | public const int MsidbTextStyleStyleBitsBold = 1; |
| 187 | public const int MsidbTextStyleStyleBitsItalic = 2; |
| 188 | public const int MsidbTextStyleStyleBitsUnderline = 4; |
| 189 | public const int MsidbTextStyleStyleBitsStrike = 8; |
| 190 | |
| 191 | // Upgrade.Attributes |
| 192 | public const int MsidbUpgradeAttributesMigrateFeatures = 0x00000001; |
| 193 | public const int MsidbUpgradeAttributesOnlyDetect = 0x00000002; |
| 194 | public const int MsidbUpgradeAttributesIgnoreRemoveFailure = 0x00000004; |
| 195 | public const int MsidbUpgradeAttributesVersionMinInclusive = 0x00000100; |
| 196 | public const int MsidbUpgradeAttributesVersionMaxInclusive = 0x00000200; |
| 197 | public const int MsidbUpgradeAttributesLanguagesExclusive = 0x00000400; |
| 198 | |
| 199 | // Registry Hive Roots |
| 200 | public const int MsidbRegistryRootClassesRoot = 0; |
| 201 | public const int MsidbRegistryRootCurrentUser = 1; |
| 202 | public const int MsidbRegistryRootLocalMachine = 2; |
| 203 | public const int MsidbRegistryRootUsers = 3; |
| 204 | |
| 205 | // Locator Types |
| 206 | public const int MsidbLocatorTypeDirectory = 0; |
| 207 | public const int MsidbLocatorTypeFileName = 1; |
| 208 | public const int MsidbLocatorTypeRawValue = 2; |
| 209 | public const int MsidbLocatorType64bit = 16; |
| 210 | |
| 211 | public const int MsidbClassAttributesRelativePath = 1; |
| 212 | |
| 213 | // RemoveFile.InstallMode |
| 214 | public const int MsidbRemoveFileInstallModeOnInstall = 0x00000001; |
| 215 | public const int MsidbRemoveFileInstallModeOnRemove = 0x00000002; |
| 216 | public const int MsidbRemoveFileInstallModeOnBoth = 0x00000003; |
| 217 | |
| 218 | // ODBCDataSource.Registration |
| 219 | public const int MsidbODBCDataSourceRegistrationPerMachine = 0; |
| 220 | public const int MsidbODBCDataSourceRegistrationPerUser = 1; |
| 221 | |
| 222 | // ModuleConfiguration.Format |
| 223 | public const int MsidbModuleConfigurationFormatText = 0; |
| 224 | public const int MsidbModuleConfigurationFormatKey = 1; |
| 225 | public const int MsidbModuleConfigurationFormatInteger = 2; |
| 226 | public const int MsidbModuleConfigurationFormatBitfield = 3; |
| 227 | |
| 228 | // ModuleConfiguration.Attributes |
| 229 | public const int MsidbMsmConfigurableOptionKeyNoOrphan = 1; |
| 230 | public const int MsidbMsmConfigurableOptionNonNullable = 2; |
| 231 | |
| 232 | // ' Windows API function ShowWindow constants - used in Shortcut table |
| 233 | public const int SWSHOWNORMAL = 0x00000001; |
| 234 | public const int SWSHOWMAXIMIZED = 0x00000003; |
| 235 | public const int SWSHOWMINNOACTIVE = 0x00000007; |
| 236 | |
| 237 | public const int MsidbEmbeddedUI = 0x01; |
| 238 | public const int MsidbEmbeddedHandlesBasic = 0x02; |
| 239 | |
| 240 | public const int INSTALLLOGMODE_FATALEXIT = 0x00001; |
| 241 | public const int INSTALLLOGMODE_ERROR = 0x00002; |
| 242 | public const int INSTALLLOGMODE_WARNING = 0x00004; |
| 243 | public const int INSTALLLOGMODE_USER = 0x00008; |
| 244 | public const int INSTALLLOGMODE_INFO = 0x00010; |
| 245 | public const int INSTALLLOGMODE_FILESINUSE = 0x00020; |
| 246 | public const int INSTALLLOGMODE_RESOLVESOURCE = 0x00040; |
| 247 | public const int INSTALLLOGMODE_OUTOFDISKSPACE = 0x00080; |
| 248 | public const int INSTALLLOGMODE_ACTIONSTART = 0x00100; |
| 249 | public const int INSTALLLOGMODE_ACTIONDATA = 0x00200; |
| 250 | public const int INSTALLLOGMODE_PROGRESS = 0x00400; |
| 251 | public const int INSTALLLOGMODE_COMMONDATA = 0x00800; |
| 252 | public const int INSTALLLOGMODE_INITIALIZE = 0x01000; |
| 253 | public const int INSTALLLOGMODE_TERMINATE = 0x02000; |
| 254 | public const int INSTALLLOGMODE_SHOWDIALOG = 0x04000; |
| 255 | public const int INSTALLLOGMODE_RMFILESINUSE = 0x02000000; |
| 256 | public const int INSTALLLOGMODE_INSTALLSTART = 0x04000000; |
| 257 | public const int INSTALLLOGMODE_INSTALLEND = 0x08000000; |
| 258 | } |
| 259 | } |