Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: parsec-cloud/Parsec-Cloud-Preparation-Tool
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 9d6ec9c04f7106769c957bb5166006ac5d0c9e6a
Choose a base ref
..
head repository: parsec-cloud/Parsec-Cloud-Preparation-Tool
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 214a1e724f4e82139bd1caae313eb0ba667321d3
Choose a head ref
Showing with 9 additions and 17 deletions.
  1. +2 −12 Loader.ps1
  2. +5 −4 PostInstall/PostInstall.ps1
  3. +2 −1 README.md
14 changes: 2 additions & 12 deletions Loader.ps1
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
param (
[switch]$DontPromptPasswordUpdateGPU
)

cls
cls
Write-Host -foregroundcolor red "
((//////
#######//////
@@ -72,12 +68,6 @@ Start-Sleep -s 1
Write-Output "Unblocking files just in case"
Get-ChildItem -Path $path\ParsecTemp -Recurse | Unblock-File
Write-Output "Starting main script"

if($DontPromptPasswordUpdateGPU){
start-process powershell.exe -verb RunAS -argument "-file $path\parsectemp\PostInstall\PostInstall.ps1 -DontPromptPasswordUpdateGPU"
} else {
start-process powershell.exe -verb RunAS -argument "-file $path\parsectemp\PostInstall\PostInstall.ps1"
}

start-process powershell.exe -verb RunAS -argument "-file $path\parsectemp\PostInstall\PostInstall.ps1"
Write-Host "You can close this window now...progress will happen on the Powershell Window that just opened" -backgroundcolor red
stop-process -Id $PID
9 changes: 5 additions & 4 deletions PostInstall/PostInstall.ps1
Original file line number Diff line number Diff line change
@@ -36,7 +36,7 @@ function setupEnvironment {
if((Test-Path $env:ProgramData\ParsecLoader\Parsec.png) -eq $true) {} Else {Move-Item -Path $path\ParsecTemp\PreInstall\Parsec.png -Destination $env:ProgramData\ParsecLoader}
if((Test-Path $env:ProgramData\ParsecLoader\ShowDialog.ps1) -eq $true) {} Else {Move-Item -Path $path\ParsecTemp\PreInstall\ShowDialog.ps1 -Destination $env:ProgramData\ParsecLoader}
if((Test-Path $env:ProgramData\ParsecLoader\OneHour.ps1) -eq $true) {} Else {Move-Item -Path $path\ParsecTemp\PreInstall\OneHour.ps1 -Destination $env:ProgramData\ParsecLoader}
# if((Test-Path $env:ProgramData\ParsecLoader\TeamMachineSetup.ps1) -eq $true) {} Else {Move-Item -Path $path\ParsecTemp\PreInstall\TeamMachineSetup.ps1 -Destination $env:ProgramData\ParsecLoader}
if((Test-Path $env:ProgramData\ParsecLoader\TeamMachineSetup.ps1) -eq $true) {} Else {Move-Item -Path $path\ParsecTemp\PreInstall\TeamMachineSetup.ps1 -Destination $env:ProgramData\ParsecLoader}
if((Test-Path $env:ProgramData\ParsecLoader\parsecpublic.cer) -eq $true) {} Else {Move-Item -Path $path\ParsecTemp\PreInstall\parsecpublic.cer -Destination $env:ProgramData\ParsecLoader}
}

@@ -955,20 +955,21 @@ $ScripttaskList = @(
"clean-up";
"clean-up-recent";
"provider-specific";
#"TeamMachineSetupScheduledTask"
"TeamMachineSetupScheduledTask"
)

foreach ($func in $ScripttaskList) {
$PercentComplete =$($ScriptTaskList.IndexOf($func) / $ScripttaskList.Count * 100)
& $func $PercentComplete
}

StartGPUUpdate -DontPromptPasswordUpdateGPU:$DontPromptPasswordUpdateGPU
#StartGPUUpdate -DontPromptPasswordUpdateGPU:$DontPromptPasswordUpdateGPU
Start-ScheduledTask -TaskName "Setup Team Machine"
ProgressWriter -status "Done" -percentcomplete 100
Write-Host "1. Open Parsec and sign in (Team machines should have automatically signed in if userdata was correct)" -ForegroundColor black -BackgroundColor Green
Write-Host "2. Use GPU Updater to update your GPU Drivers!" -ForegroundColor black -BackgroundColor Green
#Write-Host "You don't need to sign into Razer Synapse, the login box will stop appearing after a couple of reboots" -ForegroundColor black -BackgroundColor Green
Write-Host "You may want to change your Windows password to something simpler if the password your cloud provider gave you is super long" -ForegroundColor black -BackgroundColor Green
Write-host "DONE!" -ForegroundColor black -BackgroundColor Green
pause
if ($DontPromptPasswordUpdateGPU) {}
Else {pause}
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -127,6 +127,7 @@ $ScriptWebArchive = "https://github.com/kaktus42/Parsec-Cloud-Preparation-Tool/a
$LocalArchivePath = "$ENV:UserProfile\Downloads\Parsec-Cloud-Preparation-Tool"
(New-Object System.Net.WebClient).DownloadFile($ScriptWebArchive, "$LocalArchivePath.zip")
Expand-Archive "$LocalArchivePath.zip" -DestinationPath $LocalArchivePath -Force
CD $LocalArchivePath\Parsec-Cloud-Preparation-Tool-master\ | powershell.exe .\Loader.ps1 -DontPromptPasswordUpdateGPU
CD $LocalArchivePath\Parsec-Cloud-Preparation-Tool-master\PostInstall
powershell.exe .\PostInstall.ps1 -DontPromptPasswordUpdateGPU
```