zoukankan      html  css  js  c++  java
  • 如何获取本机已经安装了的软件的列表?

    using System;
    using Microsoft.Win32;

    namespace ConsoleApplication7
    {
        
    /// <summary>
        
    /// Class1 の概要の説明です。
        
    /// </summary>

        class Class1
        
    {
            
    /// <summary>
            
    /// アプリケーションのメイン エントリ ポイントです。
            
    /// </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);
                }

            }

        }

    }
  • 相关阅读:
    Linux安装phpMywind
    CentOS7安装virtualbox
    MySQL3534
    DIV盒子介绍
    HTML选择器
    人脸检测
    openblas下载安装编译
    DeepLearning网络设计总结
    Linux命令替换字符串
    Y7000联想拯救者gtx1050Ti安装cuda9.0
  • 原文地址:https://www.cnblogs.com/sskset/p/153109.html
Copyright © 2011-2022 走看看