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

Commit 2c31374

Browse files
Switch from Razer Audio to VB Cable
1 parent 57e3e16 commit 2c31374

1 file changed

Lines changed: 19 additions & 4 deletions

File tree

PostInstall/PostInstall.ps1

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ function clean-aws {
683683
remove-item -path "$path\EC2 Feedback.Website"
684684
Remove-Item -Path "$path\EC2 Microsoft Windows Guide.website"
685685
}
686-
686+
<#
687687
#Move extracts Razer Surround Files into correct location
688688
Function ExtractRazerAudio {
689689
cmd.exe /c '"C:\Program Files\7-Zip\7z.exe" x C:\ParsecTemp\Apps\razer-surround-driver.exe -oC:\ParsecTemp\Apps\razer-surround-driver -y' | Out-Null
@@ -694,10 +694,11 @@ Function ModidifyManifest {
694694
$InstallerManifest = 'C:\ParsecTemp\Apps\razer-surround-driver\$TEMP\RazerSurroundInstaller\InstallerManifest.xml'
695695
$regex = '(?<=<SilentMode>)[^<]*'
696696
(Get-Content $InstallerManifest) -replace $regex, 'true' | Set-Content $InstallerManifest -Encoding UTF8
697-
}
697+
#>
698698

699699
#Audio Driver Install
700700
function AudioInstall {
701+
<#
701702
(New-Object System.Net.WebClient).DownloadFile("http://rzr.to/surround-pc-download", "C:\ParsecTemp\Apps\razer-surround-driver.exe")
702703
ExtractRazerAudio
703704
ModidifyManifest
@@ -706,6 +707,20 @@ function AudioInstall {
706707
Start-Process RzUpdateManager.exe
707708
Set-Location $OriginalLocation
708709
Set-Service -Name audiosrv -StartupType Automatic
710+
#>
711+
(New-Object System.Net.WebClient).DownloadFile("https://download.vb-audio.com/Download_CABLE/VBCABLE_Driver_Pack43.zip", "C:\ParsecTemp\Apps\VBCable.zip")
712+
New-Item -Path "C:\ParsecTemp\Apps\VBCable" -ItemType Directory| Out-Null
713+
Expand-Archive -Path "C:\ParsecTemp\Apps\VBCable.zip" -DestinationPath "C:\ParsecTemp\Apps\VBCable"
714+
$pathToCatFile = "C:\ParsecTemp\Apps\VBCable\vbaudio_cable64_win7.cat"
715+
$FullCertificateExportPath = "C:\ParsecTemp\Apps\VBCable\VBCert.cer"
716+
$VB = @{}
717+
$VB.DriverFile = $pathToCatFile;
718+
$VB.CertName = $FullCertificateExportPath;
719+
$VB.ExportType = [System.Security.Cryptography.X509Certificates.X509ContentType]::Cert;
720+
$VB.Cert = (Get-AuthenticodeSignature -filepath $VB.DriverFile).SignerCertificate;
721+
[System.IO.File]::WriteAllBytes($VB.CertName, $VB.Cert.Export($VB.ExportType))
722+
Import-Certificate -CertStoreLocation Cert:\LocalMachine\TrustedPublisher -FilePath $VB.CertName | Out-Null
723+
Start-Process -FilePath "C:\ParsecTemp\Apps\VBCable\VBCABLE_Setup_x64.exe" -ArgumentList '-i','-h'
709724
}
710725

711726
#Creates shortcut for the GPU Updater tool
@@ -726,7 +741,7 @@ function gpu-update-shortcut {
726741

727742
#Provider specific driver install and setup
728743
Function provider-specific {
729-
ProgressWriter -Status "Installing Audio Driver if required and removing system information from appearing on Google Cloud Desktops" -PercentComplete $PercentComplete
744+
ProgressWriter -Status "Installing VB CAble Audio Driver if required and removing system information from appearing on Google Cloud Desktops" -PercentComplete $PercentComplete
730745
#Device ID Query
731746
$gputype = Get-PnpDevice | Where-Object {($_.DeviceID -like 'PCI\VEN_10DE*' -or $_.DeviceID -like '*PCI\VEN_1002*') -and ($_.PNPClass -eq 'Display' -or $_.Name -like '*Video Controller')} | Select-Object InstanceID -ExpandProperty InstanceID
732747
if ($gputype -eq $null) {
@@ -1001,7 +1016,7 @@ StartGPUUpdate -DontPromptPasswordUpdateGPU:$DontPromptPasswordUpdateGPU
10011016
ProgressWriter -status "Done" -percentcomplete 100
10021017
Write-Host "1. Open Parsec and sign in" -ForegroundColor black -BackgroundColor Green
10031018
Write-Host "2. Use GPU Updater to update your GPU Drivers!" -ForegroundColor black -BackgroundColor Green
1004-
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
1019+
#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
10051020
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
10061021
Write-host "DONE!" -ForegroundColor black -BackgroundColor Green
10071022
pause

0 commit comments

Comments
 (0)