bug 97945, "venkkman install packaging", sr=shaver, r=ssu,jj

initial add of venkman install.js templates
This commit is contained in:
rginda%netscape.com 2001-10-02 23:52:49 +00:00
parent f65d7bf81f
commit 00692d26fa
3 changed files with 86 additions and 0 deletions

View File

@ -0,0 +1,30 @@
var srDest = $SpaceRequired$;
var err = initInstall("Venkman", "JavaScript Debugger", "$Version$");
logComment("initInstall: " + err);
var fProgram = getFolder("Program");
if (verifyDiskSpace(fProgram, srDest))
{
addFile("Venkman Service",
"viewer/Components/venkman-service.js",
getFolder(fProgram,"Components"),
"");
addFile("Venkman Chrome",
"viewer/chrome/venkman.jar", // jar source folder
getFolder("Chrome"), // target folder
""); // target subdir
registerChrome(PACKAGE | DELAYED_CHROME, getFolder("Chrome","venkman.jar"), "content/venkman/");
registerChrome(SKIN | DELAYED_CHROME, getFolder("Chrome","venkman.jar"), "skin/modern/venkman/");
registerChrome(LOCALE | DELAYED_CHROME, getFolder("Chrome","venkman.jar"), "locale/en-US/venkman/");
if (err==SUCCESS)
performInstall();
else
cancelInstall(err);
}
else
cancelInstall(INSUFFICIENT_DISK_SPACE);

View File

@ -0,0 +1,30 @@
var srDest = $SpaceRequired$;
var err = initInstall("Venkman", "JavaScript Debugger", "$Version$");
logComment("initInstall: " + err);
if (verifyDiskSpace(getFolder("Program"), srDest))
{
addFile("Venkman Service",
"$Version$",
"bin/components/venkman-service.js",
getFolder("Components"),
"venkman-service.js",
true);
addFile("Venkman Chrome",
"bin/chrome/venkman.jar", // jar source folder
getFolder("Chrome"), // target folder
""); // target subdir
registerChrome(PACKAGE | DELAYED_CHROME, getFolder("Chrome","venkman.jar"), "content/venkman/");
registerChrome(SKIN | DELAYED_CHROME, getFolder("Chrome","venkman.jar"), "skin/modern/venkman/");
registerChrome(LOCALE | DELAYED_CHROME, getFolder("Chrome","venkman.jar"), "locale/en-US/venkman/");
if (err==SUCCESS)
performInstall();
else
cancelInstall(err);
}
else
cancelInstall(INSUFFICIENT_DISK_SPACE);

View File

@ -0,0 +1,26 @@
$Ren8dot3List$
var err = initInstall("Venkman", "JavaScript Debugger", "$Version$");
logComment("initInstall: " + err);
$Ren8dot3Call$
addFile("Venkman Service",
"bin/components/venkman-service.js",
getFolder("Components"),
"");
addFile("Venkman Chrome",
"bin/chrome/venkman.jar", // jar source folder
getFolder("Chrome"), // target folder
""); // target subdir
registerChrome(PACKAGE | DELAYED_CHROME, getFolder("Chrome","venkman.jar"), "content/venkman/");
registerChrome(SKIN | DELAYED_CHROME, getFolder("Chrome","venkman.jar"), "skin/modern/venkman/");
registerChrome(LOCALE | DELAYED_CHROME, getFolder("Chrome","venkman.jar"), "locale/en-US/venkman/");
err = getLastError();
if (err==SUCCESS)
performInstall();
else
cancelInstall(err);