Compartir a través de


Installing While Offline

[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.]

Users can install Windows Media Player while not connected to the Internet. When this happens, Windows Media Player setup locates the ServiceInfo.xml document specified by the ServiceInfo command line parameter. If the Key attribute matches the DefaultService command line parameter, setup applies information from the following elements to Windows Media Player:

  • FriendlyName. The friendly name of the online store is shown in the Windows Media Player user interface.
  • Color. The specified colors are applied to the taskbar and buttons.
  • ServiceTask1, ServiceTask2, and ServiceTask3. The ButtonText and ButtonTip child elements are set. The URL attribute is not set. URL is set once the user connects to the Internet and Windows Media Player retrieves its list of online stores in the normal fashion.
  • Image. The MenuURL and ServiceLargeURL attributes are set. These URLs must point to images you installed on the user's hard disk by using the file:// protocol.

When the user attempts to view the online store, Windows Media Player displays a message informing the user that an Internet connection is required.

Color Element

FriendlyName Element

Image Element

Information Common to Type 1 and Type 2 Online Stores

ServiceInfo Element

ServiceTask1 Element

ServiceTask2 Element

ServiceTask3 Element

Setting the Initial Online Store

Setup Command-line Parameters for Online Stores