Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determine If Application Is Installed
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01451559
Message ID:
01451732
Vues:
40
>>>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;
            }
        }
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform