Yes you can use this function to create an installation deployment that actually just performs an uninstallation. You would just need to consider your detection method that would work across all machines, I'd suggest dropping a registry key marker for this to indicate the uninstallation has run using Set-RegistryKey.
↧