Closed Bug 11777 Opened 25 years ago Closed 15 years ago

AddFile: Passing "" as the folder object returns error -3 except on Macintosh

Categories

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

All
Windows NT
defect

Tracking

(Not tracked)

RESOLVED INVALID
Future

People

(Reporter: jimmykenlee, Assigned: slogan)

Details

Build: 8/11/99 SeaMonkey build

1. From http://jimbob/trigger2.html, trigger
   http://jimbob/jars/f_addsubcomp_blankobject.jar

Install.StartInstall("Functional:f_addsubcomp_blankobject",
"f_addsubcomp_blankobject", vi, 0);
err = Install.AddSubcomponent(regName, vi, jarSrc, "", jarSrc, true);
Install.LogComment("AddSubcomponent returns = " + err);
if (0 == Install.GetLastError())
	Install.FinalizeInstall();
else
	Install.AbortInstall();

RESULT:
From Linux and Windows, the file is not installed.  The Install.log shows the
following:

---------------------------------------------------------------------------
http://jimbob/jars/f_addsubcomp_blankobject.jar     --     08/12/1999 13:58:35
---------------------------------------------------------------------------

     Functional: f_addsubcomp_blankobject


     ** ERROR (-3): Installing:
     ** AddSubcomponent returns = -3

     Install script aborted
     Finished Installation  08/12/1999 13:58:35

From the Macintosh, the installation does complete.  The file is installed to
the "Program" directory.  There are no errors.  The version registry is updated
to reflect this installation.

EXPECTED RESULT:
I believe the installation should fail.  Error -3 is not documented, so we
either need to document it or assign an appropriate documented error.

The Macintosh should fail like Linux and Windows.
Target Milestone: M15
Bulk move of XPInstall (component to be deleted) bugs to Installer: XPInstall
Engine
we should return an err, and not install the file.
reassign to sgehani
bug meeting 3/20
Assignee: cathleen → sgehani
Target Milestone: M15 → M17
Status: NEW → ASSIGNED
will fix in PR3
Summary: AddSubcomponent: Passing "" as the folder object returns error -3 except on Macintosh → AddFile: Passing "" as the folder object returns error -3 except on Macintosh
Target Milestone: M17 → M18
Resetting target field for missed milestones
Target Milestone: M18 → ---
Over to Syd for installer bug triage
Assignee: sgehani → syd
Status: ASSIGNED → NEW
Target Milestone: --- → M1
Target Milestone: M1 → Future
install.js is no longer supported
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → INVALID
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.