add: }  var app = Components.classes["@mozilla.org/xre/app-info;1"]. getService(Components.interfaces.nsIXULAppInfo). QueryInterface(Components.interfaces.nsIXULRuntime);  var sbs = Components.classes["@mozilla.org/intl/stringbundle;1"]. getService(Components.interfaces.nsIStringBundleService); var brandBundle = sbs.createBundle(URI_BRAND_PROPERTIES);  var vendorShortName; try {    var prefs = Components.classes["@mozilla.org/preferences-service;1"]. getService(Components.interfaces.nsIPrefBranch);  vendorShortName = prefs.getCharPref("app.update.vendorName.override"); } catch (e) { vendorShortName = brandBundle.GetStringFromName("vendorShortName"); } var brandFullName = brandBundle.GetStringFromName("brandFullName");  if (!gCopiedLog && !checkRegistry() && !checkOldInstall(RegKey.prototype.ROOT_KEY_LOCAL_MACHINE, vendorShortName, brandFullName, app.version) && !checkOldInstall(RegKey.prototype.ROOT_KEY_CURRENT_USER, vendorShortName, brandFullName, app.version)) { LOG("nothing to do, so don't launch the helper"); return; }  try { var winAppHelper = app.QueryInterface(Components.interfaces.nsIWinAppHelper);   if (gCopiedLog) LOG("calling postUpdate with: " + gCopiedLog.path); else LOG("calling postUpdate without a log");  winAppHelper.postUpdate(gCopiedLog); } catch (e) { LOG("failed to launch the helper to do the post update cleanup: " + e); 
context:   run: function() {    try {      // We use a global object here for the install log writer, so that the      // registry updating code can easily inform it of registry keys that it      // may create.      installLogWriter = new InstallLogWriter();      try {        installLogWriter.begin();        updateRegistry(RegKey.prototype.ROOT_KEY_CURRENT_USER);        updateRegistry(RegKey.prototype.ROOT_KEY_LOCAL_MACHINE);      } finally {        installLogWriter.end();        installLogWriter = null;      }    } catch (e) {      LOG(e);    }  }
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8395/6264b3f99e8da8a4942b9d6a4c258a93fd0ebab1/nsPostUpdateWin.js/clean/toolkit/mozapps/update/src/nsPostUpdateWin.js