This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Basic MSI: ProductLanguage of installed product.
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 03, 2007
07:46 AM
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
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
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 03, 2007
08:35 AM
Will MsiGetProductInfo + INSTALLPROPERTY_LANGUAGE work?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 04, 2007
02:38 AM
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?
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?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 05, 2007
10:08 AM
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...
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...
![](/skins/images/8C9D13A71C7F7695F3262372C0172D68/responsive_peak/images/icon_anonymous_message.png)