cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
jayakumarn
Level 5

How to use MsiGetProductInfo () function ?

Hi All,
I would like to know how to use the function MsiGetProductInfo in the install script to get the INSTALLPROPERTY_LANGUAGE ?


please suggets me some idea!!

Regards,
Jayakumar Natarajan
Ever Tried Ever Failed No Matter,Try Again Fail Agian Fail Better.
Labels (1)
0 Kudos
(6) Replies
RobertDickau
Flexera Alumni

Please search these forums for "MsiGetProductInfo" to see some code samples.
0 Kudos
jayakumarn
Level 5

nBuffer=64; //number datatype
svPropvalue=""; //string datatype
MsiGetProductInfo("{3B32FB6E-6FF1-4A1F-A3E2-66B2C2AF16E6}", INSTALLPROPERTY_LANGUAGE, svPropvalue, nBuffer);

MessageBox(svPropvalue,WARNING);

here the messagebox is displaying only empty , i don't know why it return empty any idea!!!

Regards,
Jayakumar Natarajan

Ever Tried Ever Failed No Matter ,Try Again Fail Again Fail Better!!!
0 Kudos
irenejia
Level 4

I tried your code and got correct response. The only difference is that I used a different product code. Can you check in your registry whether the product code you used exists?
0 Kudos
jayakumarn
Level 5

how to get the product id for that product?????
:confused: :confused: :confused:
0 Kudos
joshstechnij
Level 10 Flexeran
Level 10 Flexeran

The product code is available in the General Information|Product Properties view of your project in InstallShield.
0 Kudos
irenejia
Level 4

you can look for it under HKLM\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\UNINSTALL. normally, all applications available in add/remove panel could be found here.
0 Kudos