Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

173 lines
7.9 KiB

  1. '<script language='VBScript'>
  2. ' wiconsts.inc - Windows Installer constants
  3. '
  4. ' 1999/12/31 - created - Rob Mensching (robmen@microsoft.com)
  5. '
  6. ' requires:
  7. ' none
  8. '
  9. ' entrypoints:
  10. ' none
  11. '
  12. '''''''''''''''''''''''''''''''''''''''''''''''''
  13. ' Windows Installer definitions - from msidefs.h
  14. Const msiOpenDatabaseModeReadOnly = 0
  15. Const msiOpenDatabaseModeTransact = 1
  16. Const msiOpenDatabaseModeDirect = 2
  17. Const msiOpenDatabaseModeCreate = 3
  18. Const msiViewModifySeek = -1
  19. Const msiViewModifyInsert = 1
  20. Const msiViewModifyUpdate = 2
  21. Const msiViewModifyAssign = 3
  22. Const msiViewModifyReplace = 4
  23. Const msiViewModifyMerge = 5
  24. Const msiViewModifyDelete = 6
  25. ' Component.Attributes mapping
  26. Const msidbComponentAttributesSourceOnly = &h01
  27. Const msidbComponentAttributesOptional = &h02
  28. Const msidbComponentAttributesRegistryKeyPath = &h04
  29. Const msidbComponentAttributesSharedDllRefCount = &h08
  30. Const msidbComponentAttributesPermanent = &h10
  31. Const msidbComponentAttributesODBCDataSource = &h20
  32. Const msidbComponentAttributesTransitive = &h40
  33. Const msidbComponentAttributesNeverOverwrite = &h80
  34. ' File.Attributes mapping
  35. Const msidbFileAttributesReadOnly = &h0001
  36. Const msidbFileAttributesHidden = &h0002
  37. Const msidbFileAttributesSystem = &h0004
  38. Const msidbFileAttributesVital = &h0200
  39. Const msidbFileAttributesChecksum = &h0400
  40. Const msidbFileAttributesPatchAdded = &h1000
  41. Const msidbFileAttributesNoncompressed = &h2000
  42. Const msidbFileAttributesCompressed = &h4000
  43. ' Feature.Attributes mapping
  44. Const msidbFeatureAttributesFavorSource = &h0001
  45. Const msidbFeatureAttributesFollowParent = &h0002
  46. Const msidbFeatureAttributesFavorAdvertise = &h0004
  47. Const msidbFeatureAttributesDisallowAdvertise = &h0008
  48. Const msidbFeatureAttributesUIDisallowAbsent = &h0010
  49. Const msidbFeatureAttributesNoUnsupportedAdvertise = &h0020
  50. ' Class.Attributes mapping
  51. Const msidbClassAttributesRelativePath = &h0001
  52. ' ServiceControl.Event
  53. Const msidbServiceControlEventStart = &h0001
  54. Const msidbServiceControlEventStop = &h0002
  55. Const msidbServiceControlEventRemove = &h0008
  56. Const msidbServiceControlEventUninstallStart = &h0010
  57. Const msidbServiceControlEventUninstallStop = &h0020
  58. Const msidbServiceControlEventUninstallRemove = &h0080
  59. ' ServiceInstall.ServiceType
  60. Const msidbServiceInstallOwnProcess = &h0010
  61. Const msidbServiceInstallShareProcess = &h0020
  62. Const msidbServiceInstallInteractive = &h0100
  63. ' ServiceInstall.StartType
  64. Const msidbServiceInstallAutoStart = &h0002
  65. Const msidbServiceInstallDemandStart = &h0003
  66. Const msidbServiceInstallDisabled = &h0004
  67. ' ServiceInstall.ErrorControl
  68. Const msidbServiceInstallErrorIgnore = &h0000
  69. Const msidbServiceInstallErrorNormal = &h0001
  70. Const msidbServiceInstallErrorCritical = &h0004
  71. Const msidbServiceInstallErrorControlVital = &h8000
  72. ' IniFile actions
  73. Const msidbIniFileActionAddLine = 0
  74. Const msidbIniFileActionCreateLine = 1
  75. Const msidbIniFileActionRemoveLine = 2
  76. Const msidbIniFileActionAddTag = 3
  77. Const msidbIniFileActionRemoveTag = 4
  78. ' CustomAction.Type mapping
  79. Const msidbCustomActionTypeDll = &h0001 ' Target = entry point name
  80. Const msidbCustomActionTypeExe = &h0002 ' Target = command line args
  81. Const msidbCustomActionTypeTextData = &h0003 ' Target = text string to be formatted and set into property
  82. Const msidbCustomActionTypeJScript = &h0005 ' Target = entry point name, null if none to call
  83. Const msidbCustomActionTypeVBScript = &h0006 ' Target = entry point name, null if none to call
  84. Const msidbCustomActionTypeInstall = &h0007 ' Target = property list for nested engine initialization
  85. Const msidbCustomActionTypeBinaryData = &h0000 ' Source = Binary.Name, data stored in stream
  86. Const msidbCustomActionTypeSourceFile = &h0010 ' Source = File.File, file part of installation
  87. Const msidbCustomActionTypeDirectory = &h0020 ' Source = Directory.Directory, folder containing existing file
  88. Const msidbCustomActionTypeProperty = &h0030 ' Source = Property.Property, full path to executable
  89. Const msidbCustomActionTypeContinue = &h0040 ' ignore action return status, continue running
  90. Const msidbCustomActionTypeAsync = &h0080 ' run asynchronously
  91. Const msidbCustomActionTypeFirstSequence = &h0100 ' skip if UI sequence already run
  92. Const msidbCustomActionTypeOncePerProcess = &h0200 ' skip if UI sequence already run in same process
  93. Const msidbCustomActionTypeClientRepeat = &h0300 ' run on client only if UI already run on client
  94. Const msidbCustomActionTypeInScript = &h0400 ' queue for execution within script
  95. Const msidbCustomActionTypeRollback = &h0100 ' in conjunction with InScript: queue in Rollback script
  96. Const msidbCustomActionTypeCommit = &h0200 ' in conjunction with InScript: run Commit ops from script on success
  97. Const msidbCustomActionTypeNoImpersonate = &h0800 ' no impersonation, run in system context
  98. ' Dialog.Attributes
  99. Const msidbDialogAttributesVisible = &h00000001
  100. Const msidbDialogAttributesModal = &h00000002
  101. Const msidbDialogAttributesMinimize = &h00000004
  102. Const msidbDialogAttributesSysModal = &h00000008
  103. Const msidbDialogAttributesKeepModeless = &h00000010
  104. Const msidbDialogAttributesTrackDiskSpace = &h00000020
  105. Const msidbDialogAttributesUseCustomPalette = &h00000040
  106. Const msidbDialogAttributesRTLRO = &h00000080
  107. Const msidbDialogAttributesRightAligned = &h00000100
  108. Const msidbDialogAttributesLeftScroll = &h00000200
  109. Const msidbDialogAttributesError = &h00010000
  110. ' Control.Attributes - common
  111. Const msidbControlAttributesVisible = &h00000001
  112. Const msidbControlAttributesEnabled = &h00000002
  113. Const msidbControlAttributesSunken = &h00000004
  114. Const msidbControlAttributesIndirect = &h00000008
  115. Const msidbControlAttributesInteger = &h00000010
  116. Const msidbControlAttributesRTLRO = &h00000020
  117. Const msidbControlAttributesRightAligned = &h00000040
  118. Const msidbControlAttributesLeftScroll = &h00000080
  119. ' Control.Attributes - Text controls
  120. Const msidbControlAttributesTransparent = &h00010000
  121. Const msidbControlAttributesNoPrefix = &h00020000
  122. Const msidbControlAttributesNoWrap = &h00040000
  123. Const msidbControlAttributesFormatSize = &h00080000
  124. Const msidbControlAttributesUsersLanguage = &h00100000
  125. ' Control.Attributes - Edit controls
  126. Const msidbControlAttributesMultiline = &h00010000
  127. Const msidbControlAttributesPasswordInput = &h00200000
  128. ' Control.Attributes - ProgressBar
  129. Const msidbControlAttributesProgress95 = &h00010000
  130. ' Control.Attributes - VolumeSelectCombo and DirectoryCombo
  131. Const msidbControlAttributesRemovableVolume = &h00010000
  132. Const msidbControlAttributesFixedVolume = &h00020000
  133. Const msidbControlAttributesRemoteVolume = &h00040000
  134. Const msidbControlAttributesCDROMVolume = &h00080000
  135. Const msidbControlAttributesRAMDiskVolume = &h00100000
  136. Const msidbControlAttributesFloppyVolume = &h00200000
  137. ' Control.Attributes - VolumeCostList control
  138. Const msidbControlShowRollbackCost = &h00400000
  139. ' Control.Attributes - ListBox and ComboBox controls
  140. Const msidbControlAttributesSorted = &h00010000
  141. Const msidbControlAttributesComboList = &h00020000
  142. ' Control.Attributes - RadioButton controls
  143. Const msidbControlAttributesHasBorder = &h01000000
  144. ' Control.Attributes - picture button controls
  145. Const msidbControlAttributesImageHandle = &h00010000
  146. Const msidbControlAttributesPushLike = &h00020000
  147. Const msidbControlAttributesBitmap = &h00040000
  148. Const msidbControlAttributesIcon = &h00080000
  149. Const msidbControlAttributesFixedSize = &h00100000
  150. Const msidbControlAttributesIconSize16 = &h00200000
  151. Const msidbControlAttributesIconSize32 = &h00400000
  152. Const msidbControlAttributesIconSize48 = &h00600000