WiX Database XML Schema

Element: Component

Description

Component for parent Directory

Derived By

Restricting anyType

Attributes

Name  Type  Description 
Id  string  Component identifier; this is the primary key for identifying components.
ComPlusFlags  integer  Set this attribute to create a ComPlus entry.
DisableRegistryReflection  YesNoType  Set this attribute to 'yes' in order to disable registry reflection on all existing and new registry keys affected by this component.
Directory  string  Sets the Directory of the Component.
DiskId  integer  This attribute must be set either on a Component element or all of its children File elements.
Feature  string  Identifies a feature to which this component belongs, as a shorthand for a child ComponentRef element of the Feature element.
Guid  ComponentGuid  This value should be a guid that uniquely identifies this component's contents, language, platform, and version.

KeyPath  YesNoType  If this attribute's value is set to 'yes', then the Directory of this Component is used as the KeyPath.
Location  NMTOKEN (restriction)   
NeverOverwrite  YesNoType  If this attribute is set to 'yes', the installer does not install or reinstall the component if a key path file or a key path registry entry for the component already exists.
Permanent  YesNoType  If this attribute is set to 'yes', the installer does not remove the component during an uninstall.
Shared  YesNoType  If this attribute's value is set to 'yes', enables advanced patching semantics for Components that are shared across multiple Products.
SharedDllRefCount  YesNoType  If this attribute's value is set to 'yes', the installer increments the reference count in the shared DLL registry of the component's key file.
Transitive  YesNoType  If this attribute is set to 'yes', the installer reevaluates the value of the statement in the Condition upon a reinstall.
UninstallWhenSuperseded  YesNoType  If this attribute is set to 'yes', the installer will uninstall the Component's files and registry keys when it is superseded by a patch.
Win64  YesNoType  Set this attribute to 'yes' to mark this as a 64-bit component.

Content Model

Contains elements as defined in the following table.

Component  Type  Description 
any    Allow any element from the ##other namespace.
AppId  anyType (restriction)  Application ID containing DCOM information for the associated application GUID.

Category  anyType (restriction)  Qualified published component for parent Component
Class  anyType (restriction)  COM Class registration for parent Component.
Condition  string (extension)  Conditions for components, controls, features, and products.
CopyFile  anyType (restriction)  Copy or move an existing file on the target machine, or copy a file that is being installed, to another destination.
CreateFolder  anyType (restriction)  Create folder as part of parent Component.
Environment  anyType (restriction)  Environment variables added or removed for the parent component.
Extension  anyType (restriction)  Extension for a Component
File  anyType (restriction)  File specification for File table, must be child node of Component.
IniFile  anyType (restriction)  Adds or removes .ini file entries.
Interface  anyType (restriction)  COM Interface registration for parent Typelib.
IsolateComponent  anyType (restriction)  Shared Component to be privately replicated in folder of parent Component
ODBCDataSource  anyType (restriction)  ODBCDataSource for a Component
ODBCDriver  anyType (restriction)  ODBCDriver for a Component
ODBCTranslator  anyType (restriction)  ODBCTranslator for a Component
ProgId  anyType (restriction)  ProgId registration for parent Component.
Registry  anyType (restriction)   
RegistryKey  anyType (restriction)  Used for organization of child RegistryValue elements or to create a registry key (and optionally remove it during uninstallation).
RegistryValue  anyType (restriction)  Used to create a registry value. For multi-string values, this can be used to prepend or append values.
RemoveFile  anyType (restriction)  Remove a file(s) if the parent component is selected for installation or removal.
RemoveFolder  anyType (restriction)  Remove an empty folder if the parent component is selected for installation or removal.
RemoveRegistryKey  anyType (restriction)  Used for removing registry keys and all child keys either during install or uninstall.
RemoveRegistryValue  anyType (restriction)  Used to remove a registry value during installation.
ReserveCost  anyType (restriction)  Disk cost to reserve in a folder for running locally and/or from source.
ServiceControl  anyType (restriction)  Starts, stops, and removes services for parent Component.
ServiceInstall  anyType (restriction)  Adds and removes services for parent Component.
Shortcut  anyType (restriction)  Shortcut, default target is parent File, CreateFolder, or Component's Directory
SymbolPath  anyType (restriction)  A path to symbols.
TypeLib  anyType (restriction)  Register a type library (TypeLib).