@echo off
setlocal
set "APP_DIR=%~dp0"
set "DESKTOP=%USERPROFILE%\Desktop"
echo Removing MX Canvas from %APP_DIR%
taskkill /IM "MX Canvas.exe" /F >nul 2>&1
taskkill /IM "MX Canvas Updater.exe" /F >nul 2>&1
if exist "%DESKTOP%\MX Canvas.lnk" del /f /q "%DESKTOP%\MX Canvas.lnk" >nul 2>&1
timeout /t 1 /nobreak >nul
rmdir /s /q "%APP_DIR%"
