12 lines
724 B
PowerShell
12 lines
724 B
PowerShell
$ErrorActionPreference = 'Continue'
|
|
$install = 'C:\Users\locpham\SonicForgeStudio\install'
|
|
$new = 'C:\Users\locpham\SonicForgeStudio\native_bridge\build\Release\daw_vst_bridge.exe'
|
|
|
|
Get-Process sonicforge-daw, daw_engine, daw_vst_bridge -ErrorAction SilentlyContinue | Stop-Process -Force
|
|
Start-Sleep -Seconds 2
|
|
Copy-Item -Path $new -Destination (Join-Path $install 'daw_vst_bridge.exe') -Force
|
|
Write-Output "copied: $((Get-Item (Join-Path $install 'daw_vst_bridge.exe')).Length) bytes"
|
|
Start-Process -FilePath (Join-Path $install 'sonicforge-daw.exe')
|
|
Start-Sleep -Seconds 8
|
|
Get-Process sonicforge-daw, daw_engine, daw_vst_bridge -ErrorAction SilentlyContinue | Select-Object Id, ProcessName, Path | Format-Table -AutoSize
|