In this article:

This article contains code that you can copy to create a package definition (.sms) file for the 2007 Microsoft Office system. A package definition file is a template that contains the SMS components that are needed to create and distribute software. Microsoft Systems Management Server (SMS) 2003 uses SMS packages to distribute software such as the 2007 Office system.

Using the package definition file with SMS

Administrators can use the Office12.sms package definition file to create a package for deploying the 2007 Office system. The .sms file contains the information that you must have to create the SMS package. If you import this file, SMS immediately creates the package for you.

You can use a predefined package file by specifying the file when you create the package. To do so, navigate to Packages in the SMS Administrator console, right-click New, and then click Package From Definition. In the Package from Definition Wizard, you can browse for the location that you specified when you installed the Office12.sms package definition file.

The 2007 Office package definition file, Office12.sms, includes the following command line in the [Custom] section:

CommandLine=setup.exe /config "c:\ path \config.xml"

You must edit this line to provide the location of the Config.xml file. For example, if you are installing Microsoft Office Enterprise 2007, enter the fully qualified path to the Config.xml file in the Office Enterprise 2007 core product folder (Enterprise.WW). You can use a text editor, such as Notepad, to modify the CommandLine in the [Custom] section of the Office12.sms file, make the changes, and then save the file. In this case, you would use the following command line:

CommandLine=setup.exe /config "\\ server \ share \Enterprise.WW\config.xml"

You also need to provide the product code (ProductID) for the product to uninstall in the CommandLine in the [Uninstall] section of the Office12.sms file:

CommandLine=setup.exe /uninstall { ProductID, for example, ProPlus }

To modify the CommandLine in the [Uninstall] section, you need to provide the download code for the product to uninstall within the braces as shown in the following example:

CommandLine=setup.exe /uninstall {90120000-0030-0000-0000-0000000FF1CE}

The download codes for each Office product can be found in the Setup.xml file in the core product folder. For example, this line in the Setup.xml file for Office Enterprise 2007 looks like the following:

<LocalCache DownloadCode="{90120000-0030-0000-0000-0000000FF1CE}" SkuComponentDirectory=" Enterprise.WW">"

For more information about product codes for the 2007 Office system, see Run Setup from the local installation source to install the 2007 Office system.

For detailed information about how to use SMS to deploy the 2007 Office system, see Deploying the 2007 Microsoft Office System with Microsoft Systems Management Server 2003 R2 (http://go.microsoft.com/fwlink/?LinkId=78542&clcid=0x409).

Code to create a package definition file

Copy the following code into a text file, and save it with the file name extension .sms to create an SMS package definition file.

  CopyCode imageCopy Code
[PDF]
Version=2.0

[Package Definition]
Publisher=Microsoft
Name=Microsoft Office 2007 Applications
Version=12.0
Language=English
Programs=Install, Custom, Uninstall
MIFName=off12

[Install]
Name=Install
CommandLine=setup.exe
AdminRightsRequired=True
UserInputRequired=True
DriveLetterConnection=False
CanRunWhen=AnyUserStatus
RemoveProgram=False
SupportedClients=Win NT (I386)
Win NT (I386) MinVersion1=5.10.0000.0
Win NT (I386) MaxVersion1=9.99.9999.9999 

[Custom]
Name=Custom
CommandLine=setup.exe /config "c:\path\config.xml"
AdminRightsRequired=True
UserInputRequired=False|True
DriveLetterConnection=False
CanRunWhen=AnyUserStatus
RemoveProgram=False
SupportedClients=Win NT (I386)
Win NT (I386) MinVersion1=5.10.0000.0
Win NT (I386) MaxVersion1=9.99.9999.9999 

[Uninstall]
Name=Uninstall
CommandLine=setup.exe /uninstall {ProductID e.g. ProPlus- see Office 2007 ORK}
AdminRightsRequired=True
UserInputRequired=False
DriveLetterConnection=False
CanRunWhen=AnyUserStatus
SupportedClients=Win NT (I386)
Win NT (I386) MinVersion1=5.10.0000.0
Win NT (I386) MaxVersion1=9.99.9999.9999 

See Also