The following table describes the top-level sections included in the MSP metadata.xml file.
The following example illustrates how to locate settings in the resulting XML file that opens in Internet Explorer when you run the ExtractOctXml.vbs script with an OCT MSP customization file.
This example uses a Microsoft Office Professional 2007 Plus MSP customization file. Only Microsoft Office Access 2007 is installed and the default file format for Access, Access 2007, is configured. The Default file format user setting for Access is located in the Microsoft Office Access 2007\Miscellaneous node of the Modify user settings screen in the OCT.
Use a text editor such as Notepad to open the Access 2007 OPA settings file, access12.opa (located at the root of your Office 2007 source file location, in the Admin folder). Search for the string displayed in the OCT for the Default file format user setting, Default file format. Doing so will show the following section of the access12.opa file:
KEYNAME Software\Microsoft\Office\12.0\Access\Settings
PART !!L_Empty DROPDOWNLIST
VALUENAME "Default File Format"
ITEMLIST
NAME !!L_Access2007 VALUE NUMERIC 12 DEFAULT
NAME !!L_Access20022003 VALUE NUMERIC 10
END ITEMLIST
From this user setting information, you can determine the registry key for the setting (Software\Microsoft\Office\12.0\Access\Settings in this case) and the possible registry values. A Default File Format value of 12 sets the default file format to Access 2007, while a Default File Format of 10 sets the default file format to Access 2002-2003.
After you obtain this information from the access12.opa file, you can search the customization metadata.xml file for the registry key or value that you are looking for, such as Software\Microsoft\Office\12.0\Access\Settings. Doing so in this example would bring you to the following section of the metadata.xml file:
<AddRegistries>
<AddRegistry root="HKCU" key="Software\Microsoft\Office\12.0\Access\Settings" name="Default File Format" emptykey="false" flags="0" type="0" value="12" guid="{2A044E97-7BB1-4644-BF84-A35A5B2E5D51}" />
Using the information from the OPA file, you can see that the Default File Format key has a value of 12, which sets the default file format to Access 2007.
The following is an excerpt of what the <Options> section of the XML file looks like in this example:
<Option id="ACCESSFiles" installState="3" />
<Option id="Access_PIA" installState="3" />
<Option id="AccessWizards" installState="3" />
<Option id="CalendarControl" installState="3" />
<Option id="DeveloperWizards" installState="3" />
<Option id="AccessHelpFiles" installState="3" />
<Option id="AccessTemplatesIntl" installState="3" />
<Option id="EXCELFiles" installState="1" />
.
.
<Option id="OUTLOOKFiles" installState="1" />
.
.
<Option id="PPTFiles" installState="1" />
For more information about OptionState IDs, see the OptionState Element section of the Config.xml file in the 2007 Office system article.