Remove-MSIApplications, exclude Java 64 bit

//Remove-MSIApplications, exclude Java 64 bit
Remove-MSIApplications, exclude Java 64 bit 2015-05-20T14:29:45+00:00

The Toolkit Forums General Remove-MSIApplications, exclude Java 64 bit

  • Author
    Posts
  • Baatch
    Participant
    Post count: 8

    Hello

    I have a deployment for latest Java 8 with PSAPPDEPLOYTOOLKIT. Right now I have this in my powershell script to uninstall old java versions:

    Remove-MSIApplications “Java(TM) 6 Update”
    Remove-MSIApplications “Java 7 Update”
    Remove-MSIApplications “Java 8 Update”

    Is it possible to exclude uninstallation of Java 8 64 bit?

  • Muhammad Mashwani
    Keymaster
    Post count: 118

    That is not possible with the current version of the toolkit. However, I just pushed an update to the latest 3.6.5 beta that adds this ability. You can find the beta here (make sure to download all the files in this directory): https://github.com/PSAppDeployToolkit/PSAppDeployToolkit/tree/master/Toolkit/AppDeployToolkit

    Please test and let me know if it is working as expected. You can look at the example I added to the function comments to see how to use the -ExcludeFromUninstall parameter.

  • Eli
    Participant
    Post count: 1

    The following syntax is not doing the job for me. The script keeps uninstalling Acrobat Reader as well.
    Am I missing something here? Tx

    Remove-MSIApplications -Name ‘Adobe’ -ExcludeFromUninstall @(
    @(‘DisplayName’, ‘*Flash Player*’, ‘WildCard’),
    @(‘DisplayName’, ‘*ShockWave Player*’, ‘WildCard’),
    @(‘DisplayName’, ‘*Acrobat Reader*’, ‘WildCard’)
    )

You must be logged in to reply to this topic.