[wpkg-users] Probably a newbie problem...

Frederic Bergeron FBergeron at rocketmail.com
Sat Oct 13 08:59:37 CEST 2018


 Hi Raphaël,

Thank you for your quick reply.

In Windows Log, I had this error:

Could not process (upgrade) package 'Mozilla Firefox' (firefox): Exit code returned non-successful value (1) on command '%COMSPEC% /c copy /y "%SOFTWARE%\internet\firefox\policies.js" "%PKG_DST%\Mozilla Firefox\defaults\pref\"'.
I wonder if it's normal to see the %SOFTWARE% and %PKG_DST% variables at this level.  I would have expected to see the variable values instead.
If I comment out the copy statements, it works properly.

For information, I had not removed the whole wpkg.xml file.  I had edited the file and deleted all the lines related to the firefox package.

Frederic


    On Saturday, October 13, 2018, 2:59:44 PM GMT+9, Raphaël Brocq <raphael-jacky-r.brocq at ac-lyon.fr> wrote:  
 
 Bonjour,

Que dis le journal d'événements ? As-tu carrément supprimer wpkg.xml ? 

Je trouve que tu as beaucoup de check ! Il doit y en avoir un qui pose pb.
Chez nous, on utilise ce paquet : https://forum-dane.ac-lyon.fr/forum/viewtopic.php?f=44&t=2086

On est un peu en retard, mais tu peux tenter en changeant la valeur de la version.

Bon courage

Raphaël

Le 13 octobre 2018 07:38:45 GMT+02:00, Frederic Bergeron <FBergeron at rocketmail.com> a écrit :
Hi,

I have the following problem: Each time that my computers reboot, WPKG upgrades Firefox even though the latest version is already installed. Why does this happen? What am I doing wrong?

Here is a copy of the my firefox.xml package file:

<?xml version="1.0" encoding="UTF-8"?>

<packages>
    <package 
        id="firefox"
        name="Mozilla Firefox"
        revision="%version%"
        reboot="false"
        priority="10">
     
        <variable name="version" value="62.0.3" />
        <!--variable name="architecture" value="x86" architecture="x86"/-->
        <!--variable name="architecture" value="x64" architecture="x64"/-->
        <variable name="locale" value="fr" />
        <variable name="locale" lcid="0411" value="ja" />
        <variable name="langSuffix" value=""/>
        <variable name="langSuffix" lcid="0411" value="_ja"/>
        <variable name="PKG_DST" value="%ProgramFiles%\Mozilla Firefox" architecture="x86" />
        <variable name="PKG_DST" value="%ProgramFiles(x86)%\Mozilla Firefox" architecture="x64" />
     
        <!--check type="uninstall" condition="exists" path="Mozilla Firefox %version% (%architecture% %locale%)" /-->
        <check type="file" condition="exists" path="%PKG_DST%\firefox.exe"/>
     
        <install cmd="taskkill /F /IM Firefox.exe">
            <exit code="0" />
            <exit code="-1073741515" />
            <exit code="128" />
        </install>
    
        <install cmd='"%SOFTWARE%\internet\firefox\Firefox Setup %version%%langSuffix%.exe" -ms' />

        <install cmd='%COMSPEC% /c copy /y "%SOFTWARE%\internet\firefox\policies.js" "%PKG_DST%\Mozilla Firefox\defaults\pref\"' />
        <install cmd='%COMSPEC% /c copy /y "%SOFTWARE%\internet\firefox\mozilla.cfg" "%PKG_DST%\Mozilla Firefox\"' />
        <!--check type="file" condition="exists" path="%PKG_DST%\defaults\pref\policies.js" />
        <check type="file" condition="exists" path="%PKG_DST%\mozilla.cfg" /-->

        <install cmd='%COMSPEC% /c copy /y "%SOFTWARE%\internet\firefox\override.ini" "%PKG_DST%\"' />

        <upgrade include="install" />

        <remove cmd="taskkill /F /IM Firefox.exe">
            <exit code="0" />
            <exit code="128" />
            <exit code="-1073741515" />
        </remove>
     
        <!-- for 32bit and 64bit System -->
        <remove cmd='%COMSPEC% /C if exist "%PROGRAMFILES%\Mozilla Firefox\uninstall\helper.exe" "%PROGRAMFILES%\Mozilla Firefox\uninstall\helper.exe" -ms' />
        <remove cmd='%COMSPEC% /C if exist "%PROGRAMFILES(x86)%\Mozilla Firefox\uninstall\helper.exe" "%PROGRAMFILES(x86)%\Mozilla Firefox\uninstall\helper.exe" -ms' />
    </package>

</packages>

I know that if I manually uninstall Firefox and remove the firefox entry in wpkg.xml that it will work correctly, meaning that WPKG will install Firefox once no matter how many times I reboot the machine.  So the problem seems to occur when I upgrade, not when I install.

Regards,

Frederic



-- 
Envoyé depuis mon smartphone. Veuillez excuser ma brièveté.  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/wpkg-users/attachments/20181013/e289e024/attachment-0001.html>


More information about the wpkg-users mailing list