ADF Architecture Practice - JDeveloper Silent Install

Posted by Torsten Kleiber on October 14, 2014 Tags: Oracle ADF JDeveloper ADF-Architecture Silent-Install Silent-Deinstall

This article describes how to standardize your JDeveloper Installation as requested in Planning & Getting Started - Team, Skills and Development Environments.

It is part of the ADF Architecture Practice Series and describes the installation with examples for windows.

Version 12.1.x

In this version the Oracle Universal Installer allows the silent installation of JDeveloper. All what you need is the installer file for your platform (e.g. jdev_suite_121300_win64.exe) and a response file. You can create your response file as described in the documentation:

  • Run your product’s graphical installer or installer, as described in your product installation guide.

  • For product installation, on the Installation Summary screen, click Save Response File to save your installation parameters to a response file.

The resulting file should be look similar to the following code:

[ENGINE]

#DO NOT CHANGE THIS.
Response File Version=1.0.0.0.0

[GENERIC]

#This will be blank when there is nothing to be de-installed in distribution level
SELECTED_DISTRIBUTION=JDeveloper Integrated Server Suite~12.1.3.0.0

#The oracle home location. This can be an existing Oracle Home or a new Oracle Home
ORACLE_HOME=C:\Oracle\JDev121300\

Then you call a command similar to:

jdev_suite_121300_win64.exe -silent -waitforcompletion -responseFile [complete path]\response.rsp

Deinstallation is similar, the response should look like

[ENGINE]

#DO NOT CHANGE THIS.
Response File Version=1.0.0.0.0

[GENERIC]

#This will be blank when there is nothing to be de-installed in distribution level
SELECTED_DISTRIBUTION=JDeveloper Integrated Server Suite~12.1.3.0.0

#The oracle home location. This can be an existing Oracle Home or a new Oracle Home
ORACLE_HOME=C:\Oracle\JDev121300\

Then you call the deinstallation via following commands:

set oracle_home=C:\Oracle\JDev121300
rem %oracle_home%\oui\bin\deinstall.cmd -noconsole -silent (1)
"%oracle_home%\oui\bin\internal\ilaunch.exe" -noconsole -deinstall -silent ORACLE_HOME="%oracle_home%" (2)
1 Pay attention that we did not use this line, as this exits your command shell on windows. But we want to have a return code and maybe doing some post deinstall work (Enhancement Request 19464646 is created).
2 Instead we have looked what command deinstall.cmd generates and put this on this line.

Version 11.1.1.x

For this version you need the generic installer (eg. jdevstudio11117install.jar) and the 32bit JDK 1.6.0_24 (this is the delivered version for the manual install, 64bit version is not supported but works for most cases but not all). First you have to extract the msi JDK Installer as described here. Then you have to create a file silent.xml which is the equivalent of response.rsp in 12.1.x.

<?xml version="1.0" encoding="UTF-8"?>
<bea-installer>
  <input-fields>
    <data-value name="BEAHOME" value="C:\Oracle\JDev111170" />
    <data-value name="COMPONENT_PATHS" value="JDeveloper and ADF/JDeveloper Studio|JDeveloper and ADF/Application Development Framework Runtime|WebLogic Server/Core Application Server|WebLogic Server/Administration Console|WebLogic Server/Configuration Wizard and Upgrade Framework|WebLogic Server/WebLogic JDBC Drivers|WebLogic Server/WebLogic Server Clients|WebLogic Server/WebLogic SCA|WebLogic Server/UDDI and Xquery Support"/>
    <data-value name="INSTALL_SHORTCUT_IN_ALL_USERS_FOLDER" value="yes"/>
    <data-value name="LOCAL_JVMS" value="C:\Oracle\JDev111170\jdk160_24\"/>
  </input-fields>
</bea-installer>

Then you can call Installation with following batch file:

set mw_home=C:\Oracle\JDev111170
set oracle_home==%mw_home%\oracle_common
set java_home=%mw_home%\jdk160_24
c:\windows\system32\msiexec.exe /i [complete path]\jdk1.6.0_24.msi /quiet ADDLOCAL="ToolsFeature,SourceFeature" INSTALLDIR="%java_home%" REBOOT=Suppress
"%java_home%\bin\java" -jar jdevstudio11117install.jar -mode=silent -log=install.log -silent_xml=silent.xml

You can call the deinstallation with following batch file:

set mw_home=C:\Oracle\JDev111170
set oracle_home==%mw_home%\oracle_common
set java_home=%oracle_home%\jdk160_24
%mw_home%\utils\uninstall\uninstall.exe -mode=silent -log=uninstall.log
c:\windows\system32\msiexec.exe /x [complete path]\jdk1.6.0_24.msi /quiet REBOOT=Suppress

That’s it!