mirror of
https://github.com/jamesstringerparsec/Easy-GPU-PV.git
synced 2024-08-30 18:22:17 +00:00
Create Desktop icon
This commit is contained in:
parent
ad17fa5a7a
commit
1652a1d0ab
@ -13,13 +13,12 @@ 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")
|
||||
$currentPrincipal = New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent())
|
||||
$currentPrincipal.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator) | Out-File C:\ProgramData\Easy-GPU-P\admim.txt
|
||||
Start-Process "C:\Users\$env:USERNAME\Downloads\parsec-windows.exe" -ArgumentList "/silent", "/shared","/team_id=$team_id","/team_computer_key=$key" -wait
|
||||
$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 C:\ProgramData\Parsec\Easy-GPU-P\Parsec.lnk -Destination C:\Users\Public\Desktop
|
||||
}
|
||||
|
||||
Function ParsecVDDMonitorSetupScheduledTask {
|
||||
|
BIN
VMScripts/Parsec.lnk
Normal file
BIN
VMScripts/Parsec.lnk
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user