New Web installer!

Discussion of general topics about Mozilla Firefox
Post Reply
seb
Posts: 1578
Joined: November 4th, 2002, 11:26 pm
Location: Paris, France
Contact:

New Web installer!

Post by seb »

I finally managed to create a web installer for Phoenix. It's based on my normal full installer code, and it's very tiny (only 81 KB). In fact, it's almost exactly the same thing than my full installers. The only diff is that it downloads the latest nightly.
All the cool things from the installer are in (registry keys in AppPath and CurrentVersion, registry keys for Java, Shockwave/Flash and RealOne plugins, shortcuts, uninstaller and cool UI).

You can find it here, with the other installers: http://blackdiamond.mozdev.org/installer/
The direct link is this one: http://downloads.mozdev.org/blackdiamon ... -beta4.exe

But the real nice thing about it is that you don't have to wait for me packaging the builds to download & install them: you download the web installer once, and then you only need to start it everytime you want to install a new nightly.

However, it's still beta quality code (it didn't take me so much time to hack my code, and even if I think I checked everything, there can always be a problem, you never know), so if you find any bug with it, please [url=mailto:seb@delahaye.net]email me[/url].
In case you're wondering (I doubt it, but anyway :), here are the changes I made to the code of the installer to add the webinstaller mode:
installer.nsi 1.3 -> 1.10: http://www.mozdev.org/source/browse/bla ... .3&r2=1.10
installer.functions.nsh 1.3 -> 1.4: http://www.mozdev.org/source/browse/bla ... 1.3&r2=1.4
installer.conf.nsh 1.3 -> 1.6: http://www.mozdev.org/source/browse/bla ... 1.3&r2=1.6

Edit: updated the links to mozdev webCVS, since I commited some other changes.
Last edited by seb on February 5th, 2003, 1:27 am, edited 4 times in total.
User avatar
bdeonline
Moderator
Posts: 1214
Joined: November 5th, 2002, 5:19 am
Location: OK, USA
Contact:

Post by bdeonline »

That was very cool it automatically goes to the nightlies and downloads them and installs it. This is very cool, great work. This will save not only your self but many people who use the latest nightlies lots of time.

Only if you could create something like this for liunx as well.
seb
Posts: 1578
Joined: November 4th, 2002, 11:26 pm
Location: Paris, France
Contact:

Post by seb »

bdeonline wrote:Only if you could create something like this for liunx as well.
When the official installer is done, there'll probably be a web installer for both Windows and Linux, since XPinstall is cross-platform. You just need to wait until it's done.
User avatar
AkiAki007
Posts: 262
Joined: December 9th, 2002, 3:15 pm
Location: New York, NY, USA

Post by AkiAki007 »

bdeonline wrote:Only if you could create something like this for liunx as well.


Code: Select all

su
// Do some backup of important files and extensions
rm -rf /usr/local/phoenix
wget nightly.tar.gz
tar -xvzg nightly.tar.gz /usr/local/phoenix
chown -R root.staff /usr/local/phoenix
// Do some backup of important profile files and extensions
rm -rf ~/.phoenix
exit //leave root login
./usr/local/phoenix/phoenix
// Exit phoenix
// Copy those important files


something like that should do it. quick bash hack.
User avatar
willll
Posts: 2577
Joined: November 30th, 2002, 11:39 am
Location: Washington, DC

Post by willll »

Does it delete previous installs?
seb
Posts: 1578
Joined: November 4th, 2002, 11:26 pm
Location: Paris, France
Contact:

Post by seb »

Not yet, but you can still run the uninstaller before the installer.
It's planned, though.
I'll try to finish this long-awaited feature this week (in fact, this feature is planned since the very beginning, and I never finished it... :/).

In case anyone cares, there's a beta2 available: http://downloads.mozdev.org/blackdiamon ... -beta2.exe
You shouldn't see any diff, except that it's 100 Bytes smaller than beta1 (100 Bytes, yay!). And it doesn't display a warning anymore when you build it, but this is unimportant :)
User avatar
David James
Posts: 1321
Joined: November 4th, 2002, 10:19 pm
Location: Ottawa, Ontario, Canada
Contact:

