Changes

Jump to: navigation, search

LibreOffice

6,552 bytes removed, 12:27, 6 March 2014
Therse versions are too old to be helpful
exit /B %EXIT_CODE%
</source>
 
== LibreOffice 3.4.x ==
 
Unpack the LibreOffice installer (.exe) and help file installer (.exe) with an archive tool (for example 7-zip, or using the installer itself).
 
Copy the unpacked files to your server.
 
If required, for example to change installer options or to remove unnecessary languages, modify the MSI file or create a transform (.mst) file using an MSI editor such as Microsoft ORCA or InstEd. The main interesting sections to configure in the MSI are 'Property' and 'Feature'.
 
The exact version number is gleaned from setup.ini.
 
For the <remove> tags, these packages use the English (GB) uninstall string. Either use the uninstall string for your particular language, gleaned from 'productcode' in setup.ini, or leave the .msi file for the particular version on your server and use that (not as straight forward).
 
There appears to be a large penalty for not removing unwanted languages. Start up time, even with quick-starter enabled is very long. Removing languages improves this tremendously.
 
=== LibreOffice ===
 
<source lang="xml">
<package
id="libreoffice"
name="LibreOffice"
revision="4"
reboot="false"
priority="3">
 
<depends
package-id="sun-jre" />
 
<check
type="uninstall"
condition="versiongreaterorequal"
path="LibreOffice .+"
value="3.4.3" />
 
<install
cmd='msiexec /qb /package "%SOFTWARE%\libreoffice\libreoffice34.msi" ALLUSERS=1 CREATEDESKTOPLINK=0 REGISTER_ALL_MSO_TYPES=1 ISCHECKFORPRODUCTUPDATE=0 INSTALLLOCATION="%PROGRAMFILES%\LibreOffice\"' />
<!-- swriter.exe fails to run because no Microsoft Visual C++ 2008 Redistributable, which LibreOffice should install but isn't, so we install it, but you may not see this issue -->
<install
cmd='"%SOFTWARE%\libreoffice\redist\vcredist_x86.exe" /q' />
 
<upgrade
cmd='msiexec /qb /package "%SOFTWARE%\libreoffice\libreoffice34.msi" ALLUSERS=1 CREATEDESKTOPLINK=0 REGISTER_ALL_MSO_TYPES=1 ISCHECKFORPRODUCTUPDATE=0 INSTALLLOCATION="%PROGRAMFILES%\LibreOffice\"' />
 
<remove
cmd="msiexec /qb /uninstall {7821C7B2-7E21-4CF3-925B-58B6A8BC6311}" />
</package>
</source>
 
 
=== LibreOffice Help Pack ===
 
<source lang="xml">
<package
id="libreoffice-help-pack"
name="LibreOffice Help Pack"
revision="4"
reboot="false"
priority="3">
 
<depends
package-id="libreoffice" />
 
<check
type="uninstall"
condition="exists"
path="LibreOffice 3.4 Help Pack (English (United Kingdom))" />
 
<install
cmd='msiexec /qb /package "%SOFTWARE%\libreoffice-help-pack\libreoffice34.msi" INSTALLLOCATION="%PROGRAMFILES%\LibreOffice\"' />
 
<upgrade
cmd='msiexec /qb /package "%SOFTWARE%\libreoffice-help-pack\libreoffice34.msi" INSTALLLOCATION="%PROGRAMFILES%\LibreOffice\"' />
 
<remove
cmd="msiexec /qb /uninstall {522C02C1-B575-4E1E-81CF-FBAEA22B6532}" />
</package>
</source>
 
== LibreOffice 3.3.x ==
This is based on the [[OpenOffice.org_3.x#OpenOffice.org_3.2.1|OpenOffice 3.2.1]] package script.
 
Unpack the LibreOffice installer (.exe) and help file installer (.exe) with an archive tool (for example 7-zip, or using the installer itself).
 
Copy the unpacked files to your server.
 
If required, for example to change installer options or to remove unnecessary languages, modify the MSI file or create a transform (.mst) file using an MSI editor such as Microsoft ORCA or InstEd. The main interesting sections to configure in the MSI are 'Property' and 'Feature'.
 
 
=== LibreOffice ===
 
<source lang="xml">
<package id="libreoffice" name="LibreOffice" revision="3" reboot="false" priority="10">
<variable name="PKG_VERSION" value="3.3.2" />
 
<!-- 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%\LibreOffice\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%\LibreOffice\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%\LibreOffice\LibO_%PKG_VERSION%_Win_x86_install_multi\libreoffice33.msi"' />
</package>
</source>
 
 
=== LibreOffice Help Pack ===
 
<source lang="xml">
 
<package id="libreoffice_help" name="LibreOffice Help Pack" revision="2" reboot="false" priority="10">
<variable name="PKG_VERSION" value="3.3.2" />
<variable name="INS_VERSION" value="3.3" />
<variable name="SHORT_LANG" value="cs" />
<variable name="LANG" value="Czech" />
 
<depends package-id="libreoffice" />
 
<check type="uninstall" condition="exists" path="LibreOffice %INS_VERSION% Help Pack (%LANG%)" />
 
<install cmd='msiexec /qn /I "%SOFTWARE%\LibreOffice\LibO_%PKG_VERSION%_Win_x86_helppack_%SHORT_LANG%\libreoffice33.msi"' />
<upgrade cmd='msiexec /qn /I "%SOFTWARE%\LibreOffice\LibO_%PKG_VERSION%_Win_x86_helppack_%SHORT_LANG%\libreoffice33.msi"' />
 
<remove cmd='msiexec /qn /X "%SOFTWARE%\LibreOffice\LibO_%PKG_VERSION%_Win_x86_helppack_%SHORT_LANG%\libreoffice33.msi"' />
 
</package>
</source>
 
Note: For the <remove> tag I have used the .msi file itself to get rid of the fact that the uninstall strings in HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall are language dependent. But this requires you to keep the .msi file on the server for removing software. You may prefer to use remove strings such as:
 
<source lang="xml">
<!-- language dependent msiexec remove strings (here the czech ones) -->
<remove cmd='msiexec /qn /X{CEE2613D-3B53-4447-BA2D-E88C08272581}' />
<remove cmd='msiexec /qn /X{04A88043-281E-4E32-B878-343B51F56F2E}' />
</source>
 
You will have to use the string relevant to your language. These strings are held in setup.ini, under 'productcode'.
[[category:Silent Installers]]
[[category:OpenOffice]]
577
edits

Navigation menu