This shows you the differences between two versions of the page.
userspace:libreoffice_4.0 [2013/02/20 15:36] darpakiss created |
userspace:libreoffice_4.0 [2021/08/23 08:37] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== LibreOffce 4.0 ====== | ||
- | |||
- | --- // | ||
- | |||
- | Tested on Windows 7 64bit | ||
- | |||
- | Tested with opsi 4.0.2\\ | ||
- | required Winst Version >= 4.11.3.1\\ | ||
- | Files can be downloaded at [[http:// | ||
- | |||
- | |||
- | |||
- | Tree:\\ | ||
- | < | ||
- | CLIENT_DATA | ||
- | check_msi-exitcode.ins | ||
- | delsub.ins | ||
- | hunart-0.3.oxt | ||
- | LibreOffice_4.0.0_Win_x86_helppack_de.msi | ||
- | LibreOffice_4.0.0_Win_x86_helppack_en-US.msi | ||
- | LibreOffice_4.0.0_Win_x86_helppack_fr.msi | ||
- | LibreOffice_4.0.0_Win_x86_helppack_hu.msi | ||
- | LibreOffice_4.0.0_Win_x86.msi | ||
- | Libreoffice.png | ||
- | numbertext-0.9.4.oxt | ||
- | Sun_ODF_Template_Pack2_en-US.oxt | ||
- | Sun_ODF_Template_Pack_en-US.oxt | ||
- | setup.ins | ||
- | uninstall.ins | ||
- | OPSI | ||
- | control | ||
- | </ | ||
- | |||
- | ==== Steps ==== | ||
- | - Download the installer and the helppacks from [[http:// | ||
- | - Download the needed extensions from [[http:// | ||
- | - You can customize the installer if you follow [[https:// | ||
- | - You should create a logo from an images from internet, and save with name // | ||
- | - If you want to use from other path, check and change the path of // | ||
- | |||
- | ==== setup.ins ==== | ||
- | <code winst> | ||
- | [Initial] | ||
- | 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 | ||
- | ; let started programs run in front of the winst window | ||
- | StayOnTop=false | ||
- | |||
- | |||
- | [Actions] | ||
- | requiredWinstVersion >= " | ||
- | |||
- | DefVar $UninstallProgram32$ | ||
- | DefVar $UninstallProgram64$ | ||
- | DefVar $LogDir$ | ||
- | DefVar $ProductId$ | ||
- | DefVar $MinimumSpace$ | ||
- | DefVar $InstallDir32$ | ||
- | DefVar $InstallDir64$ | ||
- | DefVar $ExitCode$ | ||
- | DefVar $LicenseRequired$ | ||
- | DefVar $LicenseKey$ | ||
- | DefVar $LicensePool$ | ||
- | DefVar $INST_SystemType$ | ||
- | DefVar $INST_version$ | ||
- | DefVar $Lang$ | ||
- | DefVar $Extension$ | ||
- | DefVar $Version$ | ||
- | DefVar $Inst_Cmd32$ | ||
- | DefVar $Inst_Cmd64$ | ||
- | DefVar $Inst_Prg32$ | ||
- | DefVar $Inst_Prg64$ | ||
- | DefVar $Uninst_Prg$ | ||
- | DefVar $InstallCommandList$ | ||
- | DefStringList $result1$ | ||
- | |||
- | DefVar $Inst_Help_HU_32$ | ||
- | DefVar $Inst_Help_US_32$ | ||
- | DefVar $Inst_Help_FR_32$ | ||
- | DefVar $Inst_Help_DE_32$ | ||
- | |||
- | Set $INST_SystemType$ = GetSystemType | ||
- | set $Lang$ = GetProductProperty(" | ||
- | set $Extension$ = GetProductProperty(" | ||
- | |||
- | Set $LogDir$ = " | ||
- | |||
- | Set $InstallCommandList$ = "" | ||
- | |||
- | ; ---------------------------------------------------------------- | ||
- | ; - Please edit the following values | ||
- | ; ---------------------------------------------------------------- | ||
- | ; | ||
- | ; therefore please: only lower letters, no umlauts, | ||
- | ; no white space use ' | ||
- | Set $ProductId$ = " | ||
- | Set $Version$ = " | ||
- | Set $MinimumSpace$ = "300 MB" | ||
- | ; the path were we find the product after the installation | ||
- | Set $InstallDir32$ = " | ||
- | Set $Inst_Prg32$ = " | ||
- | Set $Inst_Prg64$ = " | ||
- | Set $Inst_Help_HU_32$ = " | ||
- | Set $Inst_Help_US_32$ = " | ||
- | Set $Inst_Help_FR_32$ = " | ||
- | Set $Inst_Help_DE_32$ = " | ||
- | |||
- | Set $LicenseRequired$ = " | ||
- | Set $LicensePool$ | ||
- | Set $Uninst_Prg$ | ||
- | Set $Inst_Cmd32$ | ||
- | Set $Inst_Cmd32$ | ||
- | Set $Inst_Cmd32$ | ||
- | Set $Inst_Cmd32$ | ||
- | Set $Inst_Cmd32$ | ||
- | Set $Inst_Cmd32$ | ||
- | Set $Inst_Cmd32$ | ||
- | Set $Inst_Cmd32$ | ||
- | Set $Inst_Cmd32$ | ||
- | Set $Inst_Cmd32$ | ||
- | Set $Inst_Cmd32$ | ||
- | Set $Inst_Cmd32$ | ||
- | ; ---------------------------------------------------------------- | ||
- | |||
- | if not(HasMinimumSpace (" | ||
- | LogError "Not enough space on %SystemDrive%, | ||
- | isFatalError | ||
- | ; Stop process and set installation status to failed | ||
- | else | ||
- | comment "Show product picture" | ||
- | ShowBitmap " | ||
- | |||
- | if FileExists(" | ||
- | comment "Start uninstall sub section" | ||
- | Sub " | ||
- | endif | ||
- | |||
- | if $LicenseRequired$ = " | ||
- | comment " | ||
- | Sub_get_licensekey | ||
- | endif | ||
- | |||
- | if $Lang$ = " | ||
- | Set $Inst_Cmd32$ = $Inst_Cmd32$ + ' | ||
- | Set $InstallCommandList$ = $InstallCommandList$ + " | ||
- | Set $InstallCommandList$ = $InstallCommandList$ + " | ||
- | Set $InstallCommandList$ = $InstallCommandList$ + " | ||
- | endif | ||
- | if $Lang$ = " | ||
- | Set $Inst_Cmd32$ = $Inst_Cmd32$ + ' | ||
- | Set $InstallCommandList$ = $InstallCommandList$ + " | ||
- | Set $InstallCommandList$ = $InstallCommandList$ + " | ||
- | Set $InstallCommandList$ = $InstallCommandList$ + " | ||
- | endif | ||
- | if $Lang$ = " | ||
- | Set $Inst_Cmd32$ = $Inst_Cmd32$ + ' | ||
- | Set $InstallCommandList$ = $InstallCommandList$ + " | ||
- | Set $InstallCommandList$ = $InstallCommandList$ + " | ||
- | endif | ||
- | if $Lang$ = "US English" | ||
- | Set $Inst_Cmd32$ = $Inst_Cmd32$ + ' | ||
- | Set $InstallCommandList$ = $InstallCommandList$ + " | ||
- | Set $InstallCommandList$ = $InstallCommandList$ + " | ||
- | endif | ||
- | |||
- | if ($INST_SystemType$ = "x86 System" | ||
- | Message " | ||
- | comment "Start setup program" | ||
- | Winbatch_install_32 | ||
- | Sub " | ||
- | endif | ||
- | |||
- | if ($INST_SystemType$ = "64 Bit System" | ||
- | Message " | ||
- | comment "Start setup program" | ||
- | Winbatch_install_64 | ||
- | Sub " | ||
- | endif | ||
- | |||
- | if not ($InstallCommandList$ = "" | ||
- | set $result1$ = splitString($InstallCommandList$,"::" | ||
- | for $InstallCommand$ in $result1$ do Winbatch_Install | ||
- | sub " | ||
- | endif | ||
- | |||
- | if $Extension$ = " | ||
- | Winbatch_Install_extension_hunart | ||
- | sub " | ||
- | |||
- | Winbatch_Install_extension_numtext | ||
- | sub " | ||
- | |||
- | Winbatch_Install_extension_templpack | ||
- | sub " | ||
- | |||
- | Winbatch_Install_extension_templpack2 | ||
- | sub " | ||
- | endif | ||
- | |||
- | endif | ||
- | |||
- | |||
- | [Winbatch_install_32] | ||
- | msiexec /i %ScriptPath%\$Inst_Prg32$ $Inst_Cmd32$ | ||
- | |||
- | [Winbatch_install_64] | ||
- | msiexec /i %ScriptPath%\$Inst_Prg64$ $Inst_Cmd32$ | ||
- | |||
- | [Winbatch_Install] | ||
- | $InstallCommand$ | ||
- | |||
- | [Winbatch_Install_extension_hunart] | ||
- | " | ||
- | |||
- | [Winbatch_Install_extension_numtext] | ||
- | " | ||
- | |||
- | [Winbatch_Install_extension_templpack] | ||
- | " | ||
- | |||
- | [Winbatch_Install_extension_templpack2] | ||
- | " | ||
- | </ | ||
- | |||
- | ==== uninstall.ins ==== | ||
- | <code winst> | ||
- | [Initial] | ||
- | 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 | ||
- | ; let started programs run in front of the winst window | ||
- | StayOnTop=false | ||
- | |||
- | [Actions] | ||
- | requiredWinstVersion >= " | ||
- | |||
- | DefVar $LogDir$ | ||
- | DefVar $ExitCode$ | ||
- | DefVar $ProductId$ | ||
- | DefVar $InstallDir32$ | ||
- | DefVar $InstallDir64$ | ||
- | DefVar $LicenseRequired$ | ||
- | DefVar $LicensePool$ | ||
- | DefVar $INST_SystemType$ | ||
- | DefVar $INST_architecture$ | ||
- | DefVar $DisplayName$ | ||
- | |||
- | Set $INST_SystemType$ = GetSystemType | ||
- | |||
- | |||
- | Set $LogDir$ = " | ||
- | |||
- | ; ---------------------------------------------------------------- | ||
- | ; - Please edit the following values | ||
- | ; ---------------------------------------------------------------- | ||
- | Set $ProductId$ = " | ||
- | Set $InstallDir32$ = " | ||
- | Set $LicenseRequired$ = " | ||
- | Set $LicensePool$ = " | ||
- | ; ---------------------------------------------------------------- | ||
- | |||
- | comment "Show product picture" | ||
- | ShowBitmap " | ||
- | |||
- | Message " | ||
- | |||
- | if FileExists(" | ||
- | comment "Start uninstall sub section" | ||
- | Sub " | ||
- | endif | ||
- | |||
- | if $LicenseRequired$ = " | ||
- | comment " | ||
- | Sub_free_license | ||
- | endif | ||
- | |||
- | [Sub_free_license] | ||
- | comment " | ||
- | |||
- | comment " | ||
- | DefVar $result$ | ||
- | Set $result$ = FreeLicense($LicensePool$) | ||
- | ; If there is an assignment of a license pool to the product, it is possible to use | ||
- | ; Set $result$ = FreeLicense("", | ||
- | ; | ||
- | ; If there is an assignment of a license pool to a windows software id, it is possible to use | ||
- | ; DefVar $WindowsSoftwareId$ | ||
- | ; $WindowsSoftwareId$ = " | ||
- | ; set $result$ = FreeLicense("", | ||
- | </ | ||
- | |||
- | ==== delsub.ins ==== | ||
- | <code winst> | ||
- | DefStringList $result$ | ||
- | DefStringList $result1$ | ||
- | |||
- | DefVar $INST_arch$ | ||
- | Set $INST_arch$ = " | ||
- | |||
- | DefVar $INST2_SystemType$ | ||
- | Set $INST2_SystemType$ = GetSystemType | ||
- | |||
- | DefVar $appKey$ | ||
- | DefVar $UninstallCommandList$ | ||
- | DefVar $UninstallCommandList2$ | ||
- | DefVar $appString$ | ||
- | DefVar $appKeyString$ | ||
- | DefVar $testName$ | ||
- | DefVar $exeString$ | ||
- | Set $appKeyString$ = " | ||
- | Set $appString$ = " | ||
- | |||
- | if ($INST2_SystemType$ = "x86 System" | ||
- | Message " | ||
- | comment "Start setup program" | ||
- | Set $result$ = getRegistryKeyList32(" | ||
- | for $app$ in $result$ do Sub_searchApp32 | ||
- | endif | ||
- | |||
- | if ($INST2_SystemType$ = "64 Bit System" | ||
- | Message " | ||
- | comment "Start setup program" | ||
- | Set $result$ = getRegistryKeyList64(" | ||
- | for $app$ in $result$ do Sub_searchApp64 | ||
- | endif | ||
- | |||
- | if not ($UninstallCommandList$ = "" | ||
- | set $result1$ = splitString($UninstallCommandList$,"::" | ||
- | for $UninstallCommand$ in $result1$ do Winbatch_Uninstall | ||
- | sub " | ||
- | endif | ||
- | |||
- | if fileExists($InstallDir32$) | ||
- | Files_delete_installdir | ||
- | endif | ||
- | |||
- | [Sub_searchApp32] | ||
- | set $appKey$ = " | ||
- | Set $testName$ = GetRegistryStringValue32($appKey$) | ||
- | if contains($testName$, | ||
- | set $appKey$ = " | ||
- | Set $testName$ = GetRegistryStringValue32($appKey$) | ||
- | if contains(lower($testName$), | ||
- | set $UninstallCommandList$ = $UninstallCommandList$ + " | ||
- | else | ||
- | Set $testName$ = unquote($testName$,'"' | ||
- | Set $testName$ = unquote($testName$,"'" | ||
- | Set $exeString$ = takeString(0, | ||
- | set $UninstallCommandList$ = $UninstallCommandList$ + $exeString$ + "exe /S::" | ||
- | endif | ||
- | endif | ||
- | |||
- | [Sub_searchApp64] | ||
- | set $appKey$ = " | ||
- | Set $testName$ = GetRegistryStringValue64($appKey$) | ||
- | if contains($testName$, | ||
- | set $appKey$ = " | ||
- | Set $testName$ = GetRegistryStringValue64($appKey$) | ||
- | if contains(lower($testName$), | ||
- | set $UninstallCommandList$ = $UninstallCommandList$ + " | ||
- | else | ||
- | Set $testName$ = unquote($testName$,'"' | ||
- | Set $testName$ = unquote($testName$,"'" | ||
- | Set $exeString$ = takeString(0, | ||
- | set $UninstallCommandList$ = $UninstallCommandList$ + '"' | ||
- | endif | ||
- | endif | ||
- | |||
- | [Winbatch_Uninstall] | ||
- | $UninstallCommand$ | ||
- | |||
- | [Files_delete_installdir] | ||
- | del -f -s " | ||
- | </ | ||
- | |||
- | ==== control ==== | ||
- | < | ||
- | [Package] | ||
- | version: 2 | ||
- | depends: | ||
- | incremental: | ||
- | |||
- | [Product] | ||
- | type: localboot | ||
- | id: libreoffice | ||
- | name: LibreOffice 4 | ||
- | description: | ||
- | advice: | ||
- | version: 4.0.0 | ||
- | priority: 0 | ||
- | licenseRequired: | ||
- | productClasses: | ||
- | setupScript: | ||
- | uninstallScript: | ||
- | updateScript: | ||
- | alwaysScript: | ||
- | onceScript: | ||
- | customScript: | ||
- | userLoginScript: | ||
- | |||
- | [ProductDependency] | ||
- | action: setup | ||
- | requiredProduct: | ||
- | requiredAction: | ||
- | requirementType: | ||
- | |||
- | [ProductProperty] | ||
- | type: unicode | ||
- | name: lang | ||
- | multivalue: False | ||
- | editable: False | ||
- | description: | ||
- | values: [" | ||
- | default: ["US English" | ||
- | |||
- | [ProductProperty] | ||
- | type: unicode | ||
- | name: extensions | ||
- | multivalue: False | ||
- | editable: False | ||
- | description: | ||
- | values: [" | ||
- | default: [" | ||
- | </ | ||
- | |||