18.04.2015 Views

ArcGIS Engine Developer Guide

ArcGIS Engine Developer Guide

ArcGIS Engine Developer Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

INSTALLING ARCGIS ENGINE RUNTIME ON SOLARIS AND LINUX<br />

If the setup is launched, and <strong>ArcGIS</strong> <strong>Engine</strong><br />

Runtime already exists on the machine, the<br />

setup will execute again. If the setup is executed<br />

silently, the product will automatically be<br />

installed to the same installation directory as<br />

the existing <strong>ArcGIS</strong> <strong>Engine</strong> Runtime setup.<br />

If the file is not present, the JavaRuntime feature for <strong>ArcGIS</strong> <strong>Engine</strong><br />

Runtime has not been installed. Continue to Step 2.<br />

2. Launch the <strong>ArcGIS</strong> <strong>Engine</strong> Runtime installation program by executing the<br />

following statement to launch the <strong>ArcGIS</strong> <strong>Engine</strong> Runtime setup silently:<br />

/Setup –s /path/to/propertiesfile<br />

Any errors experienced during the silent install will be captured in a log file. It<br />

is advisable that you interact with the log file to determine if errors have<br />

occurred. The log file will be located in the user’s $HOME directory:<br />

$HOME/<strong>ArcGIS</strong><strong>Engine</strong>RT_InstallLog.log<br />

‘Installation log files’, at the end of this section, provides some examples of<br />

the log files.<br />

The following sections provide some examples of incorporating the <strong>ArcGIS</strong><br />

<strong>Engine</strong> Runtime setup within your application’s installation program.<br />

Example A—Installing <strong>ArcGIS</strong> <strong>Engine</strong> Runtime using a script<br />

The following is a sample install script that includes an initial check for <strong>ArcGIS</strong><br />

<strong>Engine</strong> Runtime and the Java installation feature, launches the setup silently, and<br />

checks the log file for errors during installation.<br />

#!/bin/sh<br />

#<br />

# check to see if <strong>ArcGIS</strong> <strong>Engine</strong> Runtime is already installed...<br />

#<br />

machineName='uname -n'<br />

esriPropFile=$HOME/ESRI.properties.$machineName<br />

if [ -f $esriPropFile ]<br />

then<br />

# query prop file for the installation location of <strong>ArcGIS</strong> <strong>Engine</strong><br />

Runtime...<br />

runtimeHome='cat $esriPropFile | grep Z_<strong>ArcGIS</strong><strong>Engine</strong>RT_INSTALL_DIR'<br />

if [ "$runtimeHome" = "" ]<br />

then<br />

echo "<strong>ArcGIS</strong> <strong>Engine</strong> Runtime is NOT installed!"<br />

else<br />

echo "<strong>ArcGIS</strong> <strong>Engine</strong> Runtime IS installed!"<br />

#<br />

# check to see if the Java components of <strong>ArcGIS</strong> <strong>Engine</strong> Runtime are<br />

installed...<br />

#<br />

engineHome='cat $esriPropFile | grep Z_ENGINE_HOME | cut -d= -f2'<br />

if [ -f $engineHome/java/arcgis_system.jar ]<br />

then<br />

echo "<strong>ArcGIS</strong> <strong>Engine</strong> Runtime Java components ARE installed!"<br />

else<br />

echo "<strong>ArcGIS</strong> <strong>Engine</strong> Runtime Java components ARE NOT installed!"<br />

fi<br />

fi<br />

else<br />

484 • <strong>ArcGIS</strong> <strong>Engine</strong> <strong>Developer</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!