cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
CChong
Level 11 Flexeran
Level 11 Flexeran

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


ov := CreateOleObject('DWUpdateService.Agent');
ov.AppUpdate ('{GUID}', AppMenu );


We're currently using an OleVariant to call the agent...seems to work just fine.
0 Kudos
(1) Reply
Chris_Woerner
Level 10

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.
0 Kudos