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
| [[ $EUID -ne 0 ]] && { echo "GET OUT, BITCH."; exit 1; } |
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 | |
| set "SERVICE_NAME=HASP Loader" | |
| net stop "%SERVICE_NAME%" >nul 2>&1 | |
| if errorlevel 1 ( | |
| taskkill /F /FI "SERVICES eq %SERVICE_NAME%" >nul 2>&1 | |
| if errorlevel 1 ( | |
| exit /b 1 | |
| ) | |
| ) | |
| timeout /t 3 >nul |
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
| <# | |
| .SYNOPSIS | |
| Minimal winget installer | |
| .DESCRIPTION | |
| Downloads and installs winget with dependencies and license | |
| #> | |
| param( | |
| [switch]$Force | |
| ) |