Here is a working solution to register ThunderbirdPortable as Default Windows Mail Client...
- 1. Create a subfolder in your ThunderbirdPortable folder (for example: "..ThunderbirdPortable\Windows")
- 2. Change to the created subfolder for creating the following two batch-files...
- 3. Create a batch-file (for example: "RegisterThunderbirdPortable.bat") with the following content :
@echo off Title Register Thunderbird Portable & Color 1E cd %systemroot%\system32 call :IsAdmin echo REGISTER THUNDERBIRD PORTABLE echo ============================= echo. cd /d %~dp0 set "setup-path=%CD%" cd.. set "app-path=%CD%" cd %setup-path% echo CURRENT FOLDER: %setup-path% echo PROGRAM FOLDER: %app-path% if not exist "%app-path%\ThunderbirdPortable.exe" goto :FAIL echo. pause Reg.exe add "HKLM\Software\Classes\CLSID\{29F458BE-8866-11D5-A3DD-00B0D0F3BAA7}\ProgID" /ve /t REG_SZ /d "MozillaMapi.1" /f Reg.exe add "HKLM\Software\Classes\CLSID\{29F458BE-8866-11D5-A3DD-00B0D0F3BAA7}\VersionIndependentProgID" /ve /t REG_SZ /d "MozillaMAPI" /f Reg.exe add "HKLM\Software\Classes\CLSID\{1814CEEB-49E2-407F-AF99-FA755A7D2607}\InProcServer32" /ve /t REG_SZ /d "%app-path%\App\Thunderbird\AccessibleMarshal.dll" /f Reg.exe add "HKLM\Software\Classes\CLSID\{1BAA303D-B4B9-45E5-9CCB-E3FCA3E274B6}\InprocHandler32" /ve /t REG_EXPAND_SZ /d "D:\Thunderbird-Test\AccessibleHandler.dll" /f Reg.exe add "HKLM\Software\Classes\CLSID\{29F458BE-8866-11D5-A3DD-00B0D0F3BAA7}\LocalServer32" /ve /t REG_SZ /d "\"%app-path%\ThunderbirdPortable.exe\" /MAPIStartup" /f Reg.exe add "HKLM\Software\Classes\CLSID\{6EDCD38E-8861-11D5-A3DD-00B0D0F3BAA7}\InProcServer32" /ve /t REG_SZ /d "%app-path%\App\Thunderbird\mozMapi32_InUse.dll" /f Reg.exe add "HKLM\Software\Classes\CLSID\{DCA8D857-1A63-4045-8F36-8809EB093D04}\InProcServer32" /ve /t REG_SZ /d "%app-path%\App\Thunderbird\AccessibleHandler.dll" /f Reg.exe add "HKLM\Software\Classes\Thunderbird.Url.mailto" /v "EditFlags" /t REG_DWORD /d "2" /f Reg.exe add "HKLM\Software\Classes\Thunderbird.Url.mailto" /ve /t REG_SZ /d "Thunderbird URL" /f Reg.exe add "HKLM\Software\Classes\Thunderbird.Url.mailto" /v "FriendlyTypeName" /t REG_SZ /d "Thunderbird URL" /f Reg.exe add "HKLM\Software\Classes\Thunderbird.Url.mailto\DefaultIcon" /ve /t REG_SZ /d "%app-path%\App\Thunderbird\Thunderbird.exe,0" /f Reg.exe add "HKLM\Software\Classes\Thunderbird.Url.mailto\shell\open\command" /ve /t REG_SZ /d "\"%app-path%\ThunderbirdPortable.exe\" -osint -compose \"%%1\"" /f Reg.exe add "HKLM\Software\Classes\Thunderbird.Url.news" /v "EditFlags" /t REG_DWORD /d "2" /f Reg.exe add "HKLM\Software\Classes\Thunderbird.Url.news" /v "FriendlyTypeName" /t REG_SZ /d "Thunderbird (News) URL" /f Reg.exe add "HKLM\Software\Classes\Thunderbird.Url.news" /ve /t REG_SZ /d "Thunderbird (News) URL" /f Reg.exe add "HKLM\Software\Classes\Thunderbird.Url.news\DefaultIcon" /ve /t REG_SZ /d "%app-path%\App\Thunderbird\Thunderbird.exe,0" /f Reg.exe add "HKLM\Software\Classes\Thunderbird.Url.news\shell\open\command" /ve /t REG_SZ /d "\"%app-path%\ThunderbirdPortable.exe\" -osint -mail \"%%1\"" /f Reg.exe add "HKLM\Software\Classes\ThunderbirdEML" /v "FriendlyTypeName" /t REG_SZ /d "Thunderbird Document" /f Reg.exe add "HKLM\Software\Classes\ThunderbirdEML" /ve /t REG_SZ /d "Thunderbird Document" /f Reg.exe add "HKLM\Software\Classes\ThunderbirdEML" /v "EditFlags" /t REG_DWORD /d "2" /f Reg.exe add "HKLM\Software\Classes\ThunderbirdEML\DefaultIcon" /ve /t REG_SZ /d "%app-path%\App\Thunderbird\Thunderbird.exe,0" /f Reg.exe add "HKLM\Software\Classes\ThunderbirdEML\shell\open\command" /ve /t REG_SZ /d "\"%app-path%\ThunderbirdPortable.exe\" \"%%1\"" /f Reg.exe add "HKLM\Software\Clients\Mail\Mozilla Thunderbird" /v "DLLPath" /t REG_SZ /d "%app-path%\App\Thunderbird\mozMapi32_InUse.dll" /f Reg.exe add "HKLM\Software\Clients\Mail\Mozilla Thunderbird" /ve /t REG_SZ /d "Mozilla Thunderbird" /f Reg.exe add "HKLM\Software\Clients\Mail\Mozilla Thunderbird" /v "SupportUTF8" /t REG_DWORD /d "0" /f Reg.exe add "HKLM\Software\Clients\Mail\Mozilla Thunderbird\Capabilities" /v "ApplicationName" /t REG_SZ /d "Thunderbird Portable" /f Reg.exe add "HKLM\Software\Clients\Mail\Mozilla Thunderbird\Capabilities" /v "ApplicationIcon" /t REG_SZ /d "%app-path%\App\Thunderbird\Thunderbird.exe,0" /f Reg.exe add "HKLM\Software\Clients\Mail\Mozilla Thunderbird\Capabilities" /v "ApplicationDescription" /t REG_SZ /d "Thunderbird Portable ist eine komplett ausgestattete E-Mail-Anwendung." /f Reg.exe add "HKLM\Software\Clients\Mail\Mozilla Thunderbird\Capabilities\FileAssociations" /v ".wdseml" /t REG_SZ /d "ThunderbirdEML" /f Reg.exe add "HKLM\Software\Clients\Mail\Mozilla Thunderbird\Capabilities\FileAssociations" /v ".eml" /t REG_SZ /d "ThunderbirdEML" /f Reg.exe add "HKLM\Software\Clients\Mail\Mozilla Thunderbird\Capabilities\StartMenu" /v "Mail" /t REG_SZ /d "Mozilla Thunderbird" /f Reg.exe add "HKLM\Software\Clients\Mail\Mozilla Thunderbird\Capabilities\URLAssociations" /v "mailto" /t REG_SZ /d "Thunderbird.Url.mailto" /f Reg.exe add "HKLM\Software\Clients\Mail\Mozilla Thunderbird\DefaultIcon" /ve /t REG_SZ /d "%app-path%\App\Thunderbird\Thunderbird.exe,0" /f Reg.exe add "HKLM\Software\Clients\Mail\Mozilla Thunderbird\InstallInfo" /v "ReinstallCommand" /t REG_SZ /d "\"%app-path%\uninstall\helper.exe\" /SetAsDefaultAppGlobal" /f Reg.exe add "HKLM\Software\Clients\Mail\Mozilla Thunderbird\InstallInfo" /v "HideIconsCommand" /t REG_SZ /d "\"%app-path%\uninstall\helper.exe\" /HideShortcuts" /f Reg.exe add "HKLM\Software\Clients\Mail\Mozilla Thunderbird\InstallInfo" /v "IconsVisible" /t REG_DWORD /d "0" /f Reg.exe add "HKLM\Software\Clients\Mail\Mozilla Thunderbird\InstallInfo" /v "ShowIconsCommand" /t REG_SZ /d "\"%app-path%\uninstall\helper.exe\" /ShowShortcuts" /f Reg.exe add "HKLM\Software\Clients\Mail\Mozilla Thunderbird\Protocols\mailto" /v "URL Protocol" /t REG_SZ /d "" /f Reg.exe add "HKLM\Software\Clients\Mail\Mozilla Thunderbird\Protocols\mailto" /ve /t REG_SZ /d "Thunderbird URL" /f Reg.exe add "HKLM\Software\Clients\Mail\Mozilla Thunderbird\Protocols\mailto" /v "EditFlags" /t REG_DWORD /d "2" /f Reg.exe add "HKLM\Software\Clients\Mail\Mozilla Thunderbird\Protocols\mailto" /v "FriendlyTypeName" /t REG_SZ /d "Thunderbird URL" /f Reg.exe add "HKLM\Software\Clients\Mail\Mozilla Thunderbird\Protocols\mailto\DefaultIcon" /ve /t REG_SZ /d "%app-path%\App\Thunderbird\Thunderbird.exe,0" /f Reg.exe add "HKLM\Software\Clients\Mail\Mozilla Thunderbird\Protocols\mailto\shell\open\command" /ve /t REG_SZ /d "\"%app-path%\ThunderbirdPortable.exe\" -osint -compose \"%%1\"" /f Reg.exe add "HKLM\Software\Clients\Mail\Mozilla Thunderbird\shell\open\command" /ve /t REG_SZ /d "\"%app-path%\ThunderbirdPortable.exe\" -mail" /f Reg.exe add "HKLM\Software\Clients\Mail\Mozilla Thunderbird\shell\properties" /ve /t REG_SZ /d "Thunderbird - &Optionen" /f Reg.exe add "HKLM\Software\Clients\Mail\Mozilla Thunderbird\shell\properties\command" /ve /t REG_SZ /d "\"%app-path%\ThunderbirdPortable.exe\" -options" /f Reg.exe add "HKLM\Software\Clients\Mail\Mozilla Thunderbird\shell\safemode" /ve /t REG_SZ /d "Thunderbird - &Abgesicherter Modus" /f Reg.exe add "HKLM\Software\Clients\Mail\Mozilla Thunderbird\shell\safemode\command" /ve /t REG_SZ /d "\"%app-path%\ThunderbirdPortable.exe\" -safe-mode" /f Reg.exe add "HKLM\Software\Clients\News\Mozilla Thunderbird" /ve /t REG_SZ /d "Mozilla Thunderbird" /f Reg.exe add "HKLM\Software\Clients\News\Mozilla Thunderbird" /v "DLLPath" /t REG_SZ /d "%app-path%\App\Thunderbird\mozMapi32_InUse.dll" /f Reg.exe add "HKLM\Software\Clients\News\Mozilla Thunderbird\Capabilities" /v "ApplicationDescription" /t REG_SZ /d "Thunderbird Portable ist eine komplett ausgestattete E-Mail-Anwendung." /f Reg.exe add "HKLM\Software\Clients\News\Mozilla Thunderbird\Capabilities" /v "ApplicationName" /t REG_SZ /d "Thunderbird Portable (News)" /f Reg.exe add "HKLM\Software\Clients\News\Mozilla Thunderbird\Capabilities" /v "ApplicationIcon" /t REG_SZ /d "%app-path%\App\Thunderbird\Thunderbird.exe,0" /f Reg.exe add "HKLM\Software\Clients\News\Mozilla Thunderbird\Capabilities\URLAssociations" /v "snews" /t REG_SZ /d "Thunderbird.Url.news" /f Reg.exe add "HKLM\Software\Clients\News\Mozilla Thunderbird\Capabilities\URLAssociations" /v "news" /t REG_SZ /d "Thunderbird.Url.news" /f Reg.exe add "HKLM\Software\Clients\News\Mozilla Thunderbird\Capabilities\URLAssociations" /v "nntp" /t REG_SZ /d "Thunderbird.Url.news" /f Reg.exe add "HKLM\Software\Clients\News\Mozilla Thunderbird\DefaultIcon" /ve /t REG_SZ /d "%app-path%\App\Thunderbird\Thunderbird.exe,0" /f Reg.exe add "HKLM\Software\Clients\News\Mozilla Thunderbird\Protocols\news" /ve /t REG_SZ /d "Thunderbird (News) URL" /f Reg.exe add "HKLM\Software\Clients\News\Mozilla Thunderbird\Protocols\news" /v "URL Protocol" /t REG_SZ /d "" /f Reg.exe add "HKLM\Software\Clients\News\Mozilla Thunderbird\Protocols\news" /v "FriendlyTypeName" /t REG_SZ /d "Thunderbird (News) URL" /f Reg.exe add "HKLM\Software\Clients\News\Mozilla Thunderbird\Protocols\news" /v "EditFlags" /t REG_DWORD /d "2" /f Reg.exe add "HKLM\Software\Clients\News\Mozilla Thunderbird\Protocols\news\DefaultIcon" /ve /t REG_SZ /d "%app-path%\App\Thunderbird\Thunderbird.exe,0" /f Reg.exe add "HKLM\Software\Clients\News\Mozilla Thunderbird\Protocols\news\shell\open\command" /ve /t REG_SZ /d "\"%app-path%\ThunderbirdPortable.exe\" -osint -mail \"%%1\"" /f Reg.exe add "HKLM\Software\Clients\News\Mozilla Thunderbird\Protocols\nntp" /v "FriendlyTypeName" /t REG_SZ /d "Thunderbird (News) URL" /f Reg.exe add "HKLM\Software\Clients\News\Mozilla Thunderbird\Protocols\nntp" /v "EditFlags" /t REG_DWORD /d "2" /f Reg.exe add "HKLM\Software\Clients\News\Mozilla Thunderbird\Protocols\nntp" /v "URL Protocol" /t REG_SZ /d "" /f Reg.exe add "HKLM\Software\Clients\News\Mozilla Thunderbird\Protocols\nntp" /ve /t REG_SZ /d "Thunderbird (News) URL" /f Reg.exe add "HKLM\Software\Clients\News\Mozilla Thunderbird\Protocols\nntp\DefaultIcon" /ve /t REG_SZ /d "%app-path%\App\Thunderbird\Thunderbird.exe,0" /f Reg.exe add "HKLM\Software\Clients\News\Mozilla Thunderbird\Protocols\nntp\shell\open\command" /ve /t REG_SZ /d "\"%app-path%\ThunderbirdPortable.exe\" -osint -mail \"%%1\"" /f Reg.exe add "HKLM\Software\Clients\News\Mozilla Thunderbird\Protocols\snews" /v "URL Protocol" /t REG_SZ /d "" /f Reg.exe add "HKLM\Software\Clients\News\Mozilla Thunderbird\Protocols\snews" /v "EditFlags" /t REG_DWORD /d "2" /f Reg.exe add "HKLM\Software\Clients\News\Mozilla Thunderbird\Protocols\snews" /ve /t REG_SZ /d "Thunderbird (News) URL" /f Reg.exe add "HKLM\Software\Clients\News\Mozilla Thunderbird\Protocols\snews" /v "FriendlyTypeName" /t REG_SZ /d "Thunderbird (News) URL" /f Reg.exe add "HKLM\Software\Clients\News\Mozilla Thunderbird\Protocols\snews\DefaultIcon" /ve /t REG_SZ /d "%app-path%\App\Thunderbird\Thunderbird.exe,0" /f Reg.exe add "HKLM\Software\Clients\News\Mozilla Thunderbird\Protocols\snews\shell\open\command" /ve /t REG_SZ /d "\"%app-path%\ThunderbirdPortable.exe\" -osint -mail \"%%1\"" /f Reg.exe add "HKLM\Software\Clients\News\Mozilla Thunderbird\shell\open\command" /ve /t REG_SZ /d "\"%app-path%\ThunderbirdPortable.exe\" -mail" /f Reg.exe add "HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\ThunderbirdPortable.exe" /v "Path" /t REG_SZ /d "%app-path%" /f Reg.exe add "HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\ThunderbirdPortable.exe" /ve /t REG_SZ /d "%app-path%\ThunderbirdPortable.exe" /f Reg.exe add "HKLM\Software\RegisteredApplications" /v "Thunderbird (News)" /t REG_SZ /d "Software\Clients\News\Mozilla Thunderbird\Capabilities" /f Reg.exe add "HKLM\Software\RegisteredApplications" /v "Thunderbird" /t REG_SZ /d "Software\Clients\Mail\Mozilla Thunderbird\Capabilities" /f echo. echo ------------------------------------------------ echo READY - THUNDERBIRD PORTABLE IS NOW REGISTERED ! echo ------------------------------------------------ echo. pause Exit :IsAdmin Reg.exe query "HKU\S-1-5-19\Environment" If Not %ERRORLEVEL% EQU 0 ( Cls & Echo You must have administrator rights to continue ... Pause & Exit ) Cls goto:eof :FAIL echo. echo. echo FAIL TO REGISTER... echo. echo THE CURRENT FOLDER MUST BE A SUBFOLDER IN THE PROGRAM FOLDER ! echo. echo. pause
- 4. Create a batch-file (for example: "CreateSendToConfiguration.bat") with the following content:
@echo off Title Create SendTo Configuration & Color 1E echo CREATE SENDTO CONFIGURATION echo =========================== echo. echo CLEANING SENDTO THUNDERBIRD LINKS... del "C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Windows\SendTo\Thunderbird*.lnk" /Q cd /d %~dp0 set setup-path=%CD% cd.. set app-path=%CD% if not exist "%app-path%\ThunderbirdPortable.exe" goto :FAIL cd %setup-path% set temp-link=%setup-path%\Thunderbird Portable.lnk set temp-file=%setup-path%\Thunderbird SendTo.cmd set temp-icon=%app-path%\app\appinfo\appicon.ico echo. echo. echo PARAMETER SETTINGS: :: =================== echo. echo LINK: %temp-link% echo FILE: %temp-file% echo ICON: %temp-icon% echo. echo. echo FILE CREATION... :: ================ echo @echo off > "%temp-file%" echo if %%1. == . exit >> "%temp-file%" echo set PARAMS=file:///%%1 >> "%temp-file%" echo :loop >> "%temp-file%" echo shift >> "%temp-file%" echo if %%1. == . goto send >> "%temp-file%" echo set PARAMS=%%PARAMS%%,file:///%%1 >> "%temp-file%" echo goto loop >> "%temp-file%" echo :send >> "%temp-file%" echo start "Thunderbird" "%app-path%\ThunderbirdPortable.exe" -compose attachment='%%PARAMS%%' >> "%temp-file%" echo LINK CREATION... :: ================ set SCRIPT="%TEMP%\%RANDOM%-%RANDOM%-%RANDOM%-%RANDOM%.vbs" echo Set oWS = WScript.CreateObject("WScript.Shell") >> %SCRIPT% echo sLinkFile = "%temp-link%" >> %SCRIPT% echo Set oLink = oWS.CreateShortcut(sLinkFile) >> %SCRIPT% echo oLink.TargetPath = "%temp-file%" >> %SCRIPT% echo oLink.IconLocation = "%temp-icon%" >> %SCRIPT% echo oLink.Save >> %SCRIPT% cscript /nologo %SCRIPT% del %SCRIPT% echo. echo SENDTO LINK CREATION... :: ======================= echo. copy "%temp-link%" "C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Windows\SendTo" echo. echo ------------------------------------ echo READY - SENDTO LINK IS NOW CREATED ! echo ------------------------------------ echo. pause exit :FAIL echo. echo. echo FAIL TO CREATE... echo. echo THE CURRENT FOLDER MUST BE A SUBFOLDER IN THE PROGRAM FOLDER ! echo. echo. pause
- 5. Execute the two created batch-files and set ThunderbirdPortable as Default-App (Windows Settings)
- ...and have freedom
---------------------------------------
Best regards from Hamburg !
I followed your instructions but something didn't work - I am sure it is something I didn't do right.
The first batch file said I had to have Administrative Rights (which as far as I know I do) to continue - hit continue and screen immediately cleared. Ran second file with the same results.
The last step said: Set ThunderbirdPortable as Standard (Windows Settings)
Not sure what that actually means. Anywho - went into Windows SETUP - sent to default and the only App listed was Thunderbird. Hit a mail link - didn't go to ThunderbirdPortable. Went into ThunderbirdPortable setup and selected it as default - now I am back to it trying to open Outlook.
1. The folder, which contains the new batch-files must be a subfolder in the ThunderbirdPortable folder !
2. You have to click on the batch-file with right-mouse-button and choose "Run as Administrator" !
3. Run the SendTo-configuration-batch-file as current user !
4. In Windows 10 go to "Settings > Apps > Standard-Apps > E-Email" and choose "ThunderbirdPortable" !
5. The SendTo function also works correct, if only the first three points have executed successfully !
Best regards !
OK - Ran registration via right click. It ran normally (didn't terminate quickly like before.
Now - 3. Run the SendTo-configuration-batch-file as current user ! Not sure what that means. Does that mean just double click and let it run? I did that but nothing shows up as ThunderbirdPortable so ran it with right click like first one.
Here might be the problem - Step four says to go to "Settings > Apps > Standard-Apps > E-Email" and choose "ThunderbirdPortable" Well, in my version of Windows I start SETTING, don't have just Apps - I have Apps & features which lists all the apps on my PC. I also have Default Apps which does list E-Mail with Thunderbird selected and not ThunderbirdPortable. When I select that it has Windows10 Mail, Google Chrome, Outlook, Thunderbird and Look for an in Microsoft Store.
Can you tell what I am doing wrong?
Thanks a bunch for your help.
4. In Windows 10 go to "Settings > Apps > Standard-Apps > E-Email" and choose "ThunderbirdPortable" !
Look for "Default-Apps" - sorry, in german language it called "Standard-Apps"
Google it (for example): https://helpdeskgeek.com/how-to/set-windows-default-programs
I'm sorry, if you have no expert as friend...
Good Luck
Absolutely no problem. Nope - ThunderbirdPortable doesn't show up. Not to worry - I will work around it. Thanks for your help.
Did it, but i only can´t see the Portable Version on the Standard Apps... There is only the old Thunderbird in.
Regards Jacek
3. Create a batch-file (for example: "RegisterThunderbirdPortable.bat") with the following content :
Hi guys,
I did all steps (W10-Fix/update) as you described... but TunderbirdPortable does not show up! Only the TBportable-Start-Screen pops up for some seconds, that's all! And if TBportable is running in backgraound, a error occures "Another instance of Tunderbirdportable is running. ...."
Are there any workarounds or other methods?
PS: i am on W10, Version 2004
Thks for your great work and help
adding Thunderbird\App\Thunderbird64\mozMapi32_InUse.dll from the original installation and removing all "-osint" params from this script helped me.
Thunderbird 68.12.1 (64-bit)
Win10 10.0.18362
Hi Neddenien, so disappointed, these batch scripts don't work for me, especially as they look so well written and you have obviously put a lot of work into them to make them very easy to use.
However, making any corrections to them is beyond my abilities.
I'm using windows 7 64bit.
No email client installed... I only use Thunderbird Portable (The Portable Apps version)
I followed all 4 steps to the letter, with everything seeming to go fine.
The 2 batch scripts all appear to run successfully...
The "Register Thunderbird Portable.bat" script runs with many remarks "The operation completed successfully"
then ends with "READY - THUNDERBIRDPORTABLE IS NOW REGISTERED".
The "CreateSendToConfiguration.bat" script runs fine and ends with "1 file(s) copied and "READY - SENDTO LINK IS NOW CREATED !"
"Thunderbird Portable" and Thunderbird Portable (News)" appear in the "Default Programs" list so I can make them the default mail programs and select all the default file extensions available for them.
"Thunderbird" and Thunderbird (News) appear in the registry under HKEY_LOCAL_MACHINE\SOFTWARE\RegisteredApplications (but not Thunderbird Portable - this may be intentional).
However, when I click on an email link on a Firefox portable web page, I just get the initial portable apps Thunderbird opening screen, then nothing happens.
I am using the first "RegisterThunderbirdPortable.bat" script which I thought might work with Windows 7 64bit, but maybe these scripts will only work on windows 10?
If Thunderbird Portable is already open, nothing happens. No new write window appears in either case.
Can you help please?
https://portableapps.com/node/65088
I put the bat file in
E:\ThunderbirdPortable\Other
& ran it from there to get it to work.
Here is the best and easy solution to make ThunderbirdPortable as Default Mail Client...
https://portableapps.com/node/65088