Skip to content

Instantly share code, notes, and snippets.

@iansltx
Created July 7, 2025 04:25
Show Gist options
  • Save iansltx/4376959614bc16f1fd3b9adbc87bb755 to your computer and use it in GitHub Desktop.
Save iansltx/4376959614bc16f1fd3b9adbc87bb755 to your computer and use it in GitHub Desktop.
# Fleet uninstalls app by finding all related product codes for the specified upgrade code
$inst = New-Object -ComObject "WindowsInstaller.Installer"
foreach ($product_code in $inst.RelatedProducts('{C1DFDF69-5945-32F2-A35E-EE94C99C7CF4}')) {
msiexec /quiet /x $product_code
}
Exit $LASTEXITCODE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment