Skip to content

Omaha COM interface

Kirill Yakovenko edited this page Oct 17, 2017 · 7 revisions

The Omaha's COM interface is described in the omaha\goopdate\omaha3_idl.idl file.
The type library is compiled together with Omaha Client and can be found in the omaha\scoons-out\{mode}\staging\idls\ directory.

.Net & Omaha Client COM interface

.Net applications can interact with Omaha Client through COM objects.

  1. You just need to convert the omaha3_idl.tlb type library to a .Net assembly.
    • Launch "Developer Command Prompt for VS2015".
    • Go to the omaha\scoons-out\opt-win\staging\idls\ folder
      or
      omaha\scoons-out\dbg-win\staging\idls\ for the debug mode.
    • Call tlbimp omaha3_idl.tlb which will make GoogleUpdate3Lib.dll.
  2. After that you can use it in your .Net application. You can add this library as a reference to your .Net application.
    • Call "Add reference..." in VS2015, find and choose GoogleUpdate3Lib.dll.
  3. In the end, you can add a using directive in your source code in order to use the COM objects.

You can see TestAppWPF in examples.

Please, pay attention to the fact that you mustn't use GoogleUpdate3Lib.dll which you can find in the TestAppWPF example because it contains its own GUIDs.