18.04.2015 Views

ArcGIS Engine Developer Guide

ArcGIS Engine Developer Guide

ArcGIS Engine Developer Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

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

fi<br />

#<br />

# launch the <strong>ArcGIS</strong> <strong>Engine</strong> Runtime setup silently...<br />

#<br />

sh /Setup -s /path/to/propertiesfile<br />

Any errors experienced during the silent install<br />

will be captured in a log file. The log file will be<br />

located in the user’s $HOME directory:<br />

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

#<br />

# check for errors in the <strong>ArcGIS</strong> <strong>Engine</strong> Runtime setup...<br />

#<br />

fatalErrors='cat $HOME/<strong>ArcGIS</strong><strong>Engine</strong>RT_InstallLog.log | grep " FATAL ERRORS"'<br />

nonfatalErrors='cat $HOME/<strong>ArcGIS</strong><strong>Engine</strong>RT_InstallLog.log | grep "NONFATAL<br />

ERRORS"'<br />

warnings='cat $HOME/<strong>ArcGIS</strong><strong>Engine</strong>RT_InstallLog.log | grep "WARNINGS"'<br />

if [ "`echo $fatalErrors | cut -d\" \" -f1`" != "0" ] ||<br />

[ "`echo $nonfatalErrors | cut -d\" \" -f1`" != "0" ] ||<br />

[ "`echo $warnings | cut -d\" \" -f1`" != "0" ]<br />

then<br />

echo "<strong>ArcGIS</strong> <strong>Engine</strong> installed WITH ERRORS!"<br />

echo "Please view the log file for details."<br />

echo " Log File: $HOME/<strong>ArcGIS</strong><strong>Engine</strong>RT_InstallLog.log"<br />

else<br />

echo "<strong>ArcGIS</strong> <strong>Engine</strong> installed without error!"<br />

fi<br />

Example B—Installing <strong>ArcGIS</strong> <strong>Engine</strong> Runtime using ZeroG InstallAnywhere<br />

The following is an example using ZeroG InstallAnywhere to launch the <strong>ArcGIS</strong><br />

<strong>Engine</strong> Runtime setup at some point within your application’s setup (if created<br />

using InstallAnywhere). The example includes a check for the presence of<br />

<strong>ArcGIS</strong> <strong>Engine</strong> Runtime and the Java installation feature.<br />

1. To perform a system check for <strong>ArcGIS</strong> <strong>Engine</strong> Runtime, 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 />

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

echo "installed"<br />

fi<br />

Appendix D • Installing <strong>ArcGIS</strong> <strong>Engine</strong> Runtime on Windows, Solaris, and Linux • 485

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

Saved successfully!

Ooh no, something went wrong!