Jump to content

Recommended Posts

Posted

Hi,

 

I have recently been looking at same things for Reader, Flash, Shockwave and now Java. I think I pretty much got to the point of creating custom MSI to exclude Java updates etc. I was wondering if you have got over the issue of removing previous versions of Java.

 

I'm presented with a number of machines with various previous Java installs, I found an excellent batch script to remove previous entries by guid. and then I was going to run the lastest modified MSI after that in a batch file. Just wondering if there's any better ways, as this will have to be a logon script that has some kind of run once lock in place.

 

Hopefully after I have them standardized I can use the GPO dependacies.

 

Thanks for he excellent guides

 

Java mass removal script can be found at Java J2SE & JRE Mass Uninstallation Script (Bat)

 

Mike

Posted
The Java installer will overwrite any previous updates of the same version number (e.g. v7 Update 17 will get rid of v7 Update 15) however I'm afraid I've never looked into doing something where you get rid of say Java v6.
Posted

Quick question, upgrading java this way do you carry out the same process to upgrade i.e do you need the the 3 files msi, data achive and the .mst in a separate folder and specify it a upgrade in the GPO also is do you specify its a n over the top upgrade or a remove the old version and install the new version?

 

Thanks

Posted

Yep same process to upgrade - the GPMC should pick it up as a newer version and when you look in the 'Upgrades' tab the previous version should be listed there.

 

I just leave the old files still in place (along with the old version) that way if for whatever odd reason you need to revert back (and believe me on occasion you will) its there and ready to go.

  • Thanks 1
  • 3 weeks later...
Posted

Regarding your recent blog post about Orca, here is a much faster method to download it. The links below are what the Windows SDK web installers use.

 

Orca v5.0.9200 (included with Windows SDK for Windows 8)

 

http://download.microsoft.com/download/F/1/3/F1300C9C-A120-4341-90DF-8A52509B23AC/standalonesdk/Installers/Orca-x86_en-us.msi
http://download.microsoft.com/download/F/1/3/F1300C9C-A120-4341-90DF-8A52509B23AC/standalonesdk/Installers/a35cd6c9233b6ba3da66eecaa9190436.cab
http://download.microsoft.com/download/F/1/3/F1300C9C-A120-4341-90DF-8A52509B23AC/standalonesdk/Installers/fe38b2fd0d440e3c6740b626f51a22fc.cab

[b]Note[/b]. Download all three files to the same folder, then run 'Orca-x86_en-us.msi' to install. This MSI is also compatible with Windows 7.

 

Orca v5.0.7693 (included with Windows SDK for Windows 7)

http://download.microsoft.com/download/A/6/A/A6AC035D-DA3F-4F0C-ADA4-37C8E5D34E3D/setup/WinSDKTools_amd64/cab1.cab

[b]Note[/b]. Extract 'WinSDK_Orca_Msi_5E20C107_DAA3_4D49_AFAE_7FB2594F0CDC_amd64' from cab1.cab and rename to Orca.msi

 

Btw, InstEd is far better than Orca. ;)

  • Thanks 2
Posted

Well, had the chance to release my logon script into the wild this week and seems to work, i'll post up the code next week when i'm back at work for anyone that's interested hopefully future updates will be just a case of using the gpmc upgrade / dependency framework.

 

I had to use a c:\javaupdate.lck file place hold so that it doesn't process the script multiple times, I'm still new with the whole GPO process so not 100% sure its required, by my approach has always been belt, braces and magic trousers. (Stops leaving your *** hanging in the air. :D)

 

Thanks again Jamesfed, its always good to double check and confirm I'm doing things the same way as other people.

Posted

As mentioned here's my GPO startup script for java deployment, from any version to 7u17 (I haven't checked for updates in a couple of weeks) and further versions will be deployed as new GPOs with upgrade/dependacy in GPMC. The install MSI has been modified to remove the java update settings (jretransformed.msi), and machine names will have to change to suit.

 

I hope this can go towards helping someone else, and I can't claim to have written all the code myself just bringing into a workable solution for myself.

 

