Getting Application Version at Runtime

    gApp  = Components.classes[“@mozilla.org/xre/app-info;1”]
        .getService(Components.interfaces.nsIXULAppInfo)
        .QueryInterface(Components.interfaces.nsIXULRuntime);
    return gApp.version;

technorati tags:, , ,

Blogged with Flock

Advertisements