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

Frederic Bergeron FBergeron at rocketmail.com
Sat Oct 13 07:38:45 CEST 2018


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/wpkg-users/attachments/20181013/c9829ac9/attachment.html>


More information about the wpkg-users mailing list