Jump to content

Recommended Posts

Posted

Hi all,

I havent been around on MSFN lately but Ive been a big fan of Simonsays Firefox silent install quide and I know that thunderbird uses the same installer.

So I decided to edit the setup.cmd file that simonsays made for the firefox installer for the firefox setup and also use it to backup my profile.

So, I extracted the installer, and edited the config.ini to silent and other options I did/did not want installing.

Then created a subdirectory called setup and included the content of the "%appdata%\thunderbird" folder into the "\Setup\Profile" folder for the installer.

I edited the command file so it installed for firefox:

@echo off
REM If CMDOW is located on System32, you can use the next line to hide the entire commandline window
cmdow @ /HID

REM Firefox Setup
"%SYSTEMDRIVE%\Thunderbird\setup.exe" -ms

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

REM Custom Profile
IF EXIST "%APPDATA%\Thunderbird" RD "%APPDATA%\Thunderbird"
MD "%APPDATA%\Thunderbird"
XCOPY "%SYSTEMDRIVE%\Thunderbird\Setup\Profile" "%APPDATA%\Thunderbird" /Y /E /Q /H /R
EXIT

The registry settings I found whilst seaching on here and they seem to work fine, and so does the program install fine.

The only problem is the profile doesnt get copied over, and I think I know why...

When you first open Thunderbird, it asks to import data like firefox and then once you have chose to either import or not. Then the application data folder is created! Not before....

So then re-running the last part i.e:

IF EXIST "%APPDATA%\Thunderbird" RD "%APPDATA%\Thunderbird"
MD "%APPDATA%\Thunderbird"
XCOPY "%SYSTEMDRIVE%\Thunderbird\Setup\Profile" "%APPDATA%\Thunderbird" /Y /E /Q /H /R

then it will copy! So how do I get around this so I dont have to do anything manually?

Many thanks.


Posted

Yeah I know that, the program installs fine ... just the profile copying isnt happening because of the settings import wizzard.

Posted

Ok, so if anybody cant help with this...

Is there any other way to silently install thunderbird AND get my profile to work automatically?

Serach brings up a way but doesnt seem to be any profile backup success...

Posted

RAR up your profile directory and the profiles.ini file. Then just extract these files during setup.

Posted

Yes, I was doing that before but it will not copy untill the Import settings wizzard has been run.

Tested by uninstalling, deleting the thunderbird appdata folder and then silently installing followed by extracting the profile. Which doesnt work unless I run TB for 1st time, cancel the import wizzard then extract profile again using a RAR SFX file.

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