@echo off echo ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ echo ³ Windows Vista/Windows 7 x68/x64 Fix for Fraunhofer IIS MPEG Layer-3 Codec ³ echo ³ February 21, 2013 ³ echo ³ Based on the script by Chortkeh ³ echo ³ http://blog.komeil.com/2008/06/enabling-fraunhofer-mp3-codec-vista.html ³ echo ³ Copyright (C) 2007-2009 Chortkeh. All rights reserved. ³ echo ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ echo. rem Preserve current directory for further referrings. set InitialDirectory=%cd% echo. if /i %processor_architecture%==EM64T GOTO x64 if /i %processor_architecture%==AMD64 GOTO x64 if /i %processor_architecture%==x86 GOTO x86 :x64 echo Removing the advanced edition of Fraunhofer IIS MPEG Layer-3 Codec (64-bit)... reg delete "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\drivers.desc" /v "C:\Windows\SysWOW64\l3codeca.acm" /f if errorlevel 1 ( echo Registry manipulation error. goto :Error ) reg delete "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Drivers32" /v "C:\Windows\SysWOW64\l3codeca.acm" /f if errorlevel 1 ( echo Registry manipulation error. goto :Error ) echo Activating the professional edition of Fraunhofer IIS MPEG Layer-3 Codec (64-bit)... pause reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\drivers.desc" /v "l3codecp.acm" /t REG_SZ /d "Fraunhofer IIS MPEG Audio Layer-3 Codec (professional)" /f if errorlevel 1 ( echo Registry manipulation error. goto :Error ) reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Drivers32" /v "msacm.l3acm" /t REG_SZ /d "l3codecp.acm" /f if errorlevel 1 ( echo Registry manipulation error. goto :Error ) :x86 echo Removing the advanced edition of Fraunhofer IIS MPEG Layer-3 Codec (32-bit)... reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\drivers.desc" /v "C:\Windows\System32\l3codeca.acm" /f if errorlevel 1 ( echo Registry manipulation error. goto :Error ) reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Drivers32" /v "C:\Windows\System32\l3codeca.acm" /f if errorlevel 1 ( echo Registry manipulation error. goto :Error ) echo Activating the professional edition of Fraunhofer IIS MPEG Layer-3 Codec (32-bit)... pause reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\drivers.desc" /v "l3codecp.acm" /t REG_SZ /d "Fraunhofer IIS MPEG Audio Layer-3 Codec (professional)" /f if errorlevel 1 ( echo Registry manipulation error. goto :Error ) reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Drivers32" /v "msacm.l3acm" /t REG_SZ /d "l3codecp.acm" /f if errorlevel 1 ( echo Registry manipulation error. goto :Error ) echo. pause goto :EOF rem -------------------------------------------------------------------------- :Error echo. echo Patching failed. echo. echo Checking for a solution to the problem... echo. rem Check to see if initial directory differs from system32, because if batch rem file was run-as-administrator, the initial directory would be System32. if /i not "%InitialDirectory%" equ "%SystemRoot%\system32" ( echo * The patcher must be run as administrator. To do so, right-click on echo the patcher file and select run as administrator. ) else ( echo * The patcher requires administrative privileges to complete the process. ) echo. pause goto :EOF rem --------------------------------------------------------------------------