Skip to content

Instantly share code, notes, and snippets.

@eohtake
Created December 28, 2015 13:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eohtake/d1543020ccd3c37ed3a0 to your computer and use it in GitHub Desktop.
Save eohtake/d1543020ccd3c37ed3a0 to your computer and use it in GitHub Desktop.
class javaplugin32 {
package { 'Java 8 Update 66' :
ensure => installed,
source => '\\FILE-SERVER\Software\Java\Plugins\jre-8u66-windows-i586.exe',
install_options => ['/s'],
notify => Exec['Uninstall Previous Version']
}
exec { 'Uninstall Previous Version' :
command => 'MsiExec.exe /qn /X{26A24AE4-039D-4CA4-87B4-2F83218060F0} /norestart',
path => 'C:\windows\system32',
subscribe => Package['Java 8 Update 66'],
}
}
####### Uninstall Strings ######
# Java 8 Update 66 (32-bit) - {26A24AE4-039D-4CA4-87B4-2F83218066F0}
# Java 8 Update 65 (32-bit) - {26A24AE4-039D-4CA4-87B4-2F83218065F0}
# Java 8 Update 60 (32-bit) - {26A24AE4-039D-4CA4-87B4-2F83218060F0}
# Java 8 Update 31 (32-bit) - {26A24AE4-039D-4CA4-87B4-2F83218031F0}
# Java 8 Update 25 (32-bit) - {26A24AE4-039D-4CA4-87B4-2F83218025F0}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment