mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-03 23:01:31 +00:00
Checking in the file we use for xpi install on UNIX with mozilla.
This commit is contained in:
parent
c73d27038c
commit
a665534475
34
security/psm/server/unix-install.js
Normal file
34
security/psm/server/unix-install.js
Normal file
@ -0,0 +1,34 @@
|
||||
function checkError(errorValue)
|
||||
{
|
||||
if((errorValue != SUCCESS) && (errorValue != REBOOT_NEEDED))
|
||||
{
|
||||
abortInstall(errorValue);
|
||||
return(true);
|
||||
}
|
||||
|
||||
return(false);
|
||||
} // end checkError()
|
||||
|
||||
// main
|
||||
var err = startInstall("Netscape Personal Security Manager", "/Netscape/Personal Security Manager", "1.1.0.00058");
|
||||
logComment("startInstall() returned: " + err);
|
||||
|
||||
fPSM = getFolder("Communicator","psm");
|
||||
|
||||
setPackageFolder(fPSM);
|
||||
err = addDirectory("/Netscape/Personal Security Manager/Program",
|
||||
"1.1.0.00058",
|
||||
"psm", // dir name in jar to extract
|
||||
fPSM, // Where to put this file (Returned from GetFolder)
|
||||
"", // subdir name to create relative to communicatorFolder
|
||||
true ); // Force Flag
|
||||
logComment("addDirectory() returned: " + err);
|
||||
|
||||
// check return value
|
||||
if(!checkError(err))
|
||||
{
|
||||
err = finalizeInstall();
|
||||
logComment("finalizeInstall() returned: " + err);
|
||||
}
|
||||
|
||||
// end main
|
Loading…
Reference in New Issue
Block a user