@echo off
echo Java Update Script
rem written by Mike Dawkins
rem last modified 4/15/2013
rem this script is designed to be run from a GPO as a machine startup script
rem to remove all previous versions of java and install the latest version

rem runonce file check, this is to ensure that the script is only run once per machine
rem GPO should be able to remove future versions installed.
if exist "c:\javaupdate.lck" goto end

rem check for machine
rem ELEMHPBELL = HVAC machine requiring java 6 u4
if %computername% == ELEMHPBELL goto end

rem stop all browsers and javas
taskkill /F /IM iexplorer.exe
taskkill /F /IM iexplore.exe
taskkill /F /IM chrome.exe
taskkill /F /IM firefox.exe
taskkill /F /IM javaw.exe
taskkill /F /IM jqs.exe
taskkill /F /IM jusched.exe


rem remove all previous versions of Java.

REM JRE Runtime Environment 7.0 Update 17
rem MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F83217017FF} /passive /norestart
REM JRE Runtime Environment 7.0 Update 17 (x64)
rem MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F86417017FF} /passive /norestart
REM JRE Runtime Environment 7.0 Update 15
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F83217015FF} /passive /norestart
REM JRE Runtime Environment 7.0 Update 15 (x64)
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F86417015FF} /passive /norestart
REM JRE Runtime Environment 7.0 Update 13
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F83217013FF} /passive /norestart
REM JRE Runtime Environment 7.0 Update 13 (x64)
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F86417013FF} /passive /norestart
REM JRE Runtime Environment 7.0 Update 11
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F83217011FF} /passive /norestart
REM JRE Runtime Environment 7.0 Update 11 (x64)
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F86417011FF} /passive /norestart
REM JRE Runtime Environment 7.0 Update 10
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F83217010FF} /passive /norestart
REM JRE Runtime Environment 7.0 Update 10 (x64)
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F86417010FF} /passive /norestart
REM JRE Runtime Environment 7.0 Update 9
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F83217009FF} /passive /norestart
REM JRE Runtime Environment 7.0 Update 9 (x64)
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F86417009FF} /passive /norestart
REM JRE Runtime Environment 7.0 Update 8
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F83217008FF} /passive /norestart
REM JRE Runtime Environment 7.0 Update 8 (x64)
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F86417008FF} /passive /norestart
REM JRE Runtime Environment 7.0 Update 7
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F83217007FF} /passive /norestart
REM JRE Runtime Environment 7.0 Update 7 (x64)
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F86417007FF} /passive /norestart
REM JRE Runtime Environment 7.0 Update 6 (x64)
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F86417006FF} /passive /norestart
REM JRE Runtime Environment 7.0 Update 6
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F83217006FF} /passive /norestart
REM JRE Runtime Environment 7.0 Update 5 (x64)
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F86417005FF} /passive /norestart
REM JRE Runtime Environment 7.0 Update 5
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F83217005FF} /passive /norestart
REM JRE Runtime Environment 7.0 Update 4 (x64)
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F86417004FF} /passive /norestart
REM JRE Runtime Environment 7.0 Update 4
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F83217004FF} /passive /norestart
REM JRE Runtime Environment 7.0 Update 3 (x64)
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F86417003FF} /passive /norestart
REM JRE Runtime Environment 7.0 Update 3
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F83217003FF} /passive /norestart
REM JRE Runtime Environment 7.0 Update 2 (x64)
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F86417002FF} /passive /norestart
REM JRE Runtime Environment 7.0 Update 2
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F83217002FF} /passive /norestart
REM JRE Runtime Environment 7.0 Update 1 (x64)
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F86417001FF} /passive /norestart
REM JRE Runtime Environment 7.0 Update 1
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F83217001FF} /passive /norestart
REM JRE Runtime Environment 7.0 (x64)
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F86417000FF} /passive /norestart
REM JRE Runtime Environment 7.0
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F83217000FF} /passive /norestart

