nsIChromeRegistry* reg,
nsIXULChromeRegistry* reg,
static nsresult SetupInstallContext(nsIZipReader* hZip,                                    nsIFile* jarFile,                                    const PRUnichar* url,                                    const PRUnichar* args,                                    PRUint32 flags,                                    nsIChromeRegistry* reg,                                    JSRuntime *rt,                                    JSContext **jsCX,                                    JSObject **jsGlob){    JSContext   *cx;    JSObject    *glob;    *jsCX   = nsnull;    *jsGlob = nsnull;    if (!rt)        return NS_ERROR_OUT_OF_MEMORY;    cx = JS_NewContext(rt, 8192);    if (!cx)    {        return NS_ERROR_OUT_OF_MEMORY;    }    JS_SetErrorReporter(cx, XPInstallErrorReporter);    glob = InitXPInstallObjects(cx, nsnull, jarFile, url, args, flags, reg, hZip);    // Init standard classes    JS_InitStandardClasses(cx, glob);    // Add our Install class to this context    InitInstallVersionClass(cx, glob, nsnull);    InitInstallTriggerGlobalClass(cx, glob, nsnull);    *jsCX   = cx;    *jsGlob = glob;    return NS_OK;}