Quantcast
Channel: Configuration Manager 2007 Software Distribution forum
Viewing all articles
Browse latest Browse all 629

Deploying Java 8.45 with SCCM 2007 to Windows 7

$
0
0

I am having issues deploying Java 8 Update 45 to Windows 7 via SCCM 2007. I have downloaded the executables from Oracle and created a batch file to first uninstall all previous versions of Java and then install 8.45 (32 and 64 bit). Batch file works flawlessly when I run it on a local machine in and Administrators command prompt.

When I run it under the system account the uninstall works fine.  I can see the batch file call the executables and they run for about a minute each but they never actually get installed.

This is testing my sanity....

Has anyone had any luck deploying 8.45 with SCCM 2007?  From what I understand, you used to be able to extract the MSI files but Oracle seems to have made changes and now charges to get the MSI files.

This is the batch file.  It works in SCCM right up to the install. 
Any suggestions are appreciated

@ECHO OFF

REM Close all open web browsers

:killfirefox
        taskkill /f /t /im firefox.exe
        tasklist /FI "IMAGENAME eq firefox.exe" 2>NUL | find /I /N "firefox.exe">NUL
        if "%ERRORLEVEL%"=="0" GOTO killfirefox 

:killiexplore
        taskkill /f /t /im iexplore.exe
        tasklist /FI "IMAGENAME eq iexplore.exe" 2>NUL | find /I /N "iexplore.exe">NUL
        if "%ERRORLEVEL%"=="0" GOTO killiexplore


:killchrome
        taskkill /f /t /im chrome.exe
        tasklist /FI "IMAGENAME eq chrome.exe" 2>NUL | find /I /N "chrome.exe">NUL
        if "%ERRORLEVEL%"=="0" GOTO killchrome

REM Close all JAVA Background Processes


:killjusched
        taskkill /f /t /im jusched.exe
        tasklist /FI "IMAGENAME eq jusched.exe" 2>NUL | find /I /N "jusched.exe">NUL
        if "%ERRORLEVEL%"=="0" GOTO killjusched        

:killjucheck
        taskkill /f /t /im jucheck.exe
        tasklist /FI "IMAGENAME eq jucheck.exe" 2>NUL | find /I /N "jucheck.exe">NUL
        if "%ERRORLEVEL%"=="0" GOTO killjucheck

:killjqs
        taskkill /f /t /im jqs.exe
        tasklist /FI "IMAGENAME eq jqs.exe" 2>NUL | find /I /N "jqs.exe">NUL
        if "%ERRORLEVEL%"=="0" GOTO killjqs


REM WMIC cleanup if
START /WAIT /MIN WMIC product where "Name LIKE 'J2SE Runtime%%'" call uninstall /nointeractive
START /WAIT /MIN WMIC product where "Name LIKE 'Java 6 Update%%'" call uninstall /nointeractive
START /WAIT /MIN WMIC product where "Name LIKE 'Java(TM) 6 Update%%'" call uninstall /nointeractive
START /WAIT /MIN WMIC product where "Name LIKE 'Java 7 Update%%'" call uninstall /nointeractive
START /WAIT /MIN WMIC product where "Name LIKE 'Java(TM) 7 Update%%'" call uninstall /nointeractive
START /WAIT /MIN WMIC product where "Name LIKE 'Java 8 Update%%'" call uninstall /nointeractive

REM Java Executable Silent Install

START "" /WAIT %~dp08u45-x86.exe /s AUTO_UPDATE=0 OEMUPDATE=0 WEB_JAVA_SECURITY_LEVEL=H INSTALL_SILENT=1 STATIC=0 REBOOT=0 SPONSORS=0 EULA=0 WEB_ANALYTICS=0

IF EXIST "C:\ProgramFiles(x86)\" START "" /WAIT %~dp08u45-x64.exe /s AUTO_UPDATE=0 OEMUPDATE=0 WEB_JAVA_SECURITY_LEVEL=H INSTALL_SILENT=1 STATIC=0 REBOOT=0 SPONSORS=0 EULA=0 WEB_ANALYTICS=0
   

Return exit code to SCCM
exit /B %EXIT_CODE%


Viewing all articles
Browse latest Browse all 629

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>