577
edits
Changes
Added LibreOffice 3.4.3, uninstall strings and other improvements
OpenOffice has a [http://wiki.services.openoffice.org/wiki/Documentation/How_Tos/Automatic_Installation_on_Windows#MSI_Properties wiki page with MSI properties], most of which apply to LibreOffice.
=== Uninstall Strings ===
Get the uninstall string for your particular language from 'productcode' in setup.ini.
==== LibreOffice ====
===== English (GB) =====
* 3.4.3 - 7821C7B2-7E21-4CF3-925B-58B6A8BC6311
* 3.4.2 - F1161EC6-7CC1-4D9F-83F6-8839C17019C2
* 3.4.1 - 528882DF-7239-436F-811B-F48F4179D017
==== LibreOffice Help Pack ====
===== English (GB) =====
* 3.4.3 - 522C02C1-B575-4E1E-81CF-FBAEA22B6532
* 3.4.2 - 31FCEE1C-7E49-4B2F-9376-617151B1BA4D
* 3.4.1 - C41B221F-FB0D-4B1E-9048-2A4D40BDB202
== 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).
=== 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 ==