Jump to content

[SOLVED] Make Thunderbird Default Mail Client


kal

Recommended Posts

Hello,

I've searched during two hours now on the net a simple method to get Thunderbird 1.5 (or 2.0 beta2 if you prefer) my default make client.

I've found this :

SET KEY=HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\Mozilla Thunderbird

REG ADD HKEY_CURRENT_USER\Software\Clients\mail /ve /t REG_SZ /D "Mozilla Thunderbird"
REG ADD HKEY_USERS\.Default\Software\Clients\mail /ve /t REG_SZ /D "Mozilla Thunderbird"

REG ADD "%KEY%" /ve /t REG_SZ /D "Mozilla Thunderbird" /f
REG ADD "%KEY%" /v "DLLPath" /t REG_SZ /D "%PROGRAMFILES%\Mozilla Thunderbird Beta 2\mozMapi32.dll" /f
REG ADD "%KEY%\DefaultIcon" /ve /t REG_SZ /D "%PROGRAMFILES%\Mozilla Thunderbird Beta 2\thunderbird.exe,0" /f
REG ADD "%KEY%\shell\open\command" /ve /t REG_SZ /D "%PROGRAMFILES%\Mozilla Thunderbird Beta 2\thunderbird.exe -mail" /f
REG ADD "%KEY%\shell\properties" /ve /t REG_SZ /D "Thunderbird &Options" /f
REG ADD "%KEY%\shell\properties\command" /ve /t REG_SZ /D "%PROGRAMFILES%\Mozilla Thunderbird Beta 2\thunderbird.exe -options" /f
REG ADD "%KEY%\protocols\mailto" /ve /t REG_SZ /D "URL:MailTo Protocol" /f
REG ADD "%KEY%\protocols\mailto" /v "URL Protocol" /t REG_SZ /D "" /f
REG ADD "%KEY%\protocols\mailto\DefaultIcon" /ve /t REG_SZ /D "%PROGRAMFILES%\Mozilla Thunderbird Beta 2\thunderbird.exe,0" /f
REG ADD "%KEY%\protocols\mailto\shell\open\command" /ve /t REG_SZ /D "%PROGRAMFILES%\Mozilla Thunderbird Beta 2\thunderbird.exe -compose" /f

But it doesn't work. Thunderbird still ask me if i want it to be my default mail client on first launch. I've heard about this method too :

thunderbird.exe -silent -nosplash -setDefaultMail

But it just launch Thunderbird. It doesn't make it my default mail client.

Do you know guys a way to do that ?

Thank you,

Kal

Edited by kal
Link to comment
Share on other sites


I solved it by making my own registry setting.

Here is the file :

thunderbird.cmd:

SET KEY=%CLIENTS%\Mail\Mozilla Thunderbird
SET CLIENTS=HKEY_LOCAL_MACHINE\SOFTWARE\Clients
SET CLASSES=HKEY_LOCAL_MACHINE\SOFTWARE\Classes

REG ADD HKEY_CURRENT_USER\Software\Clients\mail /ve /t REG_SZ /D "Mozilla Thunderbird" /f
REG ADD HKEY_USERS\.Default\Software\Clients\mail /ve /t REG_SZ /D "Mozilla Thunderbird" /f

REG ADD "%KEY%" /ve /t REG_SZ /D "Mozilla Thunderbird" /f
REG ADD "%KEY%" /v "DLLPath" /t REG_SZ /D "%SystemDrive%\PROGRA~1\MOZILL~1\mozMapi32.dll" /f
REG ADD "%KEY%\DefaultIcon" /ve /t REG_SZ /D "%SystemDrive%\PROGRA~1\MOZILL~1\THUNDE~1.EXE,0" /f
REG ADD "%KEY%\shell\open\command" /ve /t REG_SZ /D "%SystemDrive%\PROGRA~1\MOZILL~1\THUNDE~1.EXE -mail" /f
REG ADD "%KEY%\shell\properties" /ve /t REG_SZ /D "Thunderbird &Options" /f
REG ADD "%KEY%\shell\properties\command" /ve /t REG_SZ /D "%SystemDrive%\PROGRA~1\MOZILL~1\THUNDE~1.EXE -options" /f
REG ADD "%KEY%\protocols\mailto" /ve /t REG_SZ /D "URL:MailTo Protocol" /f
REG ADD "%KEY%\protocols\mailto" /v "URL Protocol" /t REG_SZ /D "" /f
REG ADD "%KEY%\protocols\mailto\DefaultIcon" /ve /t REG_SZ /D "%SystemDrive%\PROGRA~1\MOZILL~1\THUNDE~1.EXE,0" /f
REG ADD "%KEY%\protocols\mailto\shell\open\command" /ve /t REG_SZ /D "%SystemDrive%\PROGRA~1\MOZILL~1\THUNDE~1.EXE -compose" /f


REG DELETE %CLASSES%\mailto\ /v "EditFlags" /f

