I’d like to only uninstall all 32bit Java 8 installation with the following command and leave 64bit installations of Java alone on Windows 10 computers.
Remove-MSIApplications -Name ‘Java 8 Update’ -FilterApplication (‘Is64BitApplication’, $false, ‘Exact’)
Sadly the command will always uninstall the 32bit AND 64bit Java installations.
Is this a bug and is there a workaround/alternative?
The following command works but I and leaves Java 8 64bit alone. But I’d like it to also uninstall versions before 221:
Remove-MSIApplications -Exact ‘Java 8 Update 221’
The string for the 64bit version is ‘Java 8 Update 221 (64-bit)’
So I’d like to look for ‘Java 8 Update’ followed by any build as long as the string doesn’t contain ‘(64-bit)’
Thanks for any help