Invoke-Expression bad, TIL
This commit is contained in:
parent
a9540e0906
commit
3f7e76e909
@ -13,6 +13,7 @@ Write-Host "---Retrieving Software License File---"
|
||||
Invoke-WebRequest "https://git.sdf.org/camoy/Sweetcade/raw/branch/main/license.txt" -OutFile .\license.txt
|
||||
Write-Host "---Displaying Software License File---"
|
||||
Get-Content -Path .\license.txt | Out-Host -Paging
|
||||
# Backwards freaking logic - fire camoy immediately
|
||||
if ($? -lt 0)
|
||||
{
|
||||
Write-Host "----------"
|
||||
@ -43,7 +44,7 @@ Get-Content -Path .\license.txt | Out-Host -Paging
|
||||
Write-Host "---Extract Sweetcade---"
|
||||
Expand-Archive -Path .\main.zip -Destination "C:\sc" -Force
|
||||
Write-Host "---Start Network Check---"
|
||||
Invoke-Expression (start powershell ((Split-Path $MyInvocation.InvocationName) + "C:\sc\scripts\ps\netcheck.ps1"))
|
||||
Get-Content "C:\sc\scripts\ps\netcheck.ps1" | Invoke-Expression
|
||||
Write-Host "---Start System Check---"
|
||||
Invoke-Expression (start powershell ((Split-Path $MyInvocation.InvocationName) + "C:\sc\scripts\ps\syscheck.ps1"))
|
||||
Write-Host "---Create Restore Point---"
|
||||
|
Loading…
Reference in New Issue
Block a user