How to use registry string redirection to a managed DLL for MUI support?

280 Views Asked by At

I've seen how to use registry string redirection to enable MUI support, even on Stack Overflow. For example, you can add a redirected string value named DisplayName_Localized to the registry to localize your program's entry in the ARP UI.

Example: @%ProgramFiles%\MyProduct\MyResources.dll,-12345

Unfortunately, everything I can find talks about using the string's resource id to identify which string resource to use. This applies in an unmanaged resource dll. I have several resource dll's that are managed, built with the .Net Framework. The issue is that I don't see a way to get a string's id, or if there even is an integer id since the strings are identified by string names in their associated resx files.

Is it possible to enable MUI support in this way, from the registry, with a managed resource dll?

1

There are 1 best solutions below

0
On

The link you gave Using Registry String Redirection indicates

Note This topic pertains only to Win32 PE resources. If using non-Win32 PE resources, you must provide customized registry string redirection, if required.

As I understand it, this mechanism does not support managed resource files, built with the .NET framework. You will have to use a different mechanism.