GetProductInfoFromScript Method (scriptFile)

DTF API

Copy image CopyHover image
Deployment Tools Foundation GetProductInfoFromScript Method (scriptFile)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerInstallerGetProductInfoFromScript(String)
Gets product information for an installer script file.
Declaration Syntax
C# Visual Basic Visual C++ F#
public static ProductInstallation GetProductInfoFromScript(
	string scriptFile
)
Public Shared Function GetProductInfoFromScript ( 
	scriptFile As String
) As ProductInstallation
public:
static ProductInstallation^ GetProductInfoFromScript(
	String^ scriptFile
)
static member GetProductInfoFromScript : 
        scriptFile : string -> ProductInstallation 
Parameters
Return Value
ProductInstallation
ProductInstallation stub with advertise-related properties filled in.
Remarks

Only the following properties will be filled in in the returned object:

Other properties will be null.

Win32 MSI API: MsiGetProductInfoFromScript

Exceptions
Exception Condition
ArgumentOutOfRangeException An invalid product property was requested

Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.11.1.2318)