public virtual string GetInstallLocationFromProductCode(string productCode, out string productName) { string issProdKey = RegUtils.REG_KEY32 + productCode + "_is1"; var key = RegUtils.OpenKey(issProdKey); if (null == key) { issProdKey = RegUtils.REG_KEY64 + productCode; key = RegUtils.OpenKey(issProdKey); } productName = RegUtils.GetDisplayName(key); return(RegUtils.GetInstallLocation(key)); }
public virtual string GetInstallLocationFromProductName(string name) { var key = RegUtils.OpenKey(RegUtils.REG_KEY64 + name); return(RegUtils.GetInstallLocation(key)); }