36 var ranFirstRun =
Application.prefs.get(
'songbird.firstrun.check.0.3');
37 if (!ranFirstRun || !ranFirstRun.value) {
42 var PREF_SONGBIRD_FIRSTRUN_UPDATEONCE =
'songbird.firstrun.update-once';
43 var ranUpdate =
Application.prefs.get(PREF_SONGBIRD_FIRSTRUN_UPDATEONCE);
44 if (ranUpdate && ranUpdate.value) {
49 var updateSvc = Components.classes[
'@mozilla.org/updates/update-service;1']
50 .getService(Components.interfaces.nsIApplicationUpdateService);
51 var updateChecker = updateSvc.backgroundChecker;
53 var updateCheckListener = {
54 onCheckComplete:
function (request, updates, updatecount) {
55 var update = updateSvc.selectUpdate(updates, updatecount);
59 window.openDialog(
"chrome://mozapps/content/update/updates.xul",
61 "chrome,centerscreen,dialog=no,resizable=no,titlebar,toolbar=no",
64 onError:
function (request, update) { },
65 onProgress:
function (request,
position, totalSize) { }
67 updateChecker.checkForUpdates(updateCheckListener,
true);
70 Application.prefs.setValue(PREF_SONGBIRD_FIRSTRUN_UPDATEONCE,
true);
function updateOnceAfterFirstRun()