const APP_SUCCESS_MESSAGE = "You need to restart Mozilla first.";
const INST_TO_PROFILE = "Do you wish to install "+APP_DISPLAY_NAME+" to your profile?\nThis will mean it does not need reinstalling when you update Mozilla.\n(Click Cancel if you want "+APP_DISPLAY_NAME+" installing to the Mozilla directory.)";
initInstall(APP_NAME, APP_PACKAGE, APP_VERSION);
// profile installs only work since 2003-03-06
var instToProfile = confirm(INST_TO_PROFILE);
var chromefolder = instToProfile ? getFolder("Profile", "chrome") : getFolder("chrome");
var profileflag = instToProfile ? PROFILE_CHROME : DELAYED_CHROME;
var err = addFile(APP_PACKAGE, APP_VERSION, "chrome/"+APP_JAR_FILE, chromefolder, null)