Skip to content

start:

Root / faqinstall / faqinstall -- [    -    Next ]

How do I perform a silent install?


In corporate environments, when rolling out OpenOffice.org to many machines, the easiest way to do it is via a silent install.  OpenOffice.org 2.0 is installed using a standard MSI installer package. In a Windows environment follow the steps below:

Simple method - no customisation of the install

1 download and install the program making a note of the location of the setup files
2 copy the setup files to a network share or drive
2 create a batch file or login script with the following command
    msiexec /qn /i n:\openoffice\openofficeorg20.msi
    replace the path n:\openoffice\ with the correct location eg \\myserver\\installs\openoffice\

on windows 98 or NT you will need to download the msiexec installer
more details on MSI install options are located here

See the post install section below for skipping the registration dialog

Detailed method - setting defaults

You can modify the properties of the OpenOffice.org installation by using two tools included in the Windows Installer SDK:
- Orca, which allows you to open vviewer.msi and make changes to the tables in the msi.
- Msitran.exe, which allows you to generate a new transform (MST) file based on the changed tables in the msi.

You can download the complete Windows Installer SDK from the Microsoft Download Center. The Windows Installer SDK includes the Msi.chm, which contains additional information about creating Windows Installer transform files.

See here: http://support.microsoft.com/default.aspx?scid=kb;en-us;255905

To modify the OpenOffice msi by creating a transform file:

1. Open Orca.

2. In Orca, click File, and then click Open. Navigate to the location where you saved OpenOffice20.msi.
The Tables column displays the names of the tables in the MSI on the left. The window on the right displays the properties associated with those tables.
Navigate to the Property table. You can add properties using the right mouse button and make changes to properties in the Property table. For this example we decide to add the properties SELECT_WORD, SELECT_EXCEL, SELECT_POWERPOINT and ALLUSERS all with the value 1 setted to correctly associate this extensions to OpenOffice.

3. After modifying the property values, click File, and then click Save As and save the msi file to a new name in the same directory where OpenOffice20.msi is saved.

4. Copy Msitran.exe from the location where you installed it, to the folder where the two msi files are located. By default, Msitran.exe is installed on your computer in the \\Program Files\MsiIntel.SDK\Tools folder.

5. Open a command prompt, and navigate to the folder where OpenOffice20.msi, your modified msi, and Msitran.exe are located.

6. Create a transform file by typing msitran.exe, the name of the original OpenOffice msi, the name of your newly created MSI, and the name you want to give to the transform file at the command prompt. For example:

msitran.exe –g OpenOffice20.msi OpenOffice20-test.msi MyTransform.mst

7. Press Enter to create the new transform file then exit the command prompt. Msitran.exe creates the transform file and saves it in the same folder as the two msi files.

Now you can apply the so created transform file to your administrative installation of OpenOffice, or you can use it if you are deploying the OpenOffice.org using Active Directory and GPO adding the transform file in the related section. To apply to an administrative installation use this:

Msiexec /a n:\administrative installation point\OpenOffice20.msi /t MyTransform.mst

Post install - skip registration dialog

After a silent install replacing the setup.xcu file normally located in C:\Program Files\OpenOffice.org 2.0\share\registry\data\org\openoffice\setup.xcu on windows and $install/share/registry/data/org/openoffice/Setup.xcu in linux
will allow you to skip the registration step.

Here is a sample setup.xcu file with default ms file types and registration disabled

<?xml version="1.0" encoding="UTF-8"?>
<oor:component-data xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:name="Setup" oor:package="org.openoffice">
<node oor:name="L10N">
<prop oor:name="ooLocale" oor:type="xs:string">
<value>cs</value>
</prop>
</node>
<node oor:name="Office">
<prop oor:name="ooSetupInstCompleted" oor:type="xs:boolean">
<value>true</value>
</prop>
<prop oor:name="LicenseAcceptDate" oor:type="xs:string">
<value>2005-10-17T12:36:36</value>
</prop>
<prop oor:name="FirstStartWizardCompleted" oor:type="xs:boolean">
<value>true</value>
</prop>
<node oor:name="Factories">
<node oor:name="com.sun.star.text.TextDocument">
<prop oor:name="ooSetupFactoryWindowAttributes" oor:type="xs:string">
<value>48,67,760,492;4;0,0,0,0;</value>
</prop>
<prop oor:name="ooSetupFactoryDefaultFilter" oor:type="xs:string">
<value>MS Word 97</value>
</prop>
</node>
<node oor:name="com.sun.star.sheet.SpreadsheetDocument">
<prop oor:name="ooSetupFactoryWindowAttributes" oor:type="xs:string">
<value>48,67,760,509;4;0,0,0,0;</value>
</prop>
<prop oor:name="ooSetupFactoryDefaultFilter" oor:type="xs:string">
<value>MS Excel 97</value>
</prop>
</node>
<node oor:name="com.sun.star.presentation.PresentationDocument">
<prop oor:name="ooSetupFactoryDefaultFilter" oor:type="xs:string">
<value>MS PowerPoint 97</value>
</prop>
</node>
</node>
</node>
</oor:component-data>

Root / faqinstall / faqinstall -- [    -    Next ]