michael@0: const X_APP = "Buster"; michael@0: const X_VER = "2.0" michael@0: const X_JAR_FILE = "xslt-qa.jar"; michael@0: michael@0: var err = initInstall("Install " + X_APP, X_APP, X_VER); michael@0: logComment("initInstall: " + err); michael@0: logComment( "Installation started ..." ); michael@0: addFile("We're on our way ...", X_JAR_FILE, getFolder("chrome"), ""); michael@0: registerChrome(CONTENT|DELAYED_CHROME, getFolder("chrome", X_JAR_FILE), "content/xslt-qa/"); michael@0: err = getLastError(); michael@0: if (err == SUCCESS) { michael@0: performInstall(); michael@0: alert("Please restart Mozilla"); michael@0: } michael@0: else { michael@0: cancelInstall(); michael@0: }