/build/static/layout/Breadcrumb_cap_w.png

Script to get versions

Hello all - new guy here - I off and on do some scripting and have ended up looking here at times.

I work for a library system and we have quite a few systems spread out. We generally have our techs lay hands on the computers once a quarter or so, so I haven't done tons of deployment, but would like to do more on a few items. In particular, I've been working on remotely updating Java Runtime, Acrobat Reader, Shockwave, and Flash. I THINK I have all these working ok, just with using beyondexec/psexec. One thing I would like to do though is have a script that checks versions on these programs before and after, to verify updates. I've been able to find version listings for Java and Acrobat, but shockwave and flash have given me problems. Could anyone suggest a unified way that I could get a current version on all these items via a script?

0 Comments   [ + ] Show comments

Answers (7)

Posted by: aogilmor 15 years ago
9th Degree Black Belt
0
download scriptomatic from microsoft and have a look at win32_product collection which has all kinds of data about installed products including version.
Posted by: hipsterdoofus 15 years ago
Orange Senior Belt
0
ORIGINAL: aogilmor

download scriptomatic from microsoft and have a look at win32_product collection which has all kinds of data about installed products including version.


I appear to have the same problem - I can get massive lists, but neither lists shockwave or flash.
Posted by: aogilmor 15 years ago
9th Degree Black Belt
0
ORIGINAL: hipsterdoofus

ORIGINAL: aogilmor

download scriptomatic from microsoft and have a look at win32_product collection which has all kinds of data about installed products including version.


I appear to have the same problem - I can get massive lists, but neither lists shockwave or flash.



Is there an entry in add/remove programs for flash or shockwave? If not and if you're sure they're installed (verify by playing a shockwave/flash animation) then you must have a non-Windows Installer based installation in which case those product would not be in the collection -- you'll have to find the main EXE and extract the version from that. (use the GetFileVersion function)
Posted by: hipsterdoofus 15 years ago
Orange Senior Belt
0
ORIGINAL: aogilmor

ORIGINAL: hipsterdoofus

ORIGINAL: aogilmor

download scriptomatic from microsoft and have a look at win32_product collection which has all kinds of data about installed products including version.


I appear to have the same problem - I can get massive lists, but neither lists shockwave or flash.



Is there an entry in add/remove programs for flash or shockwave? If not and if you're sure they're installed (verify by playing a shockwave/flash animation) then you must have a non-Windows Installer based installation in which case those product would not be in the collection -- you'll have to find the main EXE and extract the version from that. (use the GetFileVersion function)



There are entries for both shockwave and flash in add/remove programs, but I've tried various means to pull that list through a script and they don't show up on the outcome. Java and Acrobat Reader both show up fine.
Posted by: aogilmor 15 years ago
9th Degree Black Belt
0
ORIGINAL: hipsterdoofus

ORIGINAL: aogilmor

ORIGINAL: hipsterdoofus

ORIGINAL: aogilmor

download scriptomatic from microsoft and have a look at win32_product collection which has all kinds of data about installed products including version.


I appear to have the same problem - I can get massive lists, but neither lists shockwave or flash.



Is there an entry in add/remove programs for flash or shockwave? If not and if you're sure they're installed (verify by playing a shockwave/flash animation) then you must have a non-Windows Installer based installation in which case those product would not be in the collection -- you'll have to find the main EXE and extract the version from that. (use the GetFileVersion function)



There are entries for both shockwave and flash in add/remove programs, but I've tried various means to pull that list through a script and they don't show up on the outcome. Java and Acrobat Reader both show up fine.



You could try reading the version from the ARP entry. should be somewhere under hklm\software\microsoft\windows\currentversion\uninstall, if not -- well then, it looks like you're stuck with extracting the version from the app exe
the new versions of both these apps are windows installer so you'll be able to use win32_product collection to inventory the app on a machine after you upgrade.

Good luck!
Posted by: anonymous_9363 15 years ago
Red Belt
0
I've tried various means to pull that list through a script Get hold of the registry class from JSWare. IIRC it's part of the class pack available there. It has some enumeration functions which you can use to walk the 'Uninstall' branch, picking up the GUIDs and then using another enum function to get all the values and data from that key. Not straightforward by any means but not too hard, either. I use it all the time for registry querying, as the stuff in the Shell object is pitiful for that kind of work.
Posted by: hipsterdoofus 15 years ago
Orange Senior Belt
0
Thanks guys - I found a script that I believe does basically what you are saying - basically just looks in the registry under uninstall. It works fine and gives me everything. After that, I did a findstr command to weed out the information I needed.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