Difference between revisions of "OpenOffice.org 2.x"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(easier to check the uninstaller product id and ALLUSER must be set)
(Disable registration wizard, update to 2.4.1, add instructions on disabling the splash screen)
Line 3: Line 3:
 
== Basics ==
 
== Basics ==
  
First, download the OpenOffice installer (i.e. OOo_2.4_Win32Intel_install.exe) from [http://download.openoffice.org/index.html OpenOffice.org] Website.<br>
+
First, download the OpenOffice.org installer (OOo_2.4.1_Win32Intel_install_en-US.exe) from [http://download.openoffice.org/other.html OpenOffice.org] Website.  Make sure to uncheck "Include the Java JRE with this download" to download the package without the bundled JRE.<br>
Run the installer - it creates a directory named ''OpenOffice.org 2.4 Installation Files'', which includes several files.
+
Run the installer - it creates a directory named ''OpenOffice.org 2.4 (en-US) Installation Files'', which includes several files.
 
The ones you need are:
 
The ones you need are:
  
  openofficeorg1.cab
+
  openofficeorg24.msi
  openofficeorg2.cab
+
openoffice.org-activex.cab
  openofficeorg20.msi
+
  openoffice.org-base.cab
  openofficeorg3.cab
+
  openoffice.org-calc.cab
  openofficeorg4.cab
+
  openoffice.org-core01.cab
 +
  openoffice.org-core02.cab
 +
openoffice.org-core03.cab
 +
openoffice.org-core04.cab
 +
openoffice.org-core05.cab
 +
openoffice.org-core06.cab
 +
openoffice.org-core07.cab
 +
openoffice.org-core08.cab
 +
openoffice.org-core09.cab
 +
openoffice.org-draw.cab
 +
openoffice.org-emailmerge.cab
 +
openoffice.org-graphicfilter.cab
 +
openoffice.org-impress.cab
 +
openoffice.org-javafilter.cab
 +
openoffice.org-math.cab
 +
openoffice.org-onlineupdate.cab
 +
openoffice.org-pyuno.cab
 +
openoffice.org-testtool.cab
 +
openoffice.org-writer.cab
 +
openoffice.org-xsltfilter.cab
 +
 
 +
Next, you need to download the [http://wiki.services.openoffice.org/wiki/Documentation/Administration_Guide/Deactivating_Registration_Wizard DisableFirstStartWzd.oxt] extension and place this in the same directory as the files above.  This extension disables the First Start/Registration Wizard.
  
When downloaded the package with JRE, you need the java directory too.
 
  
 
== Installer Parameters ==  
 
== Installer Parameters ==  
  
You can customize your instalation by using the following supported installer parameters: http://wiki.services.openoffice.org/wiki/Documentation/How_Tos/Automatic_Installation_on_Windows
+
You can customize your installation by using the following supported installer parameters: http://wiki.services.openoffice.org/wiki/Documentation/How_Tos/Automatic_Installation_on_Windows
  
  
 
== WPKG install ==
 
== WPKG install ==
  
''
 
excerpt from ''package.xml'', adjust your paths accordingly:
 
 
<source lang="xml">
 
<source lang="xml">
<package id="ooo-2.x"  
+
<?xml version="1.0" encoding="UTF-8"?>
  name="OpenOffice.org 2.x"  
+
<packages>
  revision="1"  
+
<package id="openoffice2"
  reboot="false"  
+
name="OpenOffice.org 2.4.x"
  priority="0">
+
revision="200806111"
  <check type="uninstall" condition="exists" path="OpenOffice.org 2.0" />
+
reboot="false"
  <install cmd='msiexec /qn /i "%SOFTWARE%\OOo_2.0\openofficeorg20.msi" ALLUSERS=1 SELECT_WORD=1 SELECT_EXCEL=1 SELECT_POWERPOINT=1' />
+
priority="0">
  <upgrade cmd='msiexec /qn /i "%SOFTWARE%\OOo_2.0\openofficeorg20.msi" ALLUSERS=1 SELECT_WORD=1 SELECT_EXCEL=1 SELECT_POWERPOINT=1' />
+
 
  <remove cmd='msiexec /qn /x{CE91484F-B0CF-4494-8BA6-7242EE913626}' />
+
<check type="uninstall" condition="exists" path="OpenOffice.org 2.4" />
+
<depends package-id="java6" />
 +
 
 +
<install cmd='msiexec /qn /i "%SOFTWARE%\openoffice2\openofficeorg24.msi" ALLUSERS=1 SELECT_WORD=1 SELECT_EXCEL=1 SELECT_POWERPOINT=1' />
 +
<install cmd='"%ProgramFiles%\OpenOffice.org 2.4\program\unopkg.exe" add --shared %SOFTWARE%\openoffice2\DisableFirstStartWzd.oxt' />
 +
 
 +
<upgrade cmd='msiexec /qn /i "%SOFTWARE%\openoffice2\openofficeorg24.msi" ALLUSERS=1 SELECT_WORD=1 SELECT_EXCEL=1 SELECT_POWERPOINT=1' />
 +
<upgrade cmd='"%ProgramFiles%\OpenOffice.org 2.4\program\unopkg.exe" add --shared %SOFTWARE%\openoffice2\DisableFirstStartWzd.oxt' />
 +
 
 +
<remove cmd='"%ProgramFiles%\OpenOffice.org 2.4\program\unopkg.exe" remove --shared org.openoffice.legacy.DisableFirstStartWzd.oxt' />
 +
<remove cmd='msiexec /qn /x {80851370-07CF-477B-837D-F2E488916CFE}' />
 
</package>
 
</package>
 +
</packages>
 
</source>
 
</source>
  
''Note'' If you install i.e. OO 2.2.1 it also announces itself as OO 2.2 in the Software repository. To know if it got installed, replace the
+
''Note'' If you install i.e. OOo 2.4.1 it also announces itself as OO 2.4 in the Software repository. To know if it got installed, replace
  
<source lang="xml"><check type="uninstall"...></source>
+
<source lang="xml"><check type="uninstall" condition="exists" path="OpenOffice.org 2.4" /></source>
  
 
with     
 
with     
  
 
<source lang="xml">
 
<source lang="xml">
<check type="registry" condition="exists" path="HKLM\SOFTWARE\OpenOffice.org\OpenOffice.org\2.2\{E4C7B3EF-B3DB-4BB6-A812-E8FAE47534D3}\INSTALLLOCATION" />
+
<check type="registry" condition="exists" path="HKLM\SOFTWARE\OpenOffice.org\OpenOffice.org\2.4\{80851370-07CF-477B-837D-F2E488916CFE}\INSTALLLOCATION" />
 
</source>
 
</source>
  
 
The long hexnumber is the Uninstall-ID (see below). This always works, also with minorversion updates.
 
The long hexnumber is the Uninstall-ID (see below). This always works, also with minorversion updates.
  
The uninstall ID can be checked from the file ''setup.ini'' in the directory ''OpenOfficeorg 2.0 Installation Files''
+
The uninstall ID can be checked from the file ''setup.ini'' in the directory ''OpenOffice.org 2.4 (en-US) Installation Files''
  
''Question'' Does "uninstall ID" mean "{CE91484F-B0CF-4494-8BA6-7242EE913626}" or "OpenOffice.org 2.0"?
+
''Question'' Does "uninstall ID" mean "{80851370-07CF-477B-837D-F2E488916CFE}" or "OpenOffice.org 2.0"?
  
 
''Answer'' The long hex number.
 
''Answer'' The long hex number.
Line 91: Line 119:
  
 
See the new documentation [http://wiki.services.openoffice.org/wiki/Documentation/How_Tos/Automatic_Installation_on_Windows Automatic Installation on Windows at the OpenOffice.org Wiki] for a detailed documentation of all the MSI properties.
 
See the new documentation [http://wiki.services.openoffice.org/wiki/Documentation/How_Tos/Automatic_Installation_on_Windows Automatic Installation on Windows at the OpenOffice.org Wiki] for a detailed documentation of all the MSI properties.
 +
 +
If you would like to disable the splash screen, place ''sed.exe'' and the dependencies (''libiconv2.dll'' and ''libintl3.dll'') from [http://gnuwin32.sourceforge.net/packages/sed.htm GnuWin32] into your tools folder.  Then add the following lines to the bottom of each section:
 +
 +
<source lang="xml">
 +
<install cmd='%WPKGROOT%\tools\sed.exe -i s/^Logo=1$/Logo=0/ "%ProgramFiles%\OpenOffice.org 2.4\program\soffice.ini"' />
 +
...
 +
<upgrade cmd='%WPKGROOT%\tools\sed.exe -i s/^Logo=1$/Logo=0/ "%ProgramFiles%\OpenOffice.org 2.4\program\soffice.ini"' />
 +
</source>
  
  
Line 123: Line 159:
  
 
2- by dropping a link to it in the startup folder
 
2- by dropping a link to it in the startup folder
 +
 +
3 - See the new install script above which installs an extension to disable the registration wizard.
 +
 +
Other answers:
  
 
3- by copying a folder OpenOffice.org2 into the profile of the user at session start.
 
3- by copying a folder OpenOffice.org2 into the profile of the user at session start.

Revision as of 02:43, 12 June 2008

This is a silent installer and uninstaller for OpenOffice.

Basics

First, download the OpenOffice.org installer (OOo_2.4.1_Win32Intel_install_en-US.exe) from OpenOffice.org Website. Make sure to uncheck "Include the Java JRE with this download" to download the package without the bundled JRE.
Run the installer - it creates a directory named OpenOffice.org 2.4 (en-US) Installation Files, which includes several files. The ones you need are:

openofficeorg24.msi
openoffice.org-activex.cab
openoffice.org-base.cab
openoffice.org-calc.cab
openoffice.org-core01.cab
openoffice.org-core02.cab
openoffice.org-core03.cab
openoffice.org-core04.cab
openoffice.org-core05.cab
openoffice.org-core06.cab
openoffice.org-core07.cab
openoffice.org-core08.cab
openoffice.org-core09.cab
openoffice.org-draw.cab
openoffice.org-emailmerge.cab
openoffice.org-graphicfilter.cab
openoffice.org-impress.cab
openoffice.org-javafilter.cab
openoffice.org-math.cab
openoffice.org-onlineupdate.cab
openoffice.org-pyuno.cab
openoffice.org-testtool.cab
openoffice.org-writer.cab
openoffice.org-xsltfilter.cab

Next, you need to download the DisableFirstStartWzd.oxt extension and place this in the same directory as the files above. This extension disables the First Start/Registration Wizard.


Installer Parameters

You can customize your installation by using the following supported installer parameters: http://wiki.services.openoffice.org/wiki/Documentation/How_Tos/Automatic_Installation_on_Windows


WPKG install

<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package id="openoffice2"
	name="OpenOffice.org 2.4.x"
	revision="200806111"
	reboot="false"
	priority="0">

	<check type="uninstall" condition="exists" path="OpenOffice.org 2.4" />
	<depends package-id="java6" />

	<install cmd='msiexec /qn /i "%SOFTWARE%\openoffice2\openofficeorg24.msi" ALLUSERS=1 SELECT_WORD=1 SELECT_EXCEL=1 SELECT_POWERPOINT=1' />
	<install cmd='"%ProgramFiles%\OpenOffice.org 2.4\program\unopkg.exe" add --shared %SOFTWARE%\openoffice2\DisableFirstStartWzd.oxt' />

	<upgrade cmd='msiexec /qn /i "%SOFTWARE%\openoffice2\openofficeorg24.msi" ALLUSERS=1 SELECT_WORD=1 SELECT_EXCEL=1 SELECT_POWERPOINT=1' />
	<upgrade cmd='"%ProgramFiles%\OpenOffice.org 2.4\program\unopkg.exe" add --shared %SOFTWARE%\openoffice2\DisableFirstStartWzd.oxt' />

	<remove cmd='"%ProgramFiles%\OpenOffice.org 2.4\program\unopkg.exe" remove --shared org.openoffice.legacy.DisableFirstStartWzd.oxt' />
	<remove cmd='msiexec /qn /x {80851370-07CF-477B-837D-F2E488916CFE}' />
</package>
</packages>

Note If you install i.e. OOo 2.4.1 it also announces itself as OO 2.4 in the Software repository. To know if it got installed, replace

<check type="uninstall" condition="exists" path="OpenOffice.org 2.4" />

with

<check type="registry" condition="exists" path="HKLM\SOFTWARE\OpenOffice.org\OpenOffice.org\2.4\{80851370-07CF-477B-837D-F2E488916CFE}\INSTALLLOCATION" />

The long hexnumber is the Uninstall-ID (see below). This always works, also with minorversion updates.

The uninstall ID can be checked from the file setup.ini in the directory OpenOffice.org 2.4 (en-US) Installation Files

Question Does "uninstall ID" mean "{80851370-07CF-477B-837D-F2E488916CFE}" or "OpenOffice.org 2.0"?

Answer The long hex number.


Localized builds

The best way to install a localized build (in my opinion) is to install localized language packs in addition to the English installer. This way the user can choose if they want to have the English interface or the localized one. An example for the Traditional Chinese language pack:

<package id="ooo-2.4-langpack-zh"
  name="OpenOffice.org 2.4 language pack (zh)"
  revision="1"
  reboot="false"
  priority="0">
  <check type="registry" condition="exists" path="HKLM\SOFTWARE\Microsoft\Window
s\CurrentVersion\Uninstall\{B95154FE-365D-4867-B915-24EEEE6EFB27}\Version" />
  <install cmd='msiexec /qn /i "%SOFTWARE%\ooo-2.4-langpack-zh\openofficeorg24.msi" ALLUSERS=1' />
  <remove cmd='msiexec /qn /x{B95154FE-365D-4867-B915-24EEEE6EFB27}' />
</package>

Note that {B95154FE-365D-4867-B915-24EEEE6EFB27} is the product code as found in setup.ini.

To switch to that language, choose Tools | Options | Language Settings | Language and set the "language of User Interface".


Customizing

According to the OpenOffice.org 2 setup guide, you can customize an automated installation using Microsoft's Orca tool.

However, certain customizations are possible without Orca. For example, AppDeploy.com gives the tip for making OpenOffice.org the default program for Microsoft Office file types:

msiexec /qb! /i openofficeorg20.msi ALLUSERS=1 SELECT_WORD=1 SELECT_EXCEL=1 SELECT_POWERPOINT=1

See the new documentation Automatic Installation on Windows at the OpenOffice.org Wiki for a detailed documentation of all the MSI properties.

If you would like to disable the splash screen, place sed.exe and the dependencies (libiconv2.dll and libintl3.dll) from GnuWin32 into your tools folder. Then add the following lines to the bottom of each section:

<install cmd='%WPKGROOT%\tools\sed.exe -i s/^Logo=1$/Logo=0/ "%ProgramFiles%\OpenOffice.org 2.4\program\soffice.ini"' />
...
<upgrade cmd='%WPKGROOT%\tools\sed.exe -i s/^Logo=1$/Logo=0/ "%ProgramFiles%\OpenOffice.org 2.4\program\soffice.ini"' />


Alternative install

Here's another possibility:

<package id="openoffice" name="Openoffice 2" revision="1" priority="0" reboot="false">
 <check type="uninstall" condition="exists" path="OpenOffice.org 2.0" />
 <!-- install cmd='%SOFTWARE%\OpenOffice\enu\setup.exe -r:\\server\share\OpenOffice\officeop.txt -D:\"%ProgramFiles%\OpenOffice.org\" -debug -net' -->
 <!-- make a temporary directory -->
 <install cmd='cmd /c mkdir "%TEMP%\ooo"' />
 <!-- Expand the zip file -->
 <install cmd='"%PROGRAMFILES%\7-Zip\7z.exe" e -y -o"%TEMP%"\ooo %SOFTWARE%\openoffice2\OOo_2.0_Win32Intel_install.zip"' />
 <install cmd='"%TEMP%\ooo\setup" /q' />
 <install cmd='cmd /c del /s /q "%TEMP%\ooo"' />
 <remove cmd="msiexec /qb /l* c:\netinst\logs\openoffice.log x{C3B3C054-0F00-4BC3-9A90-9C6B3EF4201F}" />
</package>

Open questions

1- Is there an easy way to associate .csv and .dbf files?

2- Is there an easy way to active the quickstarter? (In Version 2.1, it seems to be disabled by default?)

3- Is there a way to deactivate the registration wizard that appears for each user at first start ?

Partial answers

1- by modifying HKEY_CLASSES_ROOT in the registry

2- by dropping a link to it in the startup folder

3 - See the new install script above which installs an extension to disable the registration wizard.

Other answers:

3- by copying a folder OpenOffice.org2 into the profile of the user at session start. The folder is a copy made from a user profile which user has done the registration. Just cut and paste the snippet below and place it into your logon.bat.


rem ### ### ### ### ### ### ### ### ### ### ### ### ### 
rem
rem 	OPENOFFICE 2.2
rem
rem ### ### ### ### ### ### ### ### ### ### ### ### ### 


IF NOT EXIST "%PROGRAMFILES%\OpenOffice.org 2.2\program\soffice.exe" GOTO OOO2END
IF EXIST "%APPDATA%\OpenOffice.org2\" GOTO OOO2END
xcopy /v /s /i /e /h /c /y /q "\\server\netlogon\OpenOffice.org2" "%APPDATA%\OpenOffice.org2"
:OOO2END