[wpkg-users] [Bug 191] Upgrade does not execute when detected already installed but no revision number exists

bugzilla-daemon at bugzilla.wpkg.org bugzilla-daemon at bugzilla.wpkg.org
Thu Jul 15 20:46:50 CEST 2010


http://bugzilla.wpkg.org/show_bug.cgi?id=191

Rainer Meier <r.meier at wpkg.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |r.meier at wpkg.org
         Resolution|                            |INVALID

--- Comment #1 from Rainer Meier <r.meier at wpkg.org>  ---
This is not a bug but instead the intended behavior of WPKG in such case.

If the administrator adds a new software to the profile which was not under
WPKG control before then WPKG executes the checks and if the checks succeed
then WPKG knows the software is installed already.

The package revision is at no means related to the version of the software.
WPKG cannot know the version of the software installed if you do not specify
the checks accordingly.
This also shows the "solution" for your use case: Just add proper checks so
WPKG can detect that the version you would like to install is not applied yet.
For example add a file version check to verify that this specific version is
installed.

For example if the user installs version 1.0 of the software but you roll out
version 1.2 then supplying only your uninstall check WPKG has no possibility to
check whether the software is up to date.
Just add a file version check - for example on
"%ProgramFiles%\MySoftware\mysoftware.exe" and check for version
"greaterorequal" with the value of "1.2". So the checks executed by WPKG will
not succeed and WPKG instead installs the software.
NOTE: Still WPKG cannot detect then that an outdated version is installed
already so it executes the install commands (not upgrade). Also this is not a
bug since WPKG does not have any checks defined to check for previous versions.




Please note that this behavior is extremely useful if you add existing machines
to WPKG control not from the beginning but later. So WPKG does not have to
reinstall all the packages for which the checks already succeed.
Please also note that even in your case WPKG will update MySoftware when you do
the next update (e.g. to revision 6) and then all machines will be on the same
level again.
But if you want to make sure that it is guaranteed that all machines are always
on the same level, then add checks which verify the version installed - not
just the fact that any version of the software is installed (as your uninstall
check does).


br,
Rainer

-- 
Configure bugmail: http://bugzilla.wpkg.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.



More information about the wpkg-users mailing list