My WinXP Phoenix Latest-trunk script
- wheerdam
- Posts: 2771
- Joined: March 30th, 2003, 7:12 pm
- Location: OK, U.S.
- Contact:
My WinXP Phoenix Latest-trunk script
<a href="http://www.geocities.com/wheerdam/misc/phoenix-latest.txt">Here is my batch script</a> to pull Phoenix latest nightly, backup plug-ins if existing installation found on destination directory, unzip and restore plug-in.
I just hope that this will be useful... I don't want to do like going to ftp.mozilla.org... download... unzip and stuff like that over and over again...
Usage:
1. Open my text file and save it as a .bat script, put it somewhere, it doesn't matter
2. To run it, type phoenix-latest [destination dir or existing phoenix installation] and enter
ex: <b>C:\>phoenix-latest C:\progra~1</b> will install phoenix in <b>C:\Program Files\Phoenix</b>
if it finds <b>C:\program files\phoenix</b> already, it will save your plug-ins and restore it after unzip, mmm... you should save your chrome folder yourself for icons and stuff... haven't do that yet...
3. You're done
The script will make the folder <b>C:\Scripts and</b> <b>C:\Scripts\Plugins</b> and <b>[your dir]\PHOENIX</b>, so don't put like:
<b>phoenix-latest C:\phoenix</b>, it will install phoenix to <b>c:\Phoenix\Phoenix</b>, which I'm sure you don't want that.
first, it will download unzip32.exe from ftp.demon.co.uk/pub/simtelnet/gnu/djgpp/unzip32.exe, if you run the script for the subsequent time and haven't touched the scripts folder, it will not download this file again.
then it will download phoenix from ftp.mozilla.org/pub/phoenix/nightly/latest-trunk/
it will delete old installation if any, restore plug-in and you're done.
Be sure to put in the short directory name for long directory name such as c:\progra~1 for C:\program files. Works with my WinXP Home, feedback will be appreciated. Hope it helps!
I just hope that this will be useful... I don't want to do like going to ftp.mozilla.org... download... unzip and stuff like that over and over again...
Usage:
1. Open my text file and save it as a .bat script, put it somewhere, it doesn't matter
2. To run it, type phoenix-latest [destination dir or existing phoenix installation] and enter
ex: <b>C:\>phoenix-latest C:\progra~1</b> will install phoenix in <b>C:\Program Files\Phoenix</b>
if it finds <b>C:\program files\phoenix</b> already, it will save your plug-ins and restore it after unzip, mmm... you should save your chrome folder yourself for icons and stuff... haven't do that yet...
3. You're done
The script will make the folder <b>C:\Scripts and</b> <b>C:\Scripts\Plugins</b> and <b>[your dir]\PHOENIX</b>, so don't put like:
<b>phoenix-latest C:\phoenix</b>, it will install phoenix to <b>c:\Phoenix\Phoenix</b>, which I'm sure you don't want that.
first, it will download unzip32.exe from ftp.demon.co.uk/pub/simtelnet/gnu/djgpp/unzip32.exe, if you run the script for the subsequent time and haven't touched the scripts folder, it will not download this file again.
then it will download phoenix from ftp.mozilla.org/pub/phoenix/nightly/latest-trunk/
it will delete old installation if any, restore plug-in and you're done.
Be sure to put in the short directory name for long directory name such as c:\progra~1 for C:\program files. Works with my WinXP Home, feedback will be appreciated. Hope it helps!
Last edited by wheerdam on April 5th, 2003, 11:19 pm, edited 1 time in total.
I'm weird, damn
- nilson
- Posts: 4100
- Joined: February 15th, 2003, 11:55 pm
- Location: Tuscaloosa, Alabama
- Contact:
- wheerdam
- Posts: 2771
- Joined: March 30th, 2003, 7:12 pm
- Location: OK, U.S.
- Contact:
Thanks for the feedback... I really appreciate it
I have changed the ren to rename, so it will work with win2k now ;p
Yes, NCFTPget is much better, you can remove the script-making codelines for FTP from the batch if you use that.
But I guess I have to change the script soon as Phoenix changes its name...
I have changed the ren to rename, so it will work with win2k now ;p
Yes, NCFTPget is much better, you can remove the script-making codelines for FTP from the batch if you use that.
But I guess I have to change the script soon as Phoenix changes its name...
I'm weird, damn
- SafeZone84
- Posts: 40
- Joined: March 11th, 2003, 11:30 pm
- Location: NJ USA
- Contact:
- zengiman
- Posts: 145
- Joined: January 8th, 2003, 5:28 am
- Location: Amsterdam
Is it better than the web installer I currently use : http://blackdiamond.mozdev.org/installer?
-
- Posts: 1578
- Joined: November 4th, 2002, 11:26 pm
- Location: Paris, France
- Contact:
- navegante
- Posts: 193
- Joined: February 11th, 2003, 6:38 pm
- Location: Porto , Portugal
- Contact:
Great Job!!!
It´s a *must* have. Now i don´t nead to dowload over and over again all the Extensions that i use!
It´s a *must* have. Now i don´t nead to dowload over and over again all the Extensions that i use!
"The interest in encouraging freedom of expression in a democratic society outweighs any theoretical but unproven benefit of censorship."
Lado Negro da WEB
http://www.ladonegro.net
Lado Negro da WEB
http://www.ladonegro.net
- wheerdam
- Posts: 2771
- Joined: March 30th, 2003, 7:12 pm
- Location: OK, U.S.
- Contact:
I've been planning to add the registry keys but I have to confirm something...
does the REG command-prompt command works other than in WinXP (Win2k, or Win98)? 'cause in XP adding a registry entry from console is not a problem
Extension: Depends, if you install the extension on specific profile, it will be okay because the script will not touch your profile folder... it basicly only replace a specified phoenix folder with the latest trunk
Mmm... can someone post the registry keys the phoenix needed for the plug-ins to work... (i just got lazy to search... ) Or can someone put the file.reg to a FTP so the script can fetch and add it to local registry?
does the REG command-prompt command works other than in WinXP (Win2k, or Win98)? 'cause in XP adding a registry entry from console is not a problem
Extension: Depends, if you install the extension on specific profile, it will be okay because the script will not touch your profile folder... it basicly only replace a specified phoenix folder with the latest trunk
Mmm... can someone post the registry keys the phoenix needed for the plug-ins to work... (i just got lazy to search... ) Or can someone put the file.reg to a FTP so the script can fetch and add it to local registry?
I'm weird, damn
-
- Posts: 1578
- Joined: November 4th, 2002, 11:26 pm
- Location: Paris, France
- Contact:
Hendikins summarized this on the plugindoc website: http://plugindoc.mozdev.org/phoenix.html
You can just use the following file: http://plugindoc.mozdev.org/resources/phoenix.reg
I'm not sure that "reg" exists in w2k. At least, Start>Run tells me it doesn't exist. I've quite a minimal installation of w2k, though.
You can just use the following file: http://plugindoc.mozdev.org/resources/phoenix.reg
I'm not sure that "reg" exists in w2k. At least, Start>Run tells me it doesn't exist. I've quite a minimal installation of w2k, though.
- wheerdam
- Posts: 2771
- Joined: March 30th, 2003, 7:12 pm
- Location: OK, U.S.
- Contact:
I've checked and it does exist on winNT/win2k in the reskit, but if you installed minimum, I think it won't be there. but it is available at M$ ftp, so fetching it won't be hard. But the problem is, you will need double-backslashes on the registry entries (C:\\Program Files\\Phoenix, ex) I have no idea how can I do that with batch scripting... how can you manipulate a string in a batch script?!
Oh well, as seb said, it is not newbie-friendly...
To the web installer then
Oh well, as seb said, it is not newbie-friendly...
To the web installer then
I'm weird, damn
-
- Posts: 18
- Joined: April 8th, 2003, 1:49 pm
<a href="http://haarg.port5.com/phoenix-latest.cmd">Here is a modified version</a> of this script that I made.
Main differences are:
Adds plugin information to the registry
Works with long filenames
The first parameter is entered as:
c:\Progra~1\Phoenix (or c:\Program Files\Phoenix)
instead of
c:\Progra~1
It works with wget (available <a href="http://unxutils.sourceforge.net/UnxUpdates.zip">here</a> or <a href="http://haarg.port5.com/wget.zip">here</a>) in addition to ftp and fcftpget
Defaults to 'Program Files\Phoenix' if you don't give it an installation directory
Uses a info-zip's unzipping program
Backs up the searchplugins folder
Backs up extensions/chrome
If you have Phoenix installed in c:\Program Files\Phoenix, you can run the program directly from windows instead of using the command line
I have only tested it in Windows XP, but it should work in Windows 2000 as well. It will NOT work in Windows 9x/ME.
Main differences are:
Adds plugin information to the registry
Works with long filenames
The first parameter is entered as:
c:\Progra~1\Phoenix (or c:\Program Files\Phoenix)
instead of
c:\Progra~1
It works with wget (available <a href="http://unxutils.sourceforge.net/UnxUpdates.zip">here</a> or <a href="http://haarg.port5.com/wget.zip">here</a>) in addition to ftp and fcftpget
Defaults to 'Program Files\Phoenix' if you don't give it an installation directory
Uses a info-zip's unzipping program
Backs up the searchplugins folder
Backs up extensions/chrome
If you have Phoenix installed in c:\Program Files\Phoenix, you can run the program directly from windows instead of using the command line
I have only tested it in Windows XP, but it should work in Windows 2000 as well. It will NOT work in Windows 9x/ME.
- wheerdam
- Posts: 2771
- Joined: March 30th, 2003, 7:12 pm
- Location: OK, U.S.
- Contact: