File:  [mozdev] / demiurge / install.js.in
Revision 1.3: download - view: text, annotated - select for diffs - revision graph
Sun Mar 16 03:37:28 2003 UTC (14 years, 8 months ago) by petejc
Branches: MAIN
CVS tags: HEAD
trying different chrome registry flags

--pete

/* -*- Mode: Javascript; tab-width: 2; c-basic-offset: 2; -*-
 * 
 *
 * The contents of this file are subject to the Mozilla Public
 * License Version 1.1 (the "License"); you may not use this file
 * except in compliance with the License. You may obtain a copy of
 * the License at http://www.mozilla.org/MPL/
 *
 * Software distributed under the License is distributed on an "AS
 * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
 * implied. See the License for the specific language governing
 * rights and limitations under the License.
 *
 * The Original Code is jslib team code.
 * The Initial Developer of the Original Code is jslib team.
 *
 * Portions created by Mozdev Group, Inc. are
 * Copyright (C) 2003 Mozdev Group, Inc.  All
 * Rights Reserved.
 *
 * Original Author: Pete Collins <pete@mozdev.org>
 * Contributor(s):
 *
 *  $Id: install.js.in,v 1.3 2003/03/16 03:37:28 petejc Exp $
 *  Last Edited by: $Author: petejc $
 *  $Revision: 1.3 $
 *  $Date: 2003/03/16 03:37:28 $
 */

const G_VER             = "__VERSION__";
const G_MSG             = "__CODENAME__ v"+G_VER;
const G_NAME            = "__CODENAME__";
const G_CHROME          = "Chrome";
const G_USER            = "Current User";
const G_RT              = "__CODENAME__";
const G_CONTENT         = "content/";

const G_CHROME_DIR      = getFolder(G_USER, "chrome");
 
var err = initInstall(G_MSG, G_NAME, G_VER); 

logComment("initInstall: " + err);

addDirectory("", G_RT, getFolder(G_CHROME_DIR, G_RT), "");
logComment("registerChrome: " + 
            registerChrome(PACKAGE|CONTENT|DELAYED_CHROME, 
                           getFolder(G_CHROME_DIR, G_RT), ""));

err = getLastError();

if (err==SUCCESS)
    performInstall(); 
else
    cancelInstall(err);


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>