Setup Command-line Parameters for Online Stores

[The feature associated with this page, Windows Media Player SDK, is a legacy feature. It has been superseded by MediaPlayer. MediaPlayer has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer instead of Windows Media Player SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

Note

This section describes functionality designed for use by online stores. Use of this functionality outside the context of an online store is not supported.

 

When installing Windows Media Player 10 or Windows Media Player 11 on Windows XP, you can append command-line parameters to specify the first online store that the user sees.

Syntax

MP10Setup.exe /q:A /c:"setup_wm.exe /Q /R:N /DefaultService:serviceKey /ServiceInfo:documentPath /ServiceExtra:queryString"

Parameters

DefaultService (required)

The key name for the online store. This value must match the key name in the Key attribute of the ServiceInfo element of the ServiceInfo document.

ServiceInfo (required)

The fully qualified path to a ServiceInfo document installed on the user's computer.

ServiceExtra (optional)

A query string that Windows Media Player 10 will append to the URL for the ServiceInfo document when it retrieves the document online.

Remarks

For details about redistributing Windows Media Player software with your application, see Redistributing Windows Media Player Software.

When the user's computer is not connected to the Internet, the information contained in the local ServiceInfo document is used to configure Windows Media Player for the initial active service.

Command-line parameters are case sensitive.

Co-Branding Online Stores

Information Common to Type 1 and Type 2 Online Stores

Install Element

Setting the Initial Online Store