Difference between revisions of "Rational Developer Silent Install doPlugins.bat"
From MidrangeWiki
Line 29: | Line 29: | ||
) | ) | ||
set RDI_INSTALL_FOLDER=C:\Software\RationalDeveloper\RDI_V9.6 | set RDI_INSTALL_FOLDER=C:\Software\RationalDeveloper\RDI_V9.6 | ||
− | set RDI_REMOTE_FOLDER="\\<servername>\[download_folder] | + | set RDI_REMOTE_FOLDER="\\<servername>\[download_folder]" |
set RDI_REMOTE_FILES=install.xml RDI_V9.6_CORE_PI_1_EVAL_EMG.zip RDI_V9.6_CORE_PI_2_EVAL_EMG.zip | set RDI_REMOTE_FILES=install.xml RDI_V9.6_CORE_PI_1_EVAL_EMG.zip RDI_V9.6_CORE_PI_2_EVAL_EMG.zip | ||
set RDI_PRODUCT_INSTALL=C:\IBM\SDP96 | set RDI_PRODUCT_INSTALL=C:\IBM\SDP96 |
Revision as of 23:57, 20 February 2018
@echo off setlocal set hh=%time:~0,2% if "%time:~0,1%"==" " set hh=0%hh:~1,1% set dt=%date:~10,4%%date:~4,2%%date:~7,2%_%hh%_%time:~3,2%_%time:~6,2% echo ================================================================= echo Starting RDI Plugin Update %dt% echo ================================================================= goto skip_Permissions :check_Permissions echo Administrative permissions required. Detecting permissions... net session >nul 2>&1 if %errorLevel% neq 0 ( echo Failure: This script needs to be run as Administrator. goto EXIT_1 ) :skip_Permissions set USER_IM_FOLDER=%1 IF ERRORLEVEL 1 ( set USER_IM_FOLDER="C:\IBM\Installation Manager" ) else if "%USER_IM_FOLDER%"=="" ( set USER_IM_FOLDER="C:\IBM\Installation Manager" ) set RDI_INSTALL_FOLDER=C:\Software\RationalDeveloper\RDI_V9.6 set RDI_REMOTE_FOLDER="\\<servername>\[download_folder]" set RDI_REMOTE_FILES=install.xml RDI_V9.6_CORE_PI_1_EVAL_EMG.zip RDI_V9.6_CORE_PI_2_EVAL_EMG.zip set RDI_PRODUCT_INSTALL=C:\IBM\SDP96 set RUN_LOG_FILE=%RDI_INSTALL_FOLDER%\plugin_install_log%dt%.xml rem echo Liset "%RDI_REMOTE_FILES%" rem exit /B IF NOT EXIST %RDI_PRODUCT_INSTALL% GOTO NO_INSTALL_FOLDER echo RDI Location: "%RDI_PRODUCT_INSTALL%" IF NOT EXIST %RDI_PRODUCT_INSTALL%\eclipsec.exe ( :NO_INSTALL_FOLDER echo RDI install not found! echo %RDI_PRODUCT_INSTALL%\eclipsec.exe goto EXIT_1 ) echo Running Plugin Install echo Running Plugin Install > %RUN_LOG_FILE% 2>&1 set RDI_PLUGIN_PARAMS=-application org.eclipse.equinox.p2.director -nosplash echo Install Aldon %RDI_PRODUCT_INSTALL%\eclipsec.exe %RDI_PLUGIN_PARAMS%^ -repository "file:////<servername>[download_folder]/RDi 9.x/Aldon/RocketAldonEclipseUpdateSite/"^ -installIU com.aldon.team.rdi_64.feature.group/8.2.1.v201709211448,com.aldon.team_64.feature.group/8.2.1.v201709211448^ -tag "Install Aldon"^ >> %RUN_LOG_FILE% 2>&1 if %errorlevel% neq 0 ( echo Aldon failed! rc "%errorlevel%" ) echo Install Pathfinder %RDI_PRODUCT_INSTALL%\eclipsec.exe %RDI_PLUGIN_PARAMS%^ -repository http://hawkinfo.com/PathfinderPlugin/update2.0.0/^ -installIU com.hawkeye.plugin.feature.group/2.0.0^ -tag "Install Pathfinder"^ >> %RUN_LOG_FILE% 2>&1 if %errorlevel% neq 0 ( echo Pathfinder failed! rc "%errorlevel%" ) echo Install RPG Toolbox %RDI_PRODUCT_INSTALL%\eclipsec.exe %RDI_PLUGIN_PARAMS%^ -repository http://www.linomafiles.com/releases/rpgtoolbox/RDi^ -installIU RPGToolboxFeature.feature.group^ -tag "Install RPG Toolbox"^ >> %RUN_LOG_FILE% 2>&1 if %errorlevel% neq 0 ( echo RPG Toolbox failed! rc "%errorlevel%" ) :RDI_LOCAL_HELP echo Install RDI Local Help %RDI_PRODUCT_INSTALL%\eclipsec.exe %RDI_PLUGIN_PARAMS%^ -repository "jar:file:////<servername>[download_folder]/RDi 9.x/RDI_9.6/RDI-9.6.0.0-LOCALHELP.zip!/"^ -installIU com.ibm.rational.developer.ibmi.doc.feature.group/9.6.0.v20171117_0922^ -tag "Install RDI Local Help"^ >> %RUN_LOG_FILE% 2>&1 if %errorlevel% neq 0 ( echo RDI Local Help failed! rc "%errorlevel%" ) :ISPHERE_INSTALL echo Install isphere %RDI_PRODUCT_INSTALL%\eclipsec.exe %RDI_PLUGIN_PARAMS%^ -repository "http://master.dl.sourceforge.net/project/isphere/eclipse/rdi8.0/"^ -installIU biz.isphere.core.feature.group,biz.isphere.comparefilters.feature.group,biz.isphere.rse.feature.group,biz.isphere.help.feature.group,biz.isphere.joblogexplorer.rse.feature.group,biz.isphere.messagesubsystem.rse.feature.group,biz.isphere.strpreprc.feature.group,biz.isphere.lpex.tasks.feature.group^ -tag "Install iSphere"^ >> %RUN_LOG_FILE% 2>&1 if %errorlevel% neq 0 ( echo iSphere failed! rc "%errorlevel%" ) :CHECK_ERROR_LOG echo ================================================================= echo Install Finished. Checking error log for errors. "%RUN_LOG_FILE%" echo ================================================================= type %RUN_LOG_FILE% goto EXIT_0 :EXIT_1 echo Exit With Error echo ========================end====================================== pause exit /b 1 :EXIT_0 echo ========================end====================================== pause exit /b