2 REM **************************************************************************
3 REM * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 REM * Copyright 2008 by Sun Microsystems, Inc.
7 REM * OpenOffice.org - a multi-platform office productivity suite
9 REM * $RCSfile: installoffice.btm,v $
11 REM * $Revision: 1.3.6.1 $
13 REM * This file is part of OpenOffice.org.
15 REM * OpenOffice.org is free software: you can redistribute it and/or modify
16 REM * it under the terms of the GNU Lesser General Public License version 3
17 REM * only, as published by the Free Software Foundation.
19 REM * OpenOffice.org is distributed in the hope that it will be useful,
20 REM * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 REM * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 REM * GNU Lesser General Public License version 3 for more details
23 REM * (a copy is included in the LICENSE file that accompanied this code).
25 REM * You should have received a copy of the GNU Lesser General Public License
26 REM * version 3 along with OpenOffice.org. If not, see
27 REM * <http://www.openoffice.org/license.html>
28 REM * for a copy of the LGPLv3 License.
29 REM ************************************************************************/
32 SET DESTPATH=%USERNAME%
37 for %opt in (%&%) DO (
38 iff "%opt%" == "-d" THEN
39 SET PARAM=%PARAM% -debug true
42 elseiff "%opt%" == "-o" THEN
43 SET PARAM=%PARAM% -ooo true
46 elseiff "%opt%" == "-c" THEN
47 SET PARAM=%PARAM% -cwscheckapi true
50 elseiff "%opt%" == "-a" THEN
51 SET PARAM=%PARAM% -autorun true
54 elseiff "%opt%" == "-i" THEN
55 SET PARAM=%PARAM% -autoimpress true
58 elseiff "%opt%" == "-t" THEN
63 elseiff "%opt%" == "-h" THEN
66 elseiff "%opt%" == "/h" THEN
69 elseiff "%opt%" == "%DESTPATH%" THEN
73 echo wrong param: %opt%
78 iff "%DESTPATH%" == "%USERNAME%" THEN
80 iff EXIST e:\temp then
82 elseiff EXIST e:\tmp then
88 elseiff EXIST c:\tmp then
90 elseiff EXIST c:\temp then
95 DESTPATH=%temppath%\%USERNAME%
98 SET LOCALINSTALLDIR=%DESTPATH%\office
99 SET LOCALUNPACKDIR=%DESTPATH%\unpack
100 echo LOCALINSTALLDIR=%LOCALINSTALLDIR%
101 echo LOCALUNPACKDIR=%LOCALUNPACKDIR%
103 echo call perl5 %SOLARENV%\bin\installoffice.pl -dest %LOCALINSTALLDIR% %PARAM% -cleanup true %&
104 call perl5 %SOLARENV%\bin\installoffice.pl -dest %LOCALINSTALLDIR% %PARAM% -cleanup true %&
110 echo Usage: %0% [-t DESTPATH] [-o] [-d] >&2
112 echo [-d] installation with debug output>&2
114 echo [-o] force OpenOffice.org installation instead of StarOffice>&2
116 echo [-t] target path: path where the office should installed to. The default is '%DESTPATH%'>&2
118 echo [-a] the office will be patched to run without FirstStartWizard >&2
120 echo [-i] impress should open documents without autopilot