REM JRE Runtime Environment 6.0 Update 38 (x64)
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F86416038FF} /passive /norestart
REM JRE Runtime Environment 6.0 Update 38
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F83216038FF} /passive /norestart
REM JRE Runtime Environment 6.0 Update 37 (x64)
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F86416037FF} /passive /norestart
REM JRE Runtime Environment 6.0 Update 37
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F83216037FF} /passive /norestart
REM JRE Runtime Environment 6.0 Update 36 (x64)
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F86416036FF} /passive /norestart
REM JRE Runtime Environment 6.0 Update 36
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F83216036FF} /passive /norestart
REM JRE Runtime Environment 6.0 Update 35 (x64)
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F86416035FF} /passive /norestart
REM JRE Runtime Environment 6.0 Update 35
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F83216035FF} /passive /norestart
REM JRE Runtime Environment 6.0 Update 34 (x64)
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F86416034FF} /passive /norestart
REM JRE Runtime Environment 6.0 Update 34
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F83216034FF} /passive /norestart
REM JRE Runtime Environment 6.0 Update 33 (x64)
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F86416033FF} /passive /norestart
REM JRE Runtime Environment 6.0 Update 33
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F83216033FF} /passive /norestart
REM JRE Runtime Environment 6.0 Update 32 (x64)
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F86416032FF} /passive /norestart
REM JRE Runtime Environment 6.0 Update 32
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F83216032FF} /passive /norestart
REM JRE Runtime Environment 6.0 Update 31 (x64)
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F86416031FF} /passive /norestart
REM JRE Runtime Environment 6.0 Update 31
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F83216031FF} /passive /norestart
REM JRE Runtime Environment 6.0 Update 30 (x64)
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F86416030FF} /passive /norestart
REM JRE Runtime Environment 6.0 Update 30
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F83216030FF} /passive /norestart
REM JRE Runtime Environment 6.0 Update 29 (x64)
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F86416029FF} /passive /norestart
REM JRE Runtime Environment 6.0 Update 29
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F83216029FF} /passive /norestart
REM JRE Runtime Environment 6.0 Update 28 (x64)
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F86416028FF} /passive /norestart
REM JRE Runtime Environment 6.0 Update 28
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F83216028FF} /passive /norestart
REM JRE Runtime Environment 6.0 Update 27 (x64)
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F86416027FF} /passive /norestart
REM JRE Runtime Environment 6.0 Update 27
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F83216027FF} /passive /norestart
REM JRE Runtime Environment 6.0 Update 26 (x64)
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F86416026FF} /passive /norestart
REM JRE Runtime Environment 6.0 Update 26
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F83216026FF} /passive /norestart
REM JRE Runtime Environment 6.0 Update 25 (x64)
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F86416025FF} /passive /norestart
REM JRE Runtime Environment 6.0 Update 25
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F83216025FF} /passive /norestart
REM JRE Runtime Environment 6.0 Update 24 (x64)
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F86416024FF} /passive /norestart
REM JRE Runtime Environment 6.0 Update 24
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F83216024FF} /passive /norestart
REM JRE Runtime Environment 6.0 Update 23 (x64)
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F86416023FF} /passive /norestart
REM JRE Runtime Environment 6.0 Update 23
MsiExec.exe /uninstall {26A24AE4-039D-4CA4-87B4-2F83216023FF} /passive /norestart
REM JRE Runtime Environment 6.0 Update 22
MsiExec.exe /uninstall {3248F0A8-6813-11D6-A77B-00B0D0160220} /passive /norestart
REM JRE Runtime Environment 6.0 Update 21
MsiExec.exe /uninstall {3248F0A8-6813-11D6-A77B-00B0D0160210} /passive /norestart
REM JRE Runtime Environment 6.0 Update 20
MsiExec.exe /uninstall {3248F0A8-6813-11D6-A77B-00B0D0160200} /passive /norestart
REM JRE Runtime Environment 6.0 Update 19
MsiExec.exe /uninstall {3248F0A8-6813-11D6-A77B-00B0D0160190} /passive /norestart
REM JRE Runtime Environment 6.0 Update 18
MsiExec.exe /uninstall {3248F0A8-6813-11D6-A77B-00B0D0160180} /passive /norestart
REM JRE Runtime Environment 6.0 Update 17
MsiExec.exe /uninstall {3248F0A8-6813-11D6-A77B-00B0D0160170} /passive /norestart
REM JRE Runtime Environment 6.0 Update 16
MsiExec.exe /uninstall {3248F0A8-6813-11D6-A77B-00B0D0160160} /passive /norestart
REM JRE Runtime Environment 6.0 Update 15
MsiExec.exe /uninstall {3248F0A8-6813-11D6-A77B-00B0D0160150} /passive /norestart
REM JRE Runtime Environment 6.0 Update 14
MsiExec.exe /uninstall {3248F0A8-6813-11D6-A77B-00B0D0160140} /passive /norestart
REM JRE Runtime Environment 6.0 Update 13
MsiExec.exe /uninstall {3248F0A8-6813-11D6-A77B-00B0D0160130} /passive /norestart
REM JRE Runtime Environment 6.0 Update 12
MsiExec.exe /uninstall {3248F0A8-6813-11D6-A77B-00B0D0160120} /passive /norestart
REM JRE Runtime Environment 6.0 Update 11
MsiExec.exe /uninstall {3248F0A8-6813-11D6-A77B-00B0D0160110} /passive /norestart
REM JRE Runtime Environment 6.0 Update 10
MsiExec.exe /uninstall {3248F0A8-6813-11D6-A77B-00B0D0160100} /passive /norestart
REM JRE Runtime Environment 6.0 Update 9
MsiExec.exe /uninstall {3248F0A8-6813-11D6-A77B-00B0D0160090} /passive /norestart
REM JRE Runtime Environment 6.0 Update 8
MsiExec.exe /uninstall {3248F0A8-6813-11D6-A77B-00B0D0160080} /passive /norestart
REM JRE Runtime Environment 6.0 Update 7
MsiExec.exe /uninstall {3248F0A8-6813-11D6-A77B-00B0D0160070} /passive /norestart
REM JRE Runtime Environment 6.0 Update 6
MsiExec.exe /uninstall {3248F0A8-6813-11D6-A77B-00B0D0160060} /passive /norestart
REM JRE Runtime Environment 6.0 Update 5
MsiExec.exe /uninstall {3248F0A8-6813-11D6-A77B-00B0D0160050} /passive /norestart
REM JRE Runtime Environment 6.0 Update 4
MsiExec.exe /uninstall {3248F0A8-6813-11D6-A77B-00B0D0160040} /passive /norestart
REM JRE Runtime Environment 6.0 Update 3
MsiExec.exe /uninstall {3248F0A8-6813-11D6-A77B-00B0D0160030} /passive /norestart
REM JRE Runtime Environment 6.0 Update 2
MsiExec.exe /uninstall {3248F0A8-6813-11D6-A77B-00B0D0160020} /passive /norestart
REM JRE Runtime Environment 6.0 Update 1
MsiExec.exe /uninstall {3248F0A8-6813-11D6-A77B-00B0D0160010} /passive /norestart

  • Thanks 1
