Deployment Tools Foundation
ProductInstallation Constructor (productCode, userSid, context)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► ProductInstallation ► ProductInstallation(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.dll) Version: 3.0.0.0 (3.9.1006.0)