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
- :
- Setting product version in Registry in BasicMSI
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
‎Feb 27, 2012
03:01 AM
Setting product version in Registry in BasicMSI
Hi,
I am making a BasicMSI installer for one of our applications. I want to get the version string of the product being installed so that i can save it in one of the Registry keys.
This might seem like a very stupid question to ask but i can tell even in my sleep that the string "IFX_PRODUCT_VERSION" in an InstallScript function will give you this value. But i m completely BasicMSI illiterate.
Please help!:(
I am making a BasicMSI installer for one of our applications. I want to get the version string of the product being installed so that i can save it in one of the Registry keys.
This might seem like a very stupid question to ask but i can tell even in my sleep that the string "IFX_PRODUCT_VERSION" in an InstallScript function will give you this value. But i m completely BasicMSI illiterate.
Please help!:(
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 29, 2012
02:11 AM
One way is to use value of the same system viariable (IFX_PRODUCT_VERSION) in Basic MSI. Just create CA of IS type and check the value.
Another option is to read msi property 'ProductVersion'.
STRING sVer;
NUMBER nSize;
nSize = MAX_PATH;
MsiGetProperty(hMSI, "ProductVersion", sVer, nSize );
MessageBox("ProductVersion: " + sVer, INFORMATION);
Regards!
Another option is to read msi property 'ProductVersion'.
STRING sVer;
NUMBER nSize;
nSize = MAX_PATH;
MsiGetProperty(hMSI, "ProductVersion", sVer, nSize );
MessageBox("ProductVersion: " + sVer, INFORMATION);
Regards!
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 29, 2012
09:18 AM
You could also use [ProductVersion] in one of the registry views, and the value will be expanded at run time.