Posted

code continued:

 

REM JRE Runtime Environment 6.0
MsiExec.exe /uninstall {3248F0A8-6813-11D6-A77B-00B0D0160000} /passive /norestart

REM JRE Runtime Environment 5.0 Update 23
MsiExec.exe /uninstall {3248F0A8-6813-11D6-A77B-00B0D0150230} /passive /norestart
REM JRE Runtime Environment 5.0 Update 22
MsiExec.exe /uninstall {3248F0A8-6813-11D6-A77B-00B0D0150220} /passive /norestart
REM JRE Runtime Environment 5.0 Update 21
MsiExec.exe /uninstall {3248F0A8-6813-11D6-A77B-00B0D0150210} /passive /norestart
REM JRE Runtime Environment 5.0 Update 20
MsiExec.exe /uninstall {3248F0A8-6813-11D6-A77B-00B0D0150200} /passive /norestart
REM JRE Runtime Environment 5.0 Update 19
MsiExec.exe /uninstall {3248F0A8-6813-11D6-A77B-00B0D0150190} /passive /norestart
REM JRE Runtime Environment 5.0 Update 18
MsiExec.exe /uninstall {3248F0A8-6813-11D6-A77B-00B0D0150180} /passive /norestart
REM JRE Runtime Environment 5.0 Update 17
MsiExec.exe /uninstall {3248F0A8-6813-11D6-A77B-00B0D0150170} /passive /norestart
REM JRE Runtime Environment 5.0 Update 16
MsiExec.exe /uninstall {3248F0A8-6813-11D6-A77B-00B0D0150160} /passive /norestart
REM JRE Runtime Environment 5.0 Update 15
MsiExec.exe /uninstall {3248F0A8-6813-11D6-A77B-00B0D0150150} /passive /norestart
REM JRE Runtime Environment 5.0 Update 14
MsiExec.exe /uninstall {3248F0A8-6813-11D6-A77B-00B0D0150140} /passive /norestart
REM JRE Runtime Environment 5.0 Update 13
MsiExec.exe /uninstall {3248F0A8-6813-11D6-A77B-00B0D0150130} /passive /norestart
REM JRE Runtime Environment 5.0 Update 12
MsiExec.exe /uninstall {3248F0A8-6813-11D6-A77B-00B0D0150120} /passive /norestart
REM JRE Runtime Environment 5.0 Update 11
MsiExec.exe /uninstall {3248F0A8-6813-11D6-A77B-00B0D0150110} /passive /norestart
REM JRE Runtime Environment 5.0 Update 10
MsiExec.exe /uninstall {3248F0A8-6813-11D6-A77B-00B0D0150100} /passive /norestart
REM JRE Runtime Environment 5.0 Update 9
MsiExec.exe /uninstall {3248F0A8-6813-11D6-A77B-00B0D0150090} /passive /norestart
REM JRE Runtime Environment 5.0 Update 8
MsiExec.exe /uninstall {3248F0A8-6813-11D6-A77B-00B0D0150080} /passive /norestart
REM JRE Runtime Environment 5.0 Update 7
MsiExec.exe /uninstall {3248F0A8-6813-11D6-A77B-00B0D0150070} /passive /norestart
REM JRE Runtime Environment 5.0 Update 6
MsiExec.exe /uninstall {3248F0A8-6813-11D6-A77B-00B0D0150060} /passive /norestart
REM JRE Runtime Environment 5.0 Update 5
MsiExec.exe /uninstall {3248F0A8-6813-11D6-A77B-00B0D0150050} /passive /norestart
REM JRE Runtime Environment 5.0 Update 4
MsiExec.exe /uninstall {3248F0A8-6813-11D6-A77B-00B0D0150040} /passive /norestart
REM JRE Runtime Environment 5.0 Update 3
MsiExec.exe /uninstall {3248F0A8-6813-11D6-A77B-00B0D0150030} /passive /norestart
REM JRE Runtime Environment 5.0 Update 2
MsiExec.exe /uninstall {3248F0A8-6813-11D6-A77B-00B0D0150020} /passive /norestart
REM JRE Runtime Environment 5.0 Update 1
MsiExec.exe /uninstall {3248F0A8-6813-11D6-A77B-00B0D0150010} /passive /norestart
REM JRE Runtime Environment 5.0
MsiExec.exe /uninstall {3248F0A8-6813-11D6-A77B-00B0D0150000} /passive /norestart

