Registry path to find ALL installed applications

I have a quick question: Are there other places in the registry, but this is:

HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Uninstall HKEY_LOCAL_MACHINE \ SOFTWARE \ Wow6432Node \ Microsoft \ Windows \ CurrentVersion \ Uninstall

Where can I find installed system applications? I ask about this because, for example, IExplorer is not included in any of these registers. Where else should I watch? I need ALL the places where the application is installed.

Thank you for your help;)

+7
source share
2 answers

The most reliable option is probably to use the Windows Management Interface (WMI) to list the software installed by the Windows installer.

Look here
Listing Installed Software
class Win32_Product

Please note that this does not guarantee that Internet Explorer will appear there. I think you can safely assume that Internet Explorer will be present on every Windows computer that is currently there; Microsoft sees it as part of the operating system.

However, you can find out which version of IE is installed.

+5
source

I was looking for this information, but after a while I remembered that I wrote a program for it. For everyone or for me in the future.

class Program { //using Microsoft.Win32; //using System.IO; static void Main(string[] args) { string uninstallKey = "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall"; RegistryKey regKey = Registry.LocalMachine.OpenSubKey(uninstallKey); string[] subKey = regKey.GetSubKeyNames().Select((c)=> { RegistryKey rk = regKey.OpenSubKey(c); string displayName = (string)rk.GetValue("DisplayName"); if (string.IsNullOrEmpty(displayName)) return ""; return displayName + string.Format(" => [{0}]", c); }).ToArray<string>(); string filename = "ProgramList.txt"; if (File.Exists(filename)) File.Delete(filename); StreamWriter sw = File.CreateText(filename); foreach (string appName in subKey.OrderBy(c=>c)) { if (appName != "" && !appName.StartsWith("{")) { Console.WriteLine(appName); sw.WriteLine(appName); } } sw.Close(); } } 
0
source

All Articles