Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


script to check the version of outlook.

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> script to check the version of outlook.
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1] 2   next >   >>
Login
Message << Older Topic   Newer Topic >>
 script to check the version of outlook. - 3/22/2006 3:48:32 PM   
  muna_nbi

 

Posts: 12
Score: 0
Joined: 3/22/2006
Status: offline
Original message moved by mbouchard
Reason : Moving to correct forum.
Hello

i am very new to vb scripting. I have a big network and there are computers with outlook sp 1. i need to identify those computers and delopy sp3 to the computers. i have checked that the size of outlook.exe is different for both the version and also the outlook.exe version is different. Does anyone or can anyone provide me with a script please.

muna
 
 
Post #: 1
 
 RE: script to check the version of outlook. - 3/23/2006 1:08:03 AM   
  mbouchard


Posts: 1916
Score: 16
Joined: 5/15/2003
From: USA
Status: offline
What version of Outlook?  XP, 2003, 2000?

For Outlook 2003,
RTM - 11.0.5510.0
SP1 - 11.0.6353.0
SP2 - 11.0.7969.0

For Outlook XP (2002)
RTM - 10.0.2627.1
SP1 - 10.0.3416.0
SP2 - 10.0.4024.0
SP3 - 10.0.6626.0

These were found on MS's site, do a search at support.microsoft.com for "How to check the Version of Office"

_____________________________

Mike

For useful Scripting links see the Read Me First stickey!

Always remember Search is your friend.

(in reply to muna_nbi)
 
 
Post #: 2
 
 RE: script to check the version of outlook. - 3/23/2006 10:50:09 AM   
  muna_nbi

 

Posts: 12
Score: 0
Joined: 3/22/2006
Status: offline
outlook 2000. i do not want to go to each computer to check the version. so if there is a script or a file i can run thru the network and it reports back to me the computers with outlook sp1.

(in reply to mbouchard)
 
 
Post #: 3
 
 RE: script to check the version of outlook. - 3/23/2006 11:10:18 AM   
  muna_nbi

 

Posts: 12
Score: 0
Joined: 3/22/2006
Status: offline
i got one script but i dont know whats the error can anyone help please


If AppPathExist("winword.exe") Then
WScript.Echo "Word is installed, version is: " _
& GetVersion("winword.exe")
End If
If AppPathExist("excel.exe") Then
WScript.Echo "Excel is installed, version is: " _
& GetVersion("excel.exe")
End If
If AppPathExist("powerpnt.exe") Then
WScript.Echo "PowerPoint is installed, version is: " _
& GetVersion("powerpnt.exe")
End If
If AppPathExist("frontpg.exe") Then
WScript.Echo "FrontPage is installed, version is: " _
& GetVersion("frontpg.exe")
End If
If AppPathExist("outlook.exe") Then
WScript.Echo "Outlook is installed, version is: " _
& GetVersion("outlook.exe")
End If
If AppPathExist("winproj.exe") Then
WScript.Echo "Project is installed, version is: " _
& GetVersion("winproj.exe")
End If
If AppPathExist("msaccess.exe") Then
WScript.Echo "Access is installed, version is: " _
& GetVersion("msaccess.exe")
End If

