Example #1
0
 /// <summary>
 /// Creates a new ComponentInstallation, automatically detecting the
 /// product that the component is a part of.
 /// </summary>
 /// <param name="componentCode">component GUID</param>
 /// <param name="szUserSid">context user SID</param>
 /// <param name="dwContext">user contexts</param>
 public ComponentInstallation(string componentCode, string szUserSid, UserContexts dwContext)
     : this(componentCode, ComponentInstallation.GetProductCode(componentCode, szUserSid, dwContext), szUserSid, dwContext)
 {
 }
Example #2
0
 /// <summary>
 /// Creates a new ComponentInstallation, automatically detecting the
 /// product that the component is a part of.
 /// </summary>
 /// <param name="componentCode">component GUID</param>
 /// <remarks><p>
 /// Win32 MSI API:
 /// <a href="http://msdn.microsoft.com/library/en-us/msi/setup/msigetproductcode.asp">MsiGetProductCode</a>
 /// </p></remarks>
 public ComponentInstallation(string componentCode)
     : this(componentCode, ComponentInstallation.GetProductCode(componentCode))
 {
 }