By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,593 Members | 2,006 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,593 IT Pros & Developers. It's quick & easy.

to get a list of installed software in a machine

P: 75
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
Nov 13 '06 #1
Share this Question
Share on Google+
10 Replies


100+
P: 1,646
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?
Nov 13 '06 #2

P: 75
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.


Have you linked to this active x reference in your project?
Nov 13 '06 #3

100+
P: 1,646
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.
Nov 13 '06 #4

100+
P: 267
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:

Expand|Select|Wrap|Line Numbers
  1.  
  2. Sub Main()
  3.   'open the Add/Remove Programs window
  4.   Shell "rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,0"
  5.   End
  6. End Sub
  7.  
  8.  
have your project start as SubMain and make an exe... :)
Nov 13 '06 #5

P: 75
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_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\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
if your create a form (without contents, but with an icon) and a module
and paste following into this module:

Expand|Select|Wrap|Line Numbers
  1.  
  2. Sub Main()
  3.   'open the Add/Remove Programs window
  4.   Shell "rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,0"
  5.   End
  6. End Sub
  7.  
  8.  
have your project start as SubMain and make an exe... :)
Nov 13 '06 #6

100+
P: 267
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_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\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.
Nov 13 '06 #7

P: 75
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

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.
Nov 13 '06 #8

sashi
Expert 100+
P: 1,754
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.
Nov 13 '06 #9

100+
P: 267
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
Nov 13 '06 #10

P: 75
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


hi

or try this link

reg ripper
Nov 15 '06 #11

Post your reply

Sign in to post your reply or Sign up for a free account.