wiki.webvm.net/ webvm/ Howto install WebVM

Intended audience: Developers

  1. WRT to packaging APIs
  2. How to install WebVM?
    1. Linux
    2. Windows
    3. Notes on native module install

WRT to packaging APIs

See requirements, api and packaging for thoughts on packaging device APIs.

How to install WebVM?

This document provides all essential information about how to install WebVM at this early stage on different platforms.

Linux

Windows

In order to build WebVM in Visual Studio 2005 you need to setup a couple of system environment variables:

Once you set up those variables you can launch Visual Studio and open the %WEBVMHOME%\npapi\npapi.sln solution file to and compile WebVM.

Afterwards you might want to edit the %WEBVMHOME%\conf\webvm.win32.conf file to fit your system.

Notes on native module install

WebVM aims to dynamically load modules. Though there are some user experience issues to note.

There are two ways to install a native module. In this context we are dealing with Windows Mobile.

Both ways require some sort of signing / delivery platform.

CAB redirect

  1. Webpage references http://api.webvm.net/native/module
  2. WebVM redirects user to http://update.webvm.net?module={ [ module: “foo”, version: “0.2:, vendor: “Aplix” ], [ anothermodule…. }
  3. http://update.webvm.net queries the module and provides download link
  4. User downloads the CAB (could have more than one module) and installs the module (in one step)
  5. User somehow navigates back to the initial Web page

Transparently install and run module

  1. Webpage references http://api.webvm.net/native/module
  2. WebVM downloads the module transparently …
  3. WinMo prompts the user to execute new library in awkward prompt (remote possibility of getting this signed by an OEM)
  4. User accepts and page finishes loading ..

There are several disadvantages to this approach:

  1. Can you really download transparently?
  2. The prompt to run a binary on Windows Mobile is very clumsy