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.



Help

Back to top









