Leaked source code of windows server 2003
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.

638 lines
30 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation. All rights reserved.
  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. // property used for multiple instance support
  92. #define IPROPNAME_MSINEWINSTANCE TEXT("MSINEWINSTANCE")
  93. #define IPROPNAME_MSIINSTANCEGUID TEXT("MSIINSTANCEGUID")
  94. // properties used for URL download reduction for admins
  95. #define IPROPNAME_MSIPACKAGEDOWNLOADLOCALCOPY TEXT("MSIPACKAGEDOWNLOADLOCALCOPY")
  96. #define IPROPNAME_MSIPATCHDOWNLOADLOCALCOPY TEXT("MSIPATCHDOWNLOADLOCALCOPY")
  97. #endif // (_WIN32_MSI >= 150)
  98. // Properties used to populate Add/Remove Control Panel values
  99. #define IPROPNAME_ARPAUTHORIZEDCDFPREFIX TEXT("ARPAUTHORIZEDCDFPREFIX")
  100. #define IPROPNAME_ARPCOMMENTS TEXT("ARPCOMMENTS")
  101. #define IPROPNAME_ARPCONTACT TEXT("ARPCONTACT")
  102. #define IPROPNAME_ARPHELPLINK TEXT("ARPHELPLINK")
  103. #define IPROPNAME_ARPHELPTELEPHONE TEXT("ARPHELPTELEPHONE")
  104. #define IPROPNAME_ARPINSTALLLOCATION TEXT("ARPINSTALLLOCATION")
  105. #define IPROPNAME_ARPNOMODIFY TEXT("ARPNOMODIFY")
  106. #define IPROPNAME_ARPNOREMOVE TEXT("ARPNOREMOVE")
  107. #define IPROPNAME_ARPNOREPAIR TEXT("ARPNOREPAIR")
  108. #define IPROPNAME_ARPREADME TEXT("ARPREADME")
  109. #define IPROPNAME_ARPSIZE TEXT("ARPSIZE")
  110. #define IPROPNAME_ARPSYSTEMCOMPONENT TEXT("ARPSYSTEMCOMPONENT")
  111. #define IPROPNAME_ARPURLINFOABOUT TEXT("ARPURLINFOABOUT")
  112. #define IPROPNAME_ARPURLUPDATEINFO TEXT("ARPURLUPDATEINFO")
  113. #if (_WIN32_MSI >= 110)
  114. #define IPROPNAME_ARPPRODUCTICON TEXT("ARPPRODUCTICON")
  115. #endif //(_WIN32_MSI >= 110)
  116. // Dynamic properties set by installer during install
  117. #define IPROPNAME_INSTALLED TEXT("Installed") // product already installed
  118. #define IPROPNAME_PRODUCTSTATE TEXT("ProductState") // state of product (installed,advertised,etc...)
  119. #define IPROPNAME_PRESELECTED TEXT("Preselected") // selections made on command line
  120. #define IPROPNAME_RESUME TEXT("RESUME") // resuming suspended install
  121. #define IPROPNAME_UPDATESTARTED TEXT("UpdateStarted") // have begun to update system
  122. #define IPROPNAME_PRODUCTID TEXT("ProductID") // the complete validated Product ID
  123. #define IPROPNAME_OUTOFDISKSPACE TEXT("OutOfDiskSpace")
  124. #define IPROPNAME_OUTOFNORBDISKSPACE TEXT("OutOfNoRbDiskSpace")
  125. #define IPROPNAME_COSTINGCOMPLETE TEXT("CostingComplete")
  126. #define IPROPNAME_SOURCEDIR TEXT("SourceDir") // source location - SET BY INSTALLER
  127. #define IPROPNAME_REPLACEDINUSEFILES TEXT("ReplacedInUseFiles") // need reboot to completely install one or more files
  128. #define IPROPNAME_PRIMARYFOLDER_PATH TEXT("PrimaryVolumePath")
  129. #define IPROPNAME_PRIMARYFOLDER_SPACEAVAILABLE TEXT("PrimaryVolumeSpaceAvailable")
  130. #define IPROPNAME_PRIMARYFOLDER_SPACEREQUIRED TEXT("PrimaryVolumeSpaceRequired")
  131. #define IPROPNAME_PRIMARYFOLDER_SPACEREMAINING TEXT("PrimaryVolumeSpaceRemaining")
  132. #define IPROPNAME_ISADMINPACKAGE TEXT("IsAdminPackage")
  133. #define IPROPNAME_ROLLBACKDISABLED TEXT("RollbackDisabled")
  134. #define IPROPNAME_RESTRICTEDUSERCONTROL TEXT("RestrictedUserControl")
  135. // Dynamic properties evaluated upon use
  136. #define IPROPNAME_TIME TEXT("Time")
  137. #define IPROPNAME_DATE TEXT("Date")
  138. #define IPROPNAME_DATETIME TEXT("DateTime")
  139. // Hardware properties: set by installer at initialization
  140. #define IPROPNAME_INTEL TEXT("Intel")
  141. #if (_WIN32_MSI >= 150)
  142. #define IPROPNAME_AMD64 TEXT("AMD64")
  143. #define IPROPNAME_INTEL64 TEXT("Intel64")
  144. #else // (_WIN32_MSI >= 150)
  145. #define IPROPNAME_IA64 TEXT("IA64")
  146. #endif // (_WIN32_MSI >= 150)
  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_NTSUITEWEBSERVER TEXT("MsiNTSuiteWebServer")
  190. #define IPROPNAME_NETASSEMBLYSUPPORT TEXT("MsiNetAssemblySupport")
  191. #define IPROPNAME_WIN32ASSEMBLYSUPPORT TEXT("MsiWin32AssemblySupport")
  192. #endif // (_WIN32_MSI >= 150)
  193. // User properties: set by installer at initialization
  194. #define IPROPNAME_LOGONUSER TEXT("LogonUser")
  195. #define IPROPNAME_USERSID TEXT("UserSID")
  196. #define IPROPNAME_ADMINUSER TEXT("AdminUser")
  197. #define IPROPNAME_USERLANGUAGEID TEXT("UserLanguageID")
  198. #define IPROPNAME_PRIVILEGED TEXT("Privileged")
  199. // System folder properties: set by installer at initialization
  200. #define IPROPNAME_WINDOWS_FOLDER TEXT("WindowsFolder")
  201. #define IPROPNAME_SYSTEM_FOLDER TEXT("SystemFolder")
  202. #define IPROPNAME_SYSTEM16_FOLDER TEXT("System16Folder")
  203. #define IPROPNAME_WINDOWS_VOLUME TEXT("WindowsVolume")
  204. #define IPROPNAME_TEMP_FOLDER TEXT("TempFolder")
  205. #define IPROPNAME_PROGRAMFILES_FOLDER TEXT("ProgramFilesFolder")
  206. #define IPROPNAME_COMMONFILES_FOLDER TEXT("CommonFilesFolder")
  207. #if (_WIN32_MSI >= 150)
  208. #define IPROPNAME_SYSTEM64_FOLDER TEXT("System64Folder")
  209. #define IPROPNAME_PROGRAMFILES64_FOLDER TEXT("ProgramFiles64Folder")
  210. #define IPROPNAME_COMMONFILES64_FOLDER TEXT("CommonFiles64Folder")
  211. #endif // (_WIN32_MSI >= 150)
  212. #define IPROPNAME_STARTMENU_FOLDER TEXT("StartMenuFolder")
  213. #define IPROPNAME_PROGRAMMENU_FOLDER TEXT("ProgramMenuFolder")
  214. #define IPROPNAME_STARTUP_FOLDER TEXT("StartupFolder")
  215. #define IPROPNAME_NETHOOD_FOLDER TEXT("NetHoodFolder")
  216. #define IPROPNAME_PERSONAL_FOLDER TEXT("PersonalFolder")
  217. #define IPROPNAME_SENDTO_FOLDER TEXT("SendToFolder")
  218. #define IPROPNAME_DESKTOP_FOLDER TEXT("DesktopFolder")
  219. #define IPROPNAME_TEMPLATE_FOLDER TEXT("TemplateFolder")
  220. #define IPROPNAME_FONTS_FOLDER TEXT("FontsFolder")
  221. #define IPROPNAME_FAVORITES_FOLDER TEXT("FavoritesFolder")
  222. #define IPROPNAME_RECENT_FOLDER TEXT("RecentFolder")
  223. #define IPROPNAME_APPDATA_FOLDER TEXT("AppDataFolder")
  224. #define IPROPNAME_PRINTHOOD_FOLDER TEXT("PrintHoodFolder")
  225. #if (_WIN32_MSI >= 110)
  226. #define IPROPNAME_ADMINTOOLS_FOLDER TEXT("AdminToolsFolder")
  227. #define IPROPNAME_COMMONAPPDATA_FOLDER TEXT("CommonAppDataFolder")
  228. #define IPROPNAME_LOCALAPPDATA_FOLDER TEXT("LocalAppDataFolder")
  229. #define IPROPNAME_MYPICTURES_FOLDER TEXT("MyPicturesFolder")
  230. #endif //(_WIN32_MSI >= 110)
  231. // Feature/Component installation properties: set on command-line
  232. #define IPROPNAME_FEATUREADDLOCAL TEXT("ADDLOCAL")
  233. #define IPROPNAME_FEATUREADDSOURCE TEXT("ADDSOURCE")
  234. #define IPROPNAME_FEATUREADDDEFAULT TEXT("ADDDEFAULT")
  235. #define IPROPNAME_FEATUREREMOVE TEXT("REMOVE")
  236. #define IPROPNAME_FEATUREADVERTISE TEXT("ADVERTISE")
  237. #define IPROPVALUE_FEATURE_ALL TEXT("ALL")
  238. #define IPROPNAME_COMPONENTADDLOCAL TEXT("COMPADDLOCAL")
  239. #define IPROPNAME_COMPONENTADDSOURCE TEXT("COMPADDSOURCE")
  240. #define IPROPNAME_COMPONENTADDDEFAULT TEXT("COMPADDDEFAULT")
  241. #define IPROPNAME_FILEADDLOCAL TEXT("FILEADDLOCAL")
  242. #define IPROPNAME_FILEADDSOURCE TEXT("FILEADDSOURCE")
  243. #define IPROPNAME_FILEADDDEFAULT TEXT("FILEADDDEFAULT")
  244. #define IPROPNAME_REINSTALL TEXT("REINSTALL")
  245. #define IPROPNAME_REINSTALLMODE TEXT("REINSTALLMODE")
  246. #define IPROPNAME_PROMPTROLLBACKCOST TEXT("PROMPTROLLBACKCOST")
  247. #define IPROPVALUE_RBCOST_PROMPT TEXT("P")
  248. #define IPROPVALUE_RBCOST_SILENT TEXT("D")
  249. #define IPROPVALUE_RBCOST_FAIL TEXT("F")
  250. // Property for custom actions to communicate
  251. #define IPROPNAME_CUSTOMACTIONDATA TEXT("CustomActionData")
  252. //__________________________________________________________________________
  253. //
  254. // TOP-LEVEL ACTION NAMES
  255. //__________________________________________________________________________
  256. #define IACTIONNAME_INSTALL TEXT("INSTALL")
  257. #define IACTIONNAME_ADVERTISE TEXT("ADVERTISE")
  258. #define IACTIONNAME_ADMIN TEXT("ADMIN")
  259. #define IACTIONNAME_SEQUENCE TEXT("SEQUENCE")
  260. #define IACTIONNAME_COLLECTUSERINFO TEXT("CollectUserInfo")
  261. #define IACTIONNAME_FIRSTRUN TEXT("FirstRun")
  262. //__________________________________________________________________________
  263. //
  264. // SummaryInformation property stream property IDs
  265. //__________________________________________________________________________
  266. #undef PID_SECURITY // defined as ( 0x80000002 ) in objidl.h, need to redefine here
  267. // standard property definitions, from OLE2 documentation
  268. #define PID_DICTIONARY ( 0 )// integer count + array of entries
  269. #define PID_CODEPAGE ( 0x1 )// short integer
  270. #define PID_TITLE 2 // string
  271. #define PID_SUBJECT 3 // string
  272. #define PID_AUTHOR 4 // string
  273. #define PID_KEYWORDS 5 // string
  274. #define PID_COMMENTS 6 // string
  275. #define PID_TEMPLATE 7 // string
  276. #define PID_LASTAUTHOR 8 // string
  277. #define PID_REVNUMBER 9 // string
  278. #define PID_EDITTIME 10 // datatime
  279. #define PID_LASTPRINTED 11 // datetime
  280. #define PID_CREATE_DTM 12 // datetime
  281. #define PID_LASTSAVE_DTM 13 // datetime
  282. #define PID_PAGECOUNT 14 // integer
  283. #define PID_WORDCOUNT 15 // integer
  284. #define PID_CHARCOUNT 16 // integer
  285. #define PID_THUMBNAIL 17 // clipboard format + metafile/bitmap (not supported)
  286. #define PID_APPNAME 18 // string
  287. #define PID_SECURITY 19 // integer
  288. // PIDs given specific meanings for Installer
  289. #define PID_MSIVERSION PID_PAGECOUNT // integer, Installer version number (major*100+minor)
  290. #define PID_MSISOURCE PID_WORDCOUNT // integer, type of file image, short/long, media/tree
  291. #define PID_MSIRESTRICT PID_CHARCOUNT // integer, transform restrictions
  292. //__________________________________________________________________________
  293. //
  294. // INSTALLER DATABASE INTEGER COLUMN DEFINITIONS
  295. //__________________________________________________________________________
  296. // BBControl.Attributes
  297. // Control.Attributes
  298. enum msidbControlAttributes
  299. {
  300. msidbControlAttributesVisible = 0x00000001,
  301. msidbControlAttributesEnabled = 0x00000002,
  302. msidbControlAttributesSunken = 0x00000004,
  303. msidbControlAttributesIndirect = 0x00000008,
  304. msidbControlAttributesInteger = 0x00000010,
  305. msidbControlAttributesRTLRO = 0x00000020,
  306. msidbControlAttributesRightAligned = 0x00000040,
  307. msidbControlAttributesLeftScroll = 0x00000080,
  308. msidbControlAttributesBiDi = msidbControlAttributesRTLRO |
  309. msidbControlAttributesRightAligned |
  310. msidbControlAttributesLeftScroll,
  311. // Text controls
  312. msidbControlAttributesTransparent = 0x00010000,
  313. msidbControlAttributesNoPrefix = 0x00020000,
  314. msidbControlAttributesNoWrap = 0x00040000,
  315. msidbControlAttributesFormatSize = 0x00080000,
  316. msidbControlAttributesUsersLanguage = 0x00100000,
  317. // Edit controls
  318. msidbControlAttributesMultiline = 0x00010000,
  319. #if (_WIN32_MSI >= 110)
  320. msidbControlAttributesPasswordInput = 0x00200000,
  321. #endif //(_WIN32_MSI >= 110)
  322. // ProgressBar controls
  323. msidbControlAttributesProgress95 = 0x00010000,
  324. // VolumeSelectCombo and DirectoryCombo controls
  325. msidbControlAttributesRemovableVolume = 0x00010000,
  326. msidbControlAttributesFixedVolume = 0x00020000,
  327. msidbControlAttributesRemoteVolume = 0x00040000,
  328. msidbControlAttributesCDROMVolume = 0x00080000,
  329. msidbControlAttributesRAMDiskVolume = 0x00100000,
  330. msidbControlAttributesFloppyVolume = 0x00200000,
  331. // VolumeCostList controls
  332. msidbControlShowRollbackCost = 0x00400000,
  333. // ListBox and ComboBox controls
  334. msidbControlAttributesSorted = 0x00010000,
  335. msidbControlAttributesComboList = 0x00020000,
  336. // picture button controls
  337. msidbControlAttributesImageHandle = 0x00010000,
  338. msidbControlAttributesPushLike = 0x00020000,
  339. msidbControlAttributesBitmap = 0x00040000,
  340. msidbControlAttributesIcon = 0x00080000,
  341. msidbControlAttributesFixedSize = 0x00100000,
  342. msidbControlAttributesIconSize16 = 0x00200000,
  343. msidbControlAttributesIconSize32 = 0x00400000,
  344. msidbControlAttributesIconSize48 = 0x00600000,
  345. // RadioButton controls
  346. msidbControlAttributesHasBorder = 0x01000000,
  347. };
  348. // CompLocator.Type
  349. // IniLocator.Type
  350. // RegLocator.Type
  351. typedef enum _msidbLocatorType
  352. {
  353. msidbLocatorTypeDirectory = 0x00000000,
  354. msidbLocatorTypeFileName = 0x00000001,
  355. #if (_WIN32_MSI >= 110)
  356. msidbLocatorTypeRawValue = 0x00000002,
  357. #endif //(_WIN32_MSI >= 110)
  358. #if (_WIN32_MSI >= 150)
  359. msidbLocatorType64bit = 0x00000010,
  360. #endif //(_WIN32_MSI >= 150)
  361. } msidbLocatorType;
  362. // Component.Attributes
  363. enum msidbComponentAttributes
  364. {
  365. msidbComponentAttributesLocalOnly = 0x00000000,
  366. msidbComponentAttributesSourceOnly = 0x00000001,
  367. msidbComponentAttributesOptional = 0x00000002, // local or source
  368. msidbComponentAttributesRegistryKeyPath = 0x00000004, // KeyPath is key to Registry table
  369. msidbComponentAttributesSharedDllRefCount = 0x00000008, // increment SharedDll count
  370. msidbComponentAttributesPermanent = 0x00000010, // never uninstall component
  371. msidbComponentAttributesODBCDataSource = 0x00000020, // KeyFile is key to ODBCDataSource table
  372. msidbComponentAttributesTransitive = 0x00000040, // Can transition to/from installed/uninstalled based on changing conditional
  373. msidbComponentAttributesNeverOverwrite = 0x00000080, // dont stomp over existing component if key path exists (file/ regkey)
  374. #if (_WIN32_MSI >= 150)
  375. msidbComponentAttributes64bit = 0x00000100, // designates a 64-bit component; 32-bit if missing.
  376. #endif // (_WIN32_MSI >= 150)
  377. };
  378. #if (_WIN32_MSI >= 150)
  379. // Assembly.Attributes
  380. enum msidbAssemblyAttributes
  381. {
  382. msidbAssemblyAttributesURT = 0x00000000,
  383. msidbAssemblyAttributesWin32 = 0x00000001,
  384. };
  385. #endif // (_WIN32_MSI >= 150)
  386. // CustomAction.Type
  387. enum msidbCustomActionType
  388. {
  389. // executable types
  390. msidbCustomActionTypeDll = 0x00000001, // Target = entry point name
  391. msidbCustomActionTypeExe = 0x00000002, // Target = command line args
  392. msidbCustomActionTypeTextData = 0x00000003, // Target = text string to be formatted and set into property
  393. msidbCustomActionTypeJScript = 0x00000005, // Target = entry point name, null if none to call
  394. msidbCustomActionTypeVBScript = 0x00000006, // Target = entry point name, null if none to call
  395. msidbCustomActionTypeInstall = 0x00000007, // Target = property list for nested engine initialization
  396. // source of code
  397. msidbCustomActionTypeBinaryData = 0x00000000, // Source = Binary.Name, data stored in stream
  398. msidbCustomActionTypeSourceFile = 0x00000010, // Source = File.File, file part of installation
  399. msidbCustomActionTypeDirectory = 0x00000020, // Source = Directory.Directory, folder containing existing file
  400. msidbCustomActionTypeProperty = 0x00000030, // Source = Property.Property, full path to executable
  401. // return processing // default is syncronous execution, process return code
  402. msidbCustomActionTypeContinue = 0x00000040, // ignore action return status, continue running
  403. msidbCustomActionTypeAsync = 0x00000080, // run asynchronously
  404. // execution scheduling flags // default is execute whenever sequenced
  405. msidbCustomActionTypeFirstSequence = 0x00000100, // skip if UI sequence already run
  406. msidbCustomActionTypeOncePerProcess = 0x00000200, // skip if UI sequence already run in same process
  407. msidbCustomActionTypeClientRepeat = 0x00000300, // run on client only if UI already run on client
  408. msidbCustomActionTypeInScript = 0x00000400, // queue for execution within script
  409. msidbCustomActionTypeRollback = 0x00000100, // in conjunction with InScript: queue in Rollback script
  410. msidbCustomActionTypeCommit = 0x00000200, // in conjunction with InScript: run Commit ops from script on success
  411. // security context flag, default to impersonate as user, valid only if InScript
  412. msidbCustomActionTypeNoImpersonate = 0x00000800, // no impersonation, run in system context
  413. #if (_WIN32_MSI >= 150)
  414. msidbCustomActionTypeTSAware = 0x00004000, // impersonate for per-machine installs on TS machines
  415. #endif // (_WIN32_MSI >= 150)
  416. #if (_WIN32_MSI >= 150)
  417. // script requires 64bit process
  418. msidbCustomActionType64BitScript = 0x00001000, // script should run in 64bit process
  419. // don't record the contents of the Target field in the log file.
  420. msidbCustomActionTypeHideTarget = 0x00002000,
  421. #endif // (_WIN32_MSI >= 150)
  422. };
  423. // Dialog.Attributes
  424. enum msidbDialogAttributes
  425. {
  426. msidbDialogAttributesVisible = 0x00000001,
  427. msidbDialogAttributesModal = 0x00000002,
  428. msidbDialogAttributesMinimize = 0x00000004,
  429. msidbDialogAttributesSysModal = 0x00000008,
  430. msidbDialogAttributesKeepModeless = 0x00000010,
  431. msidbDialogAttributesTrackDiskSpace = 0x00000020,
  432. msidbDialogAttributesUseCustomPalette = 0x00000040,
  433. msidbDialogAttributesRTLRO = 0x00000080,
  434. msidbDialogAttributesRightAligned = 0x00000100,
  435. msidbDialogAttributesLeftScroll = 0x00000200,
  436. msidbDialogAttributesBiDi = msidbDialogAttributesRTLRO |
  437. msidbDialogAttributesRightAligned |
  438. msidbDialogAttributesLeftScroll,
  439. msidbDialogAttributesError = 0x00010000,
  440. };
  441. // Feature.Attributes
  442. enum msidbFeatureAttributes
  443. {
  444. msidbFeatureAttributesFavorLocal = 0x00000000,
  445. msidbFeatureAttributesFavorSource = 0x00000001,
  446. msidbFeatureAttributesFollowParent = 0x00000002,
  447. msidbFeatureAttributesFavorAdvertise = 0x00000004,
  448. msidbFeatureAttributesDisallowAdvertise = 0x00000008,
  449. msidbFeatureAttributesUIDisallowAbsent = 0x00000010,
  450. msidbFeatureAttributesNoUnsupportedAdvertise= 0x00000020,
  451. };
  452. // File.Attributes
  453. enum msidbFileAttributes
  454. {
  455. msidbFileAttributesReadOnly = 0x00000001,
  456. msidbFileAttributesHidden = 0x00000002,
  457. msidbFileAttributesSystem = 0x00000004,
  458. msidbFileAttributesReserved0 = 0x00000008, // Internal use only - must be 0
  459. msidbFileAttributesReserved1 = 0x00000040, // Internal use only - must be 0
  460. msidbFileAttributesReserved2 = 0x00000080, // Internal use only - must be 0
  461. msidbFileAttributesReserved3 = 0x00000100, // Internal use only - must be 0
  462. msidbFileAttributesVital = 0x00000200,
  463. msidbFileAttributesChecksum = 0x00000400,
  464. msidbFileAttributesPatchAdded = 0x00001000, // Internal use only - set by patches
  465. msidbFileAttributesNoncompressed = 0x00002000,
  466. msidbFileAttributesCompressed = 0x00004000,
  467. msidbFileAttributesReserved4 = 0x00008000, // Internal use only - must be 0
  468. };
  469. // IniFile.Action
  470. // RemoveIniFile.Action
  471. typedef enum _msidbIniFileAction
  472. {
  473. msidbIniFileActionAddLine = 0x00000000,
  474. msidbIniFileActionCreateLine = 0x00000001,
  475. msidbIniFileActionRemoveLine = 0x00000002,
  476. msidbIniFileActionAddTag = 0x00000003,
  477. msidbIniFileActionRemoveTag = 0x00000004,
  478. } msidbIniFileAction;
  479. // MoveFile.Options
  480. enum msidbMoveFileOptions
  481. {
  482. msidbMoveFileOptionsMove = 0x00000001,
  483. };
  484. // ODBCDataSource.Registration
  485. typedef enum _msidbODBCDataSourceRegistration
  486. {
  487. msidbODBCDataSourceRegistrationPerMachine = 0x00000000,
  488. msidbODBCDataSourceRegistrationPerUser = 0x00000001,
  489. } msidbODBCDataSourceRegistration;
  490. #if (_WIN32_MSI >= 110)
  491. // Class.Attributes
  492. enum msidbClassAttributes
  493. {
  494. msidbClassAttributesRelativePath = 0x00000001,
  495. };
  496. #endif //(_WIN32_MSI >= 110)
  497. // Patch.Attributes
  498. enum msidbPatchAttributes
  499. {
  500. msidbPatchAttributesNonVital = 0x00000001,
  501. };
  502. // Registry.Root
  503. // RegLocator.Root
  504. // RemoveRegistry.Root
  505. enum msidbRegistryRoot
  506. {
  507. msidbRegistryRootClassesRoot = 0,
  508. msidbRegistryRootCurrentUser = 1,
  509. msidbRegistryRootLocalMachine = 2,
  510. msidbRegistryRootUsers = 3,
  511. };
  512. // RemoveFile.InstallMode
  513. enum msidbRemoveFileInstallMode
  514. {
  515. msidbRemoveFileInstallModeOnInstall = 0x00000001,
  516. msidbRemoveFileInstallModeOnRemove = 0x00000002,
  517. msidbRemoveFileInstallModeOnBoth = 0x00000003,
  518. };
  519. // ServiceControl.Event
  520. enum msidbServiceControlEvent
  521. {
  522. msidbServiceControlEventStart = 0x00000001,
  523. msidbServiceControlEventStop = 0x00000002,
  524. msidbServiceControlEventDelete = 0x00000008,
  525. msidbServiceControlEventUninstallStart = 0x00000010,
  526. msidbServiceControlEventUninstallStop = 0x00000020,
  527. msidbServiceControlEventUninstallDelete = 0x00000080,
  528. };
  529. // ServiceInstall.ErrorControl
  530. enum msidbServiceInstallErrorControl
  531. {
  532. msidbServiceInstallErrorControlVital = 0x00008000,
  533. };
  534. // TextStyle.StyleBits
  535. enum msidbTextStyleStyleBits
  536. {
  537. msidbTextStyleStyleBitsBold = 0x00000001,
  538. msidbTextStyleStyleBitsItalic = 0x00000002,
  539. msidbTextStyleStyleBitsUnderline = 0x00000004,
  540. msidbTextStyleStyleBitsStrike = 0x00000008,
  541. };
  542. #if (_WIN32_MSI >= 110)
  543. // Upgrade.Attributes
  544. enum msidbUpgradeAttributes
  545. {
  546. msidbUpgradeAttributesMigrateFeatures = 0x00000001,
  547. msidbUpgradeAttributesOnlyDetect = 0x00000002,
  548. msidbUpgradeAttributesIgnoreRemoveFailure = 0x00000004,
  549. msidbUpgradeAttributesVersionMinInclusive = 0x00000100,
  550. msidbUpgradeAttributesVersionMaxInclusive = 0x00000200,
  551. msidbUpgradeAttributesLanguagesExclusive = 0x00000400,
  552. };
  553. #endif //(_WIN32_MSI >= 110)
  554. //__________________________________________________________________________
  555. //
  556. // SUMMARY INFORMATION PROPERTY DEFINITIONS
  557. //__________________________________________________________________________
  558. enum msidbSumInfoSourceType
  559. {
  560. msidbSumInfoSourceTypeSFN = 0x00000001, // source uses short filenames
  561. msidbSumInfoSourceTypeCompressed = 0x00000002, // source is compressed
  562. msidbSumInfoSourceTypeAdminImage = 0x00000004, // source is an admin image
  563. };
  564. #endif // __MSIDEFS