Closed Bug 13985 Opened 27 years ago Closed 26 years ago

xpinstall does not return error code when error occurs

Categories

(Core Graveyard :: Installer: XPInstall Engine, defect, P3)

defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: ssu0262, Assigned: ssu0262)

Details

xpinstall does not return error code when error occurs before calling StartInstall(). I needs to return an error code or some type so the native installers can detect the error and respond appropriately.
Blocks: 13117
No longer blocks: 13117
Target Milestone: M11
needs to be fixed by beta
Assignee: dveditz → ssu
reassigning to myself.
Status: NEW → RESOLVED
Closed: 27 years ago
Resolution: --- → FIXED
This is fixed in the M10 build, if the script does not call Finalize or Abort then SCRIPT_ERROR value is returned.
Status: RESOLVED → REOPENED
Build 1999-10-18-09-M11(WIN), 1999-10-18-12-M11(MAC), 1999-10-18-08-M11(LINUX) Installation of the file (all platforms) is still occuring with the following script: var regName = "13985"; var jarSrc = "smrtupdt.txt"; startInstall("Bug: 13985", "13985", "1.0.1.4", 0); f = getFolder("Program", "13985"); addFile("Bug_13985", "1.0.1.41", jarSrc, f, jarSrc, true); //Finalize intentionally omitted The file is not getting registered. The Install.log returns the following: --------------------------------------------------------------------------- http://jimbob/jars/13985.xpi -- 10/18/1999 17:20:49 --------------------------------------------------------------------------- Bug: 13985 ---------- Install **FAILED** with error -229 Finished Installation 10/18/1999 17:20:52 This xpi file is at http://jimbob/jars/13985.xpi EXPECTED RESULT: File does not get installed.
Resolution: FIXED → ---
Clearing FIXED resolution due to reopen.
Status: REOPENED → RESOLVED
Closed: 27 years ago → 26 years ago
Resolution: --- → FIXED
This bug is fixed, a status code is returned if the script does nothing. Cleaning up after itself is another story entirely, and that's covered by bug 11581
Status: RESOLVED → VERIFIED
Build 1999-11-08-09-M11(WIN), 1999-11-08-08-M11(MAC), 1999-11-08-08-M11(LINUX) Marking Verified.
Bulk move of XPInstall (component to be deleted) bugs to Installer: XPInstall Engine
Moving test file 13985.xpi from /jimbob/jars to /jimbob/bugs folder.
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.