Community Forums
Results 1 to 4 of 4

Thread: Basic MSI: ProductLanguage of installed product.

  1. #1
    Join Date
    Apr 2002
    Location
    Germany
    Posts
    683

    Question 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

  2. #2
    Join Date
    Oct 2001
    Location
    Here and there
    Posts
    16,243
    Will MsiGetProductInfo + INSTALLPROPERTY_LANGUAGE work?

  3. #3
    Join Date
    Apr 2002
    Location
    Germany
    Posts
    683
    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?

  4. #4
    Join Date
    Oct 2001
    Location
    Here and there
    Posts
    16,243
    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...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •