Office 2007 Silent Deployment
Posted by Jarvis on October 25, 2007
Wrote an e-mail to a friend who was asking about Office 2007 Deployment yesterday. Figured it would make a good post on how to go about creating a silent/unattended install of Office 2007.
In previous versions of Office…specifically I’m thinking of 2003…a silent custom install involved a long hairy command line such as:
setuppro.exe /Settings Files\Custom\Custom_Setup.ini TRANSFORMS=custom.MST /qb!- /m off11
Yes…that is the actual command line from the SMS 2003 program for Office 2003 that we have used. Now…on to Office 2007. Boy did Microsoft make this easier. Customizations in Office 2007 are handled essentially the same as patches. They are an MSP file that you apply to the installation. And how do you go about creating the MSP? Simple…go to the CD or folder where the Office installation files are and run “setup.exe /admin”. This runs the “Office Customization Tool“. With this tool you can modify most Office setting before a user ever sees the program. You can also control the installation process…entering the product key as well as controlling what level of interaction a user has during the install. You can make it completely interactive or completely hidden…along with several levels in between.
Specifically Joey’s question yesterday was about settings to use when installing Office 2007 via a Task Sequence in SCCM. There are three pre-requisites to a program running in a TS.
- The program has to be able to install as the system account.
- The installation must be completely silent. It can’t need any user interaction (such as clicking next).
- It can’t initiate a reboot. SCCM must control reboots…so that it is able to pick up where it left off in the TS.
Joey’s question centered around #2. The key settings in the Customization Tool for this are found on the “Licensing and user interface” settings. Enter a product key, accept the License Agreement, and check the “Suppress modal” box. I’m pretty sure you also need to ensure that “completion notice” is not checked, but I could be wrong on that one. After finishing setting all of your settings, you will create the MSP using the tool. Copy that tool to the location where you have the install files.
Now…the command line for Office 2007…simply “setup.exe /adminfile custom.msp” where custom.msp resides in the same folder as setup.exe. You can also do a folder at that level in case in which the command line would be “setup.exe /adminfile folder\custom.msp”. Wow is that a lot simpler.
One last thing. If using this in a Task Sequence in SCCM, you also need to ensure that the checkbox for “Allow this program to be installed from the Install Software task sequence without being advertised.” is checked. This is on the Advanced tab of the program properties.
February 21, 2008 at 5:43 am
hey
first thank for u’re inforation.any way this wont work.in my environment i have office 2003 installed.i wanna upgrade this one to office 2007through sccm.so in the program command line i have given the command as u mentioned.i wont do any thing.so if you know how to fulfil my requirement it a great help.
February 21, 2008 at 9:17 am
Sanka -
When you go through the process of creating the custom.msp…when you run “setup.exe /admin”, there is a setting for what to do with previous versions. I’m pretty sure the default is to remove the old version and install new. You’ll just need to explore the various settings that you can stipulate and find what works for your requirements. I’ve never had a problem with the previous version not being removed.
When you say it won’t do anything…what do you mean? Is the advertisement running on the box?
Another thing for you to try…to ensure that you have a valid installer and custom.msp…try to remove SMS/SCCM from the process. Just run the installer with the custom.msp from a server share or burn a CD with the install source on it and run from there. It could be that something in your source is hosed. Once you have that working, you can go back into SCCM and make it work there.
May 7, 2008 at 12:06 pm
I did the first part and it worked great to create the .msp file. I placed the custom .msp file in the same directory as the setup.exe file. I then created a batch file with the appropriate switch; when I run the batch file I receive the following message - “Please go to Control Panel to install and configure system components”. I am using a Volume License CD as opposed to a Retail CD. Any information regarding this with be greatly appreciated. If you like you can email me directly at glagana@lagnor.com.
May 7, 2008 at 12:18 pm
Where are you running the batch file? From an SMS program? Is there a reason for throwing that extra level in? If doing it in SMS, just create a program with your command line in it.
Also…and this is a bigger one…have you tried it on more than one workstation? The process as listed in my post is correct. It’s possible that you have an issue with the one workstation. Or…if it fails on multiple, you may have an issue with how your computers have been installed/uninstalled previously.
May 7, 2008 at 2:16 pm
No, I was running it from a UNC path. Apparently, it must have been to long. I copied the install folder to my C drive, and I adjusted the batch file. Now it is installing fine. Thanks for the quick response. I am going to reboot my computer now to complete the install.