/// <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> internal ComponentInstallation(string componentCode, string szUserSid, UserContexts dwContext) : this(componentCode, ComponentInstallation.GetProductCode(componentCode, szUserSid, dwContext), szUserSid, dwContext) { }
/// <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> internal ComponentInstallation(string componentCode) : this(componentCode, ComponentInstallation.GetProductCode(componentCode)) { }