@swgreed:
Took the liberty to modify the codecreg.reg to get rid of hardcoded pathnames - IMHO this makes it more universal for UA installations:
CODE
Windows Registry Editor Version 5.00
;enable wmv9 codec
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WMV9_VCM]
;"File Location"="C:\\Windows\\System32";use "%systemroot%\system32 ..." is hardcoded, instead use
"File Location"=hex(2):25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,6f,00,\
6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,00,\
00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\drivers.desc]
;"divx.dll"="DivX 5.2 Pro Codec"
;"xvidvfw.dll"="XviD MPEG-4 Video Codec"
"wmv9vcm.dll"="Microsoft Windows Media Video 9"
"vp6vfw.dll"="On2 VP6 codec"
"vp31vfw.dll"="On2 VP3 codec"
"L3codecp.acm"="Frauenhof L3 Codec Professional"
"divxa32.acm"="DivX;) Audio"
"Ir50_32.dll"="Ligos Indeo® XP Video 5.2"
"i263_32.drv"="Intel I.263 Video Driver 2.55.1.16"
"imc32.acm"="Intel Music Coder"
"Ir32_32.dll"="Intel Indeo 3.2"
"Ir41_32.ax"="Indeo v.4.51.16.2 Interactive codec"
"MPG4c32.dll"="MS-MPEG-4 MPEG-4 Video Codec"
;"C:\\WINDOWS\\System32\\iac25_32.ax"="Indeo® Audio Software"
;use "reg add" command in batch instead to allow system variable usage for string value name:
;reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\drivers.desc" /v "%systemroot%\system32\iac25_32.ax"
/d "Indeo® Audio Software" /f
;OGM no tray icon
[HKEY_CLASSES_ROOT\CLSID\{F07E245F-5A1F-4D1E-8BFF-DC31D84A55AB}\Defaults]
"ShowTrayIcon"=dword:00000000
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Drivers32]
;"vidc.DIVX"="divx.dll"
;"vidc.XVID"="xvidvfw.dll"
"VIDC.wmv3"="wmv9vcm.dll"
"msacm.divxa32"="divxa32.acm"
"msacm.imc"="imc32.acm"
;"msacm.iac2"="C:\\WINDOWS\\System32\\iac25_32.ax"
;use "%systemroot%\system32 ..." instead:
"msacm.iac2"=hex(2):25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,6f,00,6f,00,74,\
00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,69,00,\
61,00,63,00,32,00,35,00,5f,00,33,00,32,00,2e,00,61,00,78,00,00,00
"msacm.l3codecp"="l3codecp.acm"
"vidc.MPG4"="Mpg4c32.dll"
"vidc.MP42"="Mpg4c32.dll"
"vidc.MP43"="Mpg4c32.dll"
"VIDC.i263"="i263_32.drv"
"VIDC.i420"="i263_32.drv"
"VIDC.IV32"="Ir32_32.dll"
"VIDC.IV31"="Ir32_32.dll"
"VIDC.IV40"="Ir41_32.ax"
"VIDC.IV41"="Ir41_32.ax"
"VIDC.IV50"="ir50_32.dll"
"VIDC.VP60"="vp6vfw.dll"
"VIDC.VP61"="vp6vfw.dll"
"VIDC.VP31"="vp31vfw.dll"
;[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\MediaResources\icm\VIDC.DIVX]
;"Description"="DivX 5.2 Pro Codec"
;"Driver"="divx.dll"
;"FriendlyName"="DivX 5.2 Pro Codec"
;[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\MediaResources\icm\vidc.XVID]
;"Description"="XviD MPEG-4 Video Codec"
;"Driver"="xvidvfw.dll"
;"FriendlyName"="XviD"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\MediaResources\icm\VIDC.wmv3]
"Description"="Microsoft Windows Media Video 9"
"Driver"="wmv9vcm.dll"
"FriendlyName"="Microsoft Windows Media Video 9"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\MediaResources\icm\VIDC.IV40]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\MediaResources\icm\VIDC.IV41]
"Description"="Indeo v.4.51.16.2 Interactive codec"
"Driver"="Ir41_32.ax"
"FriendlyName"="Indeo v.4.51.16.2 Interactive codec"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\MediaResources\icm\VIDC.IV50]
"Description"="Ligos Indeo XP v5.2 codec"
"Driver"="Ir50_32.dll"
"FriendlyName"="Ligos Indeo 5.2"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\MediaResources\icm\vidc.MP42]
"Description"="Microsoft MPEG-4 Video Codec V2"
"Driver"="MPG4c32.dll"
"FriendlyName"="Microsoft MPEG-4 Video Codec V2"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\MediaResources\icm\vidc.MP43]
"Description"="Microsoft MPEG-4 Video Codec V3"
"Driver"="MPG4c32.dll"
"FriendlyName"="Microsoft MPEG-4 Video Codec V3"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\MediaResources\icm\vidc.MPG4]
"Description"="Microsoft MPEG-4 Video Codec V1"
"Driver"="MPG4c32.dll"
"FriendlyName"="Microsoft MPEG-4 Video Codec V1"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\MediaResources\icm\VIDC.VP31]
"Description"="On2 VP3"
"Driver"="vp31vfw.dll"
"FriendlyName"="On2 VP3"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\MediaResources\icm\VIDC.VP60]
"Description"="On2 VP60 [Simple Profile]"
"Driver"="vp6vfw.dll"
"FriendlyName"="On2 VP60 [Simple Profile]"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\MediaResources\icm\VIDC.VP61]
"Description"="On2 VP61 [Advanced Profile]"
"Driver"="vp6vfw.dll"
"FriendlyName"="On2 VP61 [Advanced Profile]"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\MediaResources\msacm\msacm.divxa32]
"Description"="DivX;) Audio"
"Driver"="divxa32.acm"
"FriendlyName"="DivX;) Audio"
;divx 5.2.0
[HKEY_CURRENT_USER\Software\DivXNetworks\DivX4Windows]
"Disable Logo"=dword:00000001
"Support Generic Mpeg-4"=dword:00000000
;value 0 else no xvid
;xvid 1.0.1
[HKEY_CURRENT_USER\Software\GNU\XviD]
"Supported_4CC"=dword:00000000
;DVD in WMP
[HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer\Player\Settings]
"EnableDVDUI"="yes"
;VP31 codec
[HKEY_LOCAL_MACHINE\SOFTWARE\On2 Technologies\VFW Encoder/Decoder Settings\VP31]
"strSettings"="300 56 110 0 1 1 90 8 120 1 1 "
[HKEY_CLASSES_ROOT\.avi\OpenWithList\gspot.exe]
[HKEY_CLASSES_ROOT\.mpg\OpenWithList\gspot.exe]
[HKEY_CLASSES_ROOT\.ogg\OpenWithList\gspot.exe]
[HKEY_CLASSES_ROOT\.ogm\OpenWithList\gspot.exe]
[HKEY_CLASSES_ROOT\.ram\OpenWithList\gspot.exe]
[HKEY_CLASSES_ROOT\.rm\OpenWithList\gspot.exe]
[HKEY_CLASSES_ROOT\.vob\OpenWithList\gspot.exe]
[HKEY_CLASSES_ROOT\.asf\OpenWithList\gspot.exe]
[HKEY_CLASSES_ROOT\.wmv\OpenWithList\gspot.exe]
;gspot path pointer
[HKEY_CLASSES_ROOT\Applications\gspot.exe\shell\open\command]
;@="C:\\WINDOWS\\System32\\gspot.exe %1"
;@="%programfiles%\\gspot\\gspot.exe %1";(reg_expand_sz for "%programfiles%\gspot\"
used)
@=hex(2):25,00,70,00,72,00,6f,00,67,00,72,00,61,00,6d,00,66,00,69,00,6c,\
00,65,00,73,00,25,00,5c,00,67,00,73,00,70,00,6f,00,74,00,5c,00,67,00,73,00,\
70,00,6f,00,74,00,2e,00,65,00,78,00,65,00,20,00,25,00,31,00,00,00
To create a "REG_EXPAND_SZ" (that's the values showing up with "hex(2):...." I think the easiest method is to
1) run REGEDIT, create an expandable "test" key and put in the string value - including system vars, of course - which you'd like
2) export said key to a .reg file and you'll get the "hex(2)...." expandable string value format.
Things seem to be a bit different when the value *name* needs to be set according to a system variable - I can't find any way to do this with a .reg import.
That's why to stuff a sys var into
CODE
;"C:\\WINDOWS\\System32\\iac25_32.ax"="Indeo® Audio Software"
I use the "reg add" command in the batchfile:
CODE
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\drivers.desc" /v "%systemroot%\system32\iac25_32.ax" /d "Indeo® Audio Software" /f
will do the job.
Note: in this codecreg version "gspot" is placed in %programfiles%\gspot, not in %systemroot%\system 32.
HTH.
By the way: Great work, swgreed - thanks.