1

I tried using this code in this thread: How can I uninstall an application using PowerShell?

But it doesn't uninstall the product.

I just get this back:

__GENUS          : 2
__CLASS          : __PARAMETERS
__SUPERCLASS     : 
__DYNASTY        : __PARAMETERS
__RELPATH        : 
__PROPERTY_COUNT : 1
__DERIVATION     : {}
__SERVER         : 
__NAMESPACE      : 
__PATH           : 
ReturnValue      : 1603

Any ideas? Can I do this with VB easier? I need to uninstall a .exe then reinstall it.

Community
  • 1
  • 1

1 Answers1

0

The issue was that you need to disable McAfee before uninstalling. So I will need to devise a workaround for this, but the script does work as is.