@echo off
:: Auto Relister - Windows uninstaller (download version)
::
:: Runs install-autorelister-windows.ps1 in uninstall mode. It removes the
:: background updater, the extension folder and - with one permission prompt -
:: the force-install policy left by the old installer. Only the policy entries
:: naming OUR extension id are removed; the forcelist is shared with any other
:: software.
::
:: Keep CRLF line endings - cmd.exe misreads batch files saved with LF only.

set AUTORELISTER_MODE=uninstall
powershell -NoProfile -ExecutionPolicy Bypass -Command "[Net.ServicePointManager]::SecurityProtocol=3072;try{iex(New-Object Net.WebClient).DownloadString('https://extension.autorelister.com.au/install-autorelister-windows.ps1')}catch{$_;pause}"
