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
- :
- FlexNet Connect
- :
- FlexNet Connect Forum
- :
- AppUpdate Feedback
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
Dec 05, 2003
08:53 AM
AppUpdate Feedback
I am just starting to play around with AppUpdate within Delphi 6 and have run into a problem determining when I should close the calling application. The scenarios seem to be:
(After pressing button to call AppUpdate routine)
a.) no updates exist, user clicks on 'Finish' button of AppUpdate menu, close AppUpdate menu.
b.) updates exist, user clicks on 'Cancel' button of AppUpdate menu, close AppUpdate menu.
c.) updates exist, clicks on 'Install' button of AppUpdate menu, close calling application.
We want to close the calling application for obvious reasons but only want to close it for scenario 'c'.
Is there any way of determining what the user selected. Code examples would be great even if they're not in Delphi.
Thanks in advance
Regards
We're currently using an OleVariant to call the agent...seems to work just fine.
(After pressing button to call AppUpdate routine)
a.) no updates exist, user clicks on 'Finish' button of AppUpdate menu, close AppUpdate menu.
b.) updates exist, user clicks on 'Cancel' button of AppUpdate menu, close AppUpdate menu.
c.) updates exist, clicks on 'Install' button of AppUpdate menu, close calling application.
We want to close the calling application for obvious reasons but only want to close it for scenario 'c'.
Is there any way of determining what the user selected. Code examples would be great even if they're not in Delphi.
Thanks in advance
Regards
ov := CreateOleObject('DWUpdateService.Agent');
ov.AppUpdate ('{GUID}', AppMenu );
We're currently using an OleVariant to call the agent...seems to work just fine.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Dec 09, 2003
03:18 PM
Another option is to close your application from the update installation. That way, you don't have to code around those cases. Have your update installation looking for your running application and ask the user to close it. In fact, MSI does some of this for you.
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)