I get the following uninstall string from the registry:
$uninstallstring = MsiExec.exe /X{123-12323-123213-A6123-123123}"
I can execute this string with:
cmd /c $uninstallstring
That works but I want to execute it with the parameters /quiet and /norestart. But if I try to append the parameters, I cannot execute the uninstall string:
$uninstallstring+=" /quiet /norestart"
cmd /c $uninstallstring
How to execute the uninstall string with these parameters in Powershell?
Thanks!