![]() $uninstallResult - will have the exit code. $uninstall32 = gci "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall" | foreach ).InvokeMethod("Create","$unInstallPath") This is very fast if you just know the name of the program you want to uninstall. The reason it was written as below is because it modifies the MSI to uninstall without intervention, which is not always the default case when using the native uninstall string.
0 Comments
Leave a Reply. |