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
- :
- How to catch Upgrade process
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
‎Oct 01, 2008
02:10 AM
How to catch Upgrade process
Hi,
I'm using Installshield MSI project & want to catch the Upgrade process before the installation starts Upgrading the package.
I tried using UPGRADEPRODUCTCODE key in my script.
But while installation this is not detected & the installation proceeds with Upgrading.(may be i'm not calling the function at right place)
Let me know any other keys available to check Upgrade??.
Thanks & regards,
Manoj
I'm using Installshield MSI project & want to catch the Upgrade process before the installation starts Upgrading the package.
I tried using UPGRADEPRODUCTCODE key in my script.
But while installation this is not detected & the installation proceeds with Upgrading.(may be i'm not calling the function at right place)
Let me know any other keys available to check Upgrade??.
Thanks & regards,
Manoj
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 01, 2008
08:38 AM
That's correct, the older project in a major upgrade can detect that it's being upgraded by checking the UPGRADINGPRODUCTCODE property. (The newer project can check the "action property" from the Upgrade table.) How and where are you reading the value of UPGRADINGPRODUCTCODE? In your script, perhaps display the value of the property in a MessageBox to verify that it's being called?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 06, 2008
02:15 AM
Hi,
Thanks.
I'm using this function
MsiGetProperty(ISMSI_HANDLE,"UPGRADINGPRODUCTCODE",szUpgrade,nvBufferSize);
Sprintf(svMsg, "%s",szUpgrade);
MessageBox(svMsg,INFORMATION);
and tried calling in OnBegin, but no success.
I wanted to is Onbegin is the right place to call???
Rgds
Manoj
Thanks.
I'm using this function
MsiGetProperty(ISMSI_HANDLE,"UPGRADINGPRODUCTCODE",szUpgrade,nvBufferSize);
Sprintf(svMsg, "%s",szUpgrade);
MessageBox(svMsg,INFORMATION);
and tried calling in OnBegin, but no success.
I wanted to is Onbegin is the right place to call???
Rgds
Manoj
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 06, 2008
10:08 PM
As a sanity check, are you setting nvBufferSize to a large enough size to capture the value of UPGRADINGPRODUCTCODE before calling MsiGetProperty?
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)