diff --git a/windows11.bat b/windows11.bat index 06c54af..428f485 100644 --- a/windows11.bat +++ b/windows11.bat @@ -203,6 +203,7 @@ PowerShell -Command "" ^ "$link = (Invoke-WebRequest $releases | ConvertFrom-Json)[0].assets.browser_download_url;" ^ "$archive = '%TEMP%\dsr.zip';" ^ "Invoke-WebRequest -Uri $link -OutFile $archive;" ^ + "Remove-Item '%LOCALAPPDATA%\DSR' -Recurse -ErrorAction SilentlyContinue;" ^ "Expand-Archive -Path $archive -DestinationPath '%LOCALAPPDATA%\DSR' -Force;" ^ "Move-Item -Path '%LOCALAPPDATA%\DSR\dsr-win32-x64\*' -Destination '%LOCALAPPDATA%\DSR' -Force;" ^ "Remove-Item '%LOCALAPPDATA%\DSR\dsr-win32-x64';" ^