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 />

fi<br />

exit 0<br />

When this command execution is complete, if <strong>ArcGIS</strong> <strong>Engine</strong> Runtime is<br />

installed, the value of $RT_INSTALLED_OUT$ will be “installed”.<br />

2. To perform a system check for the Java installation feature, add an “Execute<br />

Script/Batch File” action with the following parameters:<br />

a. “Suspend execution until operation is complete” checked ON.<br />

b. “Store process’s stdout in:” = a variable name of your choice (for example,<br />

$JAVA_INSTALLED_OUT$).<br />

c. Script:<br />

#!/bin/sh<br />

machineName='uname -n'<br />

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

if [ -f $DOLLAR$esriPropFile ]<br />

then<br />

runtimeHome='cat $DOLLAR$esriPropFile | grep<br />

Z_<strong>ArcGIS</strong><strong>Engine</strong>RT_INSTALL_DIR'<br />

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

then<br />

engineHome='cat $DOLLAR$esriPropFile | grep Z_ENGINE_HOME |<br />

cut -d= -f2'<br />

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

then<br />

echo "installed"<br />

fi<br />

fi<br />

fi<br />

fi<br />

exit 0<br />

When this command execution is complete, if the <strong>ArcGIS</strong> <strong>Engine</strong> Runtime<br />

Java installation feature is installed, the value of $JAVA_INSTALLED_OUT$<br />

will be “installed”.<br />

3. To launch the <strong>ArcGIS</strong> <strong>Engine</strong> Runtime setup within your application’s<br />

InstallAnywhere setup, add an “Execute Command” action with the following<br />

parameters:<br />

a. “Suspend execution until operation is complete” checked ON.<br />

b. “Command line” = /Setup –s /<br />

path/to/properties/file<br />

4. To execute this command conditionally, based on the system check for <strong>ArcGIS</strong><br />

<strong>Engine</strong> Runtime (as described in Step 1 above), add a “Compare<br />

InstallAnywhere Variable” rule with the following parameters:<br />

a. “Operand 1” = $RT_INSTALLED_OUT$<br />

b. Operation = “does not equal”<br />

486 • <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!