REM Java 2 Runtime Environment, SE v1.4.2_19
MsiExec.exe /uninstall {7148F0A8-6813-11D6-A77B-00B0D0142190} /passive /norestart
REM Java 2 Runtime Environment, SE v1.4.2_18
MsiExec.exe /uninstall {7148F0A8-6813-11D6-A77B-00B0D0142180} /passive /norestart
REM Java 2 Runtime Environment, SE v1.4.2_17
MsiExec.exe /uninstall {7148F0A8-6813-11D6-A77B-00B0D0142170} /passive /norestart
REM Java 2 Runtime Environment, SE v1.4.2_16
MsiExec.exe /uninstall {7148F0A8-6813-11D6-A77B-00B0D0142160} /passive /norestart
REM Java 2 Runtime Environment, SE v1.4.2_15
MsiExec.exe /uninstall {7148F0A8-6813-11D6-A77B-00B0D0142150} /passive /norestart
REM Java 2 Runtime Environment, SE v1.4.2_14
MsiExec.exe /uninstall {7148F0A8-6813-11D6-A77B-00B0D0142140} /passive /norestart
REM Java 2 Runtime Environment, SE v1.4.2_13
MsiExec.exe /uninstall {7148F0A8-6813-11D6-A77B-00B0D0142130} /passive /norestart
REM Java 2 Runtime Environment, SE v1.4.2_12
MsiExec.exe /uninstall {7148F0A8-6813-11D6-A77B-00B0D0142120} /passive /norestart
REM Java 2 Runtime Environment, SE v1.4.2_11
MsiExec.exe /uninstall {7148F0A8-6813-11D6-A77B-00B0D0142110} /passive /norestart
REM Java 2 Runtime Environment, SE v1.4.2_10
MsiExec.exe /uninstall {7148F0A8-6813-11D6-A77B-00B0D0142100} /passive /norestart
REM Java 2 Runtime Environment, SE v1.4.2_09
MsiExec.exe /uninstall {7148F0A8-6813-11D6-A77B-00B0D0142090} /passive /norestart
REM Java 2 Runtime Environment, SE v1.4.2_08
MsiExec.exe /uninstall {7148F0A8-6813-11D6-A77B-00B0D0142080} /passive /norestart
REM Java 2 Runtime Environment, SE v1.4.2_07
MsiExec.exe /uninstall {7148F0A8-6813-11D6-A77B-00B0D0142070} /passive /norestart
REM Java 2 Runtime Environment, SE v1.4.2_06
MsiExec.exe /uninstall {7148F0A8-6813-11D6-A77B-00B0D0142060} /passive /norestart
REM Java 2 Runtime Environment, SE v1.4.2_05
MsiExec.exe /uninstall {7148F0A8-6813-11D6-A77B-00B0D0142050} /passive /norestart
REM Java 2 Runtime Environment, SE v1.4.2_04
MsiExec.exe /uninstall {7148F0A8-6813-11D6-A77B-00B0D0142040} /passive /norestart
REM Java 2 Runtime Environment, SE v1.4.2_03
MsiExec.exe /uninstall {7148F0A8-6813-11D6-A77B-00B0D0142030} /passive /norestart
REM Java 2 Runtime Environment, SE v1.4.2_02
MsiExec.exe /uninstall {7148F0A8-6813-11D6-A77B-00B0D0142020} /passive /norestart
REM Java 2 Runtime Environment, SE v1.4.2_01
MsiExec.exe /uninstall {7148F0A8-6813-11D6-A77B-00B0D0142010} /passive /norestart
REM Java 2 Runtime Environment, SE v1.4.2
MsiExec.exe /uninstall {7148F0A8-6813-11D6-A77B-00B0D0142000} /passive /norestart

