Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Re: determine installed firefox versions via vbs?

Reply
 
Old 05-18-2009   #1 (permalink)
Pegasus [MVP]


 
 

Re: determine installed firefox versions via vbs?


"DaleB" <andreas.rieger@xxxxxx> wrote in message
news:f83e9d35-d523-4c25-a940-4069a7d26374@xxxxxx
Quote:

> Hi all,
>
> i am looking for a way to determine the firefox-version on windows xp
> clients via a vbs login script.
>
> I used to read this registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla
> \Mozilla Firefox\CurrentVersion
> This worked fine until we gave our users the right to update
> firefox without admin-rights.
> Now the the actual current version (after an update with user rights)
> is written to under HKEY_Current_User.
>
> Of course i could query the whole registry for the highest firefox
> version number but i am sure there are easier and smarter
> solutions.... any suggestions?
>
> Greetings,
> Andreas
I think a Firefox newsgroup could point you in the right direction, or
perhaps the Firefox FAQs.



My System SpecsSystem Spec
Old 05-18-2009   #2 (permalink)
mayayana


 
 

Re: determine installed firefox versions via vbs?

Normally you could check the file from the
path found in:

HKLM\Software\Windows\CurrentVersion\App Paths\Firefox.exe

but there are two glitches in this case.

1) If I remember correctly, FF2+ is no longer a
registered executable. What might work is to check
the Uninstall key. I've got FF 1.5 installed and it
shows under the subkey "Mozilla Firefox (1.5)".
That key has several values that will allow you to
get the parent folder/file path. From there you can
check the file version of firefox.exe.


2) Not so fast. This exposes a second way that the
Mozilla people seem to be unorthodox in the way that
they do things (in addition to not registering the EXE):
In my case, with FF1.5, I see 1.8.x as the file version.
So clearly they're using the gecko version as the FF file
version! I see 1.5 as the Product Version.

You might be able to get product version info.
through WMI. I don't remember offhand. If not, see
here for a small class that can be pasted into a
script. It will return any/all file version information
by parsing the file's PE structure directly and retrieving
the resource table:

www.jsware.net/jsware/scripts.php5#fvinfo

Quote:

> I used to read this registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla
> \Mozilla Firefox\CurrentVersion
> This worked fine until we gave our users the right to update
> firefox without admin-rights.
> Now the the actual current version (after an update with user rights)
> is written to under HKEY_Current_User.
>
> Of course i could query the whole registry for the highest firefox
> version number but i am sure there are easier and smarter
> solutions.... any suggestions?
>
> Greetings,
> Andreas

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Determine which version of MS-Excel is installed VB Script
Running multiple versions of Firefox Software
Determine installed SQL Version and Edition VB Script
Folder Versions has Non Existent List in Previous Versions Tab Vista performance & maintenance
OEM versions and Full Versions of Vista Vista installation & setup


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46