Difference between revisions of "Go-OpenOffice.org"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(New page: Silent installer for [http://go-oo.org/download/ Go-OpenOffice.org] Language pack can optionally be installed and made default, by setting it as default in newly created profile. Existing...)
 
m (Default Language Pack)
Line 51: Line 51:
  
 
==Default Language Pack==
 
==Default Language Pack==
*Get language pack from official [www.openoffice.org OpenOffice.org v3] release or download [http://go-oo.org/download/ Go-OpenOffice.org] native one if it exists.
+
*Get language pack from official [http://www.openoffice.org OpenOffice.org v3] release or download [http://go-oo.org/download/ Go-OpenOffice.org] native one if it exists.
 
*To make a language pack default
 
*To make a language pack default
 
**Create directory: '''%SOFTWARE%\Go-OpenOffice.org v3\langpack\preset\registry\data\org\openoffice'''
 
**Create directory: '''%SOFTWARE%\Go-OpenOffice.org v3\langpack\preset\registry\data\org\openoffice'''

Revision as of 16:58, 2 January 2009

Silent installer for Go-OpenOffice.org

Language pack can optionally be installed and made default, by setting it as default in newly created profile. Existing Openoffice v3 profiles are probably (!) not affected by this setting.

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

<packages>
	<package 
		id="openoffice_v3" 
		name="Go-OpenOffice.org v3" 
		revision="30019" 
		reboot="false" 
		priority="0">

		<check type="uninstall" condition="exists" path="OpenOffice.org 3.0" />

		<install cmd='msiexec /qn /i "%SOFTWARE%\Go-OpenOffice.org v3\openofficeorg30.msi"' />
		<upgrade cmd='msiexec /qn /i "%SOFTWARE%\Go-OpenOffice.org v3\openofficeorg30.msi"' />
		<remove  cmd='msiexec /qn /x "%SOFTWARE%\Go-OpenOffice.org v3\openofficeorg30.msi"' />
	</package>

	<package 
		id="openoffice_v3_sl_langpack" 
		name="OpenOffice Slovenian Language Pack" 
		revision="1" 
		reboot="false" 
		priority="0">

		<depends package-id="openoffice_v3" />

		<check type="uninstall" condition="exists" path="OpenOffice.org 3.0 Language Pack (Slovenian)" />

		<install cmd='msiexec /qn /i "%SOFTWARE%\Go-OpenOffice.org v3\langpack\openofficeorg30.msi"' />
		<install cmd='%COMSPEC% /c xcopy /e /i /h /r /y "%SOFTWARE%\Go-OpenOffice.org v3\langpack\preset" "%PROGRAMFILES%\OpenOffice.org 3\Basis\presets"'>
			<exit code="any" />
		</install>
		
		<upgrade cmd='msiexec /qn /i "%SOFTWARE%\Go-OpenOffice.org v3\langpack\openofficeorg30.msi"' />
		<upgrade cmd='%COMSPEC% /c xcopy /e /i /h /r /y "%SOFTWARE%\Go-OpenOffice.org v3\langpack\preset" "%PROGRAMFILES%\OpenOffice.org 3\Basis\presets"'>
			<exit code="any" />
		</upgrade>

		<remove  cmd='msiexec /qn /x "%SOFTWARE%\Go-OpenOffice.org v3\langpack\openofficeorg30.msi"' />
		<remove cmd='%COMSPEC% /c rmdir /s /q "%PROGRAMFILES%\OpenOffice.org 3\Basis\presets\registry"'>
			<exit code="any" />
		</remove>
	</package>
</packages>

Default Language Pack

  • Get language pack from official OpenOffice.org v3 release or download Go-OpenOffice.org native one if it exists.
  • To make a language pack default
    • Create directory: %SOFTWARE%\Go-OpenOffice.org v3\langpack\preset\registry\data\org\openoffice
      • Create Setup.xcu inside (see below)
    • Create directory: %SOFTWARE%\Go-OpenOffice.org v3\langpack\preset\registry\data\org\openoffice\Office
      • Create Linguistic.xcu inside (see below)

Setup.xcu

<?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="Configuration">
  <prop oor:name="ooLastVersionTouched" oor:type="xs:string">
   <value>3.0.0</value>
  </prop>
 </node>
 <node oor:name="L10N">
  <prop oor:name="ooLocale" oor:type="xs:string">
   <value>sl</value>
  </prop>
  <prop oor:name="ooSetupCurrency" oor:type="xs:string">
   <value>EUR-sl-SI</value>
  </prop>
  <prop oor:name="ooSetupSystemLocale" oor:type="xs:string">
   <value>sl-SI</value>
  </prop>
 </node>
</oor:component-data>

Linguistic.xcu

<?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="Linguistic" oor:package="org.openoffice.Office">
 <node oor:name="General">
  <prop oor:name="DefaultLocale" oor:type="xs:string">
   <value>sl-SI</value>
  </prop>
  <prop oor:name="UILocale" oor:type="xs:string">
   <value>sl</value>
  </prop>
 </node>
</oor:component-data>