获取本机已安装的软件列表C#/VB.NET(Get the list of installed software in local pc)
2008-08-22 09:24
1121 查看
Please try the following code, it will work:
Code
'vb.net
Private Sub getSoftwareList()
Dim rk As Microsoft.Win32.RegistryKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall")
Dim names As String() = rk.GetSubKeyNames
For Each s As String In names
textbox1.Text&=s+vbCtrf;
Next
End Sub
http://forums.asp.net/t/1306676.aspx
Code
'vb.net
Private Sub getSoftwareList()
Dim rk As Microsoft.Win32.RegistryKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall")
Dim names As String() = rk.GetSubKeyNames
For Each s As String In names
textbox1.Text&=s+vbCtrf;
Next
End Sub
http://forums.asp.net/t/1306676.aspx
相关文章推荐
- GetInvocationList of an event in VB.NET
- Get and display the size of file and directory in Linux system using du command 获取和现实linux文件大小(三)
- The best way to get unique elements of a list in Python
- On The Value Of Fundamentals In Software Development (基础知识在软件开发中的价值)
- (.NET) IntelliSense difference of Extension Method name in Statement Completion for VB and C#.
- C# GetSchema Get List of Table 获取数据库中所有的表名以及表中的纪录条数的方法
- C# 获取本地安装的软件列表
- 著名的安装制作软件InnoSetup的源码及示例源码-The installation of a well-known software s source code and sample InnoSetup source
- 获取peergroup的所有peers(Getting a list of the peers in a PeerGroup)
- SQLGetInstalledDrivers 获取ODBC已经安装的驱动列表
- sql server query to get the list of column name in a table
- How to get the size of file in C++ - 在C++中如何获取文件的大小
- How to get and set the drawing order of layers in globe(获取并设置Globe图层的叠加次序:)
- C# GetSchema Get List of Table 获取数据库中所有的表名以及表中的纪录条数的方法
- C# GetSchema Get List of Table 获取数据库中所有的表名以及表中的纪录条数的方法
- Listing All The Installed Softwares In Computer Using .Net
- 软件随想录(local.joelonsoftware.com/wiki)-2001年05月05日 这个国家的狗做什么工作? - What Is the Work of Dogs in this Cou
- Code snippet of the day : Get Chinese Spell in C#
- List of bugs that are fixed in the .NET Framework 1.1 Service Pack 1 (SP1)
- The implementation of anonymous methods in C# and its consequences