List of installed applications (VB.NET)

Posted on 2006-04-22
Last Modified: 2008-03-17
can you help me to carry out a program in VB.NET allowing to extract the list of  installed applications on my PC and also to uninstall it.
Question by:thinobjects
    1 Comment
    LVL 85

    Accepted Solution

    To get a list...

    Imports Microsoft.Win32

                Dim rk As RegistryKey = Registry.LocalMachine.OpenSubKey("Software\Microsoft\Windows\CurrentVersion\Uninstall")
                Dim sk As String
                Dim appKey As RegistryKey
                Dim displayNameValue As Object
                Dim displayName As String
                ListBox1.Sorted = True
                If Not (rk Is Nothing) Then
                    For Each sk In rk.GetSubKeyNames
                        appKey = rk.OpenSubKey(sk)
                        displayNameValue = appKey.GetValue("DisplayName")
                        If Not (displayNameValue Is Nothing) Then
                            ListBox1.Items.Add(CType(displayNameValue, String))
                        End If
                End If
            Catch ex As Exception
                MsgBox(ex.Message, MsgBoxStyle.Information, "Error Accessing Registry")
            End Try

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    I have been scripting applications way too long and can never remember how to create an ISS file.  So I decided to write this article to act as my own knowledge base for future reference, and hope you will also benefit. An ISS file is a response …
    This article will show, step by step, how to integrate R code into a R Sweave document
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now