Difference between revisions of "LibreOffice"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(add a few infos (not finished yet))
(Add the script)
Line 13: Line 13:
 
Additionaly you may want to install also help package for your language like :
 
Additionaly you may want to install also help package for your language like :
 
* LibO_3.x.x_Win_x86_helppack_en-US.exe 8.6
 
* LibO_3.x.x_Win_x86_helppack_en-US.exe 8.6
 
  
 
=== About Java ===
 
=== About Java ===
Line 20: Line 19:
  
 
=== Warning about OpenOffice ===
 
=== Warning about OpenOffice ===
LibreOffice will replace previous OpenOffice installations (up to 3.3.0 version).
+
Actualy LibreOffice 3.3.1 do not replace previous OpenOffice installations (but LibreOffice 3.3 bata was doing so).
Keep this in mind in your package management.
+
Keep this in mind in your package management. You may like to remove OpenOffice before installing LibreOffice.
  
If you have a previous OpenOffice package you have three choice :
+
=== Common Install Options ===
* Remove it from profile so it's uninstalled first
+
 
* Remove it from profile and delete the openoffice.xml file from your server so it is unlisted as a package on the clients (but not uninstalled) by the WPKG zombi feature. (my prefered choice)
+
* SELECT_WORD (default=0) : Use LibreOffice as the default application for MS Word files.
* Or, you can simply continue to use the "openoffice" name for your LibreOffice package.
+
* SELECT_EXCEL (default=0) : Use LibreOffice as the default application for MS Excel files.
 +
* SELECT_POWERPOINT (default=0) : Use LibreOffice as the default application for MS Powerpoint files.
 +
* ALLUSERS (default=1) : Install for all users
 +
* ISCHECKFORPRODUCTUPDATE (default=1) : Check for updates
 +
* CREATEDESKTOPLINK  (default=1) : Create desktop shortcuts
 +
 
 +
