Difference between revisions of "OpenOffice.org 1.1.5"
From WPKG | Open Source Software Deployment and Distribution
m |
m |
||
| Line 9: | Line 9: | ||
| − | response.txt:< | + | <code>response.txt</code>: |
| − | [Environment] | + | <source lang="inf"> |
| − | InstallationMode=INSTALL_NORMAL | + | [Environment] |
| − | InstallationType=STANDARD | + | InstallationMode=INSTALL_NORMAL |
| − | DestinationPath=C:\Programme\OpenOffice | + | InstallationType=STANDARD |
| − | StartProcedure=MyStartProc | + | DestinationPath=C:\Programme\OpenOffice |
| − | EndProcedure= | + | StartProcedure=MyStartProc |
| − | Languagelist=49 | + | EndProcedure= |
| − | Migration=No | + | Languagelist=49 |
| + | Migration=No | ||
| − | [Java] | + | [Java] |
| − | JavaSupport=preinstalled_or_none | + | JavaSupport=preinstalled_or_none |
| − | [Procedures] | + | [Procedures] |
| − | Sub MyStartProc | + | Sub MyStartProc |
| − | SetUserCompanyName("My Company") | + | SetUserCompanyName("My Company") |
| − | HideSetup | + | HideSetup |
| − | End Sub | + | End Sub |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| + | [Windows_Desktop_Integration] | ||
| + | Register4MSWord=True | ||
| + | Register4MSExcel=True | ||
| + | Register4MSPowerPoint=True | ||
| + | RegisterAsDefaultHTMLEditor=True | ||
| + | </source> | ||
---- | ---- | ||
| − | Here is the deinstall response-file:< | + | Here is the deinstall response-file: |
| − | response_deinst.txt | + | <source lang="inf"> |
| − | [Environment] | + | response_deinst.txt |
| − | InstallationMode=DEINSTALL | + | [Environment] |
| − | DestinationPath=C:\Programme\OpenOffice | + | InstallationMode=DEINSTALL |
| − | StartProcedure=MyStartProc | + | DestinationPath=C:\Programme\OpenOffice |
| − | EndProcedure= | + | StartProcedure=MyStartProc |
| − | Languagelist=49 | + | EndProcedure= |
| − | + | Languagelist=49 | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| + | [Procedures] | ||
| + | Sub MyStartProc | ||
| + | HideSetup | ||
| + | End Sub | ||
| + | </source> | ||
---- | ---- | ||
Here comes install_oo.bat, which copies the Starmenuentries from the installing user to All Users.<br> | Here comes install_oo.bat, which copies the Starmenuentries from the installing user to All Users.<br> | ||
| − | < | + | |
| − | install_oo.bat:< | + | <code>install_oo.bat:</code> |
| − | + | <source lang="dos"> | |
| − | %SOFTWARE%\oo\program\setup.exe -alluser -r:%SOFTWARE%\oo\response.txt | + | %SOFTWARE%\oo\program\setup.exe -alluser -r:%SOFTWARE%\oo\response.txt |
| − | md "%ALLUSERSPROFILE%\STARTM~1\Programme\OpenOffice.org" | + | md "%ALLUSERSPROFILE%\STARTM~1\Programme\OpenOffice.org" |
| − | copy /Y "%HOMEDRIVE%\%HOMEPATH%\STARTM~1\Programme\OpenOffice.org 1.1.5"\* "%ALLUSERSPROFILE%\STARTM~1\Programme\OpenOffice.org\"< | + | copy /Y "%HOMEDRIVE%\%HOMEPATH%\STARTM~1\Programme\OpenOffice.org 1.1.5"\* "%ALLUSERSPROFILE%\STARTM~1\Programme\OpenOffice.org\" |
| + | </source> | ||
<br> | <br> | ||
<br> | <br> | ||
| Line 67: | Line 70: | ||
and here comes the package.xml entry: | and here comes the package.xml entry: | ||
| − | + | <source lang="xml"> | |
| + | <package id="oo115" name="OpenOffice 1.1.5" priority="2" reboot="false" revision="1"> | ||
<check condition="exists" path="%PROGRAMFILES%\OpenOffice\program\soffice.exe" type="file"></check> | <check condition="exists" path="%PROGRAMFILES%\OpenOffice\program\soffice.exe" type="file"></check> | ||
<install cmd="%SOFTWARE%\oo\install_oo.bat" /> | <install cmd="%SOFTWARE%\oo\install_oo.bat" /> | ||
<remove cmd="%PROGRAMFILES%\OpenOffice\program\setup.exe -r:%SOFTWARE%\oo\response_deinst.txt"></remove> | <remove cmd="%PROGRAMFILES%\OpenOffice\program\setup.exe -r:%SOFTWARE%\oo\response_deinst.txt"></remove> | ||
| − | + | </package> | |
| − | + | </source> | |
[[category:Silent Installers]] | [[category:Silent Installers]] | ||
Revision as of 15:58, 1 March 2008
For OpenOffice 1.1.5 you need a response file for installation and deinstallation, then you can install. You need to preinstall java before.
Attention:
Have a look to the keyword Languagelist. English is 01 (the rest is like the intl. phone codes)
DestinationPath should be like in your windows installation. It differs from country to country. You need to change this path also in the deinstall-command and the check command in the package!.
Here is the response file for installation:
response.txt:
[Environment]
InstallationMode=INSTALL_NORMAL
InstallationType=STANDARD
DestinationPath=C:\Programme\OpenOffice
StartProcedure=MyStartProc
EndProcedure=
Languagelist=49
Migration=No
[Java]
JavaSupport=preinstalled_or_none
[Procedures]
Sub MyStartProc
SetUserCompanyName("My Company")
HideSetup
End Sub
[Windows_Desktop_Integration]
Register4MSWord=True
Register4MSExcel=True
Register4MSPowerPoint=True
RegisterAsDefaultHTMLEditor=TrueHere is the deinstall response-file:
response_deinst.txt
[Environment]
InstallationMode=DEINSTALL
DestinationPath=C:\Programme\OpenOffice
StartProcedure=MyStartProc
EndProcedure=
Languagelist=49
[Procedures]
Sub MyStartProc
HideSetup
End SubHere comes install_oo.bat, which copies the Starmenuentries from the installing user to All Users.
install_oo.bat:
%SOFTWARE%\oo\program\setup.exe -alluser -r:%SOFTWARE%\oo\response.txt
md "%ALLUSERSPROFILE%\STARTM~1\Programme\OpenOffice.org"
copy /Y "%HOMEDRIVE%\%HOMEPATH%\STARTM~1\Programme\OpenOffice.org 1.1.5"\* "%ALLUSERSPROFILE%\STARTM~1\Programme\OpenOffice.org\"
and here comes the package.xml entry:
<package id="oo115" name="OpenOffice 1.1.5" priority="2" reboot="false" revision="1">
<check condition="exists" path="%PROGRAMFILES%\OpenOffice\program\soffice.exe" type="file"></check>
<install cmd="%SOFTWARE%\oo\install_oo.bat" />
<remove cmd="%PROGRAMFILES%\OpenOffice\program\setup.exe -r:%SOFTWARE%\oo\response_deinst.txt"></remove>
</package>