2018-04-11 12:27:53 +02:00
|
|
|
@ECHO OFF & SETLOCAL ENABLEEXTENSIONS
|
2018-04-10 20:04:03 +02:00
|
|
|
|
2018-04-11 12:27:53 +02:00
|
|
|
CD /d %~dp0
|
|
|
|
SFC 2>&1 | FIND /i "/SCANNOW" >NUL:
|
|
|
|
IF ERRORLEVEL 1 GOTO :ELEVATE
|
|
|
|
GOTO :ADMINTASKS
|
2018-01-25 14:15:28 +01:00
|
|
|
|
|
|
|
:ELEVATE
|
2018-04-11 12:27:53 +02:00
|
|
|
|
2018-01-25 14:15:28 +01:00
|
|
|
ECHO Elevated privileges are temporarily required, just to register or remove the dnscrypt-proxy service
|
|
|
|
MSHTA "javascript: var shell = new ActiveXObject('shell.application'); shell.ShellExecute('%~nx0', '', '', 'runas', 1); close();"
|
|
|
|
EXIT
|
|
|
|
|
|
|
|
:ADMINTASKS
|
|
|
|
|
2018-04-11 12:27:53 +02:00
|
|
|
dnscrypt-proxy.exe -service stop
|
|
|
|
dnscrypt-proxy.exe -service uninstall
|
2018-01-25 14:15:28 +01:00
|
|
|
|
2018-04-11 12:27:53 +02:00
|
|
|
ECHO.
|
2018-04-10 20:04:03 +02:00
|
|
|
SET /P _=Thank you for using dnscrypt-proxy! Hit [RETURN] to finish
|
2018-01-25 14:15:28 +01:00
|
|
|
EXIT
|