From a98b494d007e49bc18a0437f04fae64ddb5d8cb6 Mon Sep 17 00:00:00 2001 From: James Stringer <38541878+jamesstringerparsec@users.noreply.github.com> Date: Thu, 13 Jan 2022 17:45:18 +0100 Subject: [PATCH] Improve config file writing logic --- User/Install.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/User/Install.ps1 b/User/Install.ps1 index 18a220a..bdc007f 100644 --- a/User/Install.ps1 +++ b/User/Install.ps1 @@ -14,11 +14,15 @@ if (Test-Path HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninst else { (New-Object System.Net.WebClient).DownloadFile("https://builds.parsecgaming.com/package/parsec-windows.exe", "C:\Users\$env:USERNAME\Downloads\parsec-windows.exe") Start-Process "C:\Users\$env:USERNAME\Downloads\parsec-windows.exe" -ArgumentList "/silent", "/shared","/team_id=$team_id","/team_computer_key=$key" -wait + While (!(Test-Path C:\ProgramData\Parsec\config.txt)){ + Start-Sleep -s 1 + } $configfile = Get-Content C:\ProgramData\Parsec\config.txt $configfile += "host_virtual_monitors = 1" $configfile += "host_privacy_mode = 1" $configfile | Out-File C:\ProgramData\Parsec\config.txt -Encoding ascii Copy-Item -Path "C:\ProgramData\Easy-GPU-P\Parsec.lnk" -Destination "C:\Users\Public\Desktop" + Stop-Process parsecd -Force } Function ParsecVDDMonitorSetupScheduledTask {