Archive: Confused about VIAddVersionKey using lang_id?


Confused about VIAddVersionKey using lang_id?
Hello there,

I'm a bit confused about the VIAddVersionKey Attribute. Why does it use/require an lang_id? It seems to be an simple flag that specifies setup language. Why can't this been specified in a way like this?

VILanguage "LANG_ENGLISH"

VIAddVersionKey "ProductName" "MyApp"
[...]

Is there an other feature hidden within it?!

Thanks...
David


A number is needed instead of a string because there are just too many languages to create a map between language names and language identifiers.

You also don't have to use /LANG= every time. If it's not used, the last used language will be used.

For example, this should work:

VIAddVersionKey /LANG=1033 "something" "something"
VIAddVersionKey "still English" "something"