Advertisement
Guest User

Untitled

a guest
Feb 21st, 2013
363
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.74 KB | None | 0 0
  1. @echo off
  2. echo ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
  3. echo ³ Windows Vista/Windows 7 x68/x64 Fix for Fraunhofer IIS MPEG Layer-3 Codec ³
  4. echo ³ February 21, 2013 ³
  5. echo ³ Based on the script by Chortkeh ³
  6. echo ³ http://blog.komeil.com/2008/06/enabling-fraunhofer-mp3-codec-vista.html ³
  7. echo ³ Copyright (C) 2007-2009 Chortkeh. All rights reserved. ³
  8. echo ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
  9. echo.
  10. rem Preserve current directory for further referrings.
  11. set InitialDirectory=%cd%
  12. echo.
  13. if /i %processor_architecture%==EM64T GOTO x64
  14. if /i %processor_architecture%==AMD64 GOTO x64
  15.  
  16. if /i %processor_architecture%==x86 GOTO x86
  17.  
  18. :x64
  19. echo Removing the advanced edition of Fraunhofer IIS MPEG Layer-3 Codec (64-bit)...
  20. reg delete "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\drivers.desc" /v "C:\Windows\SysWOW64\l3codeca.acm" /f
  21. if errorlevel 1 (
  22. echo Registry manipulation error.
  23. goto :Error
  24. )
  25. reg delete "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Drivers32" /v "C:\Windows\SysWOW64\l3codeca.acm" /f
  26. if errorlevel 1 (
  27. echo Registry manipulation error.
  28. goto :Error
  29. )
  30. echo Activating the professional edition of Fraunhofer IIS MPEG Layer-3 Codec (64-bit)...
  31. pause
  32. 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
  33. if errorlevel 1 (
  34. echo Registry manipulation error.
  35. goto :Error
  36. )
  37. reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Drivers32" /v "msacm.l3acm" /t REG_SZ /d "l3codecp.acm" /f
  38. if errorlevel 1 (
  39. echo Registry manipulation error.
  40. goto :Error
  41. )
  42. :x86
  43. echo Removing the advanced edition of Fraunhofer IIS MPEG Layer-3 Codec (32-bit)...
  44. reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\drivers.desc" /v "C:\Windows\System32\l3codeca.acm" /f
  45. if errorlevel 1 (
  46. echo Registry manipulation error.
  47. goto :Error
  48. )
  49. reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Drivers32" /v "C:\Windows\System32\l3codeca.acm" /f
  50. if errorlevel 1 (
  51. echo Registry manipulation error.
  52. goto :Error
  53. )
  54. echo Activating the professional edition of Fraunhofer IIS MPEG Layer-3 Codec (32-bit)...
  55. pause
  56. 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
  57. if errorlevel 1 (
  58. echo Registry manipulation error.
  59. goto :Error
  60. )
  61. reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Drivers32" /v "msacm.l3acm" /t REG_SZ /d "l3codecp.acm" /f
  62. if errorlevel 1 (
  63. echo Registry manipulation error.
  64. goto :Error
  65. )
  66. echo.
  67. pause
  68. goto :EOF
  69.  
  70. rem --------------------------------------------------------------------------
  71.  
  72. :Error
  73. echo.
  74. echo Patching failed.
  75. echo.
  76. echo Checking for a solution to the problem...
  77. echo.
  78. rem Check to see if initial directory differs from system32, because if batch
  79. rem file was run-as-administrator, the initial directory would be System32.
  80. if /i not "%InitialDirectory%" equ "%SystemRoot%\system32" (
  81. echo * The patcher must be run as administrator. To do so, right-click on
  82. echo the patcher file and select run as administrator.
  83. ) else (
  84. echo * The patcher requires administrative privileges to complete the process.
  85. )
  86. echo.
  87. pause
  88. goto :EOF
  89.  
  90. rem --------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement