1.    24 Aug 2007 #1
    greatbarrier86 Guest

    Enumerating Uninstall Key from Registry


    My plan is to be able to pull just the names of all the installed programs. I
    know Win32_Product will get the ones installed by windows installer, but not
    the ones installed w/o it. I assume i need to start with
    hklm:Software\Microsft\Windows\CurrentVersion\Uninstall, but i dont know
    where to go from there. I know i have to somehow parse the Name string, but
    i'm not sure how.
      My System SpecsSystem Spec

  2.    24 Aug 2007 #2
    Shay Levi Guest

    Re: Enumerating Uninstall Key from Registry


    This will list all uninstall applications name

    dir HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall | foreach {[io.path]::GetFileName($_)}


    Shay
    http://scriptolog.blogspot.com



    > My plan is to be able to pull just the names of all the installed
    > programs. I know Win32_Product will get the ones installed by windows
    > installer, but not the ones installed w/o it. I assume i need to start
    > with hklm:Software\Microsft\Windows\CurrentVersion\Uninstall, but i
    > dont know where to go from there. I know i have to somehow parse the
    > Name string, but i'm not sure how.
    >



      My System SpecsSystem Spec

  3.    24 Aug 2007 #3
    greatbarrier86 Guest

    Re: Enumerating Uninstall Key from Registry


    that works...but it lists some of them by GUID. how do i actually get inside
    the key itself?

    "Shay Levi" wrote:

    > This will list all uninstall applications name
    >
    > dir HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall | foreach {[io.path]::GetFileName($_)}
    >
    >
    > Shay
    > http://scriptolog.blogspot.com
    >
    >
    >
    > > My plan is to be able to pull just the names of all the installed
    > > programs. I know Win32_Product will get the ones installed by windows
    > > installer, but not the ones installed w/o it. I assume i need to start
    > > with hklm:Software\Microsft\Windows\CurrentVersion\Uninstall, but i
    > > dont know where to go from there. I know i have to somehow parse the
    > > Name string, but i'm not sure how.
    > >

    >
    >
    >

      My System SpecsSystem Spec

  4.    24 Aug 2007 #4
    Shay Levi Guest

    Re: Enumerating Uninstall Key from Registry


    Also filters out GUIDs and KBs

    $kb = "KB[0-9]{6}.*"
    $guid = "\{[0-9a-fA-F]{8}(\-[0-9a-fA-F]{4}){3}\-[0-9a-fA-F]{12}\}"
    $names = dir HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall |
    select {[io.path]::GetFileName($_.name)}
    $names | where {$_ -notmatch "$guid|$kb"}


    Shay
    http://scriptolog.blogspot.com



    > This will list all uninstall applications name
    >
    > dir HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall |
    > foreach {[io.path]::GetFileName($_)}
    >
    > Shay
    > http://scriptolog.blogspot.com
    >> My plan is to be able to pull just the names of all the installed
    >> programs. I know Win32_Product will get the ones installed by windows
    >> installer, but not the ones installed w/o it. I assume i need to
    >> start with hklm:Software\Microsft\Windows\CurrentVersion\Uninstall,
    >> but i dont know where to go from there. I know i have to somehow
    >> parse the Name string, but i'm not sure how.
    >>



      My System SpecsSystem Spec

  5.    24 Aug 2007 #5
    greatbarrier86 Guest

    Re: Enumerating Uninstall Key from Registry


    Thank you very much!

    "Shay Levi" wrote:

    > Also filters out GUIDs and KBs
    >
    > $kb = "KB[0-9]{6}.*"
    > $guid = "\{[0-9a-fA-F]{8}(\-[0-9a-fA-F]{4}){3}\-[0-9a-fA-F]{12}\}"
    > $names = dir HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall |
    > select {[io.path]::GetFileName($_.name)}
    > $names | where {$_ -notmatch "$guid|$kb"}
    >
    >
    > Shay
    > http://scriptolog.blogspot.com
    >
    >
    >
    > > This will list all uninstall applications name
    > >
    > > dir HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall |
    > > foreach {[io.path]::GetFileName($_)}
    > >
    > > Shay
    > > http://scriptolog.blogspot.com
    > >> My plan is to be able to pull just the names of all the installed
    > >> programs. I know Win32_Product will get the ones installed by windows
    > >> installer, but not the ones installed w/o it. I assume i need to
    > >> start with hklm:Software\Microsft\Windows\CurrentVersion\Uninstall,
    > >> but i dont know where to go from there. I know i have to somehow
    > >> parse the Name string, but i'm not sure how.
    > >>

    >
    >
    >

      My System SpecsSystem Spec


Similar Threads
Thread Forum
enumerating empty groups
Can anyone tell me how I can list all empty AD groups? I've tried several variations on: get-adgroup -filter * -properties canonicalname,cn,members...
PowerShell
Enumerating Folders
I'm having a bit of problems with this code and can't seem to get passed it. '~~~~~~~~~~~~~~Code~~~~~~~~~~~~~~~ Dim strFolder
VB Script
Enumerating IIS 6 App Pools
I need to enumerate and then get properties of remote IIS App Pools (IIS 6), and am having a rough time. WMI : Access Denied Doing this remotely...
PowerShell
How to Uninstall Registry Cleaner Trial Program
I did a no-no and downloaded a trial version of Advanced Registry Optimizer by Sammsoft. I tried to uninstall it the other day and thought I was...
Vista performance & maintenance
Enumerating the Registry...
I'm trying to fully enumerate the Registry: I want to take a snapshot before an event, and then a snapshot after that and list all the differences,...
Vista General
Enumerating printers in WPF
I'm trying to enumerate the printers on a machine for an application, but not having much luck! It's easy to get "local" printers using, for...
Avalon
registry cleanup after Difficult Trend Micro PC-cillin uninstall
I tried to uninstall PC-cillin using the Programs and Features Uninstall button in the Control Panel and got the message "This is only for programs...
Vista performance & maintenance

Our Sites
  • Ten Forums
  • Eight Forums
  • Seven Forums
  • PC Help Forum
  • Help Me Bake
  • Site Links
  • Contact Us
  • Privacy and Cookies
  • About Us
    Windows Vista Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

    Designer Media Ltd
    All times are GMT -5. The time now is 20:19.
    .