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
- :
- Re: Need help unscrambling product code
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
‎May 04, 2012
04:15 PM
Need help unscrambling product code
Here is my MSI newbee question of the week.
I need to read the registry and look at the upgrade code of a product. From that key I will get the product guid so I can go get the version of that product. I have no problem reading the reg and getting info from it.
My question is,
Does installshield or windows installer(MSI) have a function that unscrmbles the product guids that are written to the register. When I look the guids have had each section reversed. Why do they do this?
Does anyone have a code clip for doing this?
Thanks
Brandon
I need to read the registry and look at the upgrade code of a product. From that key I will get the product guid so I can go get the version of that product. I have no problem reading the reg and getting info from it.
My question is,
Does installshield or windows installer(MSI) have a function that unscrmbles the product guids that are written to the register. When I look the guids have had each section reversed. Why do they do this?
Does anyone have a code clip for doing this?
Thanks
Brandon
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 04, 2012
07:49 PM
You generally shouldn't read the registry directly to get MSI information, if you can avoid it. If you have an upgrade code, you can call MsiEnumRelatedProducts to get product codes for installed products with that upgrade code, and then do whatever you want with the product code (call MsiGetProductInfo, for example).
A detect-only major upgrade item will also take an upgrade code and return one or more product codes.
A detect-only major upgrade item will also take an upgrade code and return one or more product codes.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 10, 2012
09:37 AM
Thanks for the help I'm now using MsiEnumRelatedProducts and MsiGetProductInfo and it is working great.
I have one other question.
I have a chained MSI that I'm installing. Is there a function I can call to get the version from that MSI?
I have tried to search for the answer but all the answers are solutions for outside of installshield using SQL or C++. I would hope that installshield would have a function for this.
Brandon
I have one other question.
I have a chained MSI that I'm installing. Is there a function I can call to get the version from that MSI?
I have tried to search for the answer but all the answers are solutions for outside of installshield using SQL or C++. I would hope that installshield would have a function for this.
Brandon