Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine If Application Is Installed
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01451559
Message ID:
01451732
Views:
39
>>>How do you determine in C# if an application is installed?
>>
>>The answer to that will depend on the application in question and, if it is installed, how the installation was carried out.........
>
>Skype. Windows installer.

Works for me but no quarantees :-}
public static bool IsSkypeInstalled()
        {
            using (RegistryKey rk = Registry.CurrentUser.OpenSubKey("Software\\Skype"))
            {
                return rk==null? false :
                (from string x in rk.GetSubKeyNames() where x == "Phone" select x).FirstOrDefault()!= null;
            }
        }
Previous
Reply
Map
View

Click here to load this message in the networking platform