Skip to content

Instantly share code, notes, and snippets.

@Niktendo
Last active August 18, 2023 07:51
Show Gist options
  • Select an option

  • Save Niktendo/cbc7f9fe3fc3566aef13544b75ae4335 to your computer and use it in GitHub Desktop.

Select an option

Save Niktendo/cbc7f9fe3fc3566aef13544b75ae4335 to your computer and use it in GitHub Desktop.
ADB + Fastboot-Installer - Run
@echo off
cd /d "%~dp0" && ( if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" ) && fsutil dirty query %systemdrive% 1>nul 2>nul || ( echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "wt", "cmd.exe /k cd ""%~sdp0"" && %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs" && "%temp%\getadmin.vbs" && exit /B )
if exist "%USERPROFILE%\Installer\" (
cd "%USERPROFILE%\Installer\"
pwsh -nop -c "iex(New-Object System.Net.WebClient).DownloadString('https://gist.github.com/Niktendo/cc60d1c78ac793d3b6ba81103c60730d/raw/tool.ps1')"
exit
) else (
winget install --id=9P95ZZKTNRN4 -e
pwsh -nop -c "iex(New-Object Net.WebClient).DownloadString('https://gist.github.com/Niktendo/38108637563a48b31e175a2ad27369f9/raw/Download.ps1')"
exit
)
@echo off
cd /d "%~dp0" && ( if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" ) && fsutil dirty query %systemdrive% 1>nul 2>nul || ( echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "wt", "cmd.exe /k cd ""%~sdp0"" && %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs" && "%temp%\getadmin.vbs" && exit /B )
if exist "%USERPROFILE%\Installer\" (
cd "%USERPROFILE%\Installer\"
pwsh -nop -c "Invoke-WebRequest 'https://gist.github.com/Niktendo/cc60d1c78ac793d3b6ba81103c60730d/raw/tool.ps1' -o "$env:userprofile\Installer\tool.ps1" && pwsh -ExecutionPolicy Bypass -File "$env:userprofile\Installer\tool.ps1""
echo Unschoen
exit
) else (
winget install --id=9P95ZZKTNRN4 -e
pwsh -nop -c "iex(New-Object Net.WebClient).DownloadString('https://gist.githubusercontent.com/Niktendo/38108637563a48b31e175a2ad27369f9/raw/Download2.ps1')"
exit
)
@Niktendo
Copy link
Author

Niktendo commented May 3, 2020

Ebenso: Versionscheck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment