troubleshooting Question

Deploy Office 2007 using GPO / Script / MSP

Avatar of piemckay
piemckay asked on
Microsoft OfficeActive DirectoryVB Script
8 Comments1 Solution3142 ViewsLast Modified:
Hi,

I am trying to deploy Office 2007 to our network computers using Group Policy. I have looked down to route of using MSI files and changing the xml config file but that doesn't seem to suit the custom install I need (installing pro plus but taking out publisher and infopath).

I have created an MSP file using setup.exe /admin and have copied the installation files to a file server. I am using the attached vbscript at startup to install office 2007 (startup script in GPO). The installation works and fires up at the machine startup, however it does not wait until it is complete before allowing the user to log in. This could cause us serious problems as it is removing 2003 as well and the user could interfere with that.

Is there a way of stopping the user from logging in before the installtion is complete? Also is there a way of customising a message to the user to let them know why the log in is delayed? I have managed to get it to work as a shutdown script , but I can imagine a lot of complaints from laptop users being delayed from leaving work on time!

I am not very good with vbscripting so I will need guidance for code changes.
Thanks in advance.
Set wshShell = WScript.CreateObject("WScript.Shell")
Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2")
Set colSoftware = objWMIService.ExecQuery ("Select * from Win32_Product")
For Each objSoftware in colSoftware
  If objSoftware.Caption = "Microsoft Office Professional Plus 2007" Then
    OfficeInstalled = True
    Exit For
  End If
Next
If OfficeInstalled <> True Then
  Set oExec = wshShell.Exec ("\\server\apps\Office2007\setup.exe /adminfile \\server\apps\office2007\office2007_pro.msp")
  Do While oExec.Status = 0
    WScript.Sleep 100
  Loop
End If
ASKER CERTIFIED SOLUTION
Zuhir Elgmati
Applications and Systems Administrator

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 8 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros