Session.FeatureCurrentState 属性

Session 对象的 FeatureCurrentState 属性是一个只读属性,它返回指定功能的当前安装状态。 有关状态值,请参阅 FeatureRequestState 属性。

此属性为只读。

语法

propVal = Session.FeatureCurrentState

属性值

(必需)请求的功能的字符串名称,以及 Feature 表中的主键。

备注

如果该属性失败,可以使用 LastErrorRecord 方法获取扩展的错误信息。

要求

要求
版本
Windows Server 2012、Windows 8、Windows Server 2008 R2 或 Windows 7 上的 Windows Installer 5.0。 Windows Server 2008 或 Windows Vista 上的 Windows Installer 4.0 或 Windows Installer 4.5。 Windows Server 2003 或 Windows XP 上的 Windows Installer
DLL
Msi.dll
IID
IID_ISession 定义为 000C109E-0000-0000-C000-000000000046

另请参阅

会话

FeatureRequestState 属性