Skip to content

Instantly share code, notes, and snippets.

@drzhnn
Last active November 25, 2021 02:16
Show Gist options
  • Save drzhnn/4ef17415bdcb9d5e38dac9e5f1ba1b85 to your computer and use it in GitHub Desktop.
Save drzhnn/4ef17415bdcb9d5e38dac9e5f1ba1b85 to your computer and use it in GitHub Desktop.
Uninstall all outdated Bitwig Studio versions #bitwig
# Get a list of all installed Bitwig Studio versions
$allbitwigs = Get-WmiObject Win32_Product | Where-Object {$_.Name -match "Bitwig Studio"}
# Get a list of all versions except the latest one
$oldbitwigs = $allbitwigs | Sort-Object -Property Version -Descending | Select-Object Name, IdentifyingNumber -Skip 1
# Run uninstaller in passive mode for each version
foreach ($bitwig in $oldbitwigs) {
Start-Process msiexec.exe -ArgumentList @('/passive', '/x', $bitwig.IdentifyingNumber) -Wait
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment