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

Andreas Schamanek schamane at fam.tuwien.ac.at
Sat Oct 13 16:47:20 CEST 2018


On Sat, 13 Oct 2018, at 05:38, Frederic Bergeron wrote:

> 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?

You have severals checks, but 2 are commented out. The other 2 result 
apparently in a FALSE (i.e. the 2 files do not exist), hence Firefox 
is installed/"upgraded" (again).

> <!--check type="uninstall" condition="exists" path="Mozilla Firefox %version% (%architecture% %locale%)" /-->
> <check type="file" condition="exists" path="%PKG_DST%\firefox.exe"/>
> <!--check type="file" condition="exists" path="%PKG_DST%\defaults\pref\policies.js" />
> <check type="file" condition="exists" path="%PKG_DST%\mozilla.cfg" /-->

I use the following check:

   <check type="uninstall" condition="versiongreaterorequal"
     path="Mozilla Firefox .+ \(%architecture% %locale%\)"
     value="%version%" />

So Firefox should be upgraded if the version in the registry 
("uninstall") is lower than what the XML says is available.

-- 
-- Andreas

     :-)



More information about the wpkg-users mailing list