;======RAEVWD 1.9.1 BAIN Wizard Installation Script=======

RequireVersions "1.2.0.416","","","292"

bBetterCities = False
bBCVWD = False

DeSelectAll

SelectSubPackage "00 Core"

If DataFileExists ("Better Cities Full.esp")
    bBetterCities = True
EndIf

If DataFileExists ("Better Cities Full - B&M Edition.esp")
    bBetterCities = True
EndIf

If DataFileExists ("Better Cities - VWD of the IC.esp")
    bBCVWD = True
EndIf

SelectOne "Do you wish to install city architecture?",\
    "|Yes","City architecture includes the buildings used primarily within the cities. These are also used in the wilderness by some village and town mods, but in vanilla this doesn't happen much.","_Screenshots\\Leyawiin.jpg",\
    "No","City architecture will not be installed.","_Screenshots\\Leyawiin.jpg"
    Case "Yes"
        SelectSubPackage "03 City Architecture"
        Break
    Case "No"
        Break
EndSelect
;================================================================================
SelectOne "Do you wish to install Imperial City architecture?",\
    "|Yes","Architecture files primarily used by the Imperial City. Rarely used by other mods.","_Screenshots\\Imperial City.jpg",\
    "No","Imperial City architecture ill not be installed.","_Screenshots\\Imperial City.jpg"
    Case "Yes"
        SelectSubPackage "04 Imperial City Architecture"
        Break
    Case "No"
        Break
EndSelect
;================================================================================
SelectOne "Do you wish to install wilderness architecture?",\
    "|Yes","Contains buildings normally found outside the major cities. Farmhouses, the lower class buildings, priories, docks, and wayshrines.","_Screenshots\\Buildings.jpg",\
    "No","Wilderness architecture will not be installed.","_Screenshots\\Buildings.jpg"
    Case "Yes"
        SelectSubPackage "05 Wilderness Architecture"
        Break
    Case "No"
        Break
EndSelect
;=================================================================================
SelectOne "Do you wish to install Ayleid ruin architecture?",\
    "|Yes","Contains the necessary meshes to view Ayleid ruins at a distance.","_Screenshots\\Ayleid.jpg",\
    "No","Ayleid ruin architecture will not be installed.","_Screenshots\\Ayleid.jpg"
    Case "Yes"
        SelectSubPackage "06 Ayleid Ruins"
        Break
    Case "No"
        Break
EndSelect
;==================================================================================
SelectOne "Do you wish to install Imperial fort architecture?",\
    "|Yes","Contains the necessary meshes to view Imperial forts at a distance.","_Screenshots\\Forts.jpg",\
    "No","Select if you don't have a computer that can handle the strain of the extra files.","_Screenshots\\Forts.jpg"
    Case "Yes"
        SelectSubPackage "07 Imperial Forts"
        Break
    Case "No"
        Break
EndSelect
;===================================================================================
SelectOne "Do you wish to install the large rock files?",\
    "|Yes","Contains files necessary to view the largest rocks, plus all of the large rocks in the Gold Coast region near Anvil.","_Screenshots\\Rocks.jpg",\
    "No","Large rocks will not be installed.","_Screenshots\\Rocks.jpg"
    Case "Yes"
        SelectSubPackage "08 Large Rocks"
        Break
    Case "No"
        Break
EndSelect
;===================================================================================
SelectOne "Do you wish to install ship and shipwreck files?",\
    "|Yes","Files required to view ships and shipwrecks from a distance.","_Screenshots\\Ships.jpg",\
    "No","Ship and shipwreck files will not be installed.","_Screenshots\\Ships.jpg"
    Case "Yes"
        SelectSubPackage "09 Ships"
        Break
    Case "No"
        Break
EndSelect
;===================================================================================
SelectOne "Do you wish to install the statue files?",\
    "|Yes","Files required to view various statues, such as daedric statues and deity statues in cities.","_Screenshots\\Statues.jpg",\
    "No","Statue files will not be installed.","_Screenshots\\Statues.jpg"
    Case "Yes"
        SelectSubPackage "10 Statues"
        Break
    Case "No"
        Break
EndSelect
;====================================================================================
SelectOne "Do you wish to use higher detail meshes for castles?",\
    "|Yes","Files required for higher detail castles.","_Screenshots\\Castles.jpg",\
    "No","Higher detail castles will not be installed.","_Screenshots\\Castles.jpg"
    Case "Yes"
        SelectSubPackage "11 Higher Detail Castles"
        Break
    Case "No"
        Break
EndSelect
;=====================================================================================
SelectOne "Do you wish to install higher detail Imperial bridges?",\
    "|Yes","Files required for higher detail Imperial bridges.","_Screenshots\\ICBridge.jpg",\
    "No","Select if you don't have a computer that can handle the strain of the extra detail.","_Screenshots\\ICBridge.jpg"
    Case "Yes"
        SelectSubPackage "12 Higher Detail IC Bridges"
        Break
    Case "No"
        Break
EndSelect
;======================================================================================

SelectOne "Do you want to install the cities plugin?",\
    "|Yes","Install this plugin to enable viewing city buildings from a distance. Requires the city architecture folder, which will be selected if this plugin is chosen.","",\
    "No","The cities plugin will not be installed.",""
    Case "Yes"
        If bBetterCities ;= True
            DeSelectSubPackage "01 Cities Plugin"
            Note "Better Cities detected. The cities plugin will not be installed."
        Else
            SelectSubPackage "01 Cities Plugin"
            SelectSubPackage "03 City Architecture"
        EndIf
        Break
    Case "No"
        Break
EndSelect
;======================================================================================

SelectOne "Do you want to use the Imperial City plugin?",\
    "|Yes","Install the plugin to enable viewing the Imperial city from a distance. Requires the Imperial City architecture folder which will be slected if this plugin is chosen.","",\
    "No","The Imperial City plugin will not be installed.",""
    Case "Yes"
        If bBCVWD ;= True
            DeSelectSubPackage "02 Imperial City Plugin"
            Note "Better Cities VWD - IC detected. The Imperial City plugin will not be installed."
        Else
            SelectSubPackage "02 Imperial City Plugin"
            SelectSubPackage "04 Imperial City Architecture"
        EndIf
        Break
    Case "No"
        Break
EndSelect

Note "You will need to run TES4LODGen in order to see the items from a distance in-game. All this mod does is install the far_nif files, the actual VWD (LOD) files are generated separately."