Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.

Commit 7dfe34c

Browse files
Cleanup
1 parent fc3f66d commit 7dfe34c

1 file changed

Lines changed: 0 additions & 54 deletions

File tree

PostInstall/PostInstall.ps1

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -664,10 +664,6 @@ function Create-One-Hour-Warning-Shortcut{
664664
$ShortCut.Save()
665665
}
666666

667-
#create shortcut for electron app
668-
#function create-shortcut-app {
669-
# Copy-Item -Path $path\ParsecTemp\PostInstall\Parsec.lnk -Destination $path
670-
# }
671667

672668
#Disables Server Manager opening on Startup
673669
function disable-server-manager {
@@ -796,19 +792,6 @@ function Install7Zip {
796792
Start-Process C:\ParsecTemp\Apps\7zip.exe -ArgumentList '/S /D="C:\Program Files\7-Zip"' -Wait
797793
}
798794

799-
#Move Parsec Files into correct location
800-
#Function ExtractInstallFiles {
801-
# cmd.exe /c '"C:\Program Files\7-Zip\7z.exe" x C:\ParsecTemp\Apps\parsec-windows.exe -oC:\ParsecTemp\Apps\Parsec-Windows -y' | Out-Null
802-
# if((Test-Path -Path 'C:\Program Files\Parsec')-eq $true) {} Else {New-Item -Path 'C:\Program Files\Parsec' -ItemType Directory | Out-Null}
803-
# if((Test-Path -Path "C:\Program Files\Parsec\skel") -eq $true) {} Else {Move-Item -Path C:\ParsecTemp\Apps\Parsec-Windows\skel -Destination 'C:\Program Files\Parsec' | Out-Null}
804-
# if((Test-Path -Path "C:\Program Files\Parsec\vigem") -eq $true) {} Else {Move-Item -Path C:\ParsecTemp\Apps\Parsec-Windows\vigem -Destination 'C:\Program Files\Parsec' | Out-Null}
805-
# if((Test-Path -Path "C:\Program Files\Parsec\wscripts") -eq $true) {} Else {Move-Item -Path C:\ParsecTemp\Apps\Parsec-Windows\wscripts -Destination 'C:\Program Files\Parsec' | Out-Null}
806-
# if((Test-Path -Path "C:\Program Files\Parsec\parsecd.exe") -eq $true) {} Else {Move-Item -Path C:\ParsecTemp\Apps\Parsec-Windows\parsecd.exe -Destination 'C:\Program Files\Parsec' | Out-Null}
807-
# if((Test-Path -Path "C:\Program Files\Parsec\pservice.exe") -eq $true) {} Else {Move-Item -Path C:\ParsecTemp\Apps\Parsec-Windows\pservice.exe -Destination 'C:\Program Files\Parsec' | Out-Null}
808-
# Start-Sleep 1
809-
# }
810-
811-
#Checks for Server 2019 and asks user to install Windows Xbox Accessories in order to let their controller work
812795
Function Server2019Controller {
813796
ProgressWriter -Status "Adding Xbox 360 Controller driver to Windows Server 2019" -PercentComplete $PercentComplete
814797
if ((gwmi win32_operatingsystem | % caption) -like '*Windows Server 2019*') {
@@ -819,37 +802,6 @@ Function Server2019Controller {
819802
}
820803
}
821804

822-
#Function InstallViGEmBus {
823-
#Required for Controller Support.
824-
#$Vigem = @{}
825-
#$Vigem.DriverFile = "C:\Program Files\Parsec\Vigem\ViGEmBus.cat";
826-
#$Vigem.CertName = 'C:\Program Files\Parsec\Vigem\Wohlfeil_IT_e_U_.cer';
827-
#$Vigem.ExportType = [System.Security.Cryptography.X509Certificates.X509ContentType]::Cert;
828-
#$Vigem.Cert = (Get-AuthenticodeSignature -filepath $vigem.DriverFile).SignerCertificate;
829-
#$Vigem.CertInstalled = if ((Get-ChildItem -Path Cert:\CurrentUser\TrustedPublisher | Where-Object Subject -Like "*CN=Wohlfeil.IT e.U., O=Wohlfeil.IT e.U.*" ) -ne $null) {$True}
830-
#Else {$false}
831-
#if ($vigem.CertInstalled -eq $true) {
832-
#cmd.exe /c '"C:\Program Files\Parsec\vigem\10\x64\devcon.exe" install "C:\Program Files\Parsec\vigem\10\ViGEmBus.inf" Nefarius\ViGEmBus\Gen1' | Out-Null
833-
#}
834-
#Else {[System.IO.File]::WriteAllBytes($Vigem.CertName, $Vigem.Cert.Export($Vigem.ExportType));
835-
#Import-Certificate -CertStoreLocation Cert:\LocalMachine\TrustedPublisher -FilePath 'C:\Program Files\Parsec\Vigem\Wohlfeil_IT_e_U_.cer' | Out-Null
836-
#Start-Sleep 5
837-
#cmd.exe /c '"C:\Program Files\Parsec\vigem\devcon.exe" install "C:\Program Files\Parsec\vigem\ViGEmBus.inf" Root\ViGEmBus' | Out-Null
838-
#}
839-
#}
840-
841-
#Creates Parsec Firewall Rule in Windows Firewall
842-
#Function CreateFireWallRule {
843-
# New-NetFirewallRule -DisplayName "Parsec" -Direction Inbound -Program "C:\Program Files\Parsec\Parsecd.exe" -Profile Private,Public -Action Allow -Enabled True | Out-Null
844-
# }
845-
846-
#Creates Parsec Service
847-
#Function CreateParsecService {
848-
# cmd.exe /c 'sc.exe Create "Parsec" binPath= "\"C:\Program Files\Parsec\pservice.exe\"" start= "auto"' | Out-Null
849-
# sc.exe Start 'Parsec' | Out-Null
850-
# }
851-
852-
853805
Function InstallParsec {
854806
Start-Process "C:\ParsecTemp\Apps\parsec-windows.exe" -ArgumentList "/silent", "/shared" -wait
855807
Import-Certificate -CertStoreLocation "Cert:\LocalMachine\TrustedPublisher" -FilePath "$env:ProgramData\ParsecLoader\parsecpublic.cer" | Out-Null
@@ -867,12 +819,6 @@ Function InstallParsec {
867819
$configfile += "host_virtual_monitors = 1"
868820
$configfile += "host_privacy_mode = 1"
869821
$configfile | Out-File C:\ProgramData\Parsec\config.txt -Encoding ascii
870-
871-
# ExtractInstallFiles
872-
# InstallViGEmBus
873-
# CreateFireWallRule
874-
# CreateParsecService
875-
# create-shortcut-app
876822
}
877823

878824
#Apps that require human intervention

0 commit comments

Comments
 (0)