Search found 12 matches

by jjimenez
Fri Mar 07, 2014 8:23 am
Forum: VBScript
Topic: help combining 2 scripts
Replies: 22
Views: 23447

Re: help combining 2 scripts

this appears to work properly. sProductIdentifier = "{25D1F70B-0B90-495C-8ADC-4FF0855EF92E}" dversion = "11.9.4.634" sVersion = GetProductVersion("HKLM\software\microsoft\windows\currentversion\uninstall\" & sProductIdentifier & "\DisplayVersion") sVer...
by jjimenez
Fri Mar 07, 2014 6:18 am
Forum: VBScript
Topic: help combining 2 scripts
Replies: 22
Views: 23447

Re: help combining 2 scripts

thank you. I think i can use that.

Ultimately it has to satisfy 1 of 3 results while checking the 2 reg keys, but only outputing 1 result.

installed up to date
installed not up to date
not installed

but thanks again.
by jjimenez
Thu Mar 06, 2014 11:48 am
Forum: VBScript
Topic: help combining 2 scripts
Replies: 22
Views: 23447

Re: help combining 2 scripts

yeah, i looked through all the classes and they all have some type of event log overhead. the win_32 product class has an exceptional amount of eventlog overhead per software instance. ultimately the REGREAD files work ok i guess. Thanks for all the help and info, its nice to bounce things off others.
by jjimenez
Thu Mar 06, 2014 9:52 am
Forum: VBScript
Topic: help combining 2 scripts
Replies: 22
Views: 23447

Re: help combining 2 scripts

Below is what i was using for the wmi query, it creates events. i'd love to use this instead if it can be fixed to not create events in the event log. i'm in a win7 enviroment. on error resume next dim svalue Set objWMIService = GetObject("winmgmts:" & _ "{impersonationLevel=imper...
by jjimenez
Thu Mar 06, 2014 9:42 am
Forum: VBScript
Topic: help combining 2 scripts
Replies: 22
Views: 23447

Re: help combining 2 scripts

yeah i started with the win32_product class but it created several 100 events in the windows app event log. I'm trying to identify software installed using 1 script per piece of software. The challenge is sometimes the GUID is different and sometimes the x64 machine keys are located in the wow6432no...
by jjimenez
Thu Mar 06, 2014 8:25 am
Forum: VBScript
Topic: help combining 2 scripts
Replies: 22
Views: 23447

Re: help combining 2 scripts

i guess silverlight was a bad example to use in that code cause it doesn't actually have a wow6432node key so none of these scripts work properly.

I apologize, i guess back to the drawing board.
by jjimenez
Thu Mar 06, 2014 8:13 am
Forum: VBScript
Topic: help combining 2 scripts
Replies: 22
Views: 23447

Re: help combining 2 scripts

no i want to search both the wow6432 and the 32bit. i guess that didn't work.
by jjimenez
Wed Mar 05, 2014 2:32 pm
Forum: VBScript
Topic: help combining 2 scripts
Replies: 22
Views: 23447

Re: help combining 2 scripts

added a wscript.quit after the first error, fixed it.

Thank you for your time :D
by jjimenez
Wed Mar 05, 2014 1:35 pm
Forum: VBScript
Topic: help combining 2 scripts
Replies: 22
Views: 23447

Re: help combining 2 scripts

can you help me with that? I need it to only return one value ever. Even if it is an error.
by jjimenez
Wed Mar 05, 2014 1:02 pm
Forum: VBScript
Topic: help combining 2 scripts
Replies: 22
Views: 23447

Re: help combining 2 scripts

thank you very much.

Is there no way to get the error message outside of both queries to where it only returns one value if it errors.