Jump to content

Recommended Posts

Posted

I have been trying to install Thunderbird using the /S command and others I have tried as well as trying to set the application to be the default mail program. here is my code:

RunOnceEx.cmd

REG ADD %KEY%\050 /VE /D "Mozilla ThunderBird 1.0" /f
REG ADD %KEY%\050 /V 1 /D "%systemdrive%\Install\Thunderbird\Thunderbird.exe /S" /f
REG ADD %KEY%\050 /V 2 /D "REGEDIT /S %systemdrive%\Install\Thunderbird\register.reg" /f

register.reg

Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\mailto\shell\open\command]
@="C:\PROGRA~1\MOZILL~2\THUNDE~1.EXE -compose %1"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\mailto\shell\open\command]
@="C:\PROGRA~1\MOZILL~2\THUNDE~1.EXE -compose %1"

for some reason I have all my programs being installed, but when I hit 050, Thunderbird doesnt install nor does the registry. What am I doing wrong, or what other options can I try to make this work?

I have been searching the forums for 2 days and am using the install provided by Dave332 from here:

Here's Thunderbird Unattended

The site and forums so far have been a huge help, thank you.


Posted

I figured it out, took a while. But if anyone wants to have Thunderbird silently install and be the default mailing program, then here is what i did with Mozilla Thunderbird 1.0.2:

RunOnceEx

REG ADD %KEY%\002 /VE /D "Mozilla Thunderbird 1.0" /f
REG ADD %KEY%\002 /V 1 /D "%systemdrive%\Install\Thunderbird\setup.exe -ms" /f
REG ADD %KEY%\002 /V 2 /D "%systemdrive%\Install\registry.cmd" /f

registry.cmd

@echo off
cmdow @ /HID
REM Variables
FOR %%A IN ("%PROGRAMFILES%") DO SET SHORTPF=%%~sA

REG ADD "HKEY_CLASSES_ROOT\mailto\shell\open\command" /VE /D "%SHORTPF%\MOZILL~2\THUNDERBIRD.EXE -compose \"%%1\"" /F
REG ADD "HKLM\SOFTWARE\Classes\mailto\shell\open\command" /VE /D "%SHORTPF%\MOZILL~2\THUNDERBIRD.EXE -compose \"%%1\"" /F
REG ADD "HKLM\SOFTWARE\Clients\Mail" /VE /D "Mozilla Thunderbird" /F
EXIT

I extracted Thunderbird install file with WinRAR into a directory to change the config.ini to a Silent install and left the files uncompressed.

Many thanks to Dave332 for pointing me in the right direction for the Registry files.

  • 1 month later...
Posted

;Set the Start Menu sticky for Mail
[HKEY_CURRENT_USER\Software\Clients\mail]
@="Mozilla Thunderbird"

;==============================
; Give details to make Thunderbird the default e-mail client

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\Mozilla Thunderbird]
@="Mozilla Thunderbird"
"DLLPath"="C:\\PROGRA~1\\Mozilla Thunderbird\\mozMapi32.dll"
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\Mozilla Thunderbird\DefaultIcon]
@="C:\\PROGRA~1\\Mozilla Thunderbird\\thunderbird.exe,0"

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\Mozilla Thunderbird\shell\open\command]
@="C:\\PROGRA~1\\Mozilla Thunderbird\\thunderbird.exe -mail"
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\Mozilla Thunderbird\shell\properties]
@="Thunderbird &Options"
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\Mozilla Thunderbird\shell\properties\command]
@="C:\\PROGRA~1\\Mozilla Thunderbird\\thunderbird.exe -options"

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\Mozilla Thunderbird\protocols\mailto]
@="URL:MailTo Protocol"
"URL Protocol"=""
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\Mozilla Thunderbird\protocols\mailto\DefaultIcon]
@="C:\\Program Files\\Mozilla Thunderbird\\thunderbird.exe,0"
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\Mozilla Thunderbird\protocols\mailto\shell\open\command]
@="C:\\Program Files\\Mozilla Thunderbird\\thunderbird.exe -compose \"%1\""

Above is better! (for the registry part, if you want Thunderbird to be default mail app!).

  • 3 weeks later...
Posted

Perhaps have a try with the following cmd file. It does the same like the file above, but is independent from the path, where the program files are located:

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\mozMapi32.dll" /f

REG ADD "%KEY%\DefaultIcon" /ve /t REG_SZ /D "%PROGRAMFILES%\Mozilla Thunderbird\thunderbird.exe,0" /f

REG ADD "%KEY%\shell\open\command" /ve /t REG_SZ /D "%PROGRAMFILES%\Mozilla Thunderbird\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\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\thunderbird.exe,0" /f

REG ADD "%KEY%\protocols\mailto\shell\open\command" /ve /t REG_SZ /D "%PROGRAMFILES%\Mozilla Thunderbird\thunderbird.exe -compose" /f

exit

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...