Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checking for installation of an application
Message
De
05/02/2004 09:35:51
Jacci Adams
Lindsay-Adams Consulting
Louisville, Ohio, États-Unis
 
 
À
05/02/2004 07:16:39
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00874150
Message ID:
00874431
Vues:
25
Hi Marcia,

Thanks! See you tomorrow.

Jacci

>Hi Hacci.
>
>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.
>
>Here is some sample code in C# that should help get you started:
>
>
>string lcKeyVal;
>RegistryKey loRegKey = Registry.LocalMachine.OpenSubKey(  "Software\\Microsoft\\.NETFramework", false );
>if( loRegKey == null )
>  { lcDefaultPrinter = ""; }
>else
>  {
>    object loKeyVal = loRegKey.GetValue( "InstallRoot" );
>    if ( loKeyVal == null )
>      { lcKeyVal = ""; }
>    else
>      {	lcKeyVal = loKeyVal.ToString(); }
>  }
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform