Microsoft Office 2007 Service Pack 2 question.....
Updated: 22 May 2010 | 6 comments
This issue has been solved. See solution.
Has anybody tried packaging Microsoft Office 2007 Service Pack 2 for the existing machines as well as new machines?
There are two scenarios
1. Machines without MS Office 2007
2. Machines with MS Office 2007 [SP1 preferably]
Are there any preriquisites that we needd to check before installing Service Pack 2 in case of second scenario?
If there are, how to incorporate that in the package?
Do we have to slipstream in case of fresh install?
Thanks,
Ramana
Discussion Filed Under:
Comments
Packaging Office 2007 Service Pack 2
I tried packaging service pack 2 for the machines that are already installed with ms office 2007 service pack .
office2007sp2-kb953195-fullfile-en-us.exe
I created a wise script to install the service pack with PASSIVE and NORESTART commandline switches.
Eg: office2007sp2-kb953195-fullfile-en-us.exe /passive /norestart
Thats correct...
You can install Service Pack 2 using those switches but please be informed that you should close OUTLOOK application before installing the Service Pack 2.
Instead of killing OUTLOOK.EXE process, you can display a message box to the user to close OUTLOOK before continuing with the install.
Thats what i'm doing in our environment. I would recommend to use a VBscript instead of wise script as in order to find a process if it running, you have to depend upon someother apps like PV.exe in case of wise script.
A simple wrapper vbscript will check for OUTLOOK.EXE process and informs the user if it is running. Displayes a mesaage box to close OUTLOOK and wait untill OUTLOOK is closed and then continues with the installation of SP2.
In case of FRESH install, you can slipstream the service pack 2 in the main installation source [UPDATES folder] . In order to do that you need to extract the source using /extract along with the target location. Once SP2 is extracted, you can a bunch of patch files [MSP]. Copy PATCH files to UPDATES folder and there you go.
I hope this helps.
Thanks,
Eshwar
Thanks,
Eshwar
You can check process with Wisescript
The Dragonsoft website has some sample Wisescripts that include one which checks for running processes using a DLL call.
So it is possible to check running processes with Wisescript, although it's usually easier to use a few lines of WMI code to test if a particular app is running - Bill MacEachern has posted an example WMI script many times in the Wise forums, so maybe one of those instances has made it over into these forums.
If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.
Can you send me some code?
can i get the code for vbscript to install? certainly i can google it and write my own. Having said that, i do not want o mess up with my vbscripting skills.
If you have a ready made script, please do post it.
I'm very much interedted in learning Wise script but my priority here is the vbscript wrapper.
Thank you for your comments.
vbscript code
you can use the following code to look for OUTLOOK.EXE process and inform the user to close it.
'-------------------------------------------------------------------------------------------------
Set wshShell = CreateObject("WScript.Shell")
Set objwmisvc = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer &"\root\cimv2")
Set process = objwmisvc.ExecQuery ("Select * from Win32_Process Where Name = 'OUTLOOK.EXE'")
Do
For Each cprocess In process
'POPUP message box to the user
MsgBox "Please close OUTLOOK"
Next
Set process = objwmisvc.ExecQuery ("Select * from Win32_Process Where Name = 'OUTLOOK.EXE'")
Loop While (process.Count <> 0)
'-------------------------------------------------------------------------------------------------
You can emedd the above script in your main script...
check my posts...
Check the following post,
i wrote wrapper install scripts both in vbscript as well as wise script. These wrapper scripts can install the application after checking for specified process. Feel free to edit it according to your requirement.
https://www-secure.symantec.com/connect/downloads/...
Thanks,
Eshwar
Thanks,
Eshwar
Would you like to reply?
Login or Register to post your comment.