편집

다음을 통해 공유


Installer::ProductInfoFromScript property

The ProductInfoFromScript property of the Installer object returns the value of the specified attribute that is stored in an advertise script.

This property is write-only.

Syntax

Installer.ProductInfoFromScript = propVal 

Property value

Error codes

A string or integer value depending upon requested attribute.

Remarks

The ProductInfoFromScript property uses the MsiGetProductInfoFromScript function.

Examples

The following sample script demonstrates the use of the ProductInfoFromScript property .

Dim installer
Set installer = CreateObject("WindowsInstaller.Installer")

' 
' Create an advertise script for Orca
'

installer.CreateAdvertiseScript "\\products\public\orca\orca.msi", "c:\scratch\orca.aas"

' 
' Output ProductName Information From Script
'

MsgBox  installer.ProductInfoFromScript("c:\scratch\orca.aas", 3)

Requirements

Requirement Value
Version
Windows Installer 5.0 on Windows Server 2012, Windows 8, Windows Server 2008 R2 or Windows 7. Windows Installer 4.0 or Windows Installer 4.5 on Windows Server 2008 or Windows Vista. Windows Installer 4.5 on Windows Server 2003 and Windows XP
DLL
Msi.dll
IID
IID_IInstaller is defined as 000C1090-0000-0000-C000-000000000046

See also

Installer

Not Supported in Windows Installer 3.1 and earlier versions