REM Java 2 Runtime Environment Standard Edition v1.3.1_25
%systemroot%\IsUninst.exe -f"%SystemDrive%\Program Files\JavaSoft\JRE\1.3.1_25\Uninst.isu" -a
REM Java 2 Runtime Environment Standard Edition v1.3.1_24
%systemroot%\IsUninst.exe -f"%SystemDrive%\Program Files\JavaSoft\JRE\1.3.1_24\Uninst.isu" -a
REM Java 2 Runtime Environment Standard Edition v1.3.1_23
%systemroot%\IsUninst.exe -f"%SystemDrive%\Program Files\JavaSoft\JRE\1.3.1_23\Uninst.isu" -a
REM Java 2 Runtime Environment Standard Edition v1.3.1_22
%systemroot%\IsUninst.exe -f"%SystemDrive%\Program Files\JavaSoft\JRE\1.3.1_22\Uninst.isu" -a
REM Java 2 Runtime Environment Standard Edition v1.3.1_21
%systemroot%\IsUninst.exe -f"%SystemDrive%\Program Files\JavaSoft\JRE\1.3.1_21\Uninst.isu" -a
REM Java 2 Runtime Environment Standard Edition v1.3.1_20
%systemroot%\IsUninst.exe -f"%SystemDrive%\Program Files\JavaSoft\JRE\1.3.1_20\Uninst.isu" -a
REM Java 2 Runtime Environment Standard Edition v1.3.1_19
%systemroot%\IsUninst.exe -f"%SystemDrive%\Program Files\JavaSoft\JRE\1.3.1_19\Uninst.isu" -a
REM Java 2 Runtime Environment Standard Edition v1.3.1_18
%systemroot%\IsUninst.exe -f"%SystemDrive%\Program Files\JavaSoft\JRE\1.3.1_18\Uninst.isu" -a
REM Java 2 Runtime Environment Standard Edition v1.3.1_17
%systemroot%\IsUninst.exe -f"%SystemDrive%\Program Files\JavaSoft\JRE\1.3.1_17\Uninst.isu" -a
REM Java 2 Runtime Environment Standard Edition v1.3.1_16
%systemroot%\IsUninst.exe -f"%SystemDrive%\Program Files\JavaSoft\JRE\1.3.1_16\Uninst.isu" -a
REM Java 2 Runtime Environment Standard Edition v1.3.1_15
%systemroot%\IsUninst.exe -f"%SystemDrive%\Program Files\JavaSoft\JRE\1.3.1_15\Uninst.isu" -a
REM Java 2 Runtime Environment Standard Edition v1.3.1_14
%systemroot%\IsUninst.exe -f"%SystemDrive%\Program Files\JavaSoft\JRE\1.3.1_14\Uninst.isu" -a
REM Java 2 Runtime Environment Standard Edition v1.3.1_13
%systemroot%\IsUninst.exe -f"%SystemDrive%\Program Files\JavaSoft\JRE\1.3.1_13\Uninst.isu" -a
REM Java 2 Runtime Environment Standard Edition v1.3.1_12
%systemroot%\IsUninst.exe -f"%SystemDrive%\Program Files\JavaSoft\JRE\1.3.1_12\Uninst.isu" -a
REM Java 2 Runtime Environment Standard Edition v1.3.1_11
%systemroot%\IsUninst.exe -f"%SystemDrive%\Program Files\JavaSoft\JRE\1.3.1_11\Uninst.isu" -a
REM Java 2 Runtime Environment Standard Edition v1.3.1_10
%systemroot%\IsUninst.exe -f"%SystemDrive%\Program Files\JavaSoft\JRE\1.3.1_10\Uninst.isu" -a
REM Java 2 Runtime Environment Standard Edition v1.3.1_09
%systemroot%\IsUninst.exe -f"%SystemDrive%\Program Files\JavaSoft\JRE\1.3.1_09\Uninst.isu" -a
REM Java 2 Runtime Environment Standard Edition v1.3.1_08
%systemroot%\IsUninst.exe -f"%SystemDrive%\Program Files\JavaSoft\JRE\1.3.1_08\Uninst.isu" -a
REM Java 2 Runtime Environment Standard Edition v1.3.1_07
%systemroot%\IsUninst.exe -f"%SystemDrive%\Program Files\JavaSoft\JRE\1.3.1_07\Uninst.isu" -a
REM Java 2 Runtime Environment Standard Edition v1.3.1_06
%systemroot%\IsUninst.exe -f"%SystemDrive%\Program Files\JavaSoft\JRE\1.3.1_06\Uninst.isu" -a
REM Java 2 Runtime Environment Standard Edition v1.3.1_05
%systemroot%\IsUninst.exe -f"%SystemDrive%\Program Files\JavaSoft\JRE\1.3.1_05\Uninst.isu" -a
REM Java 2 Runtime Environment Standard Edition v1.3.1_04
%systemroot%\IsUninst.exe -f"%SystemDrive%\Program Files\JavaSoft\JRE\1.3.1_04\Uninst.isu" -a
REM Java 2 Runtime Environment Standard Edition v1.3.1_03
%systemroot%\IsUninst.exe -f"%SystemDrive%\Program Files\JavaSoft\JRE\1.3.1_03\Uninst.isu" -a
REM Java 2 Runtime Environment Standard Edition v1.3.1_02
%systemroot%\IsUninst.exe -f"%SystemDrive%\Program Files\JavaSoft\JRE\1.3.1_02\Uninst.isu" -a
REM Java 2 Runtime Environment Standard Edition v1.3.1_01
%systemroot%\IsUninst.exe -f"%SystemDrive%\Program Files\JavaSoft\JRE\1.3.1_01\Uninst.isu" -a
REM Java 2 Runtime Environment Standard Edition v1.3
%systemroot%\IsUninst.exe -f"%SystemDrive%\Program Files\JavaSoft\JRE\1.3\Uninst.isu" -a

