home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 June / Chip_2001-06_cd1.bin / zkuste / vbasic / Data / Utility / MSISDK15.msi / MsiDefs.h < prev    next >
C/C++ Source or Header  |  2000-09-29  |  30KB  |  616 lines

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