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++ | F# |
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 )
new : productCode : string * userSid : string * context : UserContexts -> ProductInstallation
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.11.1.2318)