BaatchParticipantMay 20, 2015 at 2:29 pmPost count: 8
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 MashwaniKeymasterMay 22, 2015 at 6:26 pmPost 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.
EliParticipantSeptember 22, 2016 at 10:32 amPost 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.