powershell check uninstall successful before continuing
powershell to check an uninstall has worked before continining
using msiexec /x to remover the software.
but I'd like a while loop or something before reinstalling new version
Powershell
Last Comment
Mike Hammer
8/22/2022 - Mon
Michael B. Smith
if you "start-process -wait" the msiexec or "start /wait" from cmd.exe, then you don't get control back until the removal is complete. that's what I do (and check the return status for success).
Mike Hammer
ASKER
how do I check return status ? thank you. I'm currently checking registry thAts it's no longer there. but if the removal process generated a return even better