[Solved] Installing codecs outside system folder via registry

View previous topic View next topic Go down

[Solved] Installing codecs outside system folder via registry

Post by DennisSmith on Mon Jun 08, 2015 11:35 pm

Hi everyone, I'm currently rewriting a lot of ini files that install codecs.
These codecs can't be registered via regsvrv32 because they don't have the entry-point but installing them via registry works just fine.

Currently the dll's are placed under System32 or SysWOW64 and than the following registry entry's are made. This works just fine however I'm supposed to change that so that the dll's are under 'Program Files' or 'Program Files (x86)' and simply adding the path to the dll in the registry does not work.

I feel like I'm missing something obviously here but i cant make it work, so i hope you guys can give me some pointers.
Thank you all very much in advanced.


Current Working Version, with dll's in system folder:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Drivers32]
"VIDC.MyDllFourCC"="MyDLL.dll"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\drivers.desc]
"MyDLL.dll"="NiceName"

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Drivers32]
"VIDC.MyDllFourCC "="MyDLL.dll"

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\drivers.desc]
"MyDLL.dll"="NiceName"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\MediaResources\icm\VIDC.MyDllFourCC ]
"Description"="NiceName"
"Driver"="MyDLL.dll"
"FriendlyName"="VeryNiceName"


Not Working with dll's in program files:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Drivers32]
"VIDC.MyDllFourCC"="C:\Program Files\MyCodes\MyDLL.dll"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\drivers.desc]
"C:\Program Files\MyCodes\MyDLL.dll"="NiceName"

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Drivers32]
"VIDC.MyDllFourCC "="C:\Program Files (x86)\MyCodes\MyDLL.dll"

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\drivers.desc]
"C:\Program Files (x86)\MyCodes\MyDLL.dll"="NiceName"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\MediaResources\icm\VIDC.MyDllFourCC ]
"Description"="NiceName"
"Driver"="C:\Program Files\MyCodes\MyDLL.dll"
"FriendlyName"="VeryNiceName"


Last edited by DennisSmith on Tue Jun 09, 2015 2:25 am; edited 1 time in total

DennisSmith

Posts : 2
Join date : 2015-06-08

View user profile

Back to top Go down

Re: [Solved] Installing codecs outside system folder via registry

Post by Admin on Tue Jun 09, 2015 12:43 am

You need to use the shortened (8.3) file and folder names. You can see those by using DIR /X at the command prompt. For example Program Files is PROGRA~1. But be warned, the short names depend on the contents of the file systems, so they are not necessary equal on all systems. They aren't fixed values that you can use in a script. Why are you using .inf scripts?

Admin
Admin

Posts : 2987
Join date : 2011-06-17

View user profile http://codecs.forumotion.net

Back to top Go down

Re: [Solved] Installing codecs outside system folder via registry

Post by DennisSmith on Tue Jun 09, 2015 2:14 am

Wow thanks! worked right away!!!

64bit Windows Media Player is crashing now!? I probably made a small error but 32 bit works.
I'm certain i can find the reason for that.

i know .inf scripts are not ideal but for several other reasons I'm stuck with them for the moment.

Thank you !!!

DennisSmith

Posts : 2
Join date : 2015-06-08

View user profile

Back to top Go down

Re: [Solved] Installing codecs outside system folder via registry

Post by Sponsored content Today at 8:14 am


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum