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

The first action sets the MSI_PATH property to<br />

[SourceDir]Arc<strong>Engine</strong>\Setup.exe. This will change depending on where the<br />

<strong>ArcGIS</strong> <strong>Engine</strong> Runtime setup is located on the media. In this example,<br />

Setup.exe is located on the CD in a folder named Arc<strong>Engine</strong>. The setup.exe<br />

file will be the admin installation with the required service pack applied.<br />

The second action calls the Launch_<strong>Engine</strong>_MSI that you previously created.<br />

Both these custom actions should execute only if the property<br />

Arc<strong>Engine</strong>Exists does not equal True. Arc<strong>Engine</strong>Exists should equal True only<br />

if <strong>ArcGIS</strong> <strong>Engine</strong> Runtime and the service pack are detected on the target<br />

machine.<br />

For scenario 2, you will have to provide the required <strong>ArcGIS</strong> <strong>Engine</strong> Runtime<br />

service pack (.msp file) on the CD. When deploying <strong>ArcGIS</strong> <strong>Engine</strong> Runtime in<br />

this particular deployment method, your user will have <strong>ArcGIS</strong> <strong>Engine</strong> Runtime<br />

already on the target machine, and only the service pack is required.<br />

Follow these steps to launch the <strong>ArcGIS</strong> <strong>Engine</strong> Runtime service pack when it’s<br />

on your application’s media:<br />

1. Create Properties MSP_PATH, MSIEXEC_PATH, and InstallSP and initialize<br />

them to 1 in the Property table.<br />

2. Perform a system check for <strong>ArcGIS</strong> <strong>Engine</strong> Runtime and the service pack at<br />

the beginning of your setup program. The system check should search for the<br />

<strong>ArcGIS</strong> <strong>Engine</strong> Runtime RealVersion registry key and SPNumber registry<br />

key. The InstallSP property should be set to True if the RealVersion registry<br />

key value matches your requirement, but the SPNumber registry key value<br />

does not match your requirement. In this case, the machine has the <strong>ArcGIS</strong><br />

<strong>Engine</strong> Runtime product installed but does not have the required service pack.<br />

3. Create a custom action called Launch_<strong>Engine</strong>_SP_1. You can change the<br />

number to whichever version of the <strong>ArcGIS</strong> <strong>Engine</strong> Runtime service pack<br />

your application requires. This example is installing <strong>ArcGIS</strong> <strong>Engine</strong> Runtime<br />

service pack 1. This custom action will launch the service pack (.msp file)<br />

using the following syntax:<br />

msiexec.exe /p \<strong>ArcGIS</strong><strong>Engine</strong>90sp1.msp /qn<br />

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

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

Saved successfully!

Ooh no, something went wrong!