MsiTokenAttribute Class

Defines a token string for the MSI installer.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)

Syntax

'Declaration
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple := True, Inherited := False)> _
Public NotInheritable Class MsiTokenAttribute _
    Inherits Attribute
'Usage
Dim instance As MsiTokenAttribute
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
public sealed class MsiTokenAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Class, AllowMultiple = true, Inherited = false)]
public ref class MsiTokenAttribute sealed : public Attribute
public final class MsiTokenAttribute extends Attribute

Remarks

The regpkg.exe tool searches for these attributes on a package class to identify custom replacement tokens when generating registry scripts for the Microsoft Installer. Possible token names vary, but regpkg.exe supports the following tokens:

$ComponentPath : the path to the component.

SystemFolder : the path to the OS system folder (%systemroot%\system32)

For more information, see Registering VSPackages (C#).

Inheritance Hierarchy

System.Object
  System.Attribute
    Microsoft.VisualStudio.Shell.MsiTokenAttribute

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

MsiTokenAttribute Members

Microsoft.VisualStudio.Shell Namespace