ProductInstallation Constructor (productCode, userSid, context)

Microsoft Deployment Tools

Deployment Tools Foundation ProductInstallation Constructor (productCode, userSid, context)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerProductInstallationProductInstallation(String, String, UserContexts)
Creates a new object for accessing information about a product installation on the current system.
Declaration Syntax
C# Visual Basic Visual C++
public ProductInstallation(
	string productCode,
	string userSid,
	UserContexts context
)
Public Sub New ( _
	productCode As String, _
	userSid As String, _
	context As UserContexts _
)
public:
ProductInstallation(
	String^ productCode, 
	String^ userSid, 
	UserContexts context
)
Parameters
productCode (String)
ProductCode (GUID) of the product.
userSid (String)
The specific user, when working in a user context. This parameter may be null to indicate the current user. The parameter must be null when working in a machine context.
context (UserContexts)
The user context. The calling process must have administrative privileges to get information for a product installed for a user other than the current user.

Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller) Version: 3.0.0.0 (3.5.1623.0)