Archive: Released Plugin: MoreInfo, Keyword: Version info, Multilanguage, GUI Language


Released Plugin: MoreInfo, Keyword: Version info, Multilanguage, GUI Language
A new NSIS plugin released incl. source and examples
Name: MoreInfo
Keywords: Version info, Multilanguage demo, OS GUI Language

Goal of MoreInfo
----------------------------------------------
The goal of the MoreInfo NSIS Plugin is to CORRECTLY retreive version information from files AND to retreive the Windows OS User interface Language!

MoreInfo gives a complete valid NSIS Language define as an output. This can be any Language defined and supported by NSIS and even some that are not recognized by Windows. (It is not necessary that the host system actually support the locale with fonts, keyboard mappings, and so on.)

The theory is that if the user can use the PC, he sure will be able to read the userinterface language.

This way we avoid asking the user for a installation language to use, and is the installer GUI presented in the same language as the Windows OS User interface Language.

The current way of retreiving a Locale setting was not satisfying enough since a user could have an English Windows OS and set is locale to e.g. France, the installer would be presented in French this way, although the GUI language was English.

Just try it, you will see what advantage it can give.

History
----------------------------------------------
A NSIS plugin called FileInfo sadly gave unexpected results on various Windows OS's. This is how More Info was born... I needed correct information in all cases. And I also needed the OS GUI language.

Since Windows has NO API to get the OS GUI language, I created this solution myself. Maybe it can help you too.

Feel free to comment and improve, I will respond if I have some time left ;)

Emin


Nice :) :up:

*testing*


Please upload to the Wiki.


Language Neutral
Could you please check if it works with "language neutral" ?
It does not show version info, if "language" property is set to "language neutral" in tested file.
Thanks in advance :)


Well, I did not see your post since I was bussy with other things than NSIS for a while.

Q:I also would like to a little more explanation of what you want to acieve, I'm afraid I do not fully understand what you mean with your question.

Then maybe I can help you out.


In an executable of mine, there is a user defined piece of information called "Expected DB Version" (with spaces)

The following returns an empty $1

MoreInfo::GetUserDefined "${SOURCE_DIR}\ComposerWin32.exe" "Expected DB Version"
Pop $1
MessageBox MB_OK "DBVersion=$1"

Is this due to the spaces in the field name?


maybe you should try this:

MoreInfo::GetUserDefined "${SOURCE_DIR}\ComposerWin32.exe" "'Expected DB Version'"
Pop $1
MessageBox MB_OK "DBVersion=$1"


Hi Wabiloo,

If you could send a link to the the .EXE file with the troublesome version resource file I'm willing to investigate and see if we could solve you issue.

TIA


Unicode NSIS

Hi onad,

I hope you are still actively developing this plug-in?
Because, I am (we are) looking for the MoreInfo plg-in, recompiled to work with Unicode NSIS.
It would be really appreciated, as we are in need of a fair few plugins with Unicode NSIS support!

Link to Unicode NSIS homepage: scratchpaper.com/home
Link our project: portableapps.com/node/21879

Thanx a lot, in advance !


Hi Onad,
I just tried your script ( attached in this thread ) with

c:\windows\system32\kernel32.dll

but it did not give correct info

http://img12.imageshack.us/img12/1426/prodcutinfo.jpg


You can find a more up-to-date version of the plugin in the wiki:
http://nsis.sourceforge.net/MoreInfo_plug-in

When I tried the test scipt with kernel32.dll on my Windows 7 system it was able to display information about the DLL.


The download link for the Unicode version is dead:

http://www.fdos.org/win32/nsis/plugi...fo.1.0.1.2.zip

Has anyone a working download link? Thanks in advance.


The attached file was downloaded from http://www.fdos.org/win32/nsis/plugi...fo.1.0.1.2.zip over year ago. I've never used it so I don't know if it works properly.


Incredible
still works flawlessly :)

very useful for testing MUI messageboxes where $Language is dependent

thank you for sharing :up: