Access to Windows "Add/Remove Programs"?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sean DiZazzo

    #1

    Access to Windows "Add/Remove Programs"?

    Hi all,

    I'm trying to find a way to get a list of all the installed programs
    on a Windows box via Python. I thought of a few hacks that might
    partially work, and then thought about "Add/Remove Programs" Seems
    like the right way to go. I looked over the pywin32 docs a bit, but
    nothing slapped me in the face.

    Is there any reliable way to get at that info?

    Thanks in advance,

    ~Sean
  • Larry Bates

    #2
    Re: Access to Windows "Add/Remove Programs"?

    Sean DiZazzo wrote:
    Hi all,
    >
    I'm trying to find a way to get a list of all the installed programs
    on a Windows box via Python. I thought of a few hacks that might
    partially work, and then thought about "Add/Remove Programs" Seems
    like the right way to go. I looked over the pywin32 docs a bit, but
    nothing slapped me in the face.
    >
    Is there any reliable way to get at that info?
    >
    Thanks in advance,
    >
    ~Sean
    I would guess that that program gets the information from the registry.
    Maybe looking at HKEY_LOCAL_MACH INE\SOFTWARE or HKEY_CURRENT_US ER\Software branches?

    -Larry

    Comment

    • Gabriel Genellina

      #3
      Re: Access to Windows "Add/Remove Programs"?

      En Wed, 03 Sep 2008 21:51:59 -0300, Sean DiZazzo <half.italian@g mail.com>
      escribi�:
      I'm trying to find a way to get a list of all the installed programs
      on a Windows box via Python. I thought of a few hacks that might
      partially work, and then thought about "Add/Remove Programs" Seems
      like the right way to go. I looked over the pywin32 docs a bit, but
      nothing slapped me in the face.
      >
      Is there any reliable way to get at that info?
      You may enumerate the entries under this registry key:
      HKEY_LOCAL_MACH INE\SOFTWARE\Mi crosoft\Windows \CurrentVersion \Uninstall

      --
      Gabriel Genellina

      Comment

      • Sean DiZazzo

        #4
        Re: Access to Windows &quot;Add/Remove Programs&quot;?

        On Sep 3, 7:13 pm, "Gabriel Genellina" <gagsl-...@yahoo.com.a rwrote:
        En Wed, 03 Sep 2008 21:51:59 -0300, Sean DiZazzo <half.ital...@g mail.com> 
        escribi :
        >
        I'm trying to find a way to get a list of all the installed programs
        on a Windows box via Python.  I thought of a few hacks that might
        partially work, and then thought about "Add/Remove Programs"  Seems
        like the right way to go.  I looked over the pywin32 docs a bit, but
        nothing slapped me in the face.
        >
        Is there any reliable way to get at that info?
        >
        You may enumerate the entries under this registry key:
        HKEY_LOCAL_MACH INE\SOFTWARE\Mi crosoft\Windows \CurrentVersion \Uninstall
        >
        --
        Gabriel Genellina
        Thank both of you. Perfect!

        ~Sean

        Comment

        • Mike Driscoll

          #5
          Re: Access to Windows &quot;Add/Remove Programs&quot;?

          On Sep 3, 9:41 pm, Sean DiZazzo <half.ital...@g mail.comwrote:
          On Sep 3, 7:13 pm, "Gabriel Genellina" <gagsl-...@yahoo.com.a rwrote:
          >
          >
          >
          En Wed, 03 Sep 2008 21:51:59 -0300, Sean DiZazzo <half.ital...@g mail.com 
          escribi :
          >
          I'm trying to find a way to get a list of all the installed programs
          on a Windows box via Python.  I thought of a few hacks that might
          partially work, and then thought about "Add/Remove Programs"  Seems
          like the right way to go.  I looked over the pywin32 docs a bit, but
          nothing slapped me in the face.
          >
          Is there any reliable way to get at that info?
          >
          You may enumerate the entries under this registry key:
          HKEY_LOCAL_MACH INE\SOFTWARE\Mi crosoft\Windows \CurrentVersion \Uninstall
          >
          --
          Gabriel Genellina
          >
          Thank both of you.  Perfect!
          >
          ~Sean
          I have used both of these methods, but it should be noted that not all
          programs register themselves in the registry. The usual suspects are
          spyware related. But there are still a few programs that you can just
          download and unzip that don't write anything to the registry.

          But this does work for probably 99% of programs on Windows.

          Mike

          Comment

          Working...