REG ADD %CLASSES%\.eml /ve /t REG_SZ /D "" /f
REG ADD %CLASSES%\.eml\DefaultIcon /ve /t REG_SZ /D "%SystemDrive%\PROGRA~1\MOZILL~1\THUNDE~1.EXE,0" /f
REG ADD %CLASSES%\.eml\shell\open\command /ve /t REG_SZ /D "%SystemDrive%\PROGRA~1\MOZILL~1\THUNDE~1.EXE \"%%1\"" /f

REG ADD %CLASSES%\CLSID\{29F458BE-8866-11D5-A3DD-00B0D0F3BAA7}\LocalServer32 /ve /t REG_SZ /D "%SystemDrive%\PROGRA~1\MOZILL~1\THUNDE~1.EXE /MAPIStartUp" /f

REG ADD %CLASSES%\mailto /ve /t REG_SZ /D "URL:MailTo Protocol" /f
REG ADD %CLASSES%\mailto /v "URL Protocol" /t REG_SZ /D "" /f
REG ADD %CLASSES%\mailto\DefaultIcon /ve /t REG_SZ /D "%SystemDrive%\PROGRA~1\MOZILL~1\THUNDE~1.EXE,0" /f
REG ADD %CLASSES%\mailto\shell\open\command /ve /t REG_SZ /D "%SystemDrive%\PROGRA~1\MOZILL~1\THUNDE~1.EXE -compose %%1" /f

REG ADD "%CLIENTS%\Mail" /ve /t REG_SZ /D "Mozilla Thunderbird" /f

REG ADD "%CLIENTS%\Mail\Mozilla Thunderbird" /v "DLLPath" /t REG_SZ /D "%SystemDrive%\PROGRA~1\MOZILL~1\mozMapi32.dll" /f

REG ADD "%CLIENTS%\Mail\Mozilla Thunderbird\.eml" /ve /t REG_SZ /D "" /f
REG ADD "%CLIENTS%\Mail\Mozilla Thunderbird\.eml" /v "Content Type" /t REG_SZ /D "message/rfc822" /f
REG ADD "%CLIENTS%\Mail\Mozilla Thunderbird\.eml\DefaultIcon" /ve /t REG_SZ /D "%SystemDrive%\PROGRA~1\MOZILL~1\THUNDE~1.EXE,0" /f
REG ADD "%CLIENTS%\Mail\Mozilla Thunderbird\.eml\shell\open\command" /ve /t REG_SZ /D "%SystemDrive%\PROGRA~1\MOZILL~1\THUNDE~1.EXE \"%%1\"" /f

REG ADD "%CLIENTS%\Mail\Mozilla Thunderbird\DefaultIcon" /ve /t REG_SZ /D "%SystemDrive%\PROGRA~1\MOZILL~1\THUNDE~1.EXE,0" /f

REG ADD "%CLIENTS%\Mail\Mozilla Thunderbird\protocols\mailto" /v "URL Protocol" /t REG_SZ /D "" /f
REG ADD "%CLIENTS%\Mail\Mozilla Thunderbird\protocols\mailto\DefaultIcon" /ve /t REG_SZ /D "%SystemDrive%\PROGRA~1\MOZILL~1\THUNDE~1.EXE,0" /f
REG ADD "%CLIENTS%\Mail\Mozilla Thunderbird\protocols\mailto\shell\open\command" /ve /t REG_SZ /D "%SystemDrive%\PROGRA~1\MOZILL~1\THUNDE~1.EXE -compose %%1" /f

REG ADD "%CLIENTS%\Mail\Mozilla Thunderbird\shell\open\command" /ve /t REG_SZ /D "%SystemDrive%\PROGRA~1\MOZILL~1\THUNDE~1.EXE -mail" /f
REG ADD "%CLIENTS%\Mail\Mozilla Thunderbird\shell\properties" /ve /t REG_SZ /D "" /f
REG ADD "%CLIENTS%\Mail\Mozilla Thunderbird\shell\properties\command" /ve /t REG_SZ /D "%SystemDrive%\PROGRA~1\MOZILL~1\THUNDE~1.EXE -options" /f


REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla Thunderbird\Desktop" /v "defaultMailHasBeenSet" /t REG_SZ /D "1" /f
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla Thunderbird\Desktop" /v "%CLIENTS%\Mail" /t REG_SZ /D "Mozilla Thunderbird" /f
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla Thunderbird\Desktop" /v "HKEY_CURRENT_USER\Software\Clients\Mail" /t REG_SZ /D "Mozilla Thunderbird" /f

To avoid thunderbird asking me if i want to import settings from other mail client at first launch, i create a profile silently durring RunOnceExe like this :

REG ADD %KEY%55 /V 2 /D "\"%ProgramFiles%\Mozilla thunderbird\thunderbird.exe\" -CreateProfile sweet" /f

"sweet" is just a basename, and the profile directoy will get a name like this : epe9ne7d.sweet

Kal

Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...