forked from Bananz0/GalaxyBookEnabler
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbootstrap.ps1
More file actions
15 lines (15 loc) · 770 Bytes
/
bootstrap.ps1
File metadata and controls
15 lines (15 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Galaxy Book Enabler - Quick Install Bootstrap
# Usage: irm https://raw.githubusercontent.com/Chiragsd13/GalaxyBookEnabler/main/bootstrap.ps1 | iex
$tempFile = Join-Path $env:TEMP "GBE_Install_$([System.IO.Path]::GetRandomFileName()).ps1"
try {
Write-Host "Downloading Galaxy Book Enabler installer..." -ForegroundColor Cyan
Invoke-WebRequest -Uri 'https://raw.githubusercontent.com/Chiragsd13/GalaxyBookEnabler/main/Install-GalaxyBookEnabler.ps1' -OutFile $tempFile -ErrorAction Stop
Write-Host "Launching installer..." -ForegroundColor Green
& pwsh -NoProfile -ExecutionPolicy Bypass -File $tempFile
}
catch {
Write-Host "Error: $_" -ForegroundColor Red
}
finally {
Remove-Item -LiteralPath $tempFile -Force -ErrorAction SilentlyContinue
}