[wpkg-users] installation of LibreOffice 4.1.3 and Java 7u45 failed

Carlos Gomes - STI Unesp Franca cgomes at franca.unesp.br
Thu Nov 7 18:23:29 CET 2013


2013/11/7 Matej Kovacic <matej.kovacic at owca.info>

> Hi,
>
> I have LibreOffice 3.5.3.2 and am trying to install 4.1.3. I downloaded
> LibreOffice_4.1.3_Win_x86.msi from LO website.
>
> Anyway, the installation is not successfull.
>
> cscript says:
>
> The path 'C:\Program Files (x86)\Java\jre7\bin\java.exe' does not exist:
> the test failed.
> Saving unsorted settings to 'C:\Windows\System32\wpkg.xml'.false
> Saving XML : C:\Windows\System32\wpkg.xml
> Could not process (upgrade) Java(TM) 7.
> Failed checking after installation.
> Cleaning up temporary downloaded files
> Restoring previous environment.
>
> The problem is, that when I try to install Java7 through WPKG, it says
> installation is successfull. I can also see it is installed from Control
> Panel (Java 7u45). I also tried to remove it and the install it again.
>
> Anyway, I have checked C:\Program Files\Java\jre7\bin and C:\Program
> Files (x86)\Java\jre7\bin\ and there is only one file in it: msvcr100.dll.
>
> I have attached XML scripts for installation od LibreOffice and Java7.
>
> Java is prepared in such a way.
> 1. I downloaded jre-7u45-windows-i586.exe and jre-7u45-windows-x64.exe
> from Oracle website.
>
> 2. Run both installers on my local machine. After the end went to
> C:\Users\user\AppData\LocalLow\Sun\Java and copy directory jre1.7.0_45
> to WPKG server.
>
> 3. Went to C:\Users\user\AppData\LocalLow\Sun\Java and copy
> jre1.7.0_45_x64 to the WPKG server.
>
> Any idea where could be the error?
>
>
> Regards,
>
> Matej
>
> -------------------------------------------------------------------------
> Hotel discounts, best prices: http://www.booking.com/index.html?aid=366545
> -------------------------------------------------------------------------
> wpkg-users mailing list archives >>
> http://lists.wpkg.org/pipermail/wpkg-users/
> _______________________________________________
> wpkg-users mailing list
> wpkg-users at lists.wpkg.org
> http://lists.wpkg.org/mailman/listinfo/wpkg-users
>
>
if helps, heres our fully funcioning scripts for libreoffice and java:

<package
        id="java7"
        name="Java(TM) 7"
        revision="%version%"
        reboot="false"
        priority="178"
        >


        <variable name="updatever" value="45" />
        <variable name="shortupdatever" value="45" />
        <variable name="version" value="7.0.%updatever%" />
        <variable name="autoupdate" value="0" />

        <check architecture="x86" type="file" condition="exists"
path="%PROGRAMFILES%\Java\jre7\bin\java.exe" />

        <check architecture="x64" type="file" condition="exists"
path="%PROGRAMFILES(X86)%\Java\jre7\bin\java.exe" />

        <check type="logical" condition="or">
            <check type="uninstall" condition="exists" path="Java 7" />
            <check type="uninstall" condition="exists" path="Java 7 Update
%updatever%" />
            <check type="uninstall" condition="exists" path="Java 7 Update
%shortupdatever%" />
        </check>

        <install cmd='taskkill /f /im jqs.exe /im iexplore.exe /im
firefox.exe'>
          <exit code='any' />
        </install>
        <!-- .exe install (XP, 2003) -->
        <install os=".+5\.[1-2]\.\d{4}"

cmd='\\0.0.0.0\WPKG\basicos\java\jre-7u%shortupdatever%-windows-i586.exe
/s' />

        <!-- .msi (Seven) install
http://wpkg.org/Java#Install_JRE_with_msi_without_removing_old_version_in_a_mixed_32-bit.2F64-bit_environment-->
        <install os=".+6\.[0-1]\.\d{4}"
        cmd='msiexec /qn /i
\\0.0.0.0\WPKG\basicos\java\jre1.7.0_%updatever%\jre1.7.0_%updatever%.msi
REBOOT=Suppress JAVAUPDATE=%autoupdate% CUSTOM=1' />

        <!-- remove Java Quick Starter -->
        <install cmd='%COMSPEC% /C if exist
"%PROGRAMFILES%\Java\jre7\bin\jqs.exe"
"%PROGRAMFILES%\Java\jre7\bin\jqs.exe" -unregister'>
          <exit code='any' />
        </install>
        <install cmd='%COMSPEC% /C if exist
