Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Check installed software AND version

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,34477
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Check installed software AND version
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Check installed software AND version - 5/14/2006 11:41:49 PM   
  TOPHOLM


Posts: 22
Score: 0
Joined: 5/14/2006
From: Copenhagen
Status: offline
Hi all

I've made an install script in .vbs and it works fine when I check if the software is installed as long as I check on the name like this:


      

Now I would also like to check for the version of the software. I have tried to do it like this, but it does not work.


      

How should I check the software name AND the version, and make it do something it the right name but NOT the right version ?

I hope this post makes sense and someone is able to help me.

_____________________________

Best regards

Søren Tøpholm
 
 
Post #: 1
 
 RE: Check installed software AND version - 5/15/2006 1:20:04 AM   
  ebgreen


Posts: 5069
Score: 31
Joined: 7/12/2005
Status: offline
try this:


      

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to TOPHOLM)
 
 
Post #: 2
 
 RE: Check installed software AND version - 5/15/2006 1:23:06 AM   
  ginolard


Posts: 1068
Score: 21
Joined: 8/10/2005
Status: offline
Be aware though that query for installed software via WMI will only show software that was installed with the Microsoft Installer.  If you want to show ALL installed software you will need to query the registry 

_____________________________

Author of ManagePC - http://managepc.net
AD Query Template - http://www.visualbasicscript.com/m_40609/tm.htm
Consolidated Scripting Framework - http://www.visualbasicscript.com/m_59109/tm.htm

(in reply to ebgreen)
 
 
Post #: 3
 
 RE: Check installed software AND version - 5/15/2006 2:12:34 AM   
  ebgreen


Posts: 5069
Score: 31
Joined: 7/12/2005
Status: offline
Which will only show ALL installed software that bothers to write an uninstall key. Granted this will be most software, but not ALL software that could be installed. There is no sure fire way to find ALL installed software.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to ginolard)
 
 
Post #: 4
 
 RE: Check installed software AND version - 5/15/2006 5:05:17 PM   
  TOPHOLM


Posts: 22
Score: 0
Joined: 5/14/2006
From: Copenhagen
Status: offline
Hi ebgreen

Fortunately the product is an MSI installed package : )

Your suggestion worked like a charm.

Thanks

_____________________________

Best regards

Søren Tøpholm

(in reply to ebgreen)
 
 
Post #: 5
 
 RE: Check installed software AND version - 5/15/2006 5:58:06 PM   
  ginolard


Posts: 1068
Score: 21
Joined: 8/10/2005
Status: offline
quote:

Which will only show ALL installed software that bothers to write an uninstall key. Granted this will be most software, but not ALL software that could be installed. There is no sure fire way to find ALL installed software.


Bah, picky picky.  Any software that doesn't write an uninstall key doesn't deserve to be installed.

Now, go figure out that circular logic if you can

_____________________________

Author of ManagePC - http://managepc.net
AD Query Template - http://www.visualbasicscript.com/m_40609/tm.htm
Consolidated Scripting Framework - http://www.visualbasicscript.com/m_59109/tm.htm

(in reply to TOPHOLM)
 
 
Post #: 6
 
 RE: Check installed software AND version - 5/16/2006 5:49:26 AM   
  avipenina

 

Posts: 102
Score: 0
Joined: 4/24/2006
Status: offline
concerning this script,
 
if i want that the script will check if X program is installed if it's installed i want that the script will do something if it's not there do something else.
 
how i write this code.
 
thanks

(in reply to ginolard)
 
 
Post #: 7
 
 RE: Check installed software AND version - 5/16/2006 6:23:23 AM   
  ehvbs

 

Posts: 2204
Score: 50
Joined: 6/22/2005
From: Germany
Status: offline
Hi avipenina,

Try this:

      


or this:

      

(in reply to avipenina)
 
 
Post #: 8
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Check installed software AND version Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts