Difference between revisions of "OpenOffice.org 2.x"
(→Open questions) |
(→Basics) |
||
Line 25: | Line 25: | ||
</package> | </package> | ||
+ | |||
+ | ''Note'' If you install i.e. OO 2.2.1 it also announces itself as OO 2.2 in the Softwarerepository. To know if it got installed, replace the <check type="uninstall"...> with | ||
+ | <check type="registry" condition="exists" path="HKLM\SOFTWARE\OpenOffice.org\OpenOffice.org\2.2\{E4C7B3EF-B3DB-4BB6-A812-E8FAE47534D3}\INSTALLLOCATION" /> | ||
+ | |||
+ | The long hexnumber ist 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 ''OpenOfficeorg 2.0 Installation Files'' | ||
''Question'' Does "uninstall ID" mean "{CE91484F-B0CF-4494-8BA6-7242EE913626}" or "OpenOffice.org 2.0"? | ''Question'' Does "uninstall ID" mean "{CE91484F-B0CF-4494-8BA6-7242EE913626}" or "OpenOffice.org 2.0"? | ||
+ | |||
+ | ''Answer'' The long hex number. | ||
== Localized builds == | == Localized builds == |
Revision as of 07:56, 21 September 2007
Basics
First, download the OpenOffice installer (i.e. OOo_2.0_Win32Intel_install.exe) from OpenOffice.org Website.
Run the installer - it creates a directory named OpenOffice.org 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>
Note If you install i.e. OO 2.2.1 it also announces itself as OO 2.2 in the Softwarerepository. To know if it got installed, replace the <check type="uninstall"...> with
<check type="registry" condition="exists" path="HKLM\SOFTWARE\OpenOffice.org\OpenOffice.org\2.2\{E4C7B3EF-B3DB-4BB6-A812-E8FAE47534D3}\INSTALLLOCATION" />
The long hexnumber ist 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
Question Does "uninstall ID" mean "{CE91484F-B0CF-4494-8BA6-7242EE913626}" 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 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 %SOFTWARE%\OOo_2.0\langpack_et\openofficeorg20.msi /qn' /> <remove cmd='"msiexec" /x{9F5CAB24-B19E-42FD-AF8D-774C5C36A7FB} /qn' /> </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 trying "OpenOffice.org 2.0 Installation Files\setup.exe" /quiet" for the install. But the above remove script 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 openofficeorg20.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 2.0" /> <install cmd='cmd /c mkdir "%TEMP%\ooo"' /> <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- 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