License prompt script
This commit is contained in:
parent
443d9e5fc1
commit
f8e080540a
25
scripts/ps/license.ps1
Normal file
25
scripts/ps/license.ps1
Normal file
@ -0,0 +1,25 @@
|
||||
Get-Content -Path ..\license.txt | Out-Host -Paging
|
||||
if ($? -neq 0)
|
||||
{
|
||||
Write-Host "----------"
|
||||
Write-Host "You must read and accept the terms of the software license to install Sweetcade."
|
||||
Write-Host "This script will now exit after 60 seconds."
|
||||
Start-Sleep -Seconds 60
|
||||
Exit 1
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Host "----------"
|
||||
Write-Host "You must accept the terms of the Mozilla Public License 2.0 in order to use Sweetcade."
|
||||
Write-Host "If you [A]ccept, connect a keyboard and press A."
|
||||
Write-Host "If you [R]eject, connect a keyboard and press R."
|
||||
$vSCRejectTOS = Read-Host "A / R?"
|
||||
if ($vSCNextHopUserResponse -contains "R")
|
||||
{
|
||||
Write-Host "You have rejected the software license. The Sweetcade installer will now exit."
|
||||
}
|
||||
else
|
||||
{
|
||||
#PSEUDO - Go to next script (TODO)
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user