Microsoft KB Archive/328507

= SMS: How to Use Runonce.exe to Install Windows Media Player =

Article ID: 328507

Article Last Modified on 10/27/2006

-

APPLIES TO


 * Microsoft Systems Management Server 2.0 Standard Edition
 * Microsoft Windows Media Player 7.1

-



This article was previously published under Q328507



SUMMARY
You can use the RunOnce Wrapper tool that is included with the Systems Management Server (SMS) 2.0 Value Pack tools to provide the administrative context to install Windows Media Player 7.1 on locked-down SMS client computers.

Note that this article does not include information about how to install or to use the RunOnce Wrapper tool. For additional information about this tool, see the product documentation that is included with the tool.



MORE INFORMATION
Windows Media Player 7.1 uses a two-part installation routine; the two parts are separated by a computer restart. Some commands are written to the  registry key to be run after the logged-on user restarts the computer. If the user who is installing Windows Media Player does not have administrator permissions on the computer, the installation does not succeed. This is true for both phases of the installation process.

The RunOnce tool handles the post-restart operations by running the pre-restart installation in an administrative user context, and by moving the  registry entries to a   registry key that is located under the   registry key. After the computer is restarted, the same user context runs the previously written cleanup commands to perform the post-restart cleanup and configuration operations.

Create the Package
To create an installation package for Windows Media Player, install the Feature Pack Elevated Rights Deployment tool (Runonce.exe) on the site server. Create a folder on the site server to use as a package source, and then copy the Mp71.exe file into this folder from the Microsoft Download Center. Copy the Runonce.exe file from the installation into the same folder. After you copy the files, create a package that names this folder as the package source folder.

Create the Programs
You must create two programs to handle installation and cleanup phases of the installation. The command line to perform the pre-restart phase (or deployment phase) of the installation is:

runonce.exe &quot;setup_wm.exe /Q /R:N&quot;

You can extract the Setup_wm.exe file from the Mp71.exe file that you downloaded.

Note that the command-line switches in this example are case-sensitive. Using these switches in lowercase may cause the installation not to succeed, or may cause the client computer to stop responding (hang) when it restarts. Make sure to configure the deployment program to cause SMS to restart the computer after the program runs.

The command line for the cleanup (post-restart) phase is:

runonce.exe /cleanup

You must configure the cleanup program to cause the deployment program to run first.

Create the Advertisement
Create a collection of computer to receive the Windows Media Player 7.1 software. Create a new advertisement and specify the package that you created as the package to deploy. You must advertise the cleanup program. Make this a mandatory assignment to make sure that it runs successfully. Because the cleanup phase will not run until the program on which it depends has run, the deployment is forced to run before the cleanup runs. After the deployment phase has completed and restarted the computer, the cleanup phase can run and perform the cleanup operations. This typically occurs on the next cycle of the Offer Data Provider.

Additional query words: prodsms

Keywords: kbinfo KB328507

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.