to get a list of installed software in a machine

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ananth
    New Member
    • Nov 2006
    • 75

    to get a list of installed software in a machine

    Hi all,
    i have a activex control containing a command button.on the button click the activex control should get the list if installed softwares available on the machine,can anyone help me regarding this since i am new to visual basic
  • willakawill
    Top Contributor
    • Oct 2006
    • 1646

    #2
    Originally posted by ananth
    Hi all,
    i have a activex control containing a command button.on the button click the activex control should get the list if installed softwares available on the machine,can anyone help me regarding this since i am new to visual basic
    Have you linked to this active x reference in your project?

    Comment

    • ananth
      New Member
      • Nov 2006
      • 75

      #3
      Hi willakawill,
      The requirement is I have vb6.0. I need to use an activex control that contains a command button on the button click it should generate a list of installed softwares available on the pc .i dont know how to to get along since i am very much a beginner please suggest some codes or links that helps me out in a finding a solution.


      Originally posted by willakawill
      Have you linked to this active x reference in your project?

      Comment

      • willakawill
        Top Contributor
        • Oct 2006
        • 1646

        #4
        Originally posted by ananth
        Hi willakawill,
        The requirement is I have vb6.0. I need to use an activex control that contains a command button on the button click it should generate a list of installed softwares available on the pc .i dont know how to to get along since i am very much a beginner please suggest some codes or links that helps me out in a finding a solution.
        Great. Do you have a project? A form? do you have this object on your form? does it appear as a control in your project?
        Do you have a help file with the object?
        I need to know where you are in your project in order to point you in the right direction.

        Comment

        • albertw
          Contributor
          • Oct 2006
          • 267

          #5
          Originally posted by willakawill
          Great. Do you have a project? A form? do you have this object on your form? does it appear as a control in your project?
          Do you have a help file with the object?
          I need to know where you are in your project in order to point you in the right direction.
          hi
          if your create a form (without contents, but with an icon) and a module
          and paste following into this module:

          Code:
          Sub Main()
            'open the Add/Remove Programs window
            Shell "rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,0"
            End
          End Sub
          have your project start as SubMain and make an exe... :)

          Comment

          • ananth
            New Member
            • Nov 2006
            • 75

            #6
            HI Mr.Albert
            Thanks for giving me a solution.But the thing is the code should access a system registry to get the installed softwares.The path in the registry i want to access is HKEY_LOCAL_MACH INE\SOFTWARE\Mi crosoft\Windows \CurrentVersion \Uninstall.
            I dont know how to start can u give some guidelines for it, the fact is i am new to vb and i dont no how to do .
            The requirement is i need to have a form with a command button.On the Button click it should show the list of available softwares installed



            Originally posted by albertw
            hi
            if your create a form (without contents, but with an icon) and a module
            and paste following into this module:

            Code:
            Sub Main()
              'open the Add/Remove Programs window
              Shell "rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,0"
              End
            End Sub
            have your project start as SubMain and make an exe... :)

            Comment

            • albertw
              Contributor
              • Oct 2006
              • 267

              #7
              Originally posted by ananth
              HI Mr.Albert
              Thanks for giving me a solution.But the thing is the code should access a system registry to get the installed softwares.The path in the registry i want to access is HKEY_LOCAL_MACH INE\SOFTWARE\Mi crosoft\Windows \CurrentVersion \Uninstall.
              I dont know how to start can u give some guidelines for it, the fact is i am new to vb and i dont no how to do .
              The requirement is i need to have a form with a command button.On the Button click it should show the list of available softwares installed
              hi

              try above code as command1_click( ) instead
              accessing the registry directly is a matter of many declarations which i never have used before. unkown matter so to speak.

              Comment

              • ananth
                New Member
                • Nov 2006
                • 75

                #8
                Hello Mr.Albert,
                I first of all thank you for the valuable information you have provided me the code works fine on a button click,but the problem is it opens up a Add/Remove programs control panel.the thing is i just want to store those software information details on a text box or anywhere else it shouldnt display the the control panel.please help me out regarding this

                Originally posted by albertw
                hi

                try above code as command1_click( ) instead
                accessing the registry directly is a matter of many declarations which i never have used before. unkown matter so to speak.

                Comment

                • sashi
                  Recognized Expert Top Contributor
                  • Jun 2006
                  • 1749

                  #9
                  Originally posted by ananth
                  Hello Mr.Albert,
                  I first of all thank you for the valuable information you have provided me the code works fine on a button click,but the problem is it opens up a Add/Remove programs control panel.the thing is i just want to store those software information details on a text box or anywhere else it shouldnt display the the control panel.please help me out regarding this
                  Hi there,

                  Do a little research on WMI (Windows Management Intrumentation) for further reading & understanding, hope it helps. Good luck & take care.

                  Comment

                  • albertw
                    Contributor
                    • Oct 2006
                    • 267

                    #10
                    Originally posted by sashi
                    Hi there,

                    Do a little research on WMI (Windows Management Intrumentation) for further reading & understanding, hope it helps. Good luck & take care.
                    hi

                    or try this link

                    reg ripper

                    Comment

                    • ananth
                      New Member
                      • Nov 2006
                      • 75

                      #11
                      Hi Mr.Albert
                      The information and other links you have provided me was so useful ,I first of all thank you for providing me such a valuable information without which my project would have been a failure.Thanks a lot sir


                      Originally posted by albertw
                      hi

                      or try this link

                      reg ripper

                      Comment

                      Working...