/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

;--- Include MAKEMSI support ------------------------------------------------
#include "thunderbird.mmh"

<$AbortIf Condition=^not VersionNT OR (VersionNT < 400)^ Message=^Can only be installed on WinNT, Windows 2000, XP or greater.^>

<$DirectoryTree Key="INSTALLDIR" DIR="[ProgramFilesFolder]\Mozilla Thunderbird Installer" CHANGE="\" PrimaryFolder="Y">

<$Feature "F_ThunderbirdMain" Title="Browser" Description="Thunderbird installer files" Attributes="FavorLocal">
        
    <$Icon KEY="@Thunderbirdicon" "..\branding\thunderbird.ico">

    <$Files "..\install\setup\*.*" SubDir="TREE" DestDir="INSTALLDIR" EXLIST="NotThese">
    <$Files "..\install\xpi\*.*" SubDir="TREE" DestDir="INSTALLDIR" EXLIST="NotThese">
       
    #(
        <$ExeCA
	    EXE="[INSTALLDIR]setup.exe"
	    Args="-ms -nosplash -setDefaultBrowser"
	    Seq="6401" ;; Run this between PublishProduct and InstallFinalize
	    Type="AnyRC"
	>
    #)
<$/Feature>

; fix dialog picture and make it pretty
<$Table "Control">
    #(
        <$Row
                   @Where="Control = 'Bitmap'"
                    @OK="=8"
               Attributes="1048577"
        >
    #)
<$/Table>
