Closed
Bug 234741
Opened 21 years ago
Closed 21 years ago
installer should refuse to install to a non-empty, non-Mozilla directory
Categories
(SeaMonkey :: Installer, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: ajschult784, Assigned: ajschult784)
Details
(Keywords: fixed1.7, late-l10n)
Attachments
(1 file, 2 obsolete files)
19.72 KB,
patch
|
benjamin
:
review+
dveditz
:
superreview+
asa
:
approval1.7+
|
Details | Diff | Splinter Review |
The installer currently checks whether the destination contains an existing
Mozilla installation and offers to delete the directory's contents. If the
directory is pre-existing, but does not contain Mozilla, the installer gleefully
adds Mozilla to the directory.
This is bad and results in situations like bug 69153 and now bug 234479 where
people install to /usr/bin and things seem fine until they try to uninstall.
The installer should prevent this from ever happening. However, rather than
asking to delete the directory, the installer should just refuse to have
anything to do with it. If the user wants to install to /usr/bin, they'll have
to go to the prompt and delete the directory themselves.
![]() |
||
Comment 1•21 years ago
|
||
There was a bug on this filed a few days ago suggesting that we refuse to
install to a nonempty dir unless it's got a file that flags it as "partial
installation done, then failed for some reason"....
Whiteboard: DUPEME
Assignee | ||
Comment 2•21 years ago
|
||
do you mean bug 234479? that's "surgical upgrade", focusing on what to do with
old Mozilla directories.
Assignee | ||
Comment 4•21 years ago
|
||
this prevents installation to a directory that contains anything other than "."
and ".."
directories that contain a mozilla-bin get wiped before this point.
Assignee | ||
Updated•21 years ago
|
Attachment #143166 -
Flags: review?(bsmedberg)
Comment 5•21 years ago
|
||
Comment on attachment 143166 [details] [diff] [review]
patch
We shouldn't prevent installing to a dir which has a plugins/ directory.
Attachment #143166 -
Flags: review?(bsmedberg) → review-
Assignee | ||
Comment 6•21 years ago
|
||
(In reply to comment #5)
> (From update of attachment 143166 [details] [diff] [review])
> We shouldn't prevent installing to a dir which has a plugins/ directory.
The existence of a plugins subdirectory (under the current system) indicates
that the directory is Mozilla directory and should get nuked-from-orbit. To
achieve this, "plugins" should be added as a LegacyCheck. However, if a user
has a plugins directory and no mozilla-bin (the only way they could get to this
point), they are attempting a manual surgical upgrade, so that nuking-from-orbit
is exactly what the user does not want.
I hope to sort all of this out in bug 234479, which I'll steal from opi soon if
he doesn't fix it himself. I wrote patch this first because it was simpler.
The options are:
1. fix this now and then bug 234479
2. wait for bug 234479
3. add plugins as a LegacyCheck.
#1 seems like the best option, but I'll steal bug 234479 now if you would prefer #2
Assignee | ||
Comment 7•21 years ago
|
||
Comment on attachment 143166 [details] [diff] [review]
patch
> To achieve this, "plugins" should be added as a LegacyCheck.
hrmm.. I guess "Cleanup On Upgrade"/ObjectToIgnore (the Windows config.ini
terms) could be implemented here as another directory entry to ignore... If
the user deleted everything but the plugins directory, the installation would
proceed.
I'll write up a patch for that.
Attachment #143166 -
Attachment is obsolete: true
Assignee | ||
Comment 8•21 years ago
|
||
this implements YALOSC (yet another list of strings class), nsObjectIgnore.
it's nsLegacyCheck without a message. These things need to get whacked, but
I'll do it in another bug.
This also stops doing different things for the lengths of section/key strings
and stops double-deleting sLegacyCheck when there are no legacy checks.
Assignee | ||
Updated•21 years ago
|
Attachment #143379 -
Flags: review?(bsmedberg)
Assignee | ||
Updated•21 years ago
|
Attachment #143379 -
Flags: review?(bsmedberg)
Assignee | ||
Updated•21 years ago
|
Attachment #143494 -
Flags: review?(bsmedberg)
Updated•21 years ago
|
Attachment #143494 -
Flags: review?(bsmedberg) → review+
Assignee | ||
Updated•21 years ago
|
Attachment #143494 -
Flags: superreview?(dveditz+bmo)
Comment 10•21 years ago
|
||
There is no iscussion on the Linux upgrade bug ... and that's why I hadn't done
anything and worked on MNG.
The user is a stupid person and you never know what he have done with his
mozilla directory.
So I don't know what will be the best way.
Comment 11•21 years ago
|
||
Comment on attachment 143494 [details] [diff] [review]
same patch with new files
sr=dveditz
Attachment #143494 -
Flags: superreview?(dveditz+bmo)
Attachment #143494 -
Flags: superreview+
Attachment #143494 -
Flags: approval1.7?
Comment 12•21 years ago
|
||
This might be a good one to make sure makes it into the next milestone,
nominating blocking1.7
Flags: blocking1.7?
Comment 13•21 years ago
|
||
Comment on attachment 143494 [details] [diff] [review]
same patch with new files
a=asa (on behalf of drivers) for checkin to 1.7
Attachment #143494 -
Flags: approval1.7? → approval1.7+
Assignee | ||
Comment 14•21 years ago
|
||
patch checked in by timeless
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Updated•21 years ago
|
Flags: blocking1.7?
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•