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.

631 lines
29 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1996 - 2001
  6. //
  7. // File: msidefs.h
  8. //
  9. //--------------------------------------------------------------------------
  10. /* msidefs.h Windows Installer data definitions
  11. ____________________________________________________________________________*/
  12. #ifndef __MSIDEFS
  13. #define __MSIDEFS
  14. #ifndef _WIN32_MSI
  15. #if (_WIN32_WINNT >= 0x0510)
  16. #define _WIN32_MSI 200
  17. #elif (_WIN32_WINNT >= 0x0500)
  18. #define _WIN32_MSI 110
  19. #else
  20. #define _WIN32_MSI 100
  21. #endif //_WIN32_WINNT
  22. #endif // !_WIN32_MSI
  23. //__________________________________________________________________________
  24. //
  25. // INSTALLER PROPERTY DEFINITIONS
  26. //__________________________________________________________________________
  27. // Required properties: set in Property table
  28. #define IPROPNAME_PRODUCTNAME TEXT("ProductName") // name registered for display
  29. #define IPROPNAME_PRODUCTCODE TEXT("ProductCode") // unique string GUID for product
  30. #define IPROPNAME_PRODUCTVERSION TEXT("ProductVersion") // string product version
  31. #define IPROPNAME_INSTALLLANGUAGE TEXT("ProductLanguage") // install language of product, use to load resources
  32. #define IPROPNAME_MANUFACTURER TEXT("Manufacturer") // name of manufacturer
  33. // Customization properties: set in Property table
  34. #define IPROPNAME_UPGRADECODE TEXT("UpgradeCode") // unique string GUID for product family
  35. #define IPROPNAME_PIDTEMPLATE TEXT("PIDTemplate") // drives Product ID processing
  36. #define IPROPNAME_DISKPROMPT TEXT("DiskPrompt") // prompt for CD
  37. #define IPROPNAME_LEFTUNIT TEXT("LeftUnit") // name of unit placed to left of number instead of right
  38. #define IPROPNAME_ADMIN_PROPERTIES TEXT("AdminProperties") // properties to stuff in admin package
  39. #define IPROPNAME_DEFAULTUIFONT TEXT("DefaultUIFont") // the font used in the UI if no other font is specified
  40. #define IPROPNAME_ALLOWEDPROPERTIES TEXT("SecureCustomProperties")
  41. #define IPROPNAME_ENABLEUSERCONTROL TEXT("EnableUserControl") // allows user to specify any public property
  42. #define IPROPNAME_HIDDEN_PROPERTIES TEXT("MsiHiddenProperties") // properties that should not be dumped into the log file
  43. // Customization properties: set on command-line or in Property table
  44. #define IPROPNAME_USERNAME TEXT("USERNAME")
  45. #define IPROPNAME_COMPANYNAME TEXT("COMPANYNAME")
  46. #define IPROPNAME_PIDKEY TEXT("PIDKEY") // used with PIDTemplate to form ProductID
  47. #define IPROPNAME_PATCH TEXT("PATCH") // patch package to apply - SET BY INSTALLER
  48. #define IPROPNAME_TARGETDIR TEXT("TARGETDIR") // target location - defaults to ROOTDRIVE
  49. #define IPROPNAME_ACTION TEXT("ACTION") // top-level action to perform - default to INSTALL
  50. #define IPROPNAME_LIMITUI TEXT("LIMITUI") // limit ui level to Basic
  51. #define IPROPNAME_LOGACTION TEXT("LOGACTION") // log only these actions
  52. #define IPROPNAME_ALLUSERS TEXT("ALLUSERS") // install for all users
  53. #define IPROPNAME_INSTALLLEVEL TEXT("INSTALLLEVEL")
  54. #define IPROPNAME_REBOOT TEXT("REBOOT") // force or suppress reboot
  55. #if (_WIN32_MSI >= 110)
  56. #define IPROPNAME_REBOOTPROMPT TEXT("REBOOTPROMPT") // allow or suppress reboot prompt
  57. #endif //(_WIN32_MSI >= 110)
  58. #define IPROPNAME_EXECUTEMODE TEXT("EXECUTEMODE") // NONE or SCRIPT
  59. #define IPROPVALUE_EXECUTEMODE_NONE TEXT("NONE") // do not update system
  60. #define IPROPVALUE_EXECUTEMODE_SCRIPT TEXT("SCRIPT") // default - run script to update system
  61. #define IPROPNAME_EXECUTEACTION TEXT("EXECUTEACTION") // run action on server side
  62. #define IPROPNAME_SOURCELIST TEXT("SOURCELIST")
  63. #define IPROPNAME_ROOTDRIVE TEXT("ROOTDRIVE") // default drive to install - SET BY INSTALLER
  64. #define IPROPNAME_TRANSFORMS TEXT("TRANSFORMS") // transforms to apply
  65. #define IPROPNAME_TRANSFORMSATSOURCE TEXT("TRANSFORMSATSOURCE") // transforms can be found at source
  66. #define IPROPNAME_TRANSFORMSSECURE TEXT("TRANSFORMSSECURE") // file transforms are secured
  67. #define IPROPNAME_SEQUENCE TEXT("SEQUENCE") // sequence table to run with SEQUENCE action
  68. #define IPROPNAME_SHORTFILENAMES TEXT("SHORTFILENAMES") // force short file names
  69. #define IPROPNAME_PRIMARYFOLDER TEXT("PRIMARYFOLDER") // Folder on the volume the author wants costing info for
  70. #define IPROPNAME_AFTERREBOOT TEXT("AFTERREBOOT") // install is after a ForceReboot triggered reboot
  71. #define IPROPNAME_NOCOMPANYNAME TEXT("NOCOMPANYNAME")
  72. #define IPROPNAME_NOUSERNAME TEXT("NOUSERNAME")
  73. #define IPROPNAME_DISABLEROLLBACK TEXT("DISABLEROLLBACK") // disable rollback for this install
  74. #define IPROPNAME_AVAILABLEFREEREG TEXT("AVAILABLEFREEREG") // set up the free space in the registry before commencing the install
  75. #define IPROPNAME_DISABLEADVTSHORTCUTS TEXT("DISABLEADVTSHORTCUTS") // disable creating darwin shortcuts even if supported
  76. #define IPROPNAME_PATCHNEWPACKAGECODE TEXT("PATCHNEWPACKAGECODE") // added to property table by patch transforms - used to update
  77. // PackageCode of admin packages when patching admin installs
  78. #define IPROPNAME_PATCHNEWSUMMARYSUBJECT TEXT("PATCHNEWSUMMARYSUBJECT") // added to property table by patch transforms - used to update
  79. // Subject summary info property of admin packages when patching admin installs
  80. #define IPROPNAME_PATCHNEWSUMMARYCOMMENTS TEXT("PATCHNEWSUMMARYCOMMENTS") // added to property table by patch transforms - used to update
  81. // Comments summary info property of admin packages when patching admin installs
  82. #define IPROPNAME_PRODUCTLANGUAGE TEXT("PRODUCTLANGUAGE") // requested language, must be one in summary information list, selects language transform
  83. #if (_WIN32_MSI >= 150)
  84. #define IPROPNAME_CHECKCRCS TEXT("MSICHECKCRCS") // requests Darwin to check CRCs after copying, moving, patching & duplicating files.
  85. #define IPROPNAME_MSINODISABLEMEDIA TEXT("MSINODISABLEMEDIA") // if set, DISABLEMEDIA won't be set in the AdminProperties stream during an admin install of
  86. // a package with compressed source
  87. // property used for URT bootstrapping
  88. #define IPROPNAME_CARRYINGNDP TEXT("CARRYINGNDP")
  89. #define IPROPVALUE__CARRYINGNDP_URTREINSTALL TEXT("URTREINSTALL") // reinstalling/ uninstalling core URT files
  90. #define IPROPVALUE__CARRYINGNDP_URTUPGRADE TEXT("URTUPGRADE") // upgrading core URT files
  91. // properties used for multiple instance support
  92. #define IPROPNAME_MSINEWINSTANCE TEXT("MSINEWINSTANCE")
  93. #define IPROPNAME_MSIINSTANCEGUID TEXT("MSIINSTANCEGUID")
  94. #endif // (_WIN32_MSI >= 150)
  95. // Properties used to populate Add/Remove Control Panel values
  96. #define IPROPNAME_ARPAUTHORIZEDCDFPREFIX TEXT("ARPAUTHORIZEDCDFPREFIX")
  97. #define IPROPNAME_ARPCOMMENTS TEXT("ARPCOMMENTS")
  98. #define IPROPNAME_ARPCONTACT TEXT("ARPCONTACT")
  99. #define IPROPNAME_ARPHELPLINK TEXT("ARPHELPLINK")
  100. #define IPROPNAME_ARPHELPTELEPHONE TEXT("ARPHELPTELEPHONE")
  101. #define IPROPNAME_ARPINSTALLLOCATION TEXT("ARPINSTALLLOCATION")
  102. #define IPROPNAME_ARPNOMODIFY TEXT("ARPNOMODIFY")
  103. #define IPROPNAME_ARPNOREMOVE TEXT("ARPNOREMOVE")
  104. #define IPROPNAME_ARPNOREPAIR TEXT("ARPNOREPAIR")
  105. #define IPROPNAME_ARPREADME TEXT("ARPREADME")
  106. #define IPROPNAME_ARPSIZE TEXT("ARPSIZE")
  107. #define IPROPNAME_ARPSYSTEMCOMPONENT TEXT("ARPSYSTEMCOMPONENT")
  108. #define IPROPNAME_ARPURLINFOABOUT TEXT("ARPURLINFOABOUT")
  109. #define IPROPNAME_ARPURLUPDATEINFO TEXT("ARPURLUPDATEINFO")
  110. #if (_WIN32_MSI >= 110)
  111. #define IPROPNAME_ARPPRODUCTICON TEXT("ARPPRODUCTICON")
  112. #endif //(_WIN32_MSI >= 110)
  113. // Dynamic properties set by installer during install
  114. #define IPROPNAME_INSTALLED TEXT("Installed") // product already installed
  115. #define IPROPNAME_PRODUCTSTATE TEXT("ProductState") // state of product (installed,advertised,etc...)
  116. #define IPROPNAME_PRESELECTED TEXT("Preselected") // selections made on command line
  117. #define IPROPNAME_RESUME TEXT("RESUME") // resuming suspended install
  118. #define IPROPNAME_UPDATESTARTED TEXT("UpdateStarted") // have begun to update system
  119. #define IPROPNAME_PRODUCTID TEXT("ProductID") // the complete validated Product ID
  120. #define IPROPNAME_OUTOFDISKSPACE TEXT("OutOfDiskSpace")
  121. #define IPROPNAME_OUTOFNORBDISKSPACE TEXT("OutOfNoRbDiskSpace")
  122. #define IPROPNAME_COSTINGCOMPLETE TEXT("CostingComplete")
  123. #define IPROPNAME_SOURCEDIR TEXT("SourceDir") // source location - SET BY INSTALLER
  124. #define IPROPNAME_REPLACEDINUSEFILES TEXT("ReplacedInUseFiles") // need reboot to completely install one or more files
  125. #define IPROPNAME_PRIMARYFOLDER_PATH TEXT("PrimaryVolumePath")
  126. #define IPROPNAME_PRIMARYFOLDER_SPACEAVAILABLE TEXT("PrimaryVolumeSpaceAvailable")
  127. #define IPROPNAME_PRIMARYFOLDER_SPACEREQUIRED TEXT("PrimaryVolumeSpaceRequired")
  128. #define IPROPNAME_PRIMARYFOLDER_SPACEREMAINING TEXT("PrimaryVolumeSpaceRemaining")
  129. #define IPROPNAME_ISADMINPACKAGE TEXT("IsAdminPackage")
  130. #define IPROPNAME_ROLLBACKDISABLED TEXT("RollbackDisabled")
  131. #define IPROPNAME_RESTRICTEDUSERCONTROL TEXT("RestrictedUserControl")
  132. // Dynamic properties evaluated upon use
  133. #define IPROPNAME_TIME TEXT("Time")
  134. #define IPROPNAME_DATE TEXT("Date")
  135. #define IPROPNAME_DATETIME TEXT("DateTime")
  136. // Hardware properties: set by installer at initialization
  137. #define IPROPNAME_INTEL TEXT("Intel")
  138. #define IPROPNAME_ALPHA TEXT("Alpha")
  139. #if (_WIN32_MSI >= 110)
  140. #define IPROPNAME_ALPHA64 TEXT("Alpha64")
  141. #if (_WIN32_MSI >= 150)
  142. #define IPROPNAME_INTEL64 TEXT("Intel64")
  143. #else // (_WIN32_MSI >= 150)
  144. #define IPROPNAME_IA64 TEXT("IA64")
  145. #endif // (_WIN32_MSI >= 150)
  146. #endif //(_WIN32_MSI >= 110)
  147. #define IPROPNAME_TEXTHEIGHT TEXT("TextHeight")
  148. #define IPROPNAME_SCREENX TEXT("ScreenX")
  149. #define IPROPNAME_SCREENY TEXT("ScreenY")
  150. #define IPROPNAME_CAPTIONHEIGHT TEXT("CaptionHeight")
  151. #define IPROPNAME_BORDERTOP TEXT("BorderTop")
  152. #define IPROPNAME_BORDERSIDE TEXT("BorderSide")
  153. #define IPROPNAME_COLORBITS TEXT("ColorBits")
  154. #define IPROPNAME_PHYSICALMEMORY TEXT("PhysicalMemory")
  155. #define IPROPNAME_VIRTUALMEMORY TEXT("VirtualMemory")
  156. #if (_WIN32_MSI >= 150)
  157. #define IPROPNAME_TEXTHEIGHT_CORRECTION TEXT("TextHeightCorrection")
  158. #endif // (_WIN32_MSI >= 150)
  159. // Operating System properties: set by installer at initialization
  160. #define IPROPNAME_VERSIONNT TEXT("VersionNT")
  161. #define IPROPNAME_VERSION9X TEXT("Version9X")
  162. #if (_WIN32_MSI >= 150)
  163. #define IPROPNAME_VERSIONNT64 TEXT("VersionNT64")
  164. #endif // (_WIN32_MSI >= 150)
  165. #define IPROPNAME_WINDOWSBUILD TEXT("WindowsBuild")
  166. #define IPROPNAME_SERVICEPACKLEVEL TEXT("ServicePackLevel")
  167. #if (_WIN32_MSI >= 110)
  168. #define IPROPNAME_SERVICEPACKLEVELMINOR TEXT("ServicePackLevelMinor")
  169. #endif //(_WIN32_MSI >= 110)
  170. #define IPROPNAME_SHAREDWINDOWS TEXT("SharedWindows")
  171. #define IPROPNAME_COMPUTERNAME TEXT("ComputerName")
  172. #define IPROPNAME_SHELLADVTSUPPORT TEXT("ShellAdvtSupport")
  173. #define IPROPNAME_OLEADVTSUPPORT TEXT("OLEAdvtSupport")
  174. #define IPROPNAME_SYSTEMLANGUAGEID TEXT("SystemLanguageID")
  175. #define IPROPNAME_TTCSUPPORT TEXT("TTCSupport")
  176. #define IPROPNAME_TERMSERVER TEXT("TerminalServer")
  177. #if (_WIN32_MSI >= 110)
  178. #define IPROPNAME_REMOTEADMINTS TEXT("RemoteAdminTS")
  179. #define IPROPNAME_REDIRECTEDDLLSUPPORT TEXT("RedirectedDllSupport")
  180. #endif //(_WIN32_MSI >= 110)
  181. #if (_WIN32_MSI >= 150)
  182. #define IPROPNAME_NTPRODUCTTYPE TEXT("MsiNTProductType")
  183. #define IPROPNAME_NTSUITEBACKOFFICE TEXT("MsiNTSuiteBackOffice")
  184. #define IPROPNAME_NTSUITEDATACENTER TEXT("MsiNTSuiteDataCenter")
  185. #define IPROPNAME_NTSUITEENTERPRISE TEXT("MsiNTSuiteEnterprise")
  186. #define IPROPNAME_NTSUITESMALLBUSINESS TEXT("MsiNTSuiteSmallBusiness")
  187. #define IPROPNAME_NTSUITESMALLBUSINESSRESTRICTED TEXT("MsiNTSuiteSmallBusinessRestricted")
  188. #define IPROPNAME_NTSUITEPERSONAL TEXT("MsiNTSuitePersonal")
  189. #define IPROPNAME_NETASSEMBLYSUPPORT TEXT("MsiNetAssemblySupport")
  190. #define IPROPNAME_WIN32ASSEMBLYSUPPORT TEXT("MsiWin32AssemblySupport")
  191. #endif // (_WIN32_MSI >= 150)
  192. // User properties: set by installer at initialization
  193. #define IPROPNAME_LOGONUSER TEXT("LogonUser")
  194. #define IPROPNAME_USERSID TEXT("UserSID")
  195. #define IPROPNAME_ADMINUSER TEXT("AdminUser")
  196. #define IPROPNAME_USERLANGUAGEID TEXT("UserLanguageID")
  197. #define IPROPNAME_PRIVILEGED TEXT("Privileged")
  198. // System folder properties: set by installer at initialization
  199. #define IPROPNAME_WINDOWS_FOLDER TEXT("WindowsFolder")
  200. #define IPROPNAME_SYSTEM_FOLDER TEXT("SystemFolder")
  201. #define IPROPNAME_SYSTEM16_FOLDER TEXT("System16Folder")
  202. #define IPROPNAME_WINDOWS_VOLUME TEXT("WindowsVolume")
  203. #define IPROPNAME_TEMP_FOLDER TEXT("TempFolder")
  204. #define IPROPNAME_PROGRAMFILES_FOLDER TEXT("ProgramFilesFolder")
  205. #define IPROPNAME_COMMONFILES_FOLDER TEXT("CommonFilesFolder")
  206. #if (_WIN32_MSI >= 150)
  207. #define IPROPNAME_SYSTEM64_FOLDER TEXT("System64Folder")
  208. #define IPROPNAME_PROGRAMFILES64_FOLDER TEXT("ProgramFiles64Folder")
  209. #define IPROPNAME_COMMONFILES64_FOLDER TEXT("CommonFiles64Folder")
  210. #endif // (_WIN32_MSI >= 150)
  211. #define IPROPNAME_STARTMENU_FOLDER TEXT("StartMenuFolder")
  212. #define IPROPNAME_PROGRAMMENU_FOLDER TEXT("ProgramMenuFolder")
  213. #define IPROPNAME_STARTUP_FOLDER TEXT("StartupFolder")
  214. #define IPROPNAME_NETHOOD_FOLDER TEXT("NetHoodFolder")
  215. #define IPROPNAME_PERSONAL_FOLDER TEXT("PersonalFolder")
  216. #define IPROPNAME_SENDTO_FOLDER TEXT("SendToFolder")
  217. #define IPROPNAME_DESKTOP_FOLDER TEXT("DesktopFolder")
  218. #define IPROPNAME_TEMPLATE_FOLDER TEXT("TemplateFolder")
  219. #define IPROPNAME_FONTS_FOLDER TEXT("FontsFolder")
  220. #define IPROPNAME_FAVORITES_FOLDER TEXT("FavoritesFolder")
  221. #define IPROPNAME_RECENT_FOLDER TEXT("RecentFolder")
  222. #define IPROPNAME_APPDATA_FOLDER TEXT("AppDataFolder")
  223. #define IPROPNAME_PRINTHOOD_FOLDER TEXT("PrintHoodFolder")
  224. #if (_WIN32_MSI >= 110)
  225. #define IPROPNAME_ADMINTOOLS_FOLDER TEXT("AdminToolsFolder")
  226. #define IPROPNAME_COMMONAPPDATA_FOLDER TEXT("CommonAppDataFolder")
  227. #define IPROPNAME_LOCALAPPDATA_FOLDER TEXT("LocalAppDataFolder")
  228. #define IPROPNAME_MYPICTURES_FOLDER TEXT("MyPicturesFolder")
  229. #endif //(_WIN32_MSI >= 110)
  230. // Feature/Component installation properties: set on command-line
  231. #define IPROPNAME_FEATUREADDLOCAL TEXT("ADDLOCAL")
  232. #define IPROPNAME_FEATUREADDSOURCE TEXT("ADDSOURCE")
  233. #define IPROPNAME_FEATUREADDDEFAULT TEXT("ADDDEFAULT")
  234. #define IPROPNAME_FEATUREREMOVE TEXT("REMOVE")
  235. #define IPROPNAME_FEATUREADVERTISE TEXT("ADVERTISE")
  236. #define IPROPVALUE_FEATURE_ALL TEXT("ALL")
  237. #define IPROPNAME_COMPONENTADDLOCAL TEXT("COMPADDLOCAL")
  238. #define IPROPNAME_COMPONENTADDSOURCE TEXT("COMPADDSOURCE")
  239. #define IPROPNAME_COMPONENTADDDEFAULT TEXT("COMPADDDEFAULT")
  240. #define IPROPNAME_FILEADDLOCAL TEXT("FILEADDLOCAL")
  241. #define IPROPNAME_FILEADDSOURCE TEXT("FILEADDSOURCE")
  242. #define IPROPNAME_FILEADDDEFAULT TEXT("FILEADDDEFAULT")
  243. #define IPROPNAME_REINSTALL TEXT("REINSTALL")
  244. #define IPROPNAME_REINSTALLMODE TEXT("REINSTALLMODE")
  245. #define IPROPNAME_PROMPTROLLBACKCOST TEXT("PROMPTROLLBACKCOST")
  246. #define IPROPVALUE_RBCOST_PROMPT TEXT("P")
  247. #define IPROPVALUE_RBCOST_SILENT TEXT("D")
  248. #define IPROPVALUE_RBCOST_FAIL TEXT("F")
  249. // Property for custom actions to communicate
  250. #define IPROPNAME_CUSTOMACTIONDATA TEXT("CustomActionData")
  251. //__________________________________________________________________________
  252. //
  253. // TOP-LEVEL ACTION NAMES
  254. //__________________________________________________________________________
  255. #define IACTIONNAME_INSTALL TEXT("INSTALL")
  256. #define IACTIONNAME_ADVERTISE TEXT("ADVERTISE")
  257. #define IACTIONNAME_ADMIN TEXT("ADMIN")
  258. #define IACTIONNAME_SEQUENCE TEXT("SEQUENCE")
  259. #define IACTIONNAME_COLLECTUSERINFO TEXT("CollectUserInfo")
  260. #define IACTIONNAME_FIRSTRUN TEXT("FirstRun")
  261. //__________________________________________________________________________
  262. //
  263. // SummaryInformation property stream property IDs
  264. //__________________________________________________________________________
  265. #undef PID_SECURITY // defined as ( 0x80000002 ) in objidl.h, need to redefine here
  266. // standard property definitions, from OLE2 documentation
  267. #define PID_DICTIONARY ( 0 )// integer count + array of entries
  268. #define PID_CODEPAGE ( 0x1 )// short integer
  269. #define PID_TITLE 2 // string
  270. #define PID_SUBJECT 3 // string
  271. #define PID_AUTHOR 4 // string
  272. #define PID_KEYWORDS 5 // string
  273. #define PID_COMMENTS 6 // string
  274. #define PID_TEMPLATE 7 // string
  275. #define PID_LASTAUTHOR 8 // string
  276. #define PID_REVNUMBER 9 // string
  277. #define PID_EDITTIME 10 // datatime
  278. #define PID_LASTPRINTED 11 // datetime
  279. #define PID_CREATE_DTM 12 // datetime
  280. #define PID_LASTSAVE_DTM 13 // datetime
  281. #define PID_PAGECOUNT 14 // integer
  282. #define PID_WORDCOUNT 15 // integer
  283. #define PID_CHARCOUNT 16 // integer
  284. #define PID_THUMBNAIL 17 // clipboard format + metafile/bitmap (not supported)
  285. #define PID_APPNAME 18 // string
  286. #define PID_SECURITY 19 // integer
  287. // PIDs given specific meanings for Installer
  288. #define PID_MSIVERSION PID_PAGECOUNT // integer, Installer version number (major*100+minor)
  289. #define PID_MSISOURCE PID_WORDCOUNT // integer, type of file image, short/long, media/tree
  290. #define PID_MSIRESTRICT PID_CHARCOUNT // integer, transform restrictions
  291. //__________________________________________________________________________
  292. //
  293. // INSTALLER DATABASE INTEGER COLUMN DEFINITIONS
  294. //__________________________________________________________________________
  295. // BBControl.Attributes
  296. // Control.Attributes
  297. enum msidbControlAttributes
  298. {
  299. msidbControlAttributesVisible = 0x00000001,
  300. msidbControlAttributesEnabled = 0x00000002,
  301. msidbControlAttributesSunken = 0x00000004,
  302. msidbControlAttributesIndirect = 0x00000008,
  303. msidbControlAttributesInteger = 0x00000010,
  304. msidbControlAttributesRTLRO = 0x00000020,
  305. msidbControlAttributesRightAligned = 0x00000040,
  306. msidbControlAttributesLeftScroll = 0x00000080,
  307. msidbControlAttributesBiDi = msidbControlAttributesRTLRO |
  308. msidbControlAttributesRightAligned |
  309. msidbControlAttributesLeftScroll,
  310. // Text controls
  311. msidbControlAttributesTransparent = 0x00010000,
  312. msidbControlAttributesNoPrefix = 0x00020000,
  313. msidbControlAttributesNoWrap = 0x00040000,
  314. msidbControlAttributesFormatSize = 0x00080000,
  315. msidbControlAttributesUsersLanguage = 0x00100000,
  316. // Edit controls
  317. msidbControlAttributesMultiline = 0x00010000,
  318. #if (_WIN32_MSI >= 110)
  319. msidbControlAttributesPasswordInput = 0x00200000,
  320. #endif //(_WIN32_MSI >= 110)
  321. // ProgressBar controls
  322. msidbControlAttributesProgress95 = 0x00010000,
  323. // VolumeSelectCombo and DirectoryCombo controls
  324. msidbControlAttributesRemovableVolume = 0x00010000,
  325. msidbControlAttributesFixedVolume = 0x00020000,
  326. msidbControlAttributesRemoteVolume = 0x00040000,
  327. msidbControlAttributesCDROMVolume = 0x00080000,
  328. msidbControlAttributesRAMDiskVolume = 0x00100000,
  329. msidbControlAttributesFloppyVolume = 0x00200000,
  330. // VolumeCostList controls
  331. msidbControlShowRollbackCost = 0x00400000,
  332. // ListBox and ComboBox controls
  333. msidbControlAttributesSorted = 0x00010000,
  334. msidbControlAttributesComboList = 0x00020000,
  335. // picture button controls
  336. msidbControlAttributesImageHandle = 0x00010000,
  337. msidbControlAttributesPushLike = 0x00020000,
  338. msidbControlAttributesBitmap = 0x00040000,
  339. msidbControlAttributesIcon = 0x00080000,
  340. msidbControlAttributesFixedSize = 0x00100000,
  341. msidbControlAttributesIconSize16 = 0x00200000,
  342. msidbControlAttributesIconSize32 = 0x00400000,
  343. msidbControlAttributesIconSize48 = 0x00600000,
  344. // RadioButton controls
  345. msidbControlAttributesHasBorder = 0x01000000,
  346. };
  347. // CompLocator.Type
  348. // IniLocator.Type
  349. // RegLocator.Type
  350. typedef enum _msidbLocatorType
  351. {
  352. msidbLocatorTypeDirectory = 0x00000000,
  353. msidbLocatorTypeFileName = 0x00000001,
  354. #if (_WIN32_MSI >= 110)
  355. msidbLocatorTypeRawValue = 0x00000002,
  356. #endif //(_WIN32_MSI >= 110)
  357. #if (_WIN32_MSI >= 150)
  358. msidbLocatorType64bit = 0x00000010,
  359. #endif //(_WIN32_MSI >= 150)
  360. } msidbLocatorType;
  361. // Component.Attributes
  362. enum msidbComponentAttributes
  363. {
  364. msidbComponentAttributesLocalOnly = 0x00000000,
  365. msidbComponentAttributesSourceOnly = 0x00000001,
  366. msidbComponentAttributesOptional = 0x00000002, // local or source
  367. msidbComponentAttributesRegistryKeyPath = 0x00000004, // KeyPath is key to Registry table
  368. msidbComponentAttributesSharedDllRefCount = 0x00000008, // increment SharedDll count
  369. msidbComponentAttributesPermanent = 0x00000010, // never uninstall component
  370. msidbComponentAttributesODBCDataSource = 0x00000020, // KeyFile is key to ODBCDataSource table
  371. msidbComponentAttributesTransitive = 0x00000040, // Can transition to/from installed/uninstalled based on changing conditional
  372. msidbComponentAttributesNeverOverwrite = 0x00000080, // dont stomp over existing component if key path exists (file/ regkey)
  373. #if (_WIN32_MSI >= 150)
  374. msidbComponentAttributes64bit = 0x00000100, // designates a 64-bit component; 32-bit if missing.
  375. #endif // (_WIN32_MSI >= 150)
  376. };
  377. #if (_WIN32_MSI >= 150)
  378. // Assembly.Attributes
  379. enum msidbAssemblyAttributes
  380. {
  381. msidbAssemblyAttributesURT = 0x00000000,
  382. msidbAssemblyAttributesWin32 = 0x00000001,
  383. };
  384. #endif // (_WIN32_MSI >= 150)
  385. // CustomAction.Type
  386. enum msidbCustomActionType
  387. {
  388. // executable types
  389. msidbCustomActionTypeDll = 0x00000001, // Target = entry point name
  390. msidbCustomActionTypeExe = 0x00000002, // Target = command line args
  391. msidbCustomActionTypeTextData = 0x00000003, // Target = text string to be formatted and set into property
  392. msidbCustomActionTypeJScript = 0x00000005, // Target = entry point name, null if none to call
  393. msidbCustomActionTypeVBScript = 0x00000006, // Target = entry point name, null if none to call
  394. msidbCustomActionTypeInstall = 0x00000007, // Target = property list for nested engine initialization
  395. // source of code
  396. msidbCustomActionTypeBinaryData = 0x00000000, // Source = Binary.Name, data stored in stream
  397. msidbCustomActionTypeSourceFile = 0x00000010, // Source = File.File, file part of installation
  398. msidbCustomActionTypeDirectory = 0x00000020, // Source = Directory.Directory, folder containing existing file
  399. msidbCustomActionTypeProperty = 0x00000030, // Source = Property.Property, full path to executable
  400. // return processing // default is syncronous execution, process return code
  401. msidbCustomActionTypeContinue = 0x00000040, // ignore action return status, continue running
  402. msidbCustomActionTypeAsync = 0x00000080, // run asynchronously
  403. // execution scheduling flags // default is execute whenever sequenced
  404. msidbCustomActionTypeFirstSequence = 0x00000100, // skip if UI sequence already run
  405. msidbCustomActionTypeOncePerProcess = 0x00000200, // skip if UI sequence already run in same process
  406. msidbCustomActionTypeClientRepeat = 0x00000300, // run on client only if UI already run on client
  407. msidbCustomActionTypeInScript = 0x00000400, // queue for execution within script
  408. msidbCustomActionTypeRollback = 0x00000100, // in conjunction with InScript: queue in Rollback script
  409. msidbCustomActionTypeCommit = 0x00000200, // in conjunction with InScript: run Commit ops from script on success
  410. // security context flag, default to impersonate as user, valid only if InScript
  411. msidbCustomActionTypeNoImpersonate = 0x00000800, // no impersonation, run in system context
  412. #if (_WIN32_MSI >= 150)
  413. // script requires 64bit process
  414. msidbCustomActionType64BitScript = 0x00001000, // script should run in 64bit process
  415. // don't record the contents of the Target field in the log file.
  416. msidbCustomActionTypeHideTarget = 0x00002000,
  417. #endif // (_WIN32_MSI >= 150)
  418. };
  419. // Dialog.Attributes
  420. enum msidbDialogAttributes
  421. {
  422. msidbDialogAttributesVisible = 0x00000001,
  423. msidbDialogAttributesModal = 0x00000002,
  424. msidbDialogAttributesMinimize = 0x00000004,
  425. msidbDialogAttributesSysModal = 0x00000008,
  426. msidbDialogAttributesKeepModeless = 0x00000010,
  427. msidbDialogAttributesTrackDiskSpace = 0x00000020,
  428. msidbDialogAttributesUseCustomPalette = 0x00000040,
  429. msidbDialogAttributesRTLRO = 0x00000080,
  430. msidbDialogAttributesRightAligned = 0x00000100,
  431. msidbDialogAttributesLeftScroll = 0x00000200,
  432. msidbDialogAttributesBiDi = msidbDialogAttributesRTLRO |
  433. msidbDialogAttributesRightAligned |
  434. msidbDialogAttributesLeftScroll,
  435. msidbDialogAttributesError = 0x00010000,
  436. };
  437. // Feature.Attributes
  438. enum msidbFeatureAttributes
  439. {
  440. msidbFeatureAttributesFavorLocal = 0x00000000,
  441. msidbFeatureAttributesFavorSource = 0x00000001,
  442. msidbFeatureAttributesFollowParent = 0x00000002,
  443. msidbFeatureAttributesFavorAdvertise = 0x00000004,
  444. msidbFeatureAttributesDisallowAdvertise = 0x00000008,
  445. msidbFeatureAttributesUIDisallowAbsent = 0x00000010,
  446. msidbFeatureAttributesNoUnsupportedAdvertise= 0x00000020,
  447. };
  448. // File.Attributes
  449. enum msidbFileAttributes
  450. {
  451. msidbFileAttributesReadOnly = 0x00000001,
  452. msidbFileAttributesHidden = 0x00000002,
  453. msidbFileAttributesSystem = 0x00000004,
  454. msidbFileAttributesReserved0 = 0x00000008, // Internal use only - must be 0
  455. msidbFileAttributesReserved1 = 0x00000040, // Internal use only - must be 0
  456. msidbFileAttributesReserved2 = 0x00000080, // Internal use only - must be 0
  457. msidbFileAttributesReserved3 = 0x00000100, // Internal use only - must be 0
  458. msidbFileAttributesVital = 0x00000200,
  459. msidbFileAttributesChecksum = 0x00000400,
  460. msidbFileAttributesPatchAdded = 0x00001000, // Internal use only - set by patches
  461. msidbFileAttributesNoncompressed = 0x00002000,
  462. msidbFileAttributesCompressed = 0x00004000,
  463. msidbFileAttributesReserved4 = 0x00008000, // Internal use only - must be 0
  464. };
  465. // IniFile.Action
  466. // RemoveIniFile.Action
  467. typedef enum _msidbIniFileAction
  468. {
  469. msidbIniFileActionAddLine = 0x00000000,
  470. msidbIniFileActionCreateLine = 0x00000001,
  471. msidbIniFileActionRemoveLine = 0x00000002,
  472. msidbIniFileActionAddTag = 0x00000003,
  473. msidbIniFileActionRemoveTag = 0x00000004,
  474. } msidbIniFileAction;
  475. // MoveFile.Options
  476. enum msidbMoveFileOptions
  477. {
  478. msidbMoveFileOptionsMove = 0x00000001,
  479. };
  480. // ODBCDataSource.Registration
  481. typedef enum _msidbODBCDataSourceRegistration
  482. {
  483. msidbODBCDataSourceRegistrationPerMachine = 0x00000000,
  484. msidbODBCDataSourceRegistrationPerUser = 0x00000001,
  485. } msidbODBCDataSourceRegistration;
  486. #if (_WIN32_MSI >= 110)
  487. // Class.Attributes
  488. enum msidbClassAttributes
  489. {
  490. msidbClassAttributesRelativePath = 0x00000001,
  491. };
  492. #endif //(_WIN32_MSI >= 110)
  493. // Patch.Attributes
  494. enum msidbPatchAttributes
  495. {
  496. msidbPatchAttributesNonVital = 0x00000001,
  497. };
  498. // Registry.Root
  499. // RegLocator.Root
  500. // RemoveRegistry.Root
  501. enum msidbRegistryRoot
  502. {
  503. msidbRegistryRootClassesRoot = 0,
  504. msidbRegistryRootCurrentUser = 1,
  505. msidbRegistryRootLocalMachine = 2,
  506. msidbRegistryRootUsers = 3,
  507. };
  508. // RemoveFile.InstallMode
  509. enum msidbRemoveFileInstallMode
  510. {
  511. msidbRemoveFileInstallModeOnInstall = 0x00000001,
  512. msidbRemoveFileInstallModeOnRemove = 0x00000002,
  513. msidbRemoveFileInstallModeOnBoth = 0x00000003,
  514. };
  515. // ServiceControl.Event
  516. enum msidbServiceControlEvent
  517. {
  518. msidbServiceControlEventStart = 0x00000001,
  519. msidbServiceControlEventStop = 0x00000002,
  520. msidbServiceControlEventDelete = 0x00000008,
  521. msidbServiceControlEventUninstallStart = 0x00000010,
  522. msidbServiceControlEventUninstallStop = 0x00000020,
  523. msidbServiceControlEventUninstallDelete = 0x00000080,
  524. };
  525. // ServiceInstall.ErrorControl
  526. enum msidbServiceInstallErrorControl
  527. {
  528. msidbServiceInstallErrorControlVital = 0x00008000,
  529. };
  530. // TextStyle.StyleBits
  531. enum msidbTextStyleStyleBits
  532. {
  533. msidbTextStyleStyleBitsBold = 0x00000001,
  534. msidbTextStyleStyleBitsItalic = 0x00000002,
  535. msidbTextStyleStyleBitsUnderline = 0x00000004,
  536. msidbTextStyleStyleBitsStrike = 0x00000008,
  537. };
  538. #if (_WIN32_MSI >= 110)
  539. // Upgrade.Attributes
  540. enum msidbUpgradeAttributes
  541. {
  542. msidbUpgradeAttributesMigrateFeatures = 0x00000001,
  543. msidbUpgradeAttributesOnlyDetect = 0x00000002,
  544. msidbUpgradeAttributesIgnoreRemoveFailure = 0x00000004,
  545. msidbUpgradeAttributesVersionMinInclusive = 0x00000100,
  546. msidbUpgradeAttributesVersionMaxInclusive = 0x00000200,
  547. msidbUpgradeAttributesLanguagesExclusive = 0x00000400,
  548. };
  549. #endif //(_WIN32_MSI >= 110)
  550. //__________________________________________________________________________
  551. //
  552. // SUMMARY INFORMATION PROPERTY DEFINITIONS
  553. //__________________________________________________________________________
  554. enum msidbSumInfoSourceType
  555. {
  556. msidbSumInfoSourceTypeSFN = 0x00000001, // source uses short filenames
  557. msidbSumInfoSourceTypeCompressed = 0x00000002, // source is compressed
  558. msidbSumInfoSourceTypeAdminImage = 0x00000004, // source is an admin image
  559. };
  560. #endif // __MSIDEFS