Closed Bug 86976 Opened 23 years ago Closed 23 years ago

xpinstall needs to shutdown -turbo mode for file replace/remove

Categories

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

x86
All
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9.3

People

(Reporter: cathleennscp, Assigned: dveditz)

References

Details

(Whiteboard: [PDT+] need super-review)

Attachments

(1 file)

right now -turbo mode is windows only feature. -turbo mode will start an instance of the app and keep it running in the backgroud, without displaying any app window. so, this can be a problem for xpintall when doing an update, we need a way to tell the app to "really quit", so we can replace/delete files that are in use.
Blocks: 75599
I'm pretty sure this is going to be ugly. We've had problems with the cleanup routines since day one. This turbo-mode thing is going to complicate things.
yup... unfortunately :-(
Given that: 1) xpicleanup will place itself into the windows RunOnce regsitry key 2) the browser will not startup if a cleanup is required (a message is displayed indication so). I hope this is true regardless if the -turbo is passed on the command line. I think one solution is to have the the web page require the user to restart the system (as opposed to only restarting the browser) on any win os's (nt or 9x) when a restart is required. This way, it'll give xpicleanup time to do it's thing. This should solve the problem with the -turbo without requiring xpicleanup to force a quit of the browser (which in itself has problems). Don what do you think?
Having the user require a restart of the system does take away the reason for having xpicleanup in the first place. Perhaps we should offer the ability to check the browser prefs to see if the browser is running in turbo mode. This way, if they are not, then a simple restart of the browser should update as expected.
> Perhaps we should offer the ability to check the browser prefs to see if the > browser is running in turbo mode. This way, if they are not, then a simple > restart of the browser should update as expected. I agree!
sean is this the bug that you said you and don are working on?? in the cleanup routine?
yeah. I think there are several bugs related to this one. we'll have to start dup'ing.
as long as we make one of them link to 75599, I don't mind which one is open :-)
Ok, it's looking like things are getting nasty with this turbo mode thing. XPInstall only kicks off the cleanup utility when it gets a shutdown message (we're set up as a shutdown observer). It looks like 89156 is showing that the shutdown routine is not being called so the xpicleanup isn't even being kicked off. This other problem with this is that you can't call netscape -kill (is that right Sean?) to shut off turbo mode, again because the shutdown routine isn't being called. To see what I'm talking about look at mozilla/xpinstall/src/nsSoftwareUpdate.cpp. You should see the ::Shutdown*=() routine at line 191.
Adding K'Trina and Grace to keep in the loop.
Was this supposed to be nsbranch, cathleen? I'm reviewing your email minutes from -turbo mtg.
Blocks: 89424
Keywords: nsBranch
Whiteboard: [PDT+]
Target Milestone: --- → mozilla0.9.3
This bug seems to be SmartUpdate specific. I thought the PDT+ bug was going to shut down the app during a normal install. I'm also wondering if this was supposed to be just nsBranch instead of PDT+. Syd?
I think if you want people to successfully upgrade to 6.1.1 or 6.2 or e-mojo, we better fix this.
Yes, this was the one item that sean was talking about in the turbo summit, and I think this fell through the crack for a decision when meeting ends. Sean had mentioned that there is another bug in xpinstall cleanup routine that will fix this bug, or at least covers in the same area... and would like to try getting this fixed when other fix lands. If we don't fix this, we're going to have upgrade issues for users who have turbo turned on and going through smartupdate. The summary email I sent out earlier included this wrong bug number, it should've been bug 87033 instead, for installer to kill -turbo, which is already fixed.
Smartupdate is a non-issue, as you recall, it will not be supported. However, the ability to exit the browser before installing is important for the stub installer.
Actually, this is only a smartupdate related issue. The native installer already knows how to shutdown the browser when it's in the turbo mode. The fix to do this was checked in last week. Reassigning this to myself.
Assignee: syd → ssu
Fantastic, I got the two bugs confused. So, does this, will this affect plugin vendors?
if affects anyone trying to smartupdate files that are *in use*. If they are *in use*, it will require a restart of the browser. The workaround right now is to reboot the entire system.
Status: NEW → ASSIGNED
Adding Dan. Sean - did you say that Dan was going to take this bug?
taking bug
Assignee: ssu → dveditz
Status: ASSIGNED → NEW
Whiteboard: [PDT+] → [PDT+], investigating
Have a fix for this, would like a r= from Sean or Syd.
Summary: xpinstall needs a way to shutdown app for file replace/remove, in -turbo mode → xpinstall needs to shutdown -turbo mode for file replace/remove
Whiteboard: [PDT+], investigating → [PDT+] seeking review
adding Conrad as he did the first of similar changes for theme switching.
r=syd
*** Bug 89156 has been marked as a duplicate of this bug. ***
Whiteboard: [PDT+] seeking review → [PDT+] need super-review
sr=mscott
Fixed on trunk and branch
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Build: 2001-07-17-05-0.9.2(WIN) Works for me on both NT and 98. Turbo is disabled when replacing a file in use. Rebooting is necessary to enable turbo once again. Adding 'vtrunk' keyword. This needs to be verified on the trunk.
Keywords: vtrunk
Build: 2001-08-02-06-trunk(WIN) Works for me on both NT and 98. Turbo is disabled when replacing a file in use. Rebooting is necessary to enable turbo once again. Removing 'vtrunk' keyword. Marking Verified.
Status: RESOLVED → VERIFIED
Keywords: vtrunk
No longer blocks: 75599
Blocks: 75599
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: