Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I hide Windows Installer box for new user initial setup of Office

Status
Not open for further replies.

joelkolb

IS-IT--Management
Mar 7, 2011
1
0
0
US
Hello all. Let me start out by saying I have extremely minimal understanding of vbscript. I am a sysadmin at my company. I am trying to automate the configuration of Microsoft Office for new users so that they aren't really prompted for any information before using any of the Office apps because 9 times out of 10 this will result in them calling me to help them figure out what to do. We are still on Office 2003 mostly. I've gotten everything I want to accomplish sorted out except this.


On the first run of any Office app for a new user a Windows Installer box pops up with the message “Please wait while Windows configures Microsoft Office Professional Edition 2003”. This box has a cancel button in it. After this short configuration the user is prompted to enter their name and initials.


I have the following script which I have cobbled together mostly by borrowing from tutorials and references I've found through Google.

Code:
Set objSysInfo = CreateObject("ADSystemInfo")

strUser = objSysInfo.UserName
Set objUser = GetObject("LDAP://" & strUser)

Set objWord = CreateObject("Word.Application")
objWord.UserName = objUser.DisplayName
objWord.UserInitials = Left(objUser.givenName, 1) & objUser.initials & Left(objUser.SN, 1)
objWord.Quit

Using this as a logon script I can launch a hidden instance of Word, enter the user's name and initials pulled from their Active Directory account, and then close Word. It works perfectly. The problem is the Windows Installer box that the user could possibly interfere with which pops up for every user's first run of Office on a machine.


I was wondering if there is a way to modify this script to hide this Windows Installer box or at the very least disable the cancel button. I've seen methods for scripting this sort of thing online but as I've understood they revolve around the Windows Installer process being run from and then manipulated by the script. However in this case the script is running Word which then triggers the Windows Installer.


I hope someone can help me with this. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top