Jump to content


  • 0
sothpaw

Removing old versions of Java and Installing the new versions of Java

Question

Hey Everyone,

 

I've got a batch file that I'm trying to get to work and seem to be running into difficulties on getting the whole batch file to work. I'm guessing that I have something missing or incorrect. :) What I'm trying to accomplish is we currently have Java versions 7.0.45 both x64 & x86 platforms installs on all production client machines. My batch file will uninstall the x86 version of Java 7.0.45 and then install the latest version of Java 7.0.51 x86 without any problems. It's the x64 that my batch file is running into problems and does not uninstall it or install the new version of java (7.0.51 x64).

 

 

Here's what my batch file looks like:

 

@ECHO OFF
cls
:KillIE&JavaProcesses
echo *** This will kill Browsers and Java Processes ***
Rem ***
taskkill /F /IM iexplorer.exe
taskkill /F /IM iexplore.exe
taskkill /F /IM firefox.exe
taskkill /F /IM chrome.exe
taskkill /F /IM jusched.exe
taskkill /F /IM jp2launcher.exe
taskkill /F /IM java.exe
taskkill /F /IM javaw.exe
taskkill /F /IM jqs.exe
rem cd x64
rem msiexec.exe /i jre1.7.0_51.msi /qn AUTOUPDATECHECK=0 JAVAUPDATE=0 JU=0 EULA=1 /NORESTART /log c:\java_7_51_x64_install.log
rem cmd.exe /C rmdir "%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\Java" /S/q
rem cd..
cd x86
msiexec.exe /i jre1.7.0_51.msi /qn AUTOUPDATECHECK=0 JAVAUPDATE=0 JU=0 EULA=1 /NORESTART /log c:\java_7_51_x86_install.log
cmd.exe /C rmdir "%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\Java" /S/q
The CM 2012 exemgr log shows that the batch file installed successfully. Please help.
Thanks!

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

You want to remove the REM statements in your batch file (REM's to remove are in Bold below)

 

@ECHO OFF
cls
:KillIE&JavaProcesses
echo *** This will kill Browsers and Java Processes ***
Rem ***
taskkill /F /IM iexplorer.exe
taskkill /F /IM iexplore.exe
taskkill /F /IM firefox.exe
taskkill /F /IM chrome.exe
taskkill /F /IM jusched.exe
taskkill /F /IM jp2launcher.exe
taskkill /F /IM java.exe
taskkill /F /IM javaw.exe
taskkill /F /IM jqs.exe
rem cd x64
rem msiexec.exe /i jre1.7.0_51.msi /qn AUTOUPDATECHECK=0 JAVAUPDATE=0 JU=0 EULA=1 /NORESTART /log c:\java_7_51_x64_install.log
rem cmd.exe /C rmdir "%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\Java" /S/q
rem cd..
cd x86
msiexec.exe /i jre1.7.0_51.msi /qn AUTOUPDATECHECK=0 JAVAUPDATE=0 JU=0 EULA=1 /NORESTART /log c:\java_7_51_x86_install.log
cmd.exe /C rmdir "%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\Java" /S/q
Zaldoor =)
  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.