cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Holger_G
Level 10

Basic MSI: ProductLanguage of installed product.

Hi.

How can I get the ProductLanguage of an installed Basic MSI product from an application?
Can I use MsiGetProductProperty or any other MSI API calls?

Thanks
-Nick
Labels (1)
0 Kudos
(3) Replies
RobertDickau
Flexera Alumni

Will MsiGetProductInfo + INSTALLPROPERTY_LANGUAGE work?
0 Kudos
Holger_G
Level 10

Thanks Robert, that seems to work basically.

But it always returns 0 for the language of my installed project, instead of 1033 or 1031 or any other supported language of my project.

Maybe I´ve done something wrong?
0 Kudos
RobertDickau
Flexera Alumni

Hmmm, no, I don't think you're doing anything wrong. The technique seems to work for a single-language package, but since a multi-language package created by InstallShield is a base package plus a bunch of language transforms, it seems the base package is registered as language-neutral.

MsiGetProductInfo + INSTALLPROPERTY_TRANSFORMS lists the applied language transform (where the language code is part of the file name), though of course takes a bit of care to parse out the language code.

Cleverer ideas gratefully received...
0 Kudos