
#JAVA INSTALL ERROR 1603 WINDOWS 7 X64 KEYGEN#

It installs our internal certificates (Active Directory, etc), cleans up the user java cache directories (some applications will act up otherwise) and finally sets some global deployment properties for all users. It also creates a unique named hardlink for the Insallation directory under program files (request by our developers). It uninstalls every 32Bit Version of JRE 7 & 8 (not 6 for a specific reason in our case). RD "%systemdrive%\ProgramData\Oracle\" /S /Q RD "%systemdrive%\Microsoft\Windows\Start Menu\Programs\Java\" /S /Q RD "%systemroot%\Sun\Java\Deployment\" /S /Q Wmic product where "name like 'Java%%'" call uninstall /nointeractive RD "C:\Program Files (x86)\Java\jre7" /S /Q Wmic product where "name like 'Java 7%%'" call uninstall /nointeractive REG DELETE "HKLM\SOFTWARE\JavaSoft\Java Runtime Environment" /f REG DELETE "HKLM\SOFTWARE\Wow6432Node\JavaSoft\Java Runtime Environment" /f RD "C:\Program Files (x86)\Java\jre6" /S /Q Wmic product where "name like 'Java(TM)%%'" call uninstall /nointeractive So I made the below scripts to kill Java. I also found, that should there even be a trace of Java on the machine, then installing via SCCM will fail. RD "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Java\" /S /Q REG ADD "HKLM\SOFTWARE\Wow6432Node\JavaSoft\Java Runtime Environment\1.8.0_60\MSI" /f /v JU /t REG_SZ /d 0 REG ADD "HKLM\SOFTWARE\Wow6432Node\JavaSoft\Java Runtime Environment\1.8.0_60\MSI" /f /v JAVAUPDATE /t REG_SZ /d 0 REG ADD "HKLM\SOFTWARE\Wow6432Node\JavaSoft\Java Runtime Environment\1.8.0_60\MSI" /f /v AUTOUPDATECHECK /t REG_SZ /d 0 REG ADD "HKLM\SOFTWARE\Wow6432Node\JavaSoft\Java Update\Policy" /f /v EnableJavaUpdate /t REG_DWORD /d 0 XCOPY "\\SERVERSHARE\Java\exceptionsites\exception.sites" "%systemroot%\Sun\Java\Deployment\exception.sites*" /R /H /Y

XCOPY "%~dp0deployment.properties" "%systemroot%\Sun\Java\Deployment\deployment.properties*" /R /H /Y XCOPY "%~nfig" "%systemroot%\Sun\Java\Deployment\nfig*" /R /H /Y Msiexec /i "%~dp0jre1.8.0_60.msi" INSTALLCFG="%~dp0Config.cfg" REPAIRMODE=0 AUTO_UPDATE=0 EULA=0 INSTALL_SILENT=1 NOSTARTMENU=1 SPONSORS=0 /q /L C:\apps\java86.txt XCOPY "%~dp0Config.cfg" "%systemdrive%\ProgramData\Oracle\Java\*" /R /H /Y REG DELETE "HKLM\SOFTWARE\Wow6432Node\JavaSoft" /f This script should only be run when no versions of Java are OFFĭel "C:\Program Files (x86)\Common Files\Java" /S /F /Q These are for x86 version so mirror for 圆4 also changing relevant parts. It also ensures updates are disabled and start menu cleaned. These use a config file aswell (read their website) and puts the exception.sites file in place. A lot of blood and tears went into these (even if it is basic) and it's the only way I could get them to work.

However, below are the scripts I use which work for me deploying to 10k machines. When deploying it through SCCM, it gets even worse and as you have said, it throws random errors and is literally random. It has caused me the biggest headaches when mass deploying.
