Sample Update Metadata Files
Applies To: Windows Server Update Services
This section includes sample update metadata files for the following kinds of installation:
Command-line installation
Windows Installer-installed application
Command-line installed patch
MSP-installed patch
Command-line installation
<?xml version="1.0" encoding="utf-8" ?>
<!-- A minimally populated SDP file for a command-line-installed application -->
<sdp:SoftwareDistributionPackage xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:sdp="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/SoftwareDistributionPackage.xsd"
xmlns:cmd="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/Installers/CommandLineInstallation.xsd"
xmlns:bar="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/BaseApplicabilityRules.xsd"
xmlns:lar="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/LogicalApplicabilityRules.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
SchemaVersion='1.0'>
<sdp:Properties
PackageID='17D63289-8917-4a92-BA76-FDFE6E3E176C'
CreationDate='2001-10-18T16:00:00'/>
<sdp:LocalizedProperties>
<sdp:Language>en</sdp:Language>
<sdp:Title>A title</sdp:Title>
<sdp:Description>A description</sdp:Description>
</sdp:LocalizedProperties>
<sdp:ApplicationSpecificData />
<sdp:IsInstallable>
<bar:WindowsVersion Comparison='GreaterThanOrEqualTo' MajorVersion='5' MinorVersion='1' />
</sdp:IsInstallable>
<sdp:InstallableItem ID='5AE83422-C6AF-4423-8B99-76DB2C68BC85'>
<sdp:ApplicabilityRules>
<sdp:IsInstalled>
<lar:And>
<bar:FileExists Path="%windir%\sample1.dll" Version="1.0.0.1" />
<bar:FileExists Path="%windir%\sample2.dll" Version="1.0.0.1" />
</lar:And>
</sdp:IsInstalled>
<sdp:IsInstallable>
<bar:WindowsLanguage Language="en"/>
</sdp:IsInstallable>
</sdp:ApplicabilityRules>
<sdp:InstallProperties />
<cmd:CommandLineInstallerData Program="sample.exe" Arguments="/q">
<cmd:ReturnCode Code="0" Result="Succeeded" />
</cmd:CommandLineInstallerData>
<sdp:Language>en</sdp:Language>
</sdp:InstallableItem>
</sdp:SoftwareDistributionPackage>
Windows Installer-installed application
<?xml version="1.0" encoding="utf-8" ?>
<!-- A minimally populated USP file for an Windows Installer-installed application -->
<usp:UpdateServicesPackage xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:usp="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/UpdateServicesPackage.xsd"
xmlns:sdp="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/SoftwareDistributionPackage.xsd"
xmlns:msiar="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/MsiApplicabilityRules.xsd"
xmlns:msi="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/Installers/MsiInstallation.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<usp:SoftwareDistributionPackage SchemaVersion='1.0'>
<sdp:Properties
PackageID='17D63289-8917-4a92-BA76-FDFE6E3E176F'
CreationDate='2001-10-18T16:00:00'/>
<sdp:LocalizedProperties>
<sdp:Language>en</sdp:Language>
<sdp:Title>A title</sdp:Title>
<sdp:Description>A description</sdp:Description>
</sdp:LocalizedProperties>
<sdp:ApplicationSpecificData />
<sdp:InstallableItem ID='5AE83422-C6AF-4423-8B99-76DB2C68BC85'>
<sdp:ApplicabilityRules>
<sdp:IsInstalled>
<msiar:MsiApplicationInstalled />
</sdp:IsInstalled>
<sdp:IsSuperseded>
<msiar:MsiApplicationSuperseded />
</sdp:IsSuperseded>
<sdp:IsInstallable>
<msiar:MsiApplicationInstallable />
</sdp:IsInstallable>
<sdp:Metadata>
<msiar:MsiApplicationMetadata>
<msiar:ProductCode>{10867FC2-98D9-475F-8099-F14A75180E42}</msiar:ProductCode>
</msiar:MsiApplicationMetadata>
</sdp:Metadata>
</sdp:ApplicabilityRules>
<sdp:InstallProperties />
<msi:MsiInstallerData MsiFile='sample.msi' ProductCode="{10867FC2-98D9-475F-8099-F14A75180E42}" CommandLine="VAR1=val1 VAR2=val2" />
</sdp:InstallableItem>
</usp:SoftwareDistributionPackage>
<usp:UpdateServicesProperties
RevisionNumber='1'>
<usp:InstallableItemInfo
ID='5AE83422-C6AF-4423-8B99-76DB2C68BC85'
InstallPointDirectory='PackageSubdir\InstallPointDirectory'
PackageCabFile='PackageSubdir\sample.cab'>
<usp:File
Digest="eW91IGNhbid0IHJlYWQgdGhpcyE="
FileName="MyApp.cab"
Size="73124"
Modified="1965-02-17T12:00:00"/>
</usp:InstallableItemInfo>
</usp:UpdateServicesProperties>
</usp:UpdateServicesPackage>
Command-line installed patch
<?xml version="1.0" encoding="utf-8" ?>
<!-- A minimally populated SDP file for an command-line installed patch -->
<sdp:SoftwareDistributionPackage xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:usp="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/UspSchema.xsd"
xmlns:sdp="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/SoftwareDistributionPackage.xsd"
xmlns:bar="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/BaseApplicabilityRules.xsd"
xmlns:lar="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/LogicalApplicabilityRules.xsd"
xmlns:cmd="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/Installers/CommandLineInstallation.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
SchemaVersion='1.0'>
<sdp:Properties
PackageID='17D63289-8917-4a92-BA76-FDFE6E3E176B'
CreationDate='2001-10-18T16:00:00'/>
<sdp:LocalizedProperties>
<sdp:Language>en</sdp:Language>
<sdp:Title>A title</sdp:Title>
<sdp:Description>A description</sdp:Description>
</sdp:LocalizedProperties>
<sdp:UpdateSpecificData
UpdateClassification="Security Updates" />
<sdp:InstallableItem ID='5AE83422-C6AF-4423-8B99-76DB2C68BC85'>
<sdp:ApplicabilityRules>
<sdp:IsInstalled>
<lar:And>
<bar:FileExists Path="%windir%\sample.dll" Version="1.0.0.1" />
<bar:FileVersion Path="%windir%\Microsoft.NET\Framework\v1.1.4322\system.web.dll" Comparison="LessThanOrEqualTo" Version="1.1.4322.2032" />
<bar:InstalledOnce />
</lar:And>
</sdp:IsInstalled>
<sdp:IsInstallable>
<bar:WindowsVersion Comparison='GreaterThanOrEqualTo' MajorVersion='5' MinorVersion='1' />
</sdp:IsInstallable>
</sdp:ApplicabilityRules>
<sdp:InstallProperties />
<cmd:CommandLineInstallerData Program="sample.exe" Arguments="/q">
<cmd:ReturnCode Code="0" Result="Succeeded" />
</cmd:CommandLineInstallerData>
</sdp:InstallableItem>
</sdp:SoftwareDistributionPackage>
MSP-installed patch
<?xml version="1.0" encoding="utf-8" ?>
<!-- A fully populated SDP file for an msp-installed patch -->
<sdp:SoftwareDistributionPackage xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:sdp="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/SoftwareDistributionPackage.xsd"
xmlns:msiar="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/MsiApplicabilityRules.xsd"
xmlns:msp="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/Installers/MspInstallation.xsd"
xmlns:mspblob="https://www.microsoft.com/msi/patch_applicability.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
SchemaVersion='1.0'>
<sdp:Properties
PackageID='17D63289-8917-4a92-BA76-FDFE6E3E176F'
CreationDate='2001-10-18T16:00:00'/>
<sdp:LocalizedProperties>
<sdp:Language>en</sdp:Language>
<sdp:Title>A title</sdp:Title>
<sdp:Description>A description</sdp:Description>
</sdp:LocalizedProperties>
<sdp:UpdateSpecificData
UpdateClassification="Security Updates" />
<sdp:InstallableItem ID='5AE83422-C6AF-4423-8B99-76DB2C68BC85'>
<sdp:ApplicabilityRules>
<sdp:IsInstalled>
<msiar:MsiPatchInstalled />
</sdp:IsInstalled>
<sdp:IsSuperseded>
<msiar:MsiPatchSuperseded />
</sdp:IsSuperseded>
<sdp:IsInstallable>
<msiar:MsiPatchInstallable />
</sdp:IsInstallable>
<sdp:Metadata>
<msiar:MsiPatchMetadata>
<mspblob:MsiPatch>
<mspblob:TargetProduct MinMsiVersion="3">
<mspblob:TargetProductCode>{17D63289-8917-4a92-BA76-FDFE6E3E176F}</mspblob:TargetProductCode>
<mspblob:TargetVersion ComparisonType="Equal">7.2</mspblob:TargetVersion>
<mspblob:TargetLanguage Validate="true">1033</mspblob:TargetLanguage>
<mspblob:UpdatedLanguages>1033</mspblob:UpdatedLanguages>
<mspblob:UpgradeCode>{17D63289-8917-4a92-BA76-FDFE6E3E176F}</mspblob:UpgradeCode>
</mspblob:TargetProduct>
<mspblob:TargetProductCode>{17D63289-8917-4a92-BA76-FDFE6E3E176F}</mspblob:TargetProductCode>
</mspblob:MsiPatch>
</msiar:MsiPatchMetadata>
</sdp:Metadata>
</sdp:ApplicabilityRules>
<sdp:InstallProperties />
<msp:MspInstallerData PatchCode="{10867FC2-98D9-475F-8099-F14A75180E42}" CommandLine="VAR1=val1 VAR2=val2" />
</sdp:InstallableItem>
</sdp:SoftwareDistributionPackage>
Driver package
<?xml version="1.0" encoding="utf-8" ?>
<!-- A fully populated SDP file for a driver package -->
<sdp:SoftwareDistributionPackage
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:bar="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/BaseApplicabilityRules.xsd"
xmlns:bt="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/BaseTypes.xsd"
xmlns:cmd="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/Installers/CommandLineInstallation.xsd"
xmlns:lar="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/LogicalApplicabilityRules.xsd"
xmlns:msi="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/Installers/MsiInstallation.xsd"
xmlns:msiar="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/MsiApplicabilityRules.xsd" xmlns:msp="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/Installers/MspInstallation.xsd"
xmlns:sdp="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/SoftwareDistributionPackage.xsd"
xmlns:uei="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/Installers/UpdateExeInstallation.xsd" xmlns:usp="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/UpdateServicesPackage.xsd"
xmlns:drv="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/Installers/WindowsDriver.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" SchemaVersion="1.1">
<sdp:Properties PackageID="edab1187-0880-45df-b48f-4c0b33a2c4d9" CreationDate="2007-05-21T19:03:34.603Z" PublicationState="Published" CanSourceBeRequired="false" UpdateType="Driver"></sdp:Properties>
<sdp:LocalizedProperties>
<sdp:Language>en</sdp:Language>
<sdp:Title>Driver for Broadcom BCM V.92 modem</sdp:Title>
<sdp:Description>Description</sdp:Description>
</sdp:LocalizedProperties>
<sdp:ApplicationSpecificData />
<sdp:InstallableItem ID="ac1f5495-6284-406c-aaac-b40624cd12ea" >
<sdp:ApplicabilityRules>
<sdp:IsInstalled>
<drv:WindowsDriverInstalled />
</sdp:IsInstalled>
<sdp:IsSuperseded>
<drv:WindowsDriverSuperseded />
</sdp:IsSuperseded>
<sdp:IsInstallable>
<drv:WindowsDriverInstallable />
</sdp:IsInstallable>
<sdp:Metadata>
<drv:WindowsDriverMetaData HardwareID="PCI\VEN_14E4&DEV_4212&SUBSYS_00021028" WhqlDriverID="6601854" Manufacturer="Broadcom Corporation" Provider="Broadcom Corporation" Model="BCM V.92 56K Voicemodem" Company="Broadcom Corporation" Class="Modems" DriverVerDate="2003-08-27" DriverVerVersion="0.0.0.0" />
</sdp:Metadata>
</sdp:ApplicabilityRules>
<sdp:InstallProperties CanRequestUserInput="false" RequiresNetworkConnectivity="false" Impact="Normal" RebootBehavior="CanRequestReboot" />
</sdp:InstallableItem>
</sdp:SoftwareDistributionPackage>
Detectoid
<?xml version="1.0" encoding="utf-8" ?>
<!-- A fully populated SDP file for a detectoid -->
<sdp:SoftwareDistributionPackage xmlns="http://www.w3.org/2001/XMLSchema" xmlns:bar="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/BaseApplicabilityRules.xsd" xmlns:bt="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/BaseTypes.xsd" xmlns:cmd="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/Installers/CommandLineInstallation.xsd" xmlns:lar="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/LogicalApplicabilityRules.xsd" xmlns:msi="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/Installers/MsiInstallation.xsd" xmlns:msiar="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/MsiApplicabilityRules.xsd" xmlns:msp="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/Installers/MspInstallation.xsd" xmlns:sdp="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/SoftwareDistributionPackage.xsd" xmlns:uei="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/Installers/UpdateExeInstallation.xsd" xmlns:usp="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/UpdateServicesPackage.xsd" xmlns:drv="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/Installers/WindowsDriver.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" SchemaVersion="1.1">
<sdp:Properties PackageID="2063FA61-37E8-40b1-A882-9E6EEF341EDD" CreationDate="2007-05-21T19:15:13.661Z" PublicationState="Published" CanSourceBeRequired="false" UpdateType="Detectoid" />
<sdp:LocalizedProperties>
<sdp:Language>en</sdp:Language>
<sdp:Title>Dell detectoid</sdp:Title>
<sdp:Description>This detectoid detects if the machine is a Dell</sdp:Description>
</sdp:LocalizedProperties>
<sdp:ApplicationSpecificData />
<sdp:IsInstalled>
<bar:WmiQuery Namespace="Root\CIMv2" WqlQuery="SELECT * FROM Win32_ComputerSystem WHERE Manufacturer LIKE 'Dell%'" />
</sdp:IsInstalled>
</sdp:SoftwareDistributionPackage>
Bundle prerequisite on detectoid
<?xml version="1.0" encoding="utf-8" ?>
<!-- A fully populated SDP file for a bundle package -->
<sdp:SoftwareDistributionPackage
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:bar="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/BaseApplicabilityRules.xsd"
xmlns:bt="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/BaseTypes.xsd"
xmlns:cmd="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/Installers/CommandLineInstallation.xsd"
xmlns:lar="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/LogicalApplicabilityRules.xsd"
xmlns:msi="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/Installers/MsiInstallation.xsd"
xmlns:msiar="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/MsiApplicabilityRules.xsd"
xmlns:msp="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/Installers/MspInstallation.xsd"
xmlns:sdp="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/SoftwareDistributionPackage.xsd"
xmlns:uei="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/Installers/UpdateExeInstallation.xsd"
xmlns:usp="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/UpdateServicesPackage.xsd"
xmlns:drv="https://schemas.microsoft.com/wsus/2005/04/CorporatePublishing/Installers/WindowsDriver.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" SchemaVersion="1.1">
<sdp:Properties PackageID="46AFB3B1-17D5-4b84-AFC0-3CAF9EFB9E43" CreationDate="2007-05-21T19:07:58.633Z" PublicationState="Published" CanSourceBeRequired="false" UpdateType="Software"></sdp:Properties>
<sdp:LocalizedProperties>
<sdp:Language>en</sdp:Language>
<sdp:Title>Bundle Package </sdp:Title>
<sdp:Description>A test bundle package with multiple bundled children</sdp:Description>
</sdp:LocalizedProperties>
<sdp:ApplicationSpecificData />
<sdp:Prerequisites>
<!-- Prereq on Dell Detectoid -->
<sdp:AtLeastOne>
<sdp:PackageID>2063FA61-37E8-40b1-A882-9E6EEF341EDD </sdp:PackageID>
</sdp:AtLeastOne>
</sdp:Prerequisites>
<sdp:BundledPackages>
<!-- Driver -->
<sdp:PackageID> edab1187-0880-45df-b48f-4c0b33a2c4d9</sdp:PackageID>
<!-- Command line application -->
<sdp:PackageID>17D63289-8917-4a92-BA76-FDFE6E3E176C</sdp:PackageID>
</sdp:BundledPackages>
</sdp:SoftwareDistributionPackage>