Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checking for installation of an application
Message
 
À
04/02/2004 15:18:35
Jacci Adams
Lindsay-Adams Consulting
Louisville, Ohio, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00874150
Message ID:
00874299
Vues:
14
Hi Jacci,

The Registry class contains what you are looking for. You would use the static field LocalMachine to get the information. Look in the VS.NET help under Microsoft.Wind32.Registry.LocalMachine for an example.

>Hi All,
>
>I need to find out if a certain application was installed on the server from my ASP.NET application. The existence of this certain application determines what icons to display on my aspx page.
>
>I’m assuming I need to check the web server’s registry. I haven’t had much experience dealing with registry values so I’m not sure what methods to use to get what I want. This application seems to install itself under LocalMachine\Software.
>
>One of the other developers suggested using a Try/Catch block around the instantiation of this application object. Is this a kludge or a viable solution? It seem to me like a kludge.
>
>TIA,
>Jacci
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform