public InstallationData(string exePath, InstallationLevel level, int iconIndex, string name, string version) { string location = Path.GetDirectoryName(exePath); Distribution = DistributionType.Canary; Architecture = ProcessUtility.GetMachineType(exePath); Level = level; InstallationPath = new FullPath(location); if (InstallationPath.HasComponent("Chrome SxS")) { Distribution = DistributionType.Canary; } else if (InstallationPath.HasComponent("Chrome")) { Distribution = DistributionType.Chrome; } else { Distribution = DistributionType.Chromium; } IconIndex = iconIndex; Name = name; Version = version; }