Function AppPathExist(sProgram)
sAppPathsBase = " HKLM\SOFTWARE\Microsoft\Windows\CurrentV
ersion\App Paths\"
sAppPathExe = RegRead(sAppPathsBase & sProgram & "\")
If sAppPathExe <> "" Then
AppPathExist = True
Else
AppPathExist = False
End If
End Function

Function GetVersion(sProgram)
GetVersion = "Unknown" ' init value
sAppPathsBase = " HKLM\SOFTWARE\Microsoft\Windows\CurrentV
ersion\App Paths\"
sFilePath = RegRead(sAppPathsBase & sProgram & "\")
Set oFSO = CreateObject("Scripting.FileSystemObject")
If oFSO.FileExists(sFilePath) Then
sFileVer = oFSO.GetFileVersion(sFilePath)
If sFileVer <> "" Then
aFileVer = Split(sFileVer, ".")
GetVersion = aFileVer(0)
End If
End If
End Function

Function RegRead(sRegValue)
Set oShell = CreateObject("WScript.Shell")
On Error Resume Next
RegRead = oShell.RegRead(sRegValue)
' If the value does not exist, error is raised
If Err Then
RegRead = ""
Err.clear
End If
' If a value is present but uninitialized the RegRead method
' returns the input value in Win2k.
If VarType(RegRead) < vbArray Then
If RegRead = sRegValue Then
RegRead = ""
End If
End If
On Error Goto 0
End Function

(in reply to mbouchard)
 
 
Post #: 4
 
 RE: script to check the version of outlook. - 3/23/2006 11:33:41 AM   
  ebgreen


Posts: 5069
Score: 31
Joined: 7/12/2005
Status: offline
" i got one script but i dont know whats the error can anyone help please"

Are you getting an error message? If so, what is it? WHat line does it occur on? Does the script do something other than you expected? What did you expect that it did not do? What did it do that you did not expect?

_____________________________

"... 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 muna_nbi)
 
 
Post #: 5
 
 RE: script to check the version of outlook. - 3/23/2006 1:10:59 PM   
  muna_nbi

 

Posts: 12
Score: 0
Joined: 3/22/2006
Status: offline
it is meant to give me the version of word excel outlook etc. The error it give is compilation error. unterminated string constant

(in reply to ebgreen)
 
 
Post #: 6
 
 RE: script to check the version of outlook. - 3/23/2006 1:55:06 PM   
  ebgreen


Posts: 5069
Score: 31
Joined: 7/12/2005
Status: offline
Are you getting an error message? If so, what is it? WHat line does it occur on? Does the script do something other than you expected? What did you expect that it did not do? What did it do that you did not expect?

_____________________________

"... 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 muna_nbi)
 
 
Post #: 7
 
 RE: script to check the version of outlook. - 3/24/2006 12:31:07 AM   
  Cybex


Posts: 412
Score: 0
Joined: 9/14/2005
From: Florida
Status: offline
Can you try this one for finding the version of Office installed and just change the echo part to say Outlook?  I think the way I wrote it to look at the registry might be common enough to work even if you only install Outlook.  Not sure and I have no way to test.


      



Cybex

_____________________________

Common sense is not so common.

(in reply to ebgreen)
 
 
Post #: 8
 
 RE: script to check the version of outlook. - 3/26/2006 10:08:22 AM   
  muna_nbi

 

Posts: 12
Score: 0
Joined: 3/22/2006
Status: offline
hi Thanks

I tried  replace echo to outlook but does not do what i want. What i want is the version of outlook.exe only. The scenario is i have 900 computers and they user office 2000. some of the have SP1 and most have SP3 i need to identify which ones have SP1 and i can installed sp 3 . please help

(in reply to Cybex)
 
 
Post #: 9
 
 RE: script to check the version of outlook. - 3/26/2006 12:04:22 PM   
  ebgreen


Posts: 5069
Score: 31
Joined: 7/12/2005
Status: offline
You know, if you won't answer our questions, it makes it really hard to help you:

" Are you getting an error message? If so, what is it? WHat line does it occur on? Does the script do something other than you expected? What did you expect that it did not do? What did it do that you did not expect?"

_____________________________

"... 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 muna_nbi)
 
 
Post #: 10
 
 RE: script to check the version of outlook. - 3/26/2006 12:21:57 PM   
  muna_nbi

 

Posts: 12
Score: 0
Joined: 3/22/2006
Status: offline
i am running the file in command prompt. the only error i get is as i have write previously compilation error . it does not give me lines  where the problem is or anything of that. may be am running it wrongly. the way i am running the script it by csaving it as a vbs and then running cscript filename.


(in reply to ebgreen)
 
 
Post #: 11
 
 RE: script to check the version of outlook. - 3/26/2006 12:22:10 PM   
  Cybex


Posts: 412
Score: 0
Joined: 9/14/2005
From: Florida
Status: offline
Sorry EBGreen I think I distracted him.  I guess he can’t multitask or he got tunnel vision.
 
 
Cybex

_____________________________

Common sense is not so common.

(in reply to ebgreen)
 
 
Post #: 12
 
 RE: script to check the version of outlook. - 3/26/2006 12:38:34 PM   
  muna_nbi

 

Posts: 12
Score: 0
Joined: 3/22/2006
Status: offline
the error is c:\temp\test6.vbs(31,60) microsoft VBscript compilation error.unterminated string constant. this is the message i get when i ran the file

(in reply to ebgreen)
 
 
Post #: 13
 
 RE: script to check the version of outlook. - 3/26/2006 12:46:05 PM   
  muna_nbi

 

Posts: 12
Score: 0
Joined: 3/22/2006
Status: offline
Hi

i just checked on line 31 it was one word but 2 seperate line. i rectified that. now it does not come up with any error but does not give me an output.

(in reply to ebgreen)
 
 
Post #: 14
 
 RE: script to check the version of outlook. - 3/26/2006 12:49:18 PM   
  muna_nbi

 

Posts: 12
Score: 0
Joined: 3/22/2006
Status: offline
hi cybex.

i tried your script it is ok that it shows me the office version. i tried outting outlook it does not help. the script i had put earlier in the forum does not give output any idea whta would cause that as it is not giving any errors

(in reply to Cybex)
 
 
Post #: 15
 
 RE: script to check the version of outlook. - 3/26/2006 12:50:32 PM   
  Cybex


Posts: 412
Score: 0
Joined: 9/14/2005
From: Florida
Status: offline
If you already know that you are running Outlook 2000 then you can stop wasting your time on the script you are having the errors with.  All it does is tries to read the registry and determine the version of office products you are running.  It does not try to find out the Service Pack you are running.

I do not have Outlook 2000 or the time to load it.  If you go to a machine that has SP3 does it show up in the add remove programs?  If so, start there and write a script that looks at the installed apps for Outlook SP3.  If not found then write the machine name back to a file or something.


Cybex

< Message edited by Cybex -- 3/26/2006 12:52:16 PM >


_____________________________

Common sense is not so common.

(in reply to Cybex)
 
 
Post #: 16
 
 RE: script to check the version of outlook. - 3/26/2006 12:55:49 PM   
  muna_nbi

 

Posts: 12
Score: 0
Joined: 3/22/2006
Status: offline
thats what i want to know. so how would i be able to see on the screen the outpu

(in reply to Cybex)
 
 
Post #: 17
 
 RE: script to check the version of outlook. - 3/26/2006 1:08:17 PM   
  Cybex


Posts: 412
Score: 0
Joined: 9/14/2005
From: Florida
Status: offline
Don't go trying to put the cart in front of the horse...   Slow deep breaths, we'll get there...

In keeping with what mbouchard said...

Microsoft Outlook 2000      = Version #: 9.0.0.2711
Microsoft Outlook 2000 SP-1 = Version #: 9.0.0.3821
Microsoft Outlook 2000 SP-2 = Version #: 9.0.0.4527
Microsoft Outlook 2000 SP-3 = Version #: 9.0.0.6627

So look around and see where Outlook 2000 stores the version number.  If you know a system has SP3 search the registry for the SP3 version number.  Also check installed apps and see if it is present there.

This will tell us how we need to script our validation portition of the script.



Cybex

< Message edited by Cybex -- 3/26/2006 1:10:20 PM >


_____________________________

Common sense is not so common.

(in reply to muna_nbi)
 
 
Post #: 18
 
 RE: script to check the version of outlook. - 3/26/2006 1:22:33 PM   
  muna_nbi

 

Posts: 12
Score: 0
Joined: 3/22/2006
Status: offline
hi i found i key in registry. iti is located on HKCU\software\microsoft\internet explorer\explorer bars\\{C4EE31F3-4768-11D2-BE5C-00A0C9A83DA1}\ContainingTextMRU


(in reply to Cybex)
 
 
Post #: 19
 
 RE: script to check the version of outlook. - 3/26/2006 3:29:00 PM   
  Cybex


Posts: 412
Score: 0
Joined: 9/14/2005
From: Florida
Status: offline
That poped up in your registry because you previously did a Start, Search for Files or Folders for that string.

Read an article on it...
http://www.jsifaq.com/subH/tip3800/rh3836.htm


Keep looking.


Cybex

_____________________________

Common sense is not so common.

(in reply to muna_nbi)
 
 
Post #: 20
 
 
Page:   [1] 2   next >   >>
 
  

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 >> script to check the version of outlook. Page: [1] 2   next >   >>
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