Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

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

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

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.