Last active
August 18, 2023 07:51
-
-
Save Niktendo/cbc7f9fe3fc3566aef13544b75ae4335 to your computer and use it in GitHub Desktop.
ADB + Fastboot-Installer - Run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @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 | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @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 | |
| ) |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ebenso: Versionscheck