service-uninstall.bat 537 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
@NET session
@IF %ERRORLEVEL% NEQ 0 GOTO ELEVATE
@GOTO ADMINTASKS

:ELEVATE
ECHO Elevated privileges are temporarily required, just to register or remove the dnscrypt-proxy service
CD /d %~dp0
MSHTA "javascript: var shell = new ActiveXObject('shell.application'); shell.ShellExecute('%~nx0', '', '', 'runas', 1); close();"
EXIT

:ADMINTASKS

@CD /d %~dp0

.\dnscrypt-proxy.exe -service stop
.\dnscrypt-proxy.exe -service uninstall

@ECHO ""
@SET /P _=Thank you for using dnscrypt-proxy! Hit [RETURN] to finish

EXIT