Mekrel Posted July 26, 2005 Posted July 26, 2005 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 offREM If CMDOW is located on System32, you can use the next line to hide the entire commandline windowcmdow @ /HIDREM Firefox Setup"%SYSTEMDRIVE%\Thunderbird\setup.exe" -msSET KEY=HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\Mozilla ThunderbirdREG 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" /fREG ADD "%KEY%" /v "DLLPath" /t REG_SZ /D "%PROGRAMFILES%\Mozilla Thunderbird\mozMapi32.dll" /fREG ADD "%KEY%\DefaultIcon" /ve /t REG_SZ /D "%PROGRAMFILES%\Mozilla Thunderbird\thunderbird.exe,0" /fREG ADD "%KEY%\shell\open\command" /ve /t REG_SZ /D "%PROGRAMFILES%\Mozilla Thunderbird\thunderbird.exe -mail" /fREG ADD "%KEY%\shell\properties" /ve /t REG_SZ /D "Thunderbird &Options" /fREG ADD "%KEY%\shell\properties\command" /ve /t REG_SZ /D "%PROGRAMFILES%\Mozilla Thunderbird\thunderbird.exe -options" /fREG ADD "%KEY%\protocols\mailto" /ve /t REG_SZ /D "URL:MailTo Protocol" /fREG ADD "%KEY%\protocols\mailto" /v "URL Protocol" /t REG_SZ /D "" /fREG ADD "%KEY%\protocols\mailto\DefaultIcon" /ve /t REG_SZ /D "%PROGRAMFILES%\Mozilla Thunderbird\thunderbird.exe,0" /fREG ADD "%KEY%\protocols\mailto\shell\open\command" /ve /t REG_SZ /D "%PROGRAMFILES%\Mozilla Thunderbird\thunderbird.exe -compose" /fREM Custom ProfileIF EXIST "%APPDATA%\Thunderbird" RD "%APPDATA%\Thunderbird"MD "%APPDATA%\Thunderbird"XCOPY "%SYSTEMDRIVE%\Thunderbird\Setup\Profile" "%APPDATA%\Thunderbird" /Y /E /Q /H /REXITThe 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 /Rthen it will copy! So how do I get around this so I dont have to do anything manually?Many thanks.
Mekrel Posted July 26, 2005 Author Posted July 26, 2005 Yeah I know that, the program installs fine ... just the profile copying isnt happening because of the settings import wizzard.
Mekrel Posted July 27, 2005 Author Posted July 27, 2005 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...
ODC Posted July 27, 2005 Posted July 27, 2005 RAR up your profile directory and the profiles.ini file. Then just extract these files during setup.
Mekrel Posted July 28, 2005 Author Posted July 28, 2005 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now