rem Install latest JRE

msiexec.exe /i "\\kermitisdwds\Applications\Oracle Java 7 u17\jre1.7.0_17\jretransformed.msi" /qn

rem create run once file
echo older javas removed by startup script > c:\javaupdate.lck
attrib +h c:\javaupdate.lck

:end
exit

Posted
Been testing Java 7 Update 21 using the same setup as in the guides and all seems to be working with no issues.

 

No uninstall issues? I tried deploying the Java MSI via GPO and it would work on some and bomb on others. What would happen is the uninstall of the previous version would break and wouldn't update after that. The only surefire way I've seen to silently remove Java via script consistently was that VBS script MS put together.

Posted
last version of java 7 i tried failed to work as anyone but admin and even as admin came up with annoying "do you want to do this" boxes so ive rolled back to j7u11 iirc as that works without nagging
Posted
No uninstall issues? I tried deploying the Java MSI via GPO and it would work on some and bomb on others. What would happen is the uninstall of the previous version would break and wouldn't update after that. The only surefire way I've seen to silently remove Java via script consistently was that VBS script MS put together.

 

Just checked SCCM and I'm showing 98.8% compliance site wide - so nope no issues :) Didn't have any issues in the testing phase as well.

  • Thanks 1
Posted
last version of java 7 i tried failed to work as anyone but admin and even as admin came up with annoying "do you want to do this" boxes so ive rolled back to j7u11 iirc as that works without nagging

 

