[wpkg-users] [Bug 170] An "uninstall" type check with version comparison succeeds if the uninstall entry is missing

bugzilla-daemon at bugzilla.wpkg.org bugzilla-daemon at bugzilla.wpkg.org
Mon Aug 10 20:42:11 CEST 2009


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





--- Comment #2 from Malte Starostik <malte at malte.homeip.net>  2009-08-10 20:42:06 ---
Hi Rainer,

that code is inside the

for (var iUninstKey=0; iUninstKey < uninstallLocations.length; iUninstKey++)

loop.  However if uninstallLocations is empty because the software in question
is not installed at all, there is nothing to iterate over and execution
continues past all possible false returns to the return true; statement that
follows the loop.

A package with only this check will never be installed unless a prior version
of Office 2k3 exists:
<check type='uninstall' condition='versiongreaterorequal' path='Microsoft
Office Professional Edition 2003' value='11.0.5614.0'/>

Regards,
Malte

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