$Source = "%files%"
$Destination = "%dest%"

if (!(Test-Path $Source)) {
    Add-Type -AssemblyName PresentationFramework
    [System.Windows.MessageBox]::Show(
        "The folder 'Missing Effects' was not found.`nIt must be located next to FixPremiere.ps1.",
        "Error",
        "OK",
        "Error"
    )
    exit
}

Copy-Item "$Source\*" $Destination -Recurse -Force

Add-Type -AssemblyName PresentationFramework
[System.Windows.MessageBox]::Show(
    "Effects were successfully installed.`nPlease restart Adobe Premiere Pro.",
    "Done",
    "OK",
    "Information"
)
