@echo off
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
if '%errorlevel%' NEQ '0' (
goto goUAC
) else goto goADMIN
:goUAC
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
set params = %*:"=""
echo UAC.ShellExecute "cmd.exe", "/c %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs"
"%temp%\getadmin.vbs"
del "%temp%\getadmin.vbs"
exit /B
:goADMIN
pushd "%CD%"
CD /D "%~dp0"
echo -----------------------------------------------------------------------------
echo ^| ^|
echo ^| _____/\\\\\\\\\\\____/\\\\\\\\\\\\\\\____/\\\\\\\\\_____ ^|
echo ^| ___/\\\/////////\\\_\///////\\\/////___/\\\///////\\\___ ^|
echo ^| __\//\\\______\///________\/\\\_______\///______\//\\\__ ^|
echo ^| ___\////\\\_______________\/\\\_________________/\\\/___ ^|
echo ^| ______\////\\\____________\/\\\______________/\\\//_____ ^|
echo ^| _________\////\\\_________\/\\\___________/\\\//________ ^|
echo ^| __/\\\______\//\\\________\/\\\_________/\\\/___________ ^|
echo ^| _\///\\\\\\\\\\\/_________\/\\\________/\\\\\\\\\\\\\\\_ ^|
echo ^| ___\///////////___________\///________\///////////////__ ^|
echo ^| ^|
echo ^| Streamtuner2 for Windows Version 2.2.0 ^|
echo ^| ^|
echo ^| Installer for Python 2.7.12 & Gtk 2.24.2 ^|
echo -----------------------------------------------------------------------------
echo.
@setlocal enableextensions
@cd /d "%~dp0"
@echo off
cls
PowerShell Set-ExecutionPolicy -ExecutionPolicy ByPass -Scope CurrentUser
PowerShell.exe -File install_python_gtk.ps1
PowerShell Set-ExecutionPolicy -ExecutionPolicy Undefined -Scope CurrentUser