cancel
Showing results for 
Search instead for 
Did you mean: 
jayakumarn
Pilgrim

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
Pilgrim

Re: How to use MsiGetProductInfo () function ?

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

Re: How to use MsiGetProductInfo () function ?

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
Pilgrim

Re: How to use MsiGetProductInfo () function ?

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
Pilgrim

Re: How to use MsiGetProductInfo () function ?

how to get the product id for that product?????
:confused: :confused: :confused:
0 Kudos
joshstechnij
Pilgrim

Re: How to use MsiGetProductInfo () function ?

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

Re: How to use MsiGetProductInfo () function ?

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