Post by David James »

bdeonline wrote:Only if you could create something like this for liunx as well.

Here's what my 'getphoenix' script looks like:

Code: Select all

#!/bin/bash
#getphoenix - script to get, install and pre-configure Phoenix nightlies
#
#kill any phoenix process that is running
skill KILL -c phoenix-bin
#cd to source dir and download
cd /usr/local/src
rm phoenix-i686-pc-linux-gnu.tar.gz
lukemftp http://komodo.mozilla.org/pub/phoenix/nightly/latest-trunk/phoenix-i686-pc-linux-gnu.tar.gz
#remove existing Phoenix install, and install anew
cd /usr/local
rm -rf phoenix
tar -xzf src/phoenix-i686-pc-linux-gnu.tar.gz
#pre-configure Phoenix; link up plugins, icons
cd phoenix
rm -rf plugins
ln -s /usr/lib/mozilla/plugins
mkdir chrome/icons
cd chrome/icons
ln -s /usr/local/lib/phoenix/icons default
#allow users to install chrome
cd /usr/local
chgrp -R staff phoenix
chmod 775 -R phoenix

Notes:
This assumes that you've got your plugins in /usr/lib/mozilla/plugins, which is the Debian default location, and, I think, this is where Red Hat now puts them with its .rpms (which is correct behaviour for once from Red Hat). If you install Mozilla from source you'd probably put it in /usr/local or /opt, so change accordingly. I've also got some icons in /usr/local/lib/phoenix/icons, which I link to as well.
Pinball-Firefox maintainer.
http://david.jamesnet.ca/
Debian Sid, KDE 3.3
User avatar
bellgamin
Posts: 91
Joined: January 9th, 2003, 6:24 pm
Location: Hawaii
Contact:

Re: New Web installer!

Post by bellgamin »

Netsabes wrote:I finally managed to create a web installer for Phoenix... In fact, it's almost exactly the same thing than my full installers. The only diffs are that it downloads the latest nightly and installs it automatically, and that you can't choose the installation folder


It was only after I discovered your install-Phoenix that I finally gained the courage to try out this browser. That was about 2 or 3 weeks ago.

Now I have downloaded your new web installer.

Thank you!!!

moo goo gai pan..........bellichow
User avatar
djst
Moderator
Posts: 2826
Joined: November 5th, 2002, 1:34 am
Location: Sweden
Contact:

Post by djst »

Great work Sébastien! I will not use it myself until you provide a way for us to specify the install directory (and remember it), but I have updated Phoenix Help.
seb
Posts: 1578
Joined: November 4th, 2002, 11:26 pm
Location: Paris, France
Contact:

Post by seb »

Oops, I forgot to mention it here, but there is a beta3 of the webinstaller : http://downloads.mozdev.org/blackdiamon ... -beta3.exe .
Since the automatic file listing is back on the Installer page ( http://blackdiamond.mozdev.org/installer/ ), it'll be easier for people to see when new versions come out.

I'll try to add the possibility to choose the installation folder later this week, but the next big thing is adding the install types.
seb
Posts: 1578
Joined: November 4th, 2002, 11:26 pm
Location: Paris, France
Contact:

Post by seb »

Oh wait, forget that, the "choose the installation folder" stuff is now fixed, I'm gonna release a beta4 in a few minutes :)
seb
Posts: 1578
Joined: November 4th, 2002, 11:26 pm
Location: Paris, France
Contact:

Post by seb »

Done: It'll be available on http://downloads.mozdev.org/blackdiamon ... -beta4.exe around 0am GMT.
And yes, it remembers the installation folder (just like it does for the full installer).
User avatar
djst
Moderator
Posts: 2826
Joined: November 5th, 2002, 1:34 am
Location: Sweden
Contact:

Post by djst »

I've updated the page again!
Post Reply