@echo off
title "Installing ArialClient... "
PowerShell -Command "PowerShell.exe -WindowStyle hidden {Add-Type -AssemblyName PresentationFramework;[System.Windows.MessageBox]::Show('Downloading JDK in the background, this should not take longer that 3 minutes')}"
powershell -c "Invoke-WebRequest -Uri 'https://aka.ms/download-jdk/microsoft-jdk-17.0.4-windows-x64.msi' -OutFile '%USERPROFILE%\AppData\Local\Temp\microsoft-jdk-17.0.4.msi'"
PowerShell -Command "PowerShell.exe -WindowStyle hidden {Add-Type -AssemblyName PresentationFramework;[System.Windows.MessageBox]::Show('Downloaded the JDK, click OK to install it. Make sure to enable ""Associate .jar""')}"
PowerShell -Command "[System.Diagnostics.Process]::Start('%USERPROFILE%\AppData\Local\Temp\microsoft-jdk-17.0.4.msi')"
PowerShell -Command "PowerShell.exe -WindowStyle hidden {Add-Type -AssemblyName PresentationFramework;[System.Windows.MessageBox]::Show('Thank you for installing, the JDK is now installed, you can now launch the client')}"