"%PROGRAMFILES(x86)%\Java\jre7\bin\jqs.exe"
"%PROGRAMFILES(x86)%\Java\jre7\bin\jqs.exe" -unregister'>
          <exit code='any' />
        </install>

        <!-- remove Java Auto Update -->
        <install cmd='REG DELETE
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v SunJavaUpdateSched
/f'>
          <exit code='any' />
        </install>

        <downgrade include="install" />

        <upgrade include="install" />

        <remove cmd='msiexec /qn /x
{26A24AE4-039D-4CA4-87B4-2F832170%updatever%FF}' />

    </package>

************************************************************

!-- LibreOffice -->
    <package
        id="libreoffice"
        name="LibreOffice"
        revision="%version%"
        reboot="false"
        priority="70">

        <variable name="version" value="4.1.1.2" />
        <variable name="LANG" value="IS1078=0 IS1025=0 IS1101=0 IS1610=0
IS1059=0 IS1026=0 IS2117=0 IS2121=0 IS1150=0 IS1603=0 IS5146=0 IS1027=0
IS32771=0 IS1029=0 IS1106=0 IS1030=0 IS1031=0 IS1604=0 IS2129=0 IS1032=0
IS2057=0 IS7177=0 IS1553=0 IS1061=0 IS1069=0 IS1065=0 IS1035=0 IS1036=0
IS2108=0 IS1084=0 IS1110=0 IS1095=0 IS1037=0 IS1081=0 IS1050=0 IS1038=0
IS1057=0 IS1039=0 IS1040=0 IS1041=0 IS1079=0 IS1087=0 IS1107=0 IS1099=0
IS1042=0 IS1111=0 IS1120=0 IS1574=0 IS1134=0 IS1108=0 IS1063=0 IS1062=0
IS1605=0 IS1071=0 IS1100=0 IS1104=0 IS1112=0 IS1102=0 IS1109=0 IS1044=0
IS1121=0 IS1043=0 IS2068=0 IS1580=0 IS1132=0 IS1154=0 IS2162=0 IS1096=0
IS1094=0 IS1045=0 IS2070=0 IS1046=0 IS1048=0 IS1049=0 IS1569=0 IS1103=0
IS1606=0 IS1113=0 IS2074=0 IS2133=0 IS1051=0 IS1060=0 IS1052=0 IS3098=0
IS1579=0 IS1072=0 IS1053=0 IS1089=0 IS1097=0 IS1098=0 IS1064=0 IS1054=0
IS1074=0 IS1055=0 IS1073=0 IS1092=0 IS1152=0 IS1058=0 IS1091=0 IS1075=0
IS1066=0 IS1076=0 IS2052=0 IS1028=0 IS1077=0 IS1050=0 IS1033=1 IS1034=0" />

        <check type="uninstall" condition="versiongreaterorequal"
path="LibreOffice %version%" value="%version%" />

        <install cmd='msiexec /qb! /i
"\\0.0.0.0\WPKG\basicos\libreoffice\LibreOffice_4.1.1_Win_x86.msi"
ALLUSERS=1 CREATEDESKTOPLINK=1 REGISTER_ALL_MSO_TYPES=0
ISCHECKFORPRODUCTUPDATES=0 %LANG%' />

        <upgrade include="install" />

        <remove cmd="msiexec /qb! /uninstall
{F1EE568A-171F-4C06-9BE6-2395BED067A3}" />
    </package>

    <!-- LibreOffice Helppack -->
    <package
        id="libreofficehelppackpt-BR"
        name="LibreOffice Helppack PT-BR"
        revision="%PKG_VERSION_UNINSTALL%"
        reboot="false"
        priority="1">

        <variable name="PKG_VERSION_MAIN"      value="4.1" />
        <variable name="PKG_VERSION"           value="4.1.1" />
        <variable name="PKG_VERSION_UNINSTALL" value="4.1.1.2" />

        <variable name="LANG1" value="Portuguese (Brazil)" />
        <variable name="LANG2" value="pt-BR" />

        <variable name="PKG_EXE"
value="LibreOffice_%PKG_VERSION%_Win_x86_helppack_%LANG2%.msi" />
        <variable name="PKG_SOURCE"
value="\\0.0.0.0\WPKG\basicos\libreoffice" />

        <check type="uninstall" condition="versionequalto"
path="LibreOffice %PKG_VERSION_MAIN% Help Pack (%LANG1%)"
value="%PKG_VERSION_UNINSTALL%" />

        <install cmd='msiexec /qb! /i "%PKG_SOURCE%\%PKG_EXE%" ALLUSERS=1'
/>

        <upgrade include="install" />

        <remove cmd="msiexec /qb! /uninstall
{54FD4E2E-EE28-4020-B0FF-3697FDE75CC7}" /> <!-- 4.1.0 -->
    </package>

-- 
[]'s
---------------------------------
Carlos Gomes
Assistente de Informática II - STI
skype: cgomes.unesp
55(16)3706-8783
UNESP/Franca - FCHS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/wpkg-users/attachments/20131107/d89189ba/attachment-0003.html>


More information about the wpkg-users mailing list