New-Item$env:userprofile\desktop\logs -itemtype Directory
Start-Transcript$env:userprofile\desktop\logs\0-DeployFunction.log
FunctionInvoke-Deploy {
# Opening StatementWrite-Host" READ THESE NOTES"-ForegroundColor Yellow
Write-Host" 1. After font install, set meslo font as the default font for the shell 2. When all scripts finish running, it's best to close powershell, and use pwsh or shell of choice. This ensures all installed exe's are in path. 3. When asked to pick a default browser choose Chrome. Useful if using Nordvpn. 4. Be patient some steps take longer than others. 5. When presented install wizards, click through"-ForegroundColor Green
Pause
# Clone repo and scripts for runningSet-ExecutionPolicy Unrestricted -Confirm:$false-Force
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
New-Item$env:userprofile\desktop\Github -itemtype directory |out-null
(New-Object System.Net.WebClient).DownloadFile('https://github.com/TheTaylorLee/SandboxToolkit/archive/refs/heads/master.zip',"$env:userprofile\desktop\github\SandboxToolkit.zip")
Expand-Archive-Path $env:userprofile\desktop\github\SandboxToolkit.zip $env:userprofile\desktop\github\SandboxToolkit
Remove-Item$env:userprofile\desktop\github\SandboxToolkit.zip -force |out-null#Runs scriptsWrite-Host"Running Install Scripts"-foregroundcolor Green
start-process"powershell.exe"-ArgumentList "-executionpolicy unrestricted","-File $env:userprofile\desktop\github\SandboxToolkit\SandboxToolkit-master\scripts\1-Install-PSPortable.ps1"-wait
start-process"powershell.exe"-ArgumentList "-executionpolicy unrestricted","-File $env:userprofile\desktop\github\SandboxToolkit\SandboxToolkit-master\scripts\2-Install-PackageManagers.ps1"-wait
start-process"powershell.exe"-ArgumentList "-executionpolicy unrestricted","-File $env:userprofile\desktop\github\SandboxToolkit\SandboxToolkit-master\scripts\3-Install-Packages.ps1"exit
}; Clear-Host; Invoke-Deploy