====== LibreOffce 6.x ====== --- //[[opsi@wimmdo.de|dominik]] 2020/01/14 21:46// Tested on Windows 10 64bit Tested with opsi 4.12.1.5\\ required Winst Version >= 4.12.1.5 (only tested with that, i expect lower Versions will also work) \\ Most code was copied from [[LibreOffice 4.0]] , created by [[darpakiss@gmail.com|darpakiss]] \\ Files can be downloaded [[http://www.libreoffice.org/download/?type=win-x86|here (x86)]] and [[https://de.libreoffice.org/download/download/?type=win-x86_64|here (amd64)]]. Remember to download both HelpPacks! \\ Installer will autodetect x64 or amd64 Achritecture and will install right variant. \\ If you use newer Versions of LibreOffice, keep in Mind to modifiy line 59 to 62 in setup.ins to actual fileanames you've downloaded.\\ There is a swtich to enable or disable the registering of file-Extenstions with LibreOffice. ==== Tree: ==== ├── CLIENT_DATA │ ├── check_msi-exitcode.ins │ ├── delsub.ins │ ├── LibreOffice_6.3.4_Win_x64_helppack_de.msi │ ├── LibreOffice_6.3.4_Win_x64.msi │ ├── LibreOffice_6.3.4_Win_x86_helppack_de.msi │ ├── LibreOffice_6.3.4_Win_x86.msi │ ├── libreoffice.png │ ├── setup.ins │ └── uninstall.ins ├── OPSI │ ├── control │ ├── postinst │ └── preinst └── SERVER_DATA ==== Steps ==== - Download the installer and the helppacks for x86 and amd64 from libreoffice (links see above) - You can customize the installer if you follow [[https://wiki.documentfoundation.org/Deployment_and_Migration|this]] instruction, and change the value of //**Inst_Cmd32**// variable - You should create a logo from an images from internet, and save with name //libreoffice.png// - Update Filenames in setup.ins (Lines 59 to 62) ==== setup.ins ==== [Initial] setLogLevel=5 ; 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 >= "4.10.8.6" 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 $OnlineUpdate$ DefVar $Inst_Para$ DefVar $Inst_Prg32$ DefVar $Inst_Prg64$ DefVar $Uninst_Prg$ DefVar $InstallCommandList$ DefVar $Register_EXT$ DefStringList $result1$ DefVar $Inst_Help_DE_32$ DefVar $Inst_Help_DE_64$ DefVar $InstHelp_Para$ Set $INST_SystemType$ = GetSystemType Set $LogDir$ = "%SystemDrive%\tmp" Set $OnlineUpdate$ = GetProductProperty("OnlineUpdate","Yes") set $Register_EXT$ = GetProductProperty("register_all_extensions","True") Set $InstallCommandList$ = "" ; ---------------------------------------------------------------- ; - Please edit the following values - ; ---------------------------------------------------------------- ;$ProductId$ should be the name of the product in opsi ; therefore please: only lower letters, no umlauts, ; no white space use '-' as a seperator Set $ProductId$ = "Libreoffice" Set $MinimumSpace$ = "300 MB" Set $Inst_Prg32$ = "LibreOffice_6.3.4_Win_x86.msi" Set $Inst_Prg64$ = "LibreOffice_6.3.4_Win_x64.msi" Set $Inst_Help_DE_32$ = "LibreOffice_6.3.4_Win_x86_helppack_de.msi" Set $Inst_Help_DE_64$ = "LibreOffice_6.3.4_Win_x64_helppack_de.msi" set $InstHelp_Para$ ='/qb- /norestart' Set $LicenseRequired$ = "false" Set $LicensePool$ = "p_" + $ProductId$ Set $Uninst_Prg$ = "uninstall.exe" Set $Inst_Para$ = '/qb- /norestart ' Set $Inst_Para$ = $Inst_Para$ + 'RebootYesNo=No ISCHECKFORPRODUCTUPDATES=0 QUICKSTART=0 VC_REDIST=1 ' Set $Inst_Para$ = $Inst_Para$ + 'ADDLOCAL=ALL REMOVE=gm_o_Quickstart,gm_r_ex_Dictionary_Af,gm_r_ex_Dictionary_An,' Set $Inst_Para$ = $Inst_Para$ + 'gm_r_ex_Dictionary_Ar,gm_r_ex_Dictionary_Be,gm_r_ex_Dictionary_Bg,gm_r_ex_Dictionary_Bn,gm_r_ex_Dictionary_Br,' Set $Inst_Para$ = $Inst_Para$ + 'gm_r_ex_Dictionary_Pt_Br,gm_r_ex_Dictionary_Pt_Pt,gm_r_ex_Dictionary_Ca,gm_r_ex_Dictionary_Cs,gm_r_ex_Dictionary_Da,' Set $Inst_Para$ = $Inst_Para$ + 'gm_r_ex_Dictionary_Nl,gm_r_ex_Dictionary_Et,gm_r_ex_Dictionary_Gd,gm_r_ex_Dictionary_Gl,gm_r_ex_Dictionary_Gu,' Set $Inst_Para$ = $Inst_Para$ + 'gm_r_ex_Dictionary_He,gm_r_ex_Dictionary_Hi,gm_r_ex_Dictionary_It,gm_r_ex_Dictionary_Lt,gm_r_ex_Dictionary_Hu,gm_r_ex_Dictionary_En,' Set $Inst_Para$ = $Inst_Para$ + 'gm_r_ex_Dictionary_Lv,gm_r_ex_Dictionary_Ne,gm_r_ex_Dictionary_No,gm_r_ex_Dictionary_Oc,gm_r_ex_Dictionary_Pl,' Set $Inst_Para$ = $Inst_Para$ + 'gm_r_ex_Dictionary_Ro,gm_r_ex_Dictionary_Ru,gm_r_ex_Dictionary_Si,gm_r_ex_Dictionary_Sk,gm_r_ex_Dictionary_Sl,gm_r_ex_Dictionary_El,' Set $Inst_Para$ = $Inst_Para$ + 'gm_r_ex_Dictionary_Es,gm_r_ex_Dictionary_Sv,gm_r_ex_Dictionary_Te,gm_r_ex_Dictionary_Th,gm_r_ex_Dictionary_Uk,gm_r_ex_Dictionary_Vi,' Set $Inst_Para$ = $Inst_Para$ + 'gm_r_ex_Dictionary_Zu,gm_r_ex_Dictionary_Fr UI_LANGS=en_US,de,hu' ; ---------------------------------------------------------------- if not(HasMinimumSpace ("%SystemDrive%", $MinimumSpace$)) LogError "Not enough space on %SystemDrive%, " + $MinimumSpace$ + " on drive %SystemDrive% needed for " + $ProductId$ isFatalError ; Stop process and set installation status to failed else comment "Show product picture" ShowBitmap "%ScriptPath%\" + $ProductId$ + ".png" $ProductId$ if FileExists("%ScriptPath%\delsub.ins") comment "Start uninstall sub section" Sub "%ScriptPath%\delsub.ins" endif if $LicenseRequired$ = "true" comment "Licensing required, reserve license and get license key" Sub_get_licensekey endif if contains(lower($OnlineUpdate$),"no") comment "Remove Online Updater" Set $Inst_Para$ = $Inst_Para$ + ',gm_o_Onlineupdate' endif if ($Register_EXT$ = "True") Set $Inst_Para$ = $Inst_Para$ + ',REGISTER_ALL_MSO_TYPES=1' else Set $Inst_Para$ = $Inst_Para$ + ',REGISTER_NO_MSO_TYPES=1' endif if ($INST_SystemType$ = "x86 System") Message "Installing " + $ProductId$ + " on 32 Bit..." comment "Start setup program" Winbatch_install_32 Sub "%ScriptPath%\check_msi-exitcode.ins" endif if ($INST_SystemType$ = "64 Bit System") Message "Installing " + $ProductId$ + " on 64 Bit..." comment "Start setup program" Winbatch_install_64 Sub "%ScriptPath%\check_msi-exitcode.ins" endif endif [Winbatch_install_32] msiexec /i %ScriptPath%\$Inst_Prg32$ $Inst_Para$ msiexec /i %ScriptPath%}$Inst_Help_DE_32$ $InstHelp_Para$ [Winbatch_install_64] msiexec /i %ScriptPath%\$Inst_Prg64$ $Inst_Para$ msiexec /i %ScriptPath%\$Inst_Help_DE_64$ $InstHelp_Para$ ==== uninstall.ins ==== [Initial] SetLogLevel=5 ; 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 >= "4.10.8.6" 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$ = "%SystemDrive%\tmp" ; ---------------------------------------------------------------- ; - Please edit the following values - ; ---------------------------------------------------------------- Set $ProductId$ = "LibreOffce" Set $InstallDir32$ = "%ProgramFiles32Dir%\LibreOffice 4.0\" Set $LicenseRequired$ = "false" Set $LicensePool$ = "p_" + $ProductId$ ; ---------------------------------------------------------------- comment "Show product picture" ShowBitmap "%ScriptPath%\" + $ProductId$ + ".png" $ProductId$ Message "Uninstalling " + $ProductId$ + " ..." if FileExists("%ScriptPath%\delsub.ins") comment "Start uninstall sub section" Sub "%ScriptPath%\delsub.ins" endif if $LicenseRequired$ = "true" comment "Licensing required, free license used" Sub_free_license endif [Sub_free_license] comment "License management is enabled and will be used" comment "Trying to free license used for the product" 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("", $ProductId$) ; ; 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("", "", $WindowsSoftwareId$) ==== delsub.ins ==== DefStringList $result$ DefStringList $result1$ DefVar $INST_arch$ Set $INST_arch$ = "Both" DefVar $INST2_SystemType$ Set $INST2_SystemType$ = GetSystemType DefVar $appKey$ DefVar $UninstallCommandList$ DefVar $UninstallCommandList64$ DefVar $appString$ DefVar $appKeyString$ DefVar $testName$ DefVar $exeString$ Set $appKeyString$ = "DisplayName" Set $appString$ = "LibreOffice" if ($INST2_SystemType$ = "x86 System" OR $INST_arch$ = "Both") Message "Uninstalling " + $appString$ + " 32 Bit..." comment "Start setup program" Set $result$ = getRegistryKeyList32("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall") for $app$ in $result$ do Sub_searchApp32 endif if not ($UninstallCommandList$ = "") set $result1$ = splitString($UninstallCommandList$,"::") for $UninstallCommand$ in $result1$ do Winbatch_Uninstall sub "%ScriptPath%\check_msi-exitcode.ins" endif if ($INST2_SystemType$ = "64 Bit System" OR $INST_arch$ = "Both") Message "Uninstalling " + $appString$ + " 64 Bit..." comment "Start setup program" Set $result$ = getRegistryKeyList64("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall") for $app$ in $result$ do Sub_searchApp64 endif if not ($UninstallCommandList64$ = "") set $result1$ = splitString($UninstallCommandList64$,"::") for $UninstallCommand$ in $result1$ do Winbatch_Uninstall sub "%ScriptPath%\check_msi-exitcode.ins" endif if fileExists($InstallDir32$) Files_delete_installdir endif [Sub_searchApp32] set $appKey$ = "[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\" + "$app$" + "] " + $appKeyString$ Set $testName$ = GetRegistryStringValue32($appKey$) if contains($testName$,$appString$) set $appKey$ = "[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\" + "$app$" + "] UninstallString" Set $testName$ = GetRegistryStringValue32($appKey$) if contains(lower($testName$),lower("MsiExec.exe")) set $UninstallCommandList$ = $UninstallCommandList$ + "MsiExec.exe /x " + "$app$" + " /qb-! REBOOT=ReallySuppress::" else Set $testName$ = unquote($testName$,'"') Set $testName$ = unquote($testName$,"'") Set $exeString$ = takeString(0, splitString ($testName$, "exe")) set $UninstallCommandList$ = $UninstallCommandList$ + $exeString$ + "exe /S::" endif endif [Sub_searchApp64] set $appKey$ = "[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\" + "$app$" + "] " + $appKeyString$ Set $testName$ = GetRegistryStringValue64($appKey$) if contains($testName$,$appString$) set $appKey$ = "[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\" + "$app$" + "] UninstallString" Set $testName$ = GetRegistryStringValue64($appKey$) if contains(lower($testName$),lower("MsiExec.exe")) set $UninstallCommandList64$ = $UninstallCommandList64$ + "MsiExec.exe /x " + "$app$" + " /qb-! REBOOT=ReallySuppress::" else Set $testName$ = unquote($testName$,'"') Set $testName$ = unquote($testName$,"'") Set $exeString$ = takeString(0, splitString ($testName$, "exe")) set $UninstallCommandList64$ = $UninstallCommandList64$ + '"' + $exeString$ + 'exe /S"::' endif endif [Winbatch_Uninstall] $UninstallCommand$ [Files_delete_installdir] del -f -s "$InstallDir32$" ====check_msi-exitcode.ins==== ;Den ExitCode des Installers abfragen set $ExitCode$ = getLastExitCode ;Loglevel anpassen SetLogLevel = 6 ;Den ExitCode auswerten if ($ExitCode$ = "0" OR $ExitCode$ ="1641" OR $ExitCode$ ="3010") if ($ExitCode$ = "0") setLogLevel = 5 comment "ExitCode = "+$ExitCode$+" Action completed successfully." setLogLevel = 4 endif if ($ExitCode$ = "1641") setLogLevel = 5 comment "ExitCode = "+$ExitCode$+" ERROR_SUCCESS_REBOOT_INITIATED The installer has started a reboot. This error code not available on Windows Installer version 1.0." setLogLevel = 4 endif if ($ExitCode$ = "3010") setLogLevel = 5 comment "ExitCode = "+$ExitCode$+" ERROR_SUCCESS_REBOOT_REQUIRED A reboot is required to complete the install. This does not include installs where the ForceReboot action is run. This error code not available on Windows Installer version 1.0." setLogLevel = 4 endif else if ($ExitCode$ = "13") setLogLevel = 5 logError "ExitCode = "+$ExitCode$+" ERROR_INVALID_DATA The data is invalid." isFatalError endif if ($ExitCode$ = "87") setLogLevel = 5 logError "ExitCode = "+$ExitCode$+" ERROR_INVALID_PARAMETER One of the parameters was invalid." isFatalError endif if ($ExitCode$ = "120") setLogLevel = 5 logError "ExitCode = "+$ExitCode$+" ERROR_CALL_NOT_IMPLEMENTED This function is not available for this platform. It is only available on Windows 2000 and Windows XP with Window Installer version 2.0." isFatalError endif if ($ExitCode$ = "1259") setLogLevel = 5 logError "ExitCode = "+$ExitCode$+" ERROR_APPHELP_BLOCK This error code only occurs when using Windows Installer version 2.0 and Windows XP or later. If Windows Installer determines a product may be incompatible with the current operating system, it displays a dialog informing the user and asking whether to try to install anyway. This error code is returned if the user chooses not to try the installation." isFatalError endif if ($ExitCode$ = "1601") setLogLevel = 5 logError "ExitCode = "+$ExitCode$+" ERROR_INSTALL_SERVICE_FAILURE The Windows Installer service could not be accessed. Contact your support personnel to verify that the Windows Installer service is properly registered." isFatalError endif if ($ExitCode$ = "1602") setLogLevel = 5 logError "ExitCode = "+$ExitCode$+" ERROR_INSTALL_USEREXIT User cancel installation." isFatalError endif if ($ExitCode$ = "1603") setLogLevel = 5 logError "ExitCode = "+$ExitCode$+" ERROR_INSTALL_FAILURE Fatal error during installation." isFatalError endif if ($ExitCode$ = "1604") setLogLevel = 5 logError "ExitCode = "+$ExitCode$+" ERROR_INSTALL_SUSPEND Installation suspended, incomplete." isFatalError endif if ($ExitCode$ = "1605") setLogLevel = 5 logError "ExitCode = "+$ExitCode$+" ERROR_UNKNOWN_PRODUCT This action is only valid for products that are currently installed." isFatalError endif if ($ExitCode$ = "1606") setLogLevel = 5 logError "ExitCode = "+$ExitCode$+" ERROR_UNKNOWN_FEATURE Feature ID not registered." isFatalError endif if ($ExitCode$ = "1607") setLogLevel = 5 logError "ExitCode = "+$ExitCode$+" ERROR_UNKNOWN_COMPONENT Component ID not registered." isFatalError endif if ($ExitCode$ = "1608") setLogLevel = 5 logError "ExitCode = "+$ExitCode$+" ERROR_UNKNOWN_PROPERTY Unknown property." isFatalError endif if ($ExitCode$ = "1609") setLogLevel = 5 logError "ExitCode = "+$ExitCode$+" ERROR_INVALID_HANDLE_STATE Handle is in an invalid state." isFatalError endif if ($ExitCode$ = "1610") setLogLevel = 5 logError "ExitCode = "+$ExitCode$+" ERROR_BAD_CONFIGURATION The configuration data for this product is corrupt. Contact your support personnel." isFatalError endif if ($ExitCode$ = "1611") setLogLevel = 5 logError "ExitCode = "+$ExitCode$+" ERROR_INDEX_ABSENT Component qualifier not present." isFatalError endif if ($ExitCode$ = "1612") setLogLevel = 5 logError "ExitCode = "+$ExitCode$+" ERROR_INSTALL_SOURCE_ABSENT The installation source for this product is not available. Verify that the source exists and that you can access it." isFatalError endif if ($ExitCode$ = "1613") setLogLevel = 5 logError "ExitCode = "+$ExitCode$+" ERROR_INSTALL_PACKAGE_VERSION This installation package cannot be installed by the Windows Installer service. You must install a Windows service pack that contains a newer version of the Windows Installer service." isFatalError endif if ($ExitCode$ = "1614") setLogLevel = 5 logError "ExitCode = "+$ExitCode$+" ERROR_PRODUCT_UNINSTALLED Product is uninstalled." isFatalError endif if ($ExitCode$ = "1615") setLogLevel = 5 logError "ExitCode = "+$ExitCode$+" ERROR_BAD_QUERY_SYNTAX SQL query syntax invalid or unsupported." isFatalError endif if ($ExitCode$ = "1616") setLogLevel = 5 logError "ExitCode = "+$ExitCode$+" ERROR_INVALID_FIELD Record field does not exist." isFatalError endif if ($ExitCode$ = "1618") setLogLevel = 5 logError "ExitCode = "+$ExitCode$+" ERROR_INSTALL_ALREADY_RUNNING Another installation is already in progress. Complete that installation before proceeding with this install." isFatalError endif if ($ExitCode$ = "1619") setLogLevel = 5 logError "ExitCode = "+$ExitCode$+" ERROR_INSTALL_PACKAGE_OPEN_FAILED This installation package could not be opened. Verify that the package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer package." isFatalError endif if ($ExitCode$ = "1620") setLogLevel = 5 logError "ExitCode = "+$ExitCode$+" ERROR_INSTALL_PACKAGE_INVALID This installation package could not be opened. Contact the application vendor to verify that this is a valid Windows Installer package." isFatalError endif if ($ExitCode$ = "1621") setLogLevel = 5 logError "ExitCode = "+$ExitCode$+" ERROR_INSTALL_UI_FAILURE There was an error starting the Windows Installer service user interface. Contact your support personnel." isFatalError endif if ($ExitCode$ = "1622") setLogLevel = 5 logError "ExitCode = "+$ExitCode$+" ERROR_INSTALL_LOG_FAILURE Error opening installation log file. Verify that the specified log file location exists and is writable." isFatalError endif if ($ExitCode$ = "1623") setLogLevel = 5 logError "ExitCode = "+$ExitCode$+" ERROR_INSTALL_LANGUAGE_UNSUPPORTED This language of this installation package is not supported by your system." isFatalError endif if ($ExitCode$ = "1624") setLogLevel = 5 logError "ExitCode = "+$ExitCode$+" ERROR_INSTALL_TRANSFORM_FAILURE Error applying transforms. Verify that the specified transform paths are valid." isFatalError endif if ($ExitCode$ = "1625") setLogLevel = 5 logError "ExitCode = "+$ExitCode$+" ERROR_INSTALL_PACKAGE_REJECTED This installation is forbidden by system policy. Contact your system administrator." isFatalError endif if ($ExitCode$ = "1626") setLogLevel = 5 logError "ExitCode = "+$ExitCode$+" ERROR_FUNCTION_NOT_CALLED Function could not be executed." isFatalError endif if ($ExitCode$ = "1627") setLogLevel = 5 logError "ExitCode = "+$ExitCode$+" ERROR_FUNCTION_FAILED Function failed during execution." isFatalError endif if ($ExitCode$ = "1628") setLogLevel = 5 logError "ExitCode = "+$ExitCode$+" ERROR_INVALID_TABLE Invalid or unknown table specified." isFatalError endif if ($ExitCode$ = "1629") setLogLevel = 5 logError "ExitCode = "+$ExitCode$+" ERROR_DATATYPE_MISMATCH Data supplied is of wrong type." isFatalError endif if ($ExitCode$ = "1630") setLogLevel = 5 logError "ExitCode = "+$ExitCode$+" ERROR_UNSUPPORTED_TYPE Data of this type is not supported." isFatalError endif if ($ExitCode$ = "1631") setLogLevel = 5 logError "ExitCode = "+$ExitCode$+" ERROR_CREATE_FAILED The Windows Installer service failed to start. Contact your support personnel." isFatalError endif if ($ExitCode$ = "1632") setLogLevel = 5 logError "ExitCode = "+$ExitCode$+" ERROR_INSTALL_TEMP_UNWRITABLE The temp folder is either full or inaccessible. Verify that the temp folder exists and that you can write to it." isFatalError endif if ($ExitCode$ = "1633") setLogLevel = 5 logError "ExitCode = "+$ExitCode$+" ERROR_INSTALL_PLATFORM_UNSUPPORTED This installation package is not supported on this platform. Contact your application vendor." isFatalError endif if ($ExitCode$ = "1634") setLogLevel = 5 logError "ExitCode = "+$ExitCode$+" ERROR_INSTALL_NOTUSED Component not used on this machine" isFatalError endif if ($ExitCode$ = "1635") setLogLevel = 5 logError "ExitCode = "+$ExitCode$+" ERROR_PATCH_PACKAGE_OPEN_FAILED This patch package could not be opened. Verify that the patch package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer patch package." isFatalError endif if ($ExitCode$ = "1636") setLogLevel = 5 logError "ExitCode = "+$ExitCode$+" ERROR_PATCH_PACKAGE_INVALID This patch package could not be opened. Contact the application vendor to verify that this is a valid Windows Installer patch package." isFatalError endif if ($ExitCode$ = "1637") setLogLevel = 5 logError "ExitCode = "+$ExitCode$+" ERROR_PATCH_PACKAGE_UNSUPPORTED This patch package cannot be processed by the Windows Installer service. You must install a Windows service pack that contains a newer version of the Windows Installer service." isFatalError endif if ($ExitCode$ = "1638") setLogLevel = 5 logError "ExitCode = "+$ExitCode$+" ERROR_PRODUCT_VERSION Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use Add/Remove Programs on the Control Panel." isFatalError endif if ($ExitCode$ = "1639") setLogLevel = 5 logError "ExitCode = "+$ExitCode$+" ERROR_INVALID_COMMAND_LINE Invalid command line argument. Consult the Windows Installer SDK for detailed command line help." isFatalError endif if ($ExitCode$ = "1640") setLogLevel = 5 logError "ExitCode = "+$ExitCode$+" ERROR_INSTALL_REMOTE_DISALLOWED Installation from a Terminal Server client session not permitted for current user." isFatalError endif if ($ExitCode$ = "1642") setLogLevel = 5 logError "ExitCode = "+$ExitCode$+" ERROR_PATCH_TARGET_NOT_FOUND The installer cannot install the upgrade patch because the program being upgraded may be missing or the upgrade patch updates a different version of the program. Verify that the program to be upgraded exists on your computer and that you have the correct upgrade patch. This error code is not available on Windows Installer version 1.0." isFatalError endif if ($ExitCode$ = "1643") setLogLevel = 5 logError "ExitCode = "+$ExitCode$+" ERROR_PATCH_PACKAGE_REJECTED The patch package is not permitted by system policy. This error code is available with Windows Installer versions 2.0 or later." isFatalError endif if ($ExitCode$ = "1644") setLogLevel = 5 logError "ExitCode = "+$ExitCode$+" ERROR_INSTALL_TRANSFORM_REJECTED One or more customizations are not permitted by system policy. This error code is available with Windows Installer versions 2.0 or later." isFatalError endif endif ;Loglevel anpassen SetLogLevel = 4 ==== control ==== [[Package] version: 1 depends: incremental: False [Product] type: localboot id: libreoffice_win name: LibreOffice description: Libre Office with help pack for x86 and amd64 advice: version: 6.3.4 priority: 0 licenseRequired: False productClasses: setupScript: setup.ins uninstallScript: uninstall.ins updateScript: alwaysScript: onceScript: customScript: userLoginScript: [ProductProperty] type: unicode name: updater_enabled multivalue: False editable: False description: Soll der Updater an oder aus sein? values : ["Yes","No"] default: ["Yes"] [ProductProperty] type: bool name: register_all_extensions description: Register all possible file extensions with LibreOffice default: True [Changelog] libreoffice_win (4.3.7-1) testing; urgency=low * Initial package -- Dominik Sat, 30 May 2015 23:28:12 +0000