diff --git a/xpinstall/packager/unix/typeaheadfind.jst b/xpinstall/packager/unix/typeaheadfind.jst new file mode 100644 index 000000000000..8d42b346109c --- /dev/null +++ b/xpinstall/packager/unix/typeaheadfind.jst @@ -0,0 +1,23 @@ +var gVersion = "0.1"; + +var err = initInstall("Type Ahead Find", "typeaheadfind", gVersion); +logComment("initInstall: " + err); + +var fProgram = getFolder("Program"); +logComment("fProgram: " + fProgram); + +err = addDirectory("", gVersion, "bin", fProgram, ""); +logComment("addDirectory: " + err); + +// Register chrome +if (err == SUCCESS) { + err = registerChrome(LOCALE | DELAYED_CHROME, getFolder("Chrome","typeaheadfind.jar"), "locale/en-US/typeaheadfind/"); +} + +if (err == SUCCESS) { + err = performInstall(); + logComment("performInstall: " + err); +} else { + cancelInstall(err); +} + diff --git a/xpinstall/packager/windows/typeaheadfind.jst b/xpinstall/packager/windows/typeaheadfind.jst new file mode 100644 index 000000000000..8d42b346109c --- /dev/null +++ b/xpinstall/packager/windows/typeaheadfind.jst @@ -0,0 +1,23 @@ +var gVersion = "0.1"; + +var err = initInstall("Type Ahead Find", "typeaheadfind", gVersion); +logComment("initInstall: " + err); + +var fProgram = getFolder("Program"); +logComment("fProgram: " + fProgram); + +err = addDirectory("", gVersion, "bin", fProgram, ""); +logComment("addDirectory: " + err); + +// Register chrome +if (err == SUCCESS) { + err = registerChrome(LOCALE | DELAYED_CHROME, getFolder("Chrome","typeaheadfind.jar"), "locale/en-US/typeaheadfind/"); +} + +if (err == SUCCESS) { + err = performInstall(); + logComment("performInstall: " + err); +} else { + cancelInstall(err); +} +