Thursday, January 7, 2021

Uninstall a program using powershell

 

This powershell script will allow you to uninstall a program using an executable file


Set-Location $PSScriptRoot;

$proc = (Start-Process -FilePath "install.exe" -ArgumentList "/Silent /Uninstall /noreboot" -Wait -PassThru);$proc.WaitForExit();$ExitCode = $proc.ExitCode

Exit($ExitCode)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.