Closed Bug 157459 Opened 22 years ago Closed 20 years ago

need way to set default setup type for linux

Categories

(SeaMonkey :: Installer, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Future

People

(Reporter: jmd, Assigned: ajschult784)

References

Details

Attachments

(1 file, 5 obsolete files)

I only deal with browser stuff, so I do a custom install nightly builds every
day, and have to select custom, then browser and PSM only, day in, and day out.
Then I have to manually type in /opt/mozilla/20020714 every time.

If I could automate this with a config file or command line options, it would be
very nice.

In this mode, X would not even be required. Something like:

./mozilla-installer --packages xpcom.xpi,browser.xpi,psm.xpi,deflenus.xpi...
--destdir /opt/mozilla/20020714

Then I could have a script generate the yearmonthday bit, and save myself a good
5 mintues every morning. (30 hours a year per person who would benefit from
this... I'm sure some others would be interested)
./mozilla-installer -ma
will install with defaults without user intervention.
"-ms" is supposed to do the same except show no UI.  that doesn't work.

you *can* set the defaults in a file - config.ini.

This doesn't meet Jerry's requirements on two counts, X is still required and
he'd get the default install directory instead of a date-based directory. If
using X is OK then the second objection could be overcome with a simple
pre-processing script to change the "Default location=" line in the config.ini
before running the install with -ma

Hm, I don't see a way to set the default setup type. In windows there's a
setting you can change in the config.ini for that. If there were you'd want to
set it to "Setup Type2" to get navigator-only (with PSM).

I'm pretty sure this is a dupe, in any case it's not something Netscape is going
to pay me to work on so marking helpwanted.

You may be able to find some of the scripts and packages around (not sure
where... ask on n.p.m.builds) to get and install a daily build, but I don't know
if they use the .xpi packages.
Keywords: helpwanted
Target Milestone: --- → Future
> X is still required

the "-ms" argument is parsed, but ignored by the unix wizard.  I think I've
managed to hack a working mozilla-installer-bin that handles "-ms".  I filed bug
157672 for that as it seems to be a (somewhat) independent issue from this one.
Attached patch patch (obsolete) — Splinter Review
patch to parse and handle "Default Setup Type" for unix.

this does not affect interactive install because I don't know how to change the
initial GTK selection.
There is no -help that a user might discover -ms and -ma.
you're forgetting lxr, Mozilla's extensive online help system:
http://lxr.mozilla.org/mozilla1.0/source/xpinstall/wizard/unix/src2/nsXInstaller.cpp#41

worksforme, but filed bug 158033 anyway.  :)
QA Contact: bugzilla → ktrina
Keywords: helpwantedpatch, review
Comment on attachment 91598 [details] [diff] [review]
patch

r=dveditz
Attachment #91598 - Flags: review+
This patch has sat for 5 months. Who needs to sr?
Summary: need way to configure installer for unattended auto-install → need way to set default setup type for linux
Attachment #91598 - Flags: review+ → review?(sgehani)
dveditz@netscape.com: 
Can we use your r= as sr= ?
And Do you know someone who can r= this ?
-> me
Assignee: dveditz+bmo → ajschult
Blocks: 123569
@Andrew does this patch cleanly apply to cirrent trunk?
Attached patch patch v2 (obsolete) — Splinter Review
New in this patch:

1. it uses "Typical/Complete/Navigator..." for the "Setup Type" instead of
"Setup Type0/Setup Type1/Setup Type2...".
2. I've included modifications to the sample config.ini.
3. I figured out how to set the active button in gtk, so the patch now works
outside of auto and silent mode.
Attachment #91598 - Attachment is obsolete: true
Comment on attachment 140290 [details] [diff] [review]
patch v2

dveditz, this is similar to a previous patch you gave r=dveditz on.  This patch
is even better.  :)
Attachment #140290 - Flags: review?(dveditz+bmo)
Attachment #91598 - Flags: review?(sgehani)
Attached patch patch v2 +cleanup (obsolete) — Splinter Review
this is the same patch with a touch of cleanup (I couldn't resist!).  the 1st
radio button is handled almost identically to the rest of the radio buttons,
and does not need its own piece of code.
Attachment #140290 - Attachment is obsolete: true
Attachment #140292 - Flags: review?(dveditz+bmo)
Attachment #140290 - Flags: review?(dveditz+bmo)
@Andrew

You should mark the bug as assigned if you want to fix it with your patch :-)
Also other peoples know then, that you work on it.
Attached patch include config.it changes (obsolete) — Splinter Review
Attachment #140292 - Attachment is obsolete: true
Attachment #140292 - Flags: review?(dveditz+bmo)
Attachment #141869 - Flags: review?(dveditz+bmo)
Attachment #141869 - Flags: review?(dveditz) → review?(bsmedberg)
Comment on attachment 141869 [details] [diff] [review]
include config.it changes

ugh. this is bitrotted.
Attachment #141869 - Flags: review?(bsmedberg)
Attached patch patch merged to trunk (obsolete) — Splinter Review
note that the config.ini syntax I implemented is different than that used in
Windows.

this patch:
Default Setup Type=Typical
windows:
Default Setup Type=Setup Type 0

implementing it the windows way would be just as easy, but using the short
description seems better, at least as long as the "name" of the setup type is
so non-descriptive.
Attachment #141869 - Attachment is obsolete: true
Attachment #147101 - Flags: review?(dveditz)
I think this bug is cursed.
Attachment #147101 - Attachment is obsolete: true
Attachment #147101 - Flags: review?(dveditz)
Attachment #147102 - Flags: review?(dveditz)
Comment on attachment 147102 [details] [diff] [review]
the patch I meant to attach

>+; *** LOCALIZE ME BABY ***
>+Default Setup Type=Typical

Add a comment above the "localize me" comment documenting that the value for
default setup type value must exactly match the "Description Short" of the
desired setup type.

r=dveditz
Attachment #147102 - Flags: review?(dveditz) → review+
Attachment #147102 - Flags: superreview?(bryner)
Attachment #147102 - Flags: superreview?(bryner) → superreview+
fixed
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: