如何获取本机已经安装了的软件的列表?using System;
如何获取本机已经安装了的软件的列表?
using Microsoft.Win32;
如何获取本机已经安装了的软件的列表?
如何获取本机已经安装了的软件的列表?
namespace ConsoleApplication7
{

如何获取本机已经安装了的软件的列表?    
/// Class1 の概要の説明です。
如何获取本机已经安装了的软件的列表?    
/// </summary>
如何获取本机已经安装了的软件的列表?    class Class1
{

如何获取本机已经安装了的软件的列表?        
/// アプリケーションのメイン エントリ ポイントです。
如何获取本机已经安装了的软件的列表?        
/// </summary>
如何获取本机已经安装了的软件的列表?        [STAThread]
如何获取本机已经安装了的软件的列表?        
static void Main(string[] args)
{
如何获取本机已经安装了的软件的列表?            RegistryKey rk 
= Registry.LocalMachine.OpenSubKey("SOFTWARE");
如何获取本机已经安装了的软件的列表?
如何获取本机已经安装了的软件的列表?            PrintKeys(rk);
如何获取本机已经安装了的软件的列表?
如何获取本机已经安装了的软件的列表?            Console.ReadLine();
如何获取本机已经安装了的软件的列表?        }

如何获取本机已经安装了的软件的列表?
如何获取本机已经安装了的软件的列表?        
static void PrintKeys(RegistryKey rkey) 
{
如何获取本机已经安装了的软件的列表?            
// Retrieve all the subkeys for the specified key.
如何获取本机已经安装了的软件的列表?
            String [] names = rkey.GetSubKeyNames();
如何获取本机已经安装了的软件的列表?
如何获取本机已经安装了的软件的列表?            
// Print the contents of the array to the console.
如何获取本机已经安装了的软件的列表?
            foreach (String s in names) 
{
如何获取本机已经安装了的软件的列表?                Console.WriteLine(s);
如何获取本机已经安装了的软件的列表?            }

如何获取本机已经安装了的软件的列表?        }

如何获取本机已经安装了的软件的列表?    }

如何获取本机已经安装了的软件的列表?}

相关文章:

  • 2022-01-03
  • 2021-12-08
  • 2022-12-23
  • 2021-08-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-08
  • 2021-10-27
  • 2021-08-22
  • 2021-11-17
相关资源
相似解决方案