共用方式為


MsiTokenAttribute Class

Definition

Defines a token string for the MSI installer.

public ref class MsiTokenAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=false)]
public sealed class MsiTokenAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=false)>]
type MsiTokenAttribute = class
    inherit Attribute
Public NotInheritable Class MsiTokenAttribute
Inherits Attribute
Inheritance
MsiTokenAttribute
Attributes

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.

Constructors

MsiTokenAttribute(String, String)

Creates an MsiTokenAttribute object.

Properties

Name

Returns the MsiTokenAttribute name.

Value

Returns the MsiTokenAttribute value.

Applies to