- NSIS Discussion
- Get File Language
Archive: Get File Language
kookh
9th June 2006 03:41 UTC
Get File Language
Is it possible to get the (spoken not programming) language of an EXE or DLL file ? What I'm looking for is something similar to GetDLLVersion: to return the Language value that appears under the Version tab in the Properties dialog of an EXE or DLL file.
Anders
9th June 2006 09:35 UTC
i think that is just the language of the version info, and a exe/dll can contain version info in many languages in one file
kookh
9th June 2006 11:53 UTC
fine, I want to read the language of the version info. Would you happen to know how ?
onad
9th June 2006 15:07 UTC
See my "MoreInfo" plugin sourcecode for how to do this.
You can just also try the plugin, but it still has (for the spoken language) not a 100% score of result (e.g. if the resource in the EXE of DLL is build differently.
If you encounter a defect I'll improve the plugin for you, if you promise to retest improved version! well if that is not a good offer... ;)
kookh
13th June 2006 20:43 UTC
I'm sorry but your Plugin gets the language of the OS. What I'm talking about is something similar to GetTransTable here (but that's delphi)
Afrow UK
13th June 2006 20:45 UTC
I think what onad is saying is that languages being used in programs (DLL/EXE) are specified by the OS and not the programs themselves.
-Stu
kookh
13th June 2006 20:55 UTC
Originally posted by Afrow UK
I think what onad is saying is that languages being used in programs (DLL/EXE) are specified by the OS and not the programs themselves.
-Stu
Oh, well the program whose language I'm trying to obtain is available in different languages, and well I've tried it in several languages on my OS.
To be more exact, I included a screenshot. 0x0409 is 1033 in decimal which means English (United States). That is under the version info of a dll. What I'm aiming to is to read the 0x0409 part.
Afrow UK
13th June 2006 20:58 UTC
Try this out:
http://nsis.sourceforge.net/Reading_...from_DLL_files
It was only put up a few days ago, so the author is still around if you need any help.
-Stu
kookh
14th June 2006 01:20 UTC
Well that covers String Tables not version info... two totally different types of resources
Instructor
14th June 2006 06:46 UTC
GetFileInfo plugin
CancerFace
14th June 2006 06:52 UTC
Do any of these functions achieve what you are after?
CF
kookh
14th June 2006 14:31 UTC
actually Instructor's DLL works great! Thanks for that mate... exactly what I needed :)
onad
15th June 2006 15:01 UTC
kookh wrote:
> I'm sorry but your Plugin gets the language of the OS.
Also, but not only! also the language of a chosen DLL/EXE see the documentation...
That's why it is called "MoreInfo" not "OSLangInfo" ;)