This shows you the differences between two versions of the page.
userspace:openoffice [2011/10/28 06:45] Thomas_H created |
userspace:openoffice [2021/08/23 08:37] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== OpenOffice (3.3)====== | ||
- | Tested with opsi 4.0.1\\ | ||
- | requiredWinstVersion >= 4.10.8.6\\ | ||
- | For 32 Bit\\ | ||
- | Installationfiles are available at: http:// | ||
- | |||
- | By // | ||
- | |||
- | Tree:\\ | ||
- | < | ||
- | <dir> java | ||
- | <dir> licenses | ||
- | <dir> readmes | ||
- | <dir> redist | ||
- | delsub.ins | ||
- | openoffice3.jpg | ||
- | openofficeorg1.cab | ||
- | openofficeorg33.msi | ||
- | setup.ins | ||
- | uninstall.ins | ||
- | </ | ||
- | |||
- | ==== Steps ==== | ||
- | - Download the installation-file from the website above. You better get the " | ||
- | - Doubleclick the downloaded version, but don't install it. We only need the contents of the temp-directory, | ||
- | - During the starting installation you will be asked where so save the installation files. Better choose " | ||
- | - Copy all files except " | ||
- | |||
- | ==== setup.ins ==== | ||
- | <code winst> | ||
- | *********************************************************************; | ||
- | ; This sourcecode is owned by uib | ||
- | ; and published under the Terms of the General Public License. | ||
- | |||
- | [Initial] | ||
- | ; Set log level | ||
- | LogLevel = 2 | ||
- | ; Log Errors in logfile but don't abort | ||
- | ExitOnError = false | ||
- | ; Show syntax errors in the script | ||
- | ScriptErrorMessages = on | ||
- | ; Dont trace step by step through the script | ||
- | TraceMode = off | ||
- | ; Started programs should run in front of the winst window | ||
- | StayOnTop = false | ||
- | |||
- | [Aktionen] | ||
- | ; Define general vars | ||
- | DefVar $SYSTEMDRIVE$ | ||
- | DefVar $SYSTEMROOT$ | ||
- | DefVar $TEMP$ | ||
- | DefVar $OS$ | ||
- | |||
- | ; Define product specific vars | ||
- | DefVar $ProductId$ | ||
- | DefVar $InstallDir$ | ||
- | DefVar $NewExe$ | ||
- | DefVar $InstLogfile$ | ||
- | DefVar $UninstallCommand$ | ||
- | DefVar $MsiCode$ | ||
- | DefVar $DisplayName$ | ||
- | DefVar $UserProfileName$ | ||
- | DefStringList $UserProfileNames$ | ||
- | DefVar $AppDataDirName$ | ||
- | |||
- | ; Define product property specific vars | ||
- | DefVar $RemoveOOo2$ | ||
- | |||
- | DefVar $REGISTER_ALL_MSO_TYPES$ | ||
- | DefVar $REGISTER_NO_MSO_TYPES$ | ||
- | DefVar $REGISTER_WORD_DOC$ | ||
- | DefVar $REGISTER_WORD_DOCX$ | ||
- | DefVar $REGISTER_WORD_DOCM$ | ||
- | DefVar $REGISTER_WORD_DOT$ | ||
- | DefVar $REGISTER_WORD_DOTX$ | ||
- | DefVar $REGISTER_WORD_DOTM$ | ||
- | DefVar $REGISTER_WORD_RTF$ | ||
- | DefVar $REGISTER_EXCEL_XLS$ | ||
- | DefVar $REGISTER_EXCEL_XLSX$ | ||
- | DefVar $REGISTER_EXCEL_XLSM$ | ||
- | DefVar $REGISTER_EXCEL_XLSB$ | ||
- | DefVar $REGISTER_EXCEL_XLAM$ | ||
- | DefVar $REGISTER_EXCEL_XLT$ | ||
- | DefVar $REGISTER_EXCEL_XLTX$ | ||
- | DefVar $REGISTER_EXCEL_XLTM$ | ||
- | DefVar $REGISTER_POWERPOINT_PPS$ | ||
- | DefVar $REGISTER_POWERPOINT_PPSX$ | ||
- | DefVar $REGISTER_POWERPOINT_PPSM$ | ||
- | DefVar $REGISTER_POWERPOINT_PPAM$ | ||
- | DefVar $REGISTER_POWERPOINT_PPT$ | ||
- | DefVar $REGISTER_POWERPOINT_PPTX$ | ||
- | DefVar $REGISTER_POWERPOINT_PPTM$ | ||
- | DefVar $REGISTER_POWERPOINT_POT$ | ||
- | DefVar $REGISTER_POWERPOINT_POTX$ | ||
- | DefVar $REGISTER_POWERPOINT_POTM$ | ||
- | DefVar $REGISTER_OPTIONS$ | ||
- | |||
- | ; Set general vars | ||
- | Set $SYSTEMDRIVE$ = " | ||
- | Set $SYSTEMROOT$ = " | ||
- | Set $TEMP$ = EnvVar(" | ||
- | Set $OS$ = GetOS | ||
- | Set $AppDataDirName$ = TakeString(-1, | ||
- | |||
- | ; Set product specific vars | ||
- | Set $ProductId$ = " | ||
- | Set $InstallDir$ = " | ||
- | Set $NewExe$ = $InstallDir$ + " | ||
- | Set $InstLogfile$ = " | ||
- | |||
- | ; Set product property specific vars | ||
- | Set $RemoveOOo2$ = inivar(" | ||
- | |||
- | Set $REGISTER_WORD_DOC$ | ||
- | Set $REGISTER_WORD_DOCX$ = " | ||
- | Set $REGISTER_WORD_DOCM$ = " | ||
- | Set $REGISTER_WORD_DOT$ | ||
- | Set $REGISTER_WORD_DOTX$ = " | ||
- | Set $REGISTER_WORD_DOTM$ = " | ||
- | Set $REGISTER_WORD_RTF$ | ||
- | Set $REGISTER_EXCEL_XLS$ | ||
- | Set $REGISTER_EXCEL_XLSX$ = " | ||
- | Set $REGISTER_EXCEL_XLSM$ = " | ||
- | Set $REGISTER_EXCEL_XLSB$ = " | ||
- | Set $REGISTER_EXCEL_XLAM$ = " | ||
- | Set $REGISTER_EXCEL_XLT$ | ||
- | Set $REGISTER_EXCEL_XLTX$ = " | ||
- | Set $REGISTER_EXCEL_XLTM$ = " | ||
- | Set $REGISTER_POWERPOINT_PPS$ | ||
- | Set $REGISTER_POWERPOINT_PPSX$ = " | ||
- | Set $REGISTER_POWERPOINT_PPSM$ = " | ||
- | Set $REGISTER_POWERPOINT_PPAM$ = " | ||
- | Set $REGISTER_POWERPOINT_PPT$ | ||
- | Set $REGISTER_POWERPOINT_PPTX$ = " | ||
- | Set $REGISTER_POWERPOINT_PPTM$ = " | ||
- | Set $REGISTER_POWERPOINT_POT$ | ||
- | Set $REGISTER_POWERPOINT_POTX$ = " | ||
- | Set $REGISTER_POWERPOINT_POTM$ = " | ||
- | |||
- | if inivar(" | ||
- | Set $REGISTER_WORD_DOC$ | ||
- | Set $REGISTER_WORD_DOCX$ = " | ||
- | Set $REGISTER_WORD_DOCM$ = " | ||
- | Set $REGISTER_WORD_DOT$ | ||
- | Set $REGISTER_WORD_DOTX$ = " | ||
- | Set $REGISTER_WORD_DOTM$ = " | ||
- | Set $REGISTER_WORD_RTF$ | ||
- | endif | ||
- | if inivar(" | ||
- | Set $REGISTER_EXCEL_XLS$ | ||
- | Set $REGISTER_EXCEL_XLSX$ = " | ||
- | Set $REGISTER_EXCEL_XLSM$ = " | ||
- | Set $REGISTER_EXCEL_XLSB$ = " | ||
- | Set $REGISTER_EXCEL_XLAM$ = " | ||
- | Set $REGISTER_EXCEL_XLT$ | ||
- | Set $REGISTER_EXCEL_XLTX$ = " | ||
- | Set $REGISTER_EXCEL_XLTM$ = " | ||
- | endif | ||
- | if inivar(" | ||
- | Set $REGISTER_POWERPOINT_PPS$ | ||
- | Set $REGISTER_POWERPOINT_PPSX$ = " | ||
- | Set $REGISTER_POWERPOINT_PPSM$ = " | ||
- | Set $REGISTER_POWERPOINT_PPAM$ = " | ||
- | Set $REGISTER_POWERPOINT_PPT$ | ||
- | Set $REGISTER_POWERPOINT_PPTX$ = " | ||
- | Set $REGISTER_POWERPOINT_PPTM$ = " | ||
- | Set $REGISTER_POWERPOINT_POT$ | ||
- | Set $REGISTER_POWERPOINT_POTX$ = " | ||
- | Set $REGISTER_POWERPOINT_POTM$ = " | ||
- | endif | ||
- | |||
- | Set $REGISTER_OPTIONS$ = " | ||
- | Set $REGISTER_OPTIONS$ = $REGISTER_OPTIONS$ + " REGISTER_DOC=" | ||
- | Set $REGISTER_OPTIONS$ = $REGISTER_OPTIONS$ + " REGISTER_DOCX=" | ||
- | Set $REGISTER_OPTIONS$ = $REGISTER_OPTIONS$ + " REGISTER_DOCM=" | ||
- | Set $REGISTER_OPTIONS$ = $REGISTER_OPTIONS$ + " REGISTER_DOT=" | ||
- | Set $REGISTER_OPTIONS$ = $REGISTER_OPTIONS$ + " REGISTER_DOTX=" | ||
- | Set $REGISTER_OPTIONS$ = $REGISTER_OPTIONS$ + " REGISTER_DOTM=" | ||
- | Set $REGISTER_OPTIONS$ = $REGISTER_OPTIONS$ + " REGISTER_RTF=" | ||
- | Set $REGISTER_OPTIONS$ = $REGISTER_OPTIONS$ + " REGISTER_XLS=" | ||
- | Set $REGISTER_OPTIONS$ = $REGISTER_OPTIONS$ + " REGISTER_XLSX=" | ||
- | Set $REGISTER_OPTIONS$ = $REGISTER_OPTIONS$ + " REGISTER_XLSM=" | ||
- | Set $REGISTER_OPTIONS$ = $REGISTER_OPTIONS$ + " REGISTER_XLSB=" | ||
- | Set $REGISTER_OPTIONS$ = $REGISTER_OPTIONS$ + " REGISTER_XLAM=" | ||
- | Set $REGISTER_OPTIONS$ = $REGISTER_OPTIONS$ + " REGISTER_XLT=" | ||
- | Set $REGISTER_OPTIONS$ = $REGISTER_OPTIONS$ + " REGISTER_XLTX=" | ||
- | Set $REGISTER_OPTIONS$ = $REGISTER_OPTIONS$ + " REGISTER_XLTM=" | ||
- | Set $REGISTER_OPTIONS$ = $REGISTER_OPTIONS$ + " REGISTER_PPS=" | ||
- | Set $REGISTER_OPTIONS$ = $REGISTER_OPTIONS$ + " REGISTER_PPSX=" | ||
- | Set $REGISTER_OPTIONS$ = $REGISTER_OPTIONS$ + " REGISTER_PPSM=" | ||
- | Set $REGISTER_OPTIONS$ = $REGISTER_OPTIONS$ + " REGISTER_PPAM=" | ||
- | Set $REGISTER_OPTIONS$ = $REGISTER_OPTIONS$ + " REGISTER_PPT=" | ||
- | Set $REGISTER_OPTIONS$ = $REGISTER_OPTIONS$ + " REGISTER_PPTX=" | ||
- | Set $REGISTER_OPTIONS$ = $REGISTER_OPTIONS$ + " REGISTER_PPTM=" | ||
- | Set $REGISTER_OPTIONS$ = $REGISTER_OPTIONS$ + " REGISTER_POT=" | ||
- | Set $REGISTER_OPTIONS$ = $REGISTER_OPTIONS$ + " REGISTER_POTX=" | ||
- | Set $REGISTER_OPTIONS$ = $REGISTER_OPTIONS$ + " REGISTER_POTM=" | ||
- | |||
- | ; Show message and logo | ||
- | Message " | ||
- | ShowBitmap /3 " | ||
- | |||
- | ; Check requirements | ||
- | if not ( $OS$ = " | ||
- | LogError " | ||
- | isFatalError | ||
- | endif | ||
- | |||
- | if not ( HasMinimumSpace(" | ||
- | LogError "Not enough free disk space on drive c:" | ||
- | isFatalError | ||
- | endif | ||
- | |||
- | ; Uninstall first | ||
- | ;if FileExists(" | ||
- | ; sub " | ||
- | ;endif | ||
- | |||
- | ; Start installation | ||
- | Message " | ||
- | WinBatch_silent_install | ||
- | |||
- | |||
- | ; Check installation result | ||
- | if not(FileExists($NewExe$)) | ||
- | LogError " | ||
- | isFatalError | ||
- | endif | ||
- | |||
- | ; Update user profiles | ||
- | Set $UserProfileNames$ = getOutStreamFromSection(' | ||
- | for $entry$ in $UserProfileNames$ do Sub_update_user_profile | ||
- | |||
- | ; Customize install | ||
- | if FileExists(" | ||
- | sub " | ||
- | endif | ||
- | |||
- | |||
- | [WinBatch_silent_install] | ||
- | ; | ||
- | msiexec /qb-! /l $InstLogfile$ /norestart /i %SCRIPTPATH%\openofficeorg33.msi SETUP_USED=1 ADDLOCAL=All REMOVEOLDPRODUCTS=0 ALLUSERS=2 $REGISTER_OPTIONS$ | ||
- | ; /qb-! entfernt! | ||
- | |||
- | [WinBatch_upgrade] | ||
- | msiexec /qn /norestart /fvomus %SCRIPTPATH%\openofficeorg33.msi | ||
- | |||
- | [DosInAnIcon_list_profiledir] | ||
- | @echo off | ||
- | dir " | ||
- | |||
- | [Files_copy_ooo2_profile] | ||
- | copy -s " | ||
- | |||
- | [Files_copy_reg] | ||
- | copy -s " | ||
- | |||
- | [Files_create_ooo3_profile] | ||
- | copy -s " | ||
- | |||
- | [Sub_update_user_profile] | ||
- | Set $UserProfileName$ = " | ||
- | if not ($UserProfileName$ = "" | ||
- | if FileExists(" | ||
- | comment "OOo3 user profile exist for user " + $UserProfileName$ + ", leaving as is" | ||
- | Files_copy_reg | ||
- | else | ||
- | if FileExists(" | ||
- | comment "Using OOo2 user profile of user " + $UserProfileName$ + " as OOo3 profile" | ||
- | Files_copy_ooo2_profile | ||
- | Files_copy_reg | ||
- | else | ||
- | comment " | ||
- | Files_create_ooo3_profile | ||
- | endif | ||
- | endif | ||
- | endif | ||
- | |||
- | </ | ||
- | |||
- | ==== uninstall.ins ==== | ||
- | <code winst> | ||
- | ; Copyright (c) uib gmbh (www.uib.de) | ||
- | ; This sourcecode is owned by uib | ||
- | ; and published under the Terms of the General Public License. | ||
- | |||
- | [Initial] | ||
- | ; Set log level | ||
- | LogLevel = 9 | ||
- | ; Log Errors in logfile but don't abort | ||
- | ExitOnError = false | ||
- | ; Show syntax errors in the script | ||
- | ScriptErrorMessages = on | ||
- | ; Dont trace step by step through the script | ||
- | TraceMode = off | ||
- | ; Started programs should run in front of the winst window | ||
- | StayOnTop = false | ||
- | |||
- | [Aktionen] | ||
- | DefVar $TEMP$ | ||
- | DefVar $OS$ | ||
- | |||
- | DefVar $ProductId$ | ||
- | DefVar $InstallDir$ | ||
- | DefVar $UninstallCommand$ | ||
- | DefVar $MsiCode$ | ||
- | DefVar $DisplayName$ | ||
- | DefVar $RemoveOOo2$ | ||
- | DefVar $RebootFlag$ | ||
- | |||
- | Set $TEMP$ = EnvVar(" | ||
- | Set $OS$ = GetOS | ||
- | |||
- | Set $ProductId$ = " | ||
- | Set $InstallDir$ = " | ||
- | |||
- | Set $RemoveOOo2$ = inivar(" | ||
- | |||
- | if not ( $OS$ = " | ||
- | LogError " | ||
- | isFatalError | ||
- | endif | ||
- | |||
- | ShowBitmap /3 " | ||
- | |||
- | if FileExists(" | ||
- | ; Start uninstall | ||
- | sub " | ||
- | endif | ||
- | |||
- | ExitWindows /Reboot | ||
- | </ | ||
- | |||
- | ==== delsub.ins ==== | ||
- | <code winst> | ||
- | ; Copyright (c) uib gmbh (www.uib.de) | ||
- | ; This sourcecode is owned by uib | ||
- | ; and published under the Terms of the General Public License. | ||
- | |||
- | Message " | ||
- | |||
- | if ( $RemoveOOo2$ = " | ||
- | ; OOo 2.1.0 | ||
- | Set $MsiCode$ =" | ||
- | Set $DisplayName$ = GetRegistryStringValue (" | ||
- | if not ($DisplayName$ = "" | ||
- | Message "Found " | ||
- | Set $UninstallCommand$ = " | ||
- | Winbatch_uninstall | ||
- | killtask " | ||
- | Files_delete_oo2 | ||
- | endif | ||
- | |||
- | ; OOo 2.2.0 | ||
- | Set $MsiCode$ =" | ||
- | Set $DisplayName$ = GetRegistryStringValue (" | ||
- | if not ($DisplayName$ = "" | ||
- | Message "Found " | ||
- | Set $UninstallCommand$ = " | ||
- | Winbatch_uninstall | ||
- | killtask " | ||
- | Files_delete_oo2 | ||
- | endif | ||
- | |||
- | ; OOo 2.2.1 | ||
- | Set $MsiCode$ =" | ||
- | Set $DisplayName$ = GetRegistryStringValue (" | ||
- | if not ($DisplayName$ = "" | ||
- | Message "Found " | ||
- | Set $UninstallCommand$ = " | ||
- | Winbatch_uninstall | ||
- | killtask " | ||
- | Files_delete_oo2 | ||
- | endif | ||
- | |||
- | ; OOo 2.3.0 | ||
- | Set $MsiCode$ =" | ||
- | Set $DisplayName$ = GetRegistryStringValue (" | ||
- | if not ($DisplayName$ = "" | ||
- | Message "Found " | ||
- | Set $UninstallCommand$ = " | ||
- | Winbatch_uninstall | ||
- | killtask " | ||
- | Files_delete_oo2 | ||
- | endif | ||
- | |||
- | ; OOo 2.3.1 | ||
- | Set $MsiCode$ =" | ||
- | Set $DisplayName$ = GetRegistryStringValue (" | ||
- | if not ($DisplayName$ = "" | ||
- | Message "Found " | ||
- | Set $UninstallCommand$ = " | ||
- | Winbatch_uninstall | ||
- | killtask " | ||
- | Files_delete_oo2 | ||
- | endif | ||
- | |||
- | ; OOo 2.4.0 | ||
- | Set $MsiCode$ =" | ||
- | Set $DisplayName$ = GetRegistryStringValue (" | ||
- | if not ($DisplayName$ = "" | ||
- | Message "Found " | ||
- | Set $UninstallCommand$ = " | ||
- | Winbatch_uninstall | ||
- | killtask " | ||
- | Files_delete_oo2 | ||
- | endif | ||
- | |||
- | ; OOo 2.4.1 | ||
- | Set $MsiCode$ = " | ||
- | Set $DisplayName$ = GetRegistryStringValue (" | ||
- | if not ($DisplayName$ = "" | ||
- | Message "Found " | ||
- | Set $UninstallCommand$ = " | ||
- | Winbatch_uninstall | ||
- | killtask " | ||
- | Files_delete_oo2 | ||
- | endif | ||
- | |||
- | ; ooo2.4.2 | ||
- | set $MsiCode$=" | ||
- | set $DisplayName$ = GetRegistryStringValue (" | ||
- | if not ($DisplayName$ = "" | ||
- | Message "Found " | ||
- | set $UninstallCommand$ = " | ||
- | Winbatch_uninstall | ||
- | killtask " | ||
- | Files_delete_oo2 | ||
- | endif | ||
- | |||
- | LinkFolder_delete_OpenOffice.org_2 | ||
- | |||
- | endif | ||
- | |||
- | ; OOo 3.0.9358 | ||
- | Set $MsiCode$ = " | ||
- | Set $DisplayName$ = GetRegistryStringValue (" | ||
- | if not ($DisplayName$ = "" | ||
- | Message "Found " | ||
- | Set $UninstallCommand$ = " | ||
- | Winbatch_uninstall | ||
- | killtask " | ||
- | Files_delete_oo3 | ||
- | endif | ||
- | |||
- | ; OOo 3.0.1 | ||
- | Set $MsiCode$ = " | ||
- | Set $DisplayName$ = GetRegistryStringValue (" | ||
- | if not ($DisplayName$ = "" | ||
- | Message "Found " | ||
- | Set $UninstallCommand$ = " | ||
- | Winbatch_uninstall | ||
- | killtask " | ||
- | Files_delete_oo3 | ||
- | endif | ||
- | |||
- | ; OOo 3.1 | ||
- | Set $MsiCode$ = " | ||
- | Set $DisplayName$ = GetRegistryStringValue (" | ||
- | if not ($DisplayName$ = "" | ||
- | Message "Found " | ||
- | Set $UninstallCommand$ = " | ||
- | Winbatch_uninstall | ||
- | killtask " | ||
- | Files_delete_oo3 | ||
- | endif | ||
- | |||
- | ; OOo 3.2 | ||
- | Set $MsiCode$ = " | ||
- | Set $DisplayName$ = GetRegistryStringValue (" | ||
- | if not ($DisplayName$ = "" | ||
- | Message "Found " | ||
- | Set $UninstallCommand$ = " | ||
- | Winbatch_uninstall | ||
- | killtask " | ||
- | Files_delete_oo3 | ||
- | endif | ||
- | |||
- | ; OOo 3.2.1 | ||
- | Set $MsiCode$ = " | ||
- | Set $DisplayName$ = GetRegistryStringValue (" | ||
- | if not ($DisplayName$ = "" | ||
- | Message "Found " | ||
- | Set $UninstallCommand$ = " | ||
- | Winbatch_uninstall | ||
- | killtask " | ||
- | Files_delete_oo3 | ||
- | endif | ||
- | |||
- | ; OOo 3.3 | ||
- | Set $MsiCode$ = " | ||
- | Set $DisplayName$ = GetRegistryStringValue (" | ||
- | if not ($DisplayName$ = "" | ||
- | Message "Found " | ||
- | Set $UninstallCommand$ = " | ||
- | Winbatch_uninstall | ||
- | killtask " | ||
- | Files_delete_oo3 | ||
- | endif | ||
- | |||
- | |||
- | LinkFolder_delete_OpenOffice.org_3 | ||
- | |||
- | |||
- | [WinBatch_uninstall] | ||
- | $UninstallCommand$ | ||
- | |||
- | [LinkFolder_delete_OpenOffice.org_2] | ||
- | set_basefolder common_programs | ||
- | delete_subfolder " | ||
- | delete_subfolder " | ||
- | delete_subfolder " | ||
- | delete_subfolder " | ||
- | delete_subfolder " | ||
- | delete_subfolder " | ||
- | delete_subfolder " | ||
- | |||
- | [Files_delete_oo2] | ||
- | delete -sf " | ||
- | delete -sf " | ||
- | delete -sf " | ||
- | delete -sf " | ||
- | delete -sf " | ||
- | |||
- | [Files_delete_oo3] | ||
- | delete -sf " | ||
- | |||
- | [LinkFolder_delete_OpenOffice.org_3] | ||
- | set_basefolder common_programs | ||
- | delete_subfolder " | ||
- | |||
- | </ |