The following was done using Thunderbird 1.0.2 and its related extensions.

Requirements:
   * WinRar
   * Perl
   * Perl PAR (make executables)

1. Run the thunderbird setup till the first screen comes up.

2. Browse through your users directory in 'c:\document and settings\<user>\local settings\temp\<dir>', the <dir> will be a randomly named one but to know which one it is, it should contain XPI files in it and an 'UninstallThunderbird' file as well.

3. Copy these files to a more safe location such as 'c:\thunderbird install'.

4. Edit the 'config.ini' and change 'Runmode' to 'Auto', should look like this 'Run Mode=Auto'. This will allow for no user interaction. I fould that changing to silent meant that the setup.exe exited to shell the second you ran it, defeating the purpose of waiting for it to install.

5. Now we are going to create the extension directory. Make a directory in 'c:\thunderbird install' called XPI. You should have 'c:\thunderbird install\XPI'. Place ALL of you extension XPI files into this directory.

6. Make sure you have perl installed and create a script called 'install.pl'. It will contain the following

# install.pl - Installs Thunderbird 1.0.2 and Extensions
# Allan Stones
chomp($sys_drive=`echo %SYSTEMDRIVE%`);

print "Installing Mozilla Thunderbird 1.0.2 and Extensions Please Wait...\n";
print "------------------------------------------------------------------\n";
print "\n";


print "Installing Thunderbird... ";
`start /wait setup.exe -ms -ira`;

file_exists("$sys_drive\\Program Files\\Mozilla Thunderbird\\thunderbird.exe");

print "Installing Extensions...\n";
chomp($dir=`pwd`);
@files=`dir /b .\\XPI\\\*.xpi`;
foreach $file(@files)
{
chomp($file);
print "..Installing $file";
`\"$sys_drive\\Program Files\\Mozilla Thunderbird\\Thunderbird.exe\" -install-global-extension \"$dir\\XPI\\$file\"`;
print " [ OK ]\n";
}
print "\n";
print "Installation Complete!\n";


sub file_exists
{
 my ($file) = @_;
 if (-e "$file")
 {
  print "[ OK ]\n";
 }
 else
 {
   print "[FAIL]\n";
   exit 0;
 }
}

7. Make sure you have Perl PAR installed onto your system. I use win32 system so i just fired up PPM and ran 'install PAR'. now open up a command prompt to 'c:\thunderbird install' and type 'pp -o install install.pl'. this should create a file called 'install.exe'

8. Now create a new SFX archive in winrar. We want it to be completely silent and overwrite everything. The field that says 'run after execution, you put in the 'install.exe'

9. If everything went correctly, and im hoping it did then you will have a working install of thunderbird 1.0.2 and its extensions!



Hope this helps people.

--
Allan Stones
Optiver Australia PTY LTD
Junior Systems Administrator
Suite A 1-3 Brodie Street, Paddington, NSW, 2021,
Australia
Phone: +61(2)9333 4078
Fax : +61(2)9333 4044
Email: [EMAIL PROTECTED]
Web : http://www.optiver.com.au




Reply via email to