Microsoft KB Archive/934509

= How to remove MP3 codecs from a Windows XP Embedded run-time image =

Article ID: 934509

Article Last Modified on 3/16/2007

-

APPLIES TO


 * Microsoft Windows XP Embedded

-



INTRODUCTION
Microsoft Windows Media Player includes MP3 codecs in order to play back MP3 music. These codecs are automatically included in a Windows XP Embedded run-time image when you include the Windows Media Player components in your target configuration.

This article describes how an OEM can remove the MP3 codecs from a Windows XP Embedded run-time image.



MORE INFORMATION
The following registry keys are related to the MP3 codecs that are included in Windows Media Player when you deploy an embedded run-time image:
 * “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MediaPlayer\Settings\MP3Encoding&quot;
 * “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Drivers32&quot;, &quot;msacm.l3acm&quot;
 * “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\drivers.desc&quot;, &quot;C:\Windows\System32\l3codeca.acm&quot;
 * “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\drivers.desc&quot;, &quot;l3codeca.acm&quot;

The following file resources are related to the MP3 codecs that are included in Windows Media Player when you deploy an embedded run-time image:
 * L3codeca.acm
 * L3codecp.acm
 * L3codecx.ax

Note These file resources are typically located in the Windows system directory ( :\Windows\System32).

How to remove the MP3 codecs
To remove the MP3 codecs from a Windows XP Embedded run-time image, you must remove the registry keys and file resources that were mentioned previously. To remove these registry keys and file resources, you can use the Setupapi component. The Setupapi component is usually included in your run-time image as part of the system and device driver setup dependency. Setupapi can process a correctly-formatted setup information (.inf) file. To create an .inf file and process it by using Setupapi, follow these steps:   Create an .inf file that includes the registry keys and file resources.

The .inf file must contain the correct sections for Setupapi to process it successfully. For more information about how to create a well-formatted .inf file, visit the following Microsoft Developer Network (MSDN) Web site:

http://msdn2.microsoft.com/en-us/library/ms790220.aspx

By using a text editor such as Notepad, create a text file and save it with an .inf extension. For example, name the file remove_mp3.inf. The text file should include the registry keys and file resources to be removed from the run-time image. The following listing shows an example .inf file. [Version] Signature=&quot;$Windows NT$&quot; DriverVer=02/09/2007

[DefaultInstall] DelReg=MyAppDelRegs DelFiles=MyDelFiles

[DestinationDirs] MyDelFiles=11  ;%windir%\system32

[MyAppDelRegs] HKLM,&quot;SOFTWARE\Microsoft\MediaPlayer\Settings\MP3Encoding&quot; HKLM,&quot;SOFTWARE\Microsoft\Windows NT\CurrentVersion\Drivers32&quot;, &quot;msacm.l3acm&quot; HKLM,&quot;SOFTWARE\Microsoft\Windows NT\CurrentVersion\drivers.desc&quot;, &quot;%11%\l3codeca.acm&quot; HKLM,&quot;SOFTWARE\Microsoft\Windows NT\CurrentVersion\drivers.desc&quot;, &quot;l3codeca.acm&quot;

[MyDelFiles] L3codeca.acm L3codecp.acm L3codecx.ax Note The “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\drivers.desc&quot;, &quot;l3codeca.acm&quot; registry key may not actually exist with the latest version of MP3 codecs. If this particular registry key does not exist in your target system, you do not have to include it in the .inf file as part of the registry removal process.  Run the .inf file by using Setupapi.

After you create the .inf file in step 1, save it in a location in your target system that you can access by using the command prompt. Open a Command Prompt window, change to the system directory ( :\Windows\System32), and then type the following command:

rundll32.exe SETUPAPI.DLL,InstallHinfSection DefaultInstall 132 D:\Temp\Remove_mp3.inf

If the command finishes successfully, the registry keys and file resources for the MP3 codecs should be removed. For more information about how to use Setupapi together with the previous command, visit the following Microsoft Developer Network (MSDN) Web site:

http://msdn2.microsoft.com/en-us/library/aa376957.aspx

Note After the MP3 codecs are removed from the target system, Windows Media Player may prompt you to install the codecs again if you try to play back MP3 music content. You should not run the installation process in this situation.

Keywords: kbhowto kbinfo KB934509

-

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

© Microsoft Corporation. All rights reserved.