Firefox on a USB memory stick!
-
- Posts: 15
- Joined: January 24th, 2004, 8:10 am
-
- Posts: 45
- Joined: November 8th, 2002, 3:12 pm
Here is a modified script that I used. There might be a need to create a Desktop folder under Profiles - that's the folder Firebird tries to use the first time it saves a file. I change folder instead. The script has a few extra vars defined just to be safe and configurable.
NOTE: There is a modified script version later in the thread.
echo off
set myUsbRoot=%cd%
rem get rid of trailing slash if running of disk root
FOR %%a IN (A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF %%a:\==%cd% set myUsbRoot=%%a:
set USERNAME=usbuser
set USERPROFILE=%myUsbRoot%\Profiles\%USERNAME%
set APPDATA=%USERPROFILE%\Application Data
rem setting temp dirs
set TEMP=%myUsbRoot%\temp
set TMP=%TEMP%
rem make sure all needed dirs exist
ECHO Creating required folders
if NOT exist "%USERPROFILE%" mkdir "%USERPROFILE%"
if NOT exist "%APPDATA%" mkdir "%APPDATA%"
if NOT exist "%TEMP%" mkdir "%TEMP%"
if NOT exist "%TMP%" mkdir "%TMP%"
set fbHome=%myUsbRoot%\MozillaFirebird
if exist "%fbHome%\MozillaFirebird.exe" ECHO Starting...
if exist "%fbHome%\MozillaFirebird.exe" start %fbHome%\MozillaFirebird.exe %1 %2 %3
echo on
NOTE: There is a modified script version later in the thread.
echo off
set myUsbRoot=%cd%
rem get rid of trailing slash if running of disk root
FOR %%a IN (A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF %%a:\==%cd% set myUsbRoot=%%a:
set USERNAME=usbuser
set USERPROFILE=%myUsbRoot%\Profiles\%USERNAME%
set APPDATA=%USERPROFILE%\Application Data
rem setting temp dirs
set TEMP=%myUsbRoot%\temp
set TMP=%TEMP%
rem make sure all needed dirs exist
ECHO Creating required folders
if NOT exist "%USERPROFILE%" mkdir "%USERPROFILE%"
if NOT exist "%APPDATA%" mkdir "%APPDATA%"
if NOT exist "%TEMP%" mkdir "%TEMP%"
if NOT exist "%TMP%" mkdir "%TMP%"
set fbHome=%myUsbRoot%\MozillaFirebird
if exist "%fbHome%\MozillaFirebird.exe" ECHO Starting...
if exist "%fbHome%\MozillaFirebird.exe" start %fbHome%\MozillaFirebird.exe %1 %2 %3
echo on
Last edited by Walter K on March 15th, 2004, 8:54 pm, edited 1 time in total.
- alanjstr
- Moderator
- Posts: 9100
- Joined: November 5th, 2002, 4:43 pm
- Location: Anywhere but here
- Contact:
walter: you would want to modify your prefs.js for the download dir.
Former UMO Admin, Former MozillaZine General Mod
I am rarely on mozillaZine, so please do not send me a private message.
My Old Firefox config files
I am rarely on mozillaZine, so please do not send me a private message.
My Old Firefox config files
-
- Posts: 242
- Joined: December 22nd, 2002, 11:23 pm
-
- Posts: 2914
- Joined: February 8th, 2003, 2:38 am
- Location: San Diego, US
- Contact:
- Pgr
- Posts: 233
- Joined: October 28th, 2003, 10:00 am
- Location: Lisbon, Portugal
This batch file and all is very nice to have... but wouldn't it be better to have the default FB package being fully functional, regardless of the drive where it is installed?
I mean, is there a bug for this? Is it being worked on? (with all due respect for all the people who work on bugs - I know you're busy)
I think it's a very cool thing - very unlike Microsoft - to have software that doesn't <I>assume</I> tons of things about your system - it just adapts.
And taking your browser, bookmarks, extensions, etc. around with you on a USB drive sounds to me like a <b>feature</b> that can delight many potential FB users. And it seems we're very near achieving it!
I mean, is there a bug for this? Is it being worked on? (with all due respect for all the people who work on bugs - I know you're busy)
I think it's a very cool thing - very unlike Microsoft - to have software that doesn't <I>assume</I> tons of things about your system - it just adapts.
And taking your browser, bookmarks, extensions, etc. around with you on a USB drive sounds to me like a <b>feature</b> that can delight many potential FB users. And it seems we're very near achieving it!
- alanjstr
- Moderator
- Posts: 9100
- Joined: November 5th, 2002, 4:43 pm
- Location: Anywhere but here
- Contact:
The market for a portable browser probably is not very large. Firebird allows you to install it anywhere. The point of this "hack" is to take your profile anywhere, too. Unfortunately, that is not how it was engineered.
http://bugzilla.mozilla.org/show_bug.cgi?id=150453
http://bugzilla.mozilla.org/show_bug.cgi?id=157662
http://bugzilla.mozilla.org/show_bug.cgi?id=150453
http://bugzilla.mozilla.org/show_bug.cgi?id=157662
Former UMO Admin, Former MozillaZine General Mod
I am rarely on mozillaZine, so please do not send me a private message.
My Old Firefox config files
I am rarely on mozillaZine, so please do not send me a private message.
My Old Firefox config files
-
- Posts: 831
- Joined: November 18th, 2003, 2:25 pm
-
- Posts: 242
- Joined: December 22nd, 2002, 11:23 pm
IGAU wrote:The market probably isn't very large, but the benefits for those who would use it are.
While the market for Firebird to do this might be small, doing this for Thunderbird might be quite desirable to a lot of people. And I have a feeling that once the "portable profile" works for Firebird it could easily be ported to Thunderbird.
- mai9
- Posts: 1619
- Joined: January 15th, 2003, 3:41 pm
- Location: Barcelona
- Contact:
- Pgr
- Posts: 233
- Joined: October 28th, 2003, 10:00 am
- Location: Lisbon, Portugal
About how big is the market for portable browsers: most people don't know they want it, but they might get friendly with the idea after they tried it.
A portable IE is a totally useless piece of crap (same as a non-portable IE ) because IE exists everywhere you go (windows world), it is the same everywhere except for your "Favorites". But FB is really customizable with themes, extensions, etc. So portable browser seems to be <b>especially adequate feature for FB</B>.
I just thought of something that hadn't ocurred to me before, while I was writing the previous paragraph. What about <b>inter-platform portability</b> on a USB drive? Like having two directories with the binaries for Win32 and Linux, and a single profile folder with Extensions/Themes/Bookmarks/Options/etc. This way even multi-platform users could enjoy the benefits of having a single browser... Is this possible?
A portable IE is a totally useless piece of crap (same as a non-portable IE ) because IE exists everywhere you go (windows world), it is the same everywhere except for your "Favorites". But FB is really customizable with themes, extensions, etc. So portable browser seems to be <b>especially adequate feature for FB</B>.
I just thought of something that hadn't ocurred to me before, while I was writing the previous paragraph. What about <b>inter-platform portability</b> on a USB drive? Like having two directories with the binaries for Win32 and Linux, and a single profile folder with Extensions/Themes/Bookmarks/Options/etc. This way even multi-platform users could enjoy the benefits of having a single browser... Is this possible?
-
- Posts: 2
- Joined: February 3rd, 2004, 5:02 pm
Okay, so I've tried the batch file that Walter K suggested above, and it works fine for when the USB is showing as Drive G:, but when I move the USB stick to another computer where it comes up as drive E:, when I start Firebird I'm asked to create a new Profile since it can't find the default. I check all the variables (i.e. %cd%) and they are indeed showing the correct drive letters. Is there another change I'm missing? Or do I need to make a new Profile for each of the other drive letters I may be encountering?
I'm using Windows XP, if that makes any difference.
Thanks to all that can help. I'm just looking for an easy way to carry a browser around as I troubleshoot PCs out in the field, mostly so I can always get my bookmarks and have a working Java client (you'd be surprised how many people don't have Java working on the PCs I visit).
I'm using Windows XP, if that makes any difference.
Thanks to all that can help. I'm just looking for an easy way to carry a browser around as I troubleshoot PCs out in the field, mostly so I can always get my bookmarks and have a working Java client (you'd be surprised how many people don't have Java working on the PCs I visit).
-
- Posts: 69
- Joined: September 13th, 2003, 3:30 pm
- Location: Sweden
- Contact: