mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2024-12-11 22:35:40 +01:00
37ebc1db0e
Fixes #336
22 lines
560 B
Batchfile
Executable File
22 lines
560 B
Batchfile
Executable File
@SFC 2>&1 | FIND /i "/SCANNOW" >NUL
|
|
@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
|