Last active
November 25, 2021 02:16
-
-
Save drzhnn/4ef17415bdcb9d5e38dac9e5f1ba1b85 to your computer and use it in GitHub Desktop.
Uninstall all outdated Bitwig Studio versions #bitwig
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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