Installer.Environment 属性

Installer 对象的 Environment 属性是一个读写属性,它是当前进程的环境变量的字符串值。

此属性是可读写的。

语法

propVal = Installer.Environment
Installer.Environment = propVal 

属性值

要读取或写入的环境变量的名称。 该名称不区分大小写。

备注

使用 Environment 属性设置环境变量只会影响活动会话。 若要对环境变量进行永久变更,请使用 Environment 表

要求

要求
版本
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_IInstaller 定义为 000C1090-0000-0000-C000-000000000046