Was that deployed using MSI/Group Policy with the transforms to remove all the update/nag screens?

Posted
Was that deployed using MSI/Group Policy with the transforms to remove all the update/nag screens?

 

yes same settings ive used for ages

Posted
Been testing Java 7 Update 21 using the same setup as in the guides and all seems to be working with no issues.

Out of interest, do you do anything to disable or minimize the number of security and update warnings? It appears that setting the usual properties (AUTOUPDATECHECK, JAVAUPDATE and JU) in the MSI is no longer sufficient. Users will eventually get prompted to update. :(

 

http://i.imgur.com/pGdTSzL.png

Posted (edited)

The first dialog in the screenshots above ("Your Java version is insecure") should only be shown when you have a Java version that isn't the current one. The only way to get rid of that is to be running the latest version.

 

The others can be toned down by altering the deployment.security.level, which can be done via a variety of methods (personally I use a deployment.properties file). I set ours to MEDIUM which doesn't eliminate them in all circumstances, but in my opinion is a decent trade-off between security and usability, and was the default setting before 7u11. You need to be pretty sure that you have a secure desktop environment* to consider doing this. I certainly wouldn't do it if anyone was routinely running with admin rights, for example.

 

I would also not recommend setting it any lower than this on any machine that has access to the Internet.

 

(* Yes, I'm aware that "secure desktop environment" and having the Java plugin installed is something of a contradiction)

Edited by AngryTechnician

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...