

Deployment Tools Foundation
GetProductInfoFromScript Method (scriptFile)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► Installer ► GetProductInfoFromScript(String)
Gets product information for an installer script file.

C# | Visual Basic | Visual C++ |
public static ProductInstallation GetProductInfoFromScript( string scriptFile )
Public Shared Function GetProductInfoFromScript ( scriptFile As String ) As ProductInstallation
public: static ProductInstallation^ GetProductInfoFromScript( String^ scriptFile )

- scriptFile (String)
- Path to a script file generated by GenerateAdvertiseScript(String, String, String, Int32, ProcessorArchitecture, Boolean)

ProductInstallation
ProductInstallation stub with advertise-related properties filled in.
ProductInstallation stub with advertise-related properties filled in.

Only the following properties will be filled in in the returned object:
Other properties will be null.Win32 MSI API: MsiGetProductInfoFromScript

Exception | Condition |
---|---|
ArgumentOutOfRangeException | An invalid product property was requested |
Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.9.1006.0)