28 lines
991 B
PowerShell
28 lines
991 B
PowerShell
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 type A."
|
|
Write-Host "If you [R]eject, connect a keyboard and type 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)
|
|
}
|
|
|
|
} |