Both addFile() and addDirectory() return version compare values -4, .. -1 when the script tries to install a file with an older version than an existing file and the force flag is not set. It is correct that the older file is not installed, but it should not be reported as an error to the script.
Assignee: cathleen → dveditz
Target Milestone: M12
Status: NEW → RESOLVED
Last Resolved: 19 years ago
Resolution: --- → FIXED
You can now attempt to install an older component and it will correctly be skipped rather than return a bogus error.
Bulk move of XPInstall (component to be deleted) bugs to Installer: XPInstall Engine
Reassigning QA Contact to David.
not fixed. retested on build 2000011008-M13 (linux, nt and mac). returns -208 (invalid parameter) in logfile: ** ERROR (-208): Skipping: (null) Install script aborted. steps: 1) from http://jimbob/trigger2.html, select f_addsubcomp from dropdown. press trigger case. This installs version 220.127.116.11 in reg package f_addsubcomp. 2) then select f_addsubcomp_vi_no_update from dropdown. Script has older version (18.104.22.168) w/ force flag = false. Note: In 4 separate tests, I tested lower major, minor, version and build components of the version string, and in each case, it returns -208. (in each case, the .xpi included an earlier test file and it correctly did not install it). Also, I tested compareVersion forms of InstallTrigger object and they were returning expected values for each case.
Status: REOPENED → RESOLVED
Last Resolved: 19 years ago → 19 years ago
Resolution: FIXED → DUPLICATE
*** This bug has been marked as a duplicate of 22341 ***
dup. 22341 has been fixed.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.