[wpkg-users] update vs. install check

Matt Miller mmiller at solutionsforprogress.com
Mon Nov 17 17:55:39 CET 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I have a question about which takes priority, the revision number or the
installation check. This becomes an issue with packages like Firefox
that put version numbers in the Add/Remove Programs entry.

For instance, my Firefox 3 package for wpkg looks something like this:

<package
    id="firefox3"
    name="Mozilla Firefox 3"
    revision="3"
    reboot="false"
    priority="11">
    <check type="logical" condition="or">
        <check type="uninstall" condition="exists" path="Mozilla Firefox
(3.0)" />
        <check type="uninstall" condition="exists" path="Mozilla Firefox
(3.0.3)" />
    </check>

    <install cmd="\\%software%\firefox3\install-silent.cmd">
        <exit code="0" />
    </install>
    <install cmd="\\%software%\firefox3\post-install.cmd" />

    <upgrade cmd="\\%software%\firefox3\install-silent.cmd" />
    <upgrade cmd="\\unattended\wpkg\pkg\firefox3\post-upgrade.cmd" />

    <remove cmd="\\%software%\firefox3\remove-silent.cmd" />
    <remove cmd="\\%software%\firefox3\post-remove.cmd" />
</package>


The logical condition "or" check lists two versions of Firefox 3. I
assume that the recent update will list "Firefox (3.0.4)" in Add/Remove
Programs. I'd like to eliminate the potential long list of logical
checks if possible.

My question is, if increment the revision and make the check section
<check type="uninstall" condition="exists" path="Mozilla Firefox (3.0.4)" />
will WPKG attempt to run the install command or the upgrade command?
Initially, the check will fail, but it has a lower revision...

- --
- - Matt Miller -
Solutions for Progress
728 South Broad Street
Philadelphia, PA  19146
215-701-6108 (v)
215-972-8109 (f)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFJIaILCg+4SLjWLD0RAlaJAJ0ZTLiFIShmvxuQ21q6JyZdWfZYTQCeMkiL
PHA6WXdkFQ3wLEJ9ZD8GzLU=
=VLvD
-----END PGP SIGNATURE-----



More information about the wpkg-users mailing list