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
- :
- Try this...
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
‎Sep 19, 2008
04:20 AM
Product Code problem!
Hi All,
I am using the following code in my script but it always returns null.
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 returns empty always !!!any idea!!!
I think this problem is due to product code i have entered. The Product code i have entered is from selecting
Installation Designer -> General Information ->Productproperties->Product Code.
Can anyone help me!
I am using the following code in my script but it always returns null.
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 returns empty always !!!any idea!!!
I think this problem is due to product code i have entered. The Product code i have entered is from selecting
Installation Designer -> General Information ->Productproperties->Product Code.
Can anyone help me!
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 19, 2008
07:06 AM
Hello jayakumarn,
The MsiGetProductInfo works for only installed product.
Please verify the product code you specifies is the product which is installed already.
Thanks
Sachin Pawar
The MsiGetProductInfo works for only installed product.
Please verify the product code you specifies is the product which is installed already.
Thanks
Sachin Pawar
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 19, 2008
08:45 AM
No not yet..
what is is the prolem is i want to get the selected location by the user so i need to use the product code of that particular product to get the selected language ...
EG:
MsiGetProductInfo("{ProductCode}", INSTALLPROPERTY_INSTALLLOCATION, svINSTALLDIR, nBuffer);
How to get the product code of the installing application ???????:confused: :confused: :confused:
what is is the prolem is i want to get the selected location by the user so i need to use the product code of that particular product to get the selected language ...
EG:
MsiGetProductInfo("{ProductCode}", INSTALLPROPERTY_INSTALLLOCATION, svINSTALLDIR, nBuffer);
How to get the product code of the installing application ???????:confused: :confused: :confused:
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 22, 2008
11:33 PM
Hello,
Please try ProductCode / PRODUCT_GUID property.
Thanks
Sachin Pawar
Please try ProductCode / PRODUCT_GUID property.
Thanks
Sachin Pawar
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 23, 2008
05:24 PM
Not 100% sure on this one, but you could try removing the dashes (-)
So {3B32FB6E-6FF1-4A1F-A3E2-66B2C2AF16E6}
Becomes {3B32FB6E6FF14A1FA3E266B2C2AF16E6}!!
Charlie
So {3B32FB6E-6FF1-4A1F-A3E2-66B2C2AF16E6}
Becomes {3B32FB6E6FF14A1FA3E266B2C2AF16E6}!!
Charlie