OpenOffice has a [http://wiki.services.openoffice.org/wiki/Documentation/How_Tos/Automatic_Installation_on_Windows|wiki page] about this. Actualy most of this options are nearly the same for LibreOffice.
  
  
Line 32: Line 37:
 
This is based on the [[OpenOffice.org_3.x#OpenOffice.org_3.2.1|OpenOffice 3.2.1]] package script.
 
This is based on the [[OpenOffice.org_3.x#OpenOffice.org_3.2.1|OpenOffice 3.2.1]] package script.
  
First you need to unpack .exe installer with a archive tool like 7zip and copy the obtained folder on your server.
+
First you need to unpack .exe installer with a archive tool like 7zip or with the installer itself.
At this stage you can modify it with the Microsoft ORCA tool or [http://www.instedit.com/ InstEd].
+
Then, copy the obtained folder on your server.
Or you can with the same tool creta a Transform file to use with the .msi installer. in my case i have
+
At this stage you can modify it with the Microsoft ORCA tool (or InstEd). Alternaly you can create a Transform file  
created a Transform to install only ''Writer'', ''Calc'', ''Impress'' and the french language.
+
to use with the .msi installer. For example to change install options or to remove unecessary languages.
 +
 
 +
With the ORCA tool the main instersting sections are 'Property' and 'Feature'.
 +
 
 +
<source lang="xml">
 +
<?xml version="1.0" encoding="UTF-8"?>
 +
 
 +
<!-- LibreOffice - Office suite - http://www.libreoffice.org/ -->
 +
 
 +
<packages>
 +
  <package id="libreoffice" name="LibreOffice" revision="1" reboot="false" priority="10">
 +
    <variable name="PKG_VERSION" value="3.3.1" />
 +
 
 +
    <!-- LibreOffice removed main programs from full install -->
 +
    <variable name="REMOVEPROGS" value="gm_p_Base,gm_p_Base_Bin,gm_p_Math,gm_p_Math_Bin" />
 +
    <!-- LibreOffice removed options from full install -->
 +
    <variable name="REMOVEOPTIONS" value="gm_o_Testtool,gm_o_Xsltfiltersamples,gm_o_Pyuno,gm_o_jf_Palm,gm_o_jf_Pocketpc,gm_o_Quickstart,gm_o_Extensions_PRESENTER_SCREEN,gm_o_Extensions_REPORTDESIGN,gm_o_Extensions_MEDIAWIKI" />
 +
    <!-- Company Name option -->
 +
    <variable name="CNAME" value="Our Company" />
 +
 
 +
    <!-- Some LibreOffice functionalities depends on Java -->
 +
    <depends package-id="java" />
 +
 
 +
    <check type="uninstall" condition="versiongreaterorequal" path="LibreOffice .+" value="%PKG_VERSION%" />
 +
 
 +
    <install cmd='msiexec /qn /I "%SOFTWARE%\documentfoundation\LibO_%PKG_VERSION%_Win_x86_install_multi\libreoffice33.msi" COMPANYNAME="%CNAME%" USERNAME="" ISCHECKFORPRODUCTUPDATE=0 CREATEDESKTOPLINK=0 ADDLOCAL=ALL REMOVE=%REMOVEPROGS%,%REMOVEOPTIONS%' />
 +
 
 +
    <upgrade cmd='msiexec /qn /I "%SOFTWARE%\documentfoundation\LibO_%PKG_VERSION%_Win_x86_install_multi\libreoffice33.msi" COMPANYNAME="%CNAME%" USERNAME="" ISCHECKFORPRODUCTUPDATE=0 CREATEDESKTOPLINK=0 ADDLOCAL=ALL REMOVE=%REMOVEPROGS%,%REMOVEOPTIONS%' />
 +
 
 +
    <remove cmd='msiexec /qn /X "%SOFTWARE%\documentfoundation\LibO_%PKG_VERSION%_Win_x86_install_multi\libreoffice33.msi"' />
 +
  </package>
 +
</packages>
 +
</source>
  
 +
Note: For the <remove> tag i have use the .msi file itself to get rid of the fact than the uninstall strings in HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall is language dependent. But this force you to keep the .msi on the server for removing software. You may prefer a remove string like :
  
 +
<source lang="xml">
 +
<!-- language dependent msiexec remove string (here the french one) -->
 +
<remove cmd='msiexec /qn /X {DFFC0648-BC4B-47D1-93D2-6CA6B9457641}' />
 +
</source>
  
 +
You will have to use the string relevant to your language.
  
 
[[category:Silent Installers]]
 
[[category:Silent Installers]]
 
[[category:OpenOffice]]
 
[[category:OpenOffice]]

Revision as of 12:06, 15 March 2011

LibreOffice is a fork of OpenOffice managed by the Document Foundation. For more infos see here


Get install files

You need to download LibreOffice from here

You need to download first :

  • LibO_3.x.x_Win_x86_install_multi.exe

or

  • LibO_3.x.x_Win_x86_install_all_lang.exe (for uncommon languages)

Additionaly you may want to install also help package for your language like :

  • LibO_3.x.x_Win_x86_helppack_en-US.exe 8.6

About Java

Java Runtime Environment is a software prerequiste for LibreOffice, see the relevant WPKG installer example. It's the reason why i have add it as a <depends> package.

Warning about OpenOffice

Actualy LibreOffice 3.3.1 do not replace previous OpenOffice installations (but LibreOffice 3.3 bata was doing so). Keep this in mind in your package management. You may like to remove OpenOffice before installing LibreOffice.

Common Install Options

  • SELECT_WORD (default=0) : Use LibreOffice as the default application for MS Word files.
  • SELECT_EXCEL (default=0) : Use LibreOffice as the default application for MS Excel files.
  • SELECT_POWERPOINT (default=0) : Use LibreOffice as the default application for MS Powerpoint files.
  • ALLUSERS (default=1) : Install for all users
  • ISCHECKFORPRODUCTUPDATE (default=1) : Check for updates
  • CREATEDESKTOPLINK (default=1) : Create desktop shortcuts

OpenOffice has a page about this. Actualy most of this options are nearly the same for LibreOffice.


LibreOffice 3.3.1

This is based on the OpenOffice 3.2.1 package script.

First you need to unpack .exe installer with a archive tool like 7zip or with the installer itself. Then, copy the obtained folder on your server. At this stage you can modify it with the Microsoft ORCA tool (or InstEd). Alternaly you can create a Transform file to use with the .msi installer. For example to change install options or to remove unecessary languages.

With the ORCA tool the main instersting sections are 'Property' and 'Feature'.

<?xml version="1.0" encoding="UTF-8"?>

<!-- LibreOffice - Office suite - http://www.libreoffice.org/ -->

<packages>
  <package id="libreoffice" name="LibreOffice" revision="1" reboot="false" priority="10">
    <variable name="PKG_VERSION" value="3.3.1" />

    <!-- LibreOffice removed main programs from full install -->
    <variable name="REMOVEPROGS" value="gm_p_Base,gm_p_Base_Bin,gm_p_Math,gm_p_Math_Bin" />
    <!-- LibreOffice removed options from full install -->
    <variable name="REMOVEOPTIONS" value="gm_o_Testtool,gm_o_Xsltfiltersamples,gm_o_Pyuno,gm_o_jf_Palm,gm_o_jf_Pocketpc,gm_o_Quickstart,gm_o_Extensions_PRESENTER_SCREEN,gm_o_Extensions_REPORTDESIGN,gm_o_Extensions_MEDIAWIKI" />
    <!-- Company Name option -->
    <variable name="CNAME" value="Our Company" />

    <!-- Some LibreOffice functionalities depends on Java -->
    <depends package-id="java" />

    <check type="uninstall" condition="versiongreaterorequal" path="LibreOffice .+" value="%PKG_VERSION%" />

    <install cmd='msiexec /qn /I "%SOFTWARE%\documentfoundation\LibO_%PKG_VERSION%_Win_x86_install_multi\libreoffice33.msi" COMPANYNAME="%CNAME%" USERNAME="" ISCHECKFORPRODUCTUPDATE=0 CREATEDESKTOPLINK=0 ADDLOCAL=ALL REMOVE=%REMOVEPROGS%,%REMOVEOPTIONS%' />

    <upgrade cmd='msiexec /qn /I "%SOFTWARE%\documentfoundation\LibO_%PKG_VERSION%_Win_x86_install_multi\libreoffice33.msi" COMPANYNAME="%CNAME%" USERNAME="" ISCHECKFORPRODUCTUPDATE=0 CREATEDESKTOPLINK=0 ADDLOCAL=ALL REMOVE=%REMOVEPROGS%,%REMOVEOPTIONS%' />

    <remove cmd='msiexec /qn /X "%SOFTWARE%\documentfoundation\LibO_%PKG_VERSION%_Win_x86_install_multi\libreoffice33.msi"' />
  </package>
</packages>

Note: For the <remove> tag i have use the .msi file itself to get rid of the fact than the uninstall strings in HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall is language dependent. But this force you to keep the .msi on the server for removing software. You may prefer a remove string like :

<!-- language dependent msiexec remove string (here the french one) -->
<remove cmd='msiexec /qn /X {DFFC0648-BC4B-47D1-93D2-6CA6B9457641}' />

You will have to use the string relevant to your language.