Skip to main content
Version: v3

Tag Element (Tag Extension)

Description
This extension implements the ISO/IEC 19770-2:2015 specification. A SWID tag file will be generated an inserted into the Product or Bundle.
Windows Installer references
None
Parents
Bundle, Product
Inner Text
None
Children
None
Attributes
NameTypeDescriptionRequired
FeatureStringOptional attribute to explicitly set the Feature when defining the software id tag in a Product. By default the software id tag will always be installed by a top-level hidden feature. It is recommended to not set this attribute. 
InstallDirectoryString A reference to an existing Directory/@Id where the software is installed. The SWID tag file will be installed in a "swidtag" folder under that directory as per the specification. This attribute is required on a Tag element found under a Product element.  
InstallPathString The path where the software is installed. The SWID tag file will be installed in a "swidtag" folder. This is a formatted attribute so it is possible to use Variables as the InstallPath by setting the value to, for example, "[ProgramFilesFolder]CompanyName\Product Name". This attribute is required on a Tag element found under a Bundle element.  
LicensedStringThis attribute has been deprecated. 
NameString Name to use in the filename for the software id tag. By default the filename uses the Bundle/@Name or Product/@Name. If the bundle name or product name contains invalid filename characters such as ":" or "?", use this attribute to provide a valid filename.  
RegidString The regid for the software manufacturer. A regid is a URI simplified for the common case. Namely, if the scheme is "http://", it can be removed. Additionally, the domain should be minimized as much as possible (for example, remove "www." prefix if unnecessary).

For example, the WiX toolset regid is "wixtoolset.org".
Yes
TypeStringThis attribute has been deprecated. 
Win64YesNoType This attribute facilitates the installation of packages that install both 32-bit and 64-bit files. Set this attribute to 'no' to indicate the software id tag is installed to a 32-bit location (such as "ProgramFilesFolder") or 'yes' when the tag is installed to a 64-bit location (such as "ProgramFiles64Folder"). The default default value is based on the platform set by the -arch switch to candle.exe or the InstallerPlatform property in a .wixproj MSBuild project: For x86 and ARM, the default value is 'no'. For x64 and IA64, the default value is 'yes'.

This attribute is only allowed on a Tag element found under a Product element.
 
See Also
Tag Schema