Office 2007 Unattended Installs

From Jonsdocswiki
Jump to: navigation, search

Office 2007 Enterprise (and possibly professional) editions can be customised for unattended installation through use of the Office Customization Tool (OCT). Using the OCT an answer file is generated providing information needed by the installer.

This is particularly useful if you copy your install media to a network drive and then install Office 2007 on workstations from the share.

Important: when giving paths on the command line (cmd) or in a shortcut remember to use double quotes (") around the path if it contains a space!

Contents

Prerequisites

In order to use an answer file created with the OCT you will need Windows Installer v3.1 or greater. If an older version is installed setup will start and then fail with an error explaining that v3.1 is required.

See also

Generating the answer file

Running the OCT

  • Insert your Office 2007 media or be copy it to your local hard drive (for this example I've copied my installation media to d:\Office2007)
  • Open a command prompt (Start > Run > cmd) and change directory to it:
Change directory to your Office 2007 files
C:\Program Files\Support Tools>d:
D:\>cd Office2007
  • Run the setup program with the /admin argument by typing setup.exe /admin and pressing return:
Running setup with the /admin argument
D:\Office2007>setup.exe /admin
D:\Office2007>
The Office Customization Tool when first opened
  • Having pressed enter you'll see the OCT load and ask what product you want to create a customisation file for (see right), the only option here should be Microsoft Office Enterprise 2007 so select it and click OK.
  • The OCT will now load all the options for Microsoft Office Enterprise 2007 and will present these to you in the left hand pane and most of the options are self-explanatory from there on in.

Install location and organization name

Using dialogues on this page you set the install path for every machine this answer file applies to - the default being [ProgramFilesFolder]\Microsoft Office. The organisation name field will be used in the properties details of any documents produced.

Licensing and User Interface

From this screen administrators need to enter their 25 character license key, accept the license agreement and determine what level of installer GUI is presented during install. The license key should be entered without any hyphens or spaces (so just the 25 characters, one after another).

The display level drop down offers 3 options - none, basic and full (default).

  • None
    • Choosing none will prevent any UI from showing to the user.
  • Basic
    • This will show the user a brief user interface featuring a progress bar. Personally I recommend this choice as that way you know the install is going ahead!
  • Full (default)
    • Shows everything you'd get if you just ran setup.exe

There are also 3 tick boxes beneath the drop down.

  • Completion notice
    • Presents the user with a message at the end of the install, advising the produce install has been successful.
  • No Cancel
    • Removes the cancel button from the install process (this seems to have no effect during an install with display level "basic" as no buttons are presented)

Remove previous installations

Microsoft Recommendation
Microsoft recommends that Office 2007 be the only Microsoft Office version installed on each workstation. Although it will work along side Office 2003 this is not a supported configuration.

This does exactly what it says on the tin - the default behaviour removing all previous office components (that doesn't include Visio or Sharepoint Designer, only products part of the Office main suite). If you don't want to remove previous versions of a specific application, for example Outlook, then choose the bottom radio button (Remove the following earlier versions of Microsoft Office programs) and adjust the settings accordingly by double clicking the application name.


Use the OCT to remove or relocate unwanted Office 2007 shortcuts

Additional Content - Configure Shortcuts

Office has always included many shortcuts more than just 1 per application. Using the OCT you can choose where to locate these or remove them completely. See screenshot right (click for larger).

Installing Office 2007 with your answer file

There are 2 methods for this - from the command line (also a script) or via a shortcut.

From the command line

(Note:the same command line instructions can be used in a script, e.g. DOS BATCH (.bat) scripting)

  • Insert your Office 2007 media or be copy it to your local hard drive (for this example I've copied my installation media to d:\Office2007)
  • Open a command prompt (Start > Run > cmd) and change directory to your media location:
Change directory to your Office 2007 files
C:\Program Files\Support Tools>d:
D:\>cd Office2007
  • Run the setup.exe with the /adminfile argument and the path to the file:
Using the /adminfile argument
D:\Office2007>setup.exe /adminfile c:\answers\Office2007.msp
  • Depending on your answer file configuration you'll see the installer UI appear after a brief pause.

From a shortcut

  • Create a new shortcut to the setup.exe file.
  • Open properties for the shortcut.
  • On the target line add the /adminfile argument and the path to the answer file (e.g. /adminfile c:\answers\Office2007.msp)
  • Set the Start in path to be that of the setup.exe location (e.g. d:\Office2007 or \\fileserver\installs\office2007)
  • Click OK
  • Now double clicking this shortcut will install Office 2007 with your answer file.
Making a shortcut to install Office 2007 using your answer file.

See also

Personal tools