Discussion of general topics about Mozilla Thunderbird
I've found some thread talking about firefox/thunderbird on a usb device. But those requires to modify some environement variables with batch files, which isnt really nice.
On Thunderbird's v0.7 release notes, it says:
[quote=http://www.mozilla.org/products/thunderbird/releases/]New Profile Manager which also supports running from a USB device.[/quote]
Anyone knows where I can find more info on this? How is it achievable without nasty batch files?
Thank you very much
thanx m8, will try to figure it out. I'll post back what I'll found...
Ok I've succesfully done it!
F: is my USB key.
I've extracted the 0.7 zip file in F:\Thunderbird07 so I have F:\Thunderbird07\thunderbird.exe
I created a F:\Thunderbird07\profile directory.
to create a new profile. When asked for the location, I entered "F:\Thunderbird07\profile"
I ran F:\Thunderbird07\thunderbird.exe, and got the choice of 3 profiles (the new one and 2 old ones). I choosed the new one I just created.
I now setted up all my preferences. Added new accounts. After the mail accounts were created, I've copyed the content of each ...\Application Data\Thunderbird\Profiles\<Profile name>\<...>.slt\mail\ folder to the corespondant ones on the new usb profile F:\Thunderbird07\profile\Mail\ directories.
Now, if I run F:\Thunderbird07\thunderbird.exe, I get the choice of the 3 profiles, and if I choose the new one, evertyhing works fine
To test everything and to be sure, I renamed ...\Application Data\Thunderbird to ...\Application Data\Thunderbird.bak
Now the with the new "feature" of mozilla/firefox/thunderbird
As from bug #211628 (http://bugzilla.mozilla.org/show_bug.cgi?id=211628) it seams that mozilla/firefox/thunderbird now support the "-Profile" command line parameter to specify the profile to use.
If I run F:\Thunderbird07\thunderbird.exe alone, a new ...\Application Data\Thunderbird folder is created with a default profile. I must run the .exe with the "-Profile" switch.
So instead of running "F:\Thunderbird07\thunderbird.exe" I need to run "F:\Thunderbird07\thunderbird.exe" -Profile "F:\Thunderbird07\profile"
Now you get the "Changing letter from a computer to another one. So I created a simple JScript file which will detect the USB drive letter and run the appropriate files.
Ok it looks maybe a bit like the batch files solution, but I think it is better for those reasons:
-With a JScript file (.js), you don't see an ugly command prompt
-You can perfom additionnal task like running YahooPops and/or HotmailPopper and kill them as soon as Thunderbird exit
-You can get the drive letter from which the .js is run REALLY EASILY.
-You don't modify anything on the hard drive.
Here is the .js file, that I'v putted on the root of my USB key chain (F:\Thunderbird.js)
Edit: Changed the .js file to launch YahooPOPs on the usb drive too.
Edit #2: New corrected version of the script + more comments
Last edited by big_gie on June 21st, 2004, 7:02 pm, edited 2 times in total.
I think what you are saying is that you used to be able to specify the profile name but not its location with the -p command line argument. With 0.7 you can specify the profiles location instead of its name. Your're using a script mainly to automate finding what drive letter to use.
Why in the world didn't they mention the change to -p in the release notes?
Very interesting. Here are my results from a few simple experiments, after having installed TB on a USB stick (with the application in "E:\Tbird0.7" and the profile in "E:\TBtestprofile", on WinXP):
Runs TB using the specified profile on the USB stick. Nothing gets written to the hard drive, as big_gie says above. Even if TB is installed on the hard drive, it ignores registry.dat/profiles.ini and launches with the specified profile.
Does not launch with the specified profile, but instead launches the profile manager. (Same with lower-case -p switch.)
Does nothing. The profile manager does not even come up. But...
Runs the specified profile on the USB stick, just as in the first example above. Works even if the drive letter of the USB stick is changed from E to F. Would seem to indicate that the .js file is not even necessary, no?
thanx wintogreen for the investigation!
Well, Maybe not. Since you still need to give parameters to thunderbird.exe, you would need a shortcut, a batch file or a .js to launch it with the appropriate parameters...
Of course, your .js file can do all kinds of tricks. I was thinking more in terms of the average user: what's the simplest possible way to get TB running from a USB stick? A shortcut is probably easiest in most cases.
Thank you, by the way, for figuring out how to get this working in the first place, especially since the release notes didn't provide any instructions!
Can anyone verify that starting up Thunderbird with the following command, from my first post in this thread, works on OS's other than Windows? (And please indicate what the equivalent command looks like for your OS.) I'd like to update the knowledge base page about running from a USB stick. Thanks!
as investigated in the firefox usb drive thread, it must either be a batch file, or a script (vb or js) file that launches the program, as a shortcut would need a hardcoded path (which would screw up when the drive letter changes), whereas a batch file can take a relative path, and the script file can work around this.
Can you post a link to the firefox usb thread (since search is disabled)?
You would think so, but that's not what I've found trying this out with two different WinXP machines. On one machine the USB stick is designated drive E, and on the other it's F. Interestingly, even though the shortcut target was orignally created for thunderbird.exe on E, when I use the same USB stick on the other computer, the shortcut still works and it seemingly rewrites itself. In other words, when I look at the shortcut Properties after using it on E and F, the target automatically changes from
without me manually changing it. Note also that the path to the profile doesn't even contain the drive letter, so that's not an issue.
I don't know if it's WinXP that's allowing TB to function from the USB stick like this, but it seems to be working very well with nothing more than a simple shortcut. Would appreciate hearing from others who have tried it out.
Search is back (for good, I hope). It's probably this thread: http://forums.mozillazine.org/viewtopic.php?t=81759
Its a windows feature: if a shortcut doesnt point corecltly, it search for the appropriate file. I don't know how it search, but it seams that it will find the file that looks the more the same as the original... since it "just" a drive letter it will surely find it. BUT, if you have a FF/TB installed on another drive, it could get some problem...
It could be a solutio... I still prefer the .js though
batch file for Windows 2000/xp
START /D%cd%tb\ /MAX %cd%tb\thunderbird.exe -Profile %cd%profile\tb\
Thunderbird 0.7 installed on USB in directory \tb
Profile stored on USB in directory \profile\tb
Who is online
Users browsing this forum: No registered users and 0 guests