

$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 problems you're describing at the start have nothing to do with scripts. Note: if you are using Script hookV and Script at the same time, your game will drop 3 fps and will crash and it will make the to face the corrupt game data commonly. 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. Go to GTA 5 and delete other plug-ins except Script hookV and openvi's plug-ins. If the application is not installed by MSI it does not work.I believe it's -First 1 but I'm not sure. If there are more matches than 1 for the below script, it does not work and you must append the PowerShell filter that limits results to 1.I have not used PowerShell since, but I remember observing some issues: EDIT: Over the years this answer has gotten quite a few upvotes.
