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
- :
- Catch upgrade in installscript?
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
‎Jan 28, 2008
02:30 AM
Catch upgrade in installscript?
Hi
I am building an InstallScript MSI project.
I use OnFirstUIBefore and OnMaintUIBefore to catch these events.
This seems to work OK. However if I build a new setup.exe and run this, I am told that this setup will perform an upgrade. The events above are not activated. Which event should I use to catch upgrade??
Søren
I am building an InstallScript MSI project.
I use OnFirstUIBefore and OnMaintUIBefore to catch these events.
This seems to work OK. However if I build a new setup.exe and run this, I am told that this setup will perform an upgrade. The events above are not activated. Which event should I use to catch upgrade??
Søren
(6) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 28, 2008
02:57 AM
For pure InstallScript projects these are 'OnUpdateUIBefore' and 'OnUpdateUIAfter'. Should work if they will work for InstallScript MSI projects.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 28, 2008
03:11 AM
Yes There is such an event, but using it in my script, the compiler complains that function has no prototype delcaration!
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 28, 2008
02:15 PM
Does putting
prototype OnUpdateUIBefore();
prototype OnUppdateUIAfter();
at the top fix it?
prototype OnUpdateUIBefore();
prototype OnUppdateUIAfter();
at the top fix it?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 29, 2008
01:25 AM
It does not solve the real problem.
It will compile now, but still the event is not triggered during upgrade!
What I don't understand is the the OnUodateUIBefore event is regocnized by the installscript editor (the name is higlighted as the other known events), but it is not recoknized by the compiler (You have to prototype it).
Does anyone have a clue?
Update 02.01.2008: No action on this thread! - Is it because there is no solution or what? How do I contact Macrovision directly?
It will compile now, but still the event is not triggered during upgrade!
What I don't understand is the the OnUodateUIBefore event is regocnized by the installscript editor (the name is higlighted as the other known events), but it is not recoknized by the compiler (You have to prototype it).
Does anyone have a clue?
Update 02.01.2008: No action on this thread! - Is it because there is no solution or what? How do I contact Macrovision directly?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 15, 2022
04:28 PM
I'm trying to figure out the same problem.
After the "This setup will perform an upgrade..." message, if there isn't a specific event for it, is there something one can add to the OnBegin event to tell it's trying to perform an update?
We need to distinguish this from an attempt to uninstall.