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)
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.