How to check for updates from my application?

73 views
Skip to first unread message

Oliver Gärtner

unread,
Feb 28, 2015, 9:51:31 AM2/28/15
to omaha-...@googlegroups.com

Hi,

Does anyone know what Chrome does when you click on “About Google Chrome” to check for updates? As far as I understand the Omaha architecture, it runs outside of the applications it updates. So I am wondering how you can trigger the update process from your application and how you can monitor the download/installation process of a new version.

Thanks,

Oliver

Mark Larson (Google)

unread,
Feb 28, 2015, 7:51:53 PM2/28/15
to omaha-...@googlegroups.com
In particular:
interface IGoogleUpdate : IUnknown {
  // @param guid The guid for the app to be updated.
  // @param observer The eventing interface.
  HRESULT CheckForUpdate([in, string] const WCHAR* guid,
                         [in] IJobObserver* observer);

  // @param guid The guid for the app to be updated.
  // @param observer The eventing interface.
  HRESULT Update([in, string] const WCHAR* guid,
                 [in] IJobObserver* observer);
};

Chrome's implementation is here:

Most of the work is in the BeginUpdateCheckInternal method. If you're not familiar with the Chromium code, it might be hard to follow all the policy checks, progress and status checking, and error reporting, but it's the only example I've got ;)

--Mark

--
You received this message because you are subscribed to the Google Groups "Omaha Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omaha-discus...@googlegroups.com.
To post to this group, send email to omaha-...@googlegroups.com.
Visit this group at http://groups.google.com/group/omaha-discuss.
For more options, visit https://groups.google.com/d/optout.

Oliver Gärtner

unread,
Mar 26, 2015, 12:18:27 PM3/26/15
to omaha-...@googlegroups.com
Thanks for the pointers, Mark. I will dig in :) Oliver
Reply all
Reply to author
Forward
0 new messages