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

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
m
(enhance section on customizations)
Line 61: Line 61:
 
== Customizing ==
 
== Customizing ==
  
According to the [[http://documentation.openoffice.org/setup_guide2/2.x/en/SETUP_GUIDE.pdf OpenOffice.org 2 setup guide]], you can customize an installation using Microsoft's [[http://support.microsoft.com/default.aspx/kb/255905/EN-US/? Orca]] tool.
+
According to the [[http://documentation.openoffice.org/setup_guide2/2.x/en/SETUP_GUIDE.pdf OpenOffice.org 2 setup guide]], you can customize an automated installation using Microsoft's [[http://support.microsoft.com/default.aspx/kb/255905/EN-US/? Orca]] tool.
 +
 
 +
However, certain customizations are possible without Orca.  For example, [[http://www.appdeploy.com/packages/detail.asp?id=497 AppDeploy.com]] gives the tip for making OpenOffice.org the default program for Microsoft Office file types:
 +
 
 +
msiexec /qb! /i openofficeorg19122.msi ALLUSERS=1 SELECT_WORD=1 SELECT_EXCEL=1 SELECT_POWERPOINT=1
  
''Question''  Is there an easy way to make OpenOffice.org the default application for Word, Excel, and PowerPoint documents?
 
  
 
== Alternative install ==
 
== Alternative install ==

Revision as of 22:16, 7 July 2006

Basics

First, download OOo_2.0_Win32Intel_install.exe from OpenOffice.org Website.
Execute the downloaded installer - it creates a directory named OpenOfficeorg 2.0 Installation Files, which includes several files. The ones you need are:

openofficeorg1.cab
openofficeorg2.cab
openofficeorg20.msi
openofficeorg3.cab
openofficeorg4.cab

excerpt from package.xml, adjust your paths accordingly:

<package id="ooo-2.x" 
 name="OpenOffice.org 2.x" 
 revision="1" 
 reboot="false" 
 priority="0">
 <check type="uninstall" condition="exists" path="OpenOffice.org 2.0" />
 <install cmd='msiexec /qn /i "%SOFTWARE%\OOo_2.0\openofficeorg20.msi" ALLUSERS=1 SELECT_WORD=1 SELECT_EXCEL=1 SELECT_POWERPOINT=1' />
 <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}' />

</package>


The uninstall ID can be checked from the file setup.ini in the directory OpenOfficeorg 2.0 Installation Files

Question Does "uninstall ID" mean "{CE91484F-B0CF-4494-8BA6-7242EE913626}" or "OpenOffice.org 2.0"?

Localized builds

The best way to install a localized build (in my opinion) is to also install localized language pack. Then the user can choose if he wants to have the English interface or the localized one. An example for Estonian language pack:

<package id="ooo-2.x-et" 
 name="OpenOffice.org 2.0 Language Pack (Eesti)" 
 revision="1" 
 reboot="false" 
 priority="0">
 <check type="uninstall" condition="exists" path="OpenOffice.org 2.0 Language Pack (Eesti)" />
 <install cmd='"msiexec" /i \\Server\wpkg\pkg\OOo_2.0\langpack_et\openofficeorg20.msi /qn'>
  <exit code="0" />
 </install>
 <remove cmd='"msiexec" /x{9F5CAB24-B19E-42FD-AF8D-774C5C36A7FB} /qn' />
 <upgrade cmd="" />
</package>



User Note: I tried this out and found that it didn't add the short cuts in the start menu... instead it was on the root of C. So I'm currentily tring "OpenOfficeorg 2.0 Installation Files\setup.exe" /quiet" for the install. But the above remove scripts seems to work well




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 openofficeorg19122.msi ALLUSERS=1 SELECT_WORD=1 SELECT_EXCEL=1 SELECT_POWERPOINT=1


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 1.9.122" />
<install cmd='cmd /c mkdir "%TEMP%\ooo"' />
<install cmd='"c:\Program Files\7-Zip\7z.exe" e -y -o"%TEMP%"\ooo \\server\share\openoffice2\OOo_1.9.122_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}" />
<upgrade cmd= />
</package>