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

8. The third action calls the Launch_<strong>Engine</strong>_SP_1 that you previously created.<br />

These three custom actions should execute only if the property LaunchSP<br />

does not equal True.<br />

In the example on the right, MSI_PATH will<br />

change depending on where the <strong>ArcGIS</strong> <strong>Engine</strong><br />

Runtime setup is located on the media. In this<br />

example, Setup.msi is located on the CD in a<br />

folder named Arc<strong>Engine</strong>. MSP_PATH will change<br />

depending on where the <strong>ArcGIS</strong> <strong>Engine</strong> Runtime<br />

service pack is located. In this example, the<br />

service pack is located on the CD.<br />

Launching the <strong>ArcGIS</strong> <strong>Engine</strong> Runtime installation within a scripted setup<br />

A second way you can install <strong>ArcGIS</strong> <strong>Engine</strong> Runtime within your own application<br />

is via a scripted setup that utilizes the available command-line parameters.<br />

The example script below was created using the Wise InstallMaster setup<br />

authoring software. It includes the installation of <strong>ArcGIS</strong> <strong>Engine</strong> Runtime and<br />

service pack 1.<br />

Rem Set variable<br />

Set variable MSI_PATH to \Arc<strong>Engine</strong>\setup.msi<br />

Set variable MSP_PATH to \<strong>ArcGIS</strong><strong>Engine</strong>90sp1.msp<br />

Rem launch <strong>ArcGIS</strong> <strong>Engine</strong> Runtime setup program silently – No UI<br />

Execute %SYS32%\msiexec.exe /i %MSI_PATH% /qn (Wait)<br />

Rem launch <strong>ArcGIS</strong> <strong>Engine</strong> Runtime service pack silently – No UI<br />

Execute %SYS32%\msiexec.exe /p %MSP_PATH% /qn (Wait)<br />

Launching the <strong>ArcGIS</strong> <strong>Engine</strong> Runtime installation within a batch file<br />

Yet another way that the <strong>ArcGIS</strong> <strong>Engine</strong> Runtime setup can be combined with<br />

your application’s installation program is within batch files. The following example<br />

again takes advantage of the available command-line parameters and<br />

implements them within a batch file rather than a scripted setup. This example<br />

includes the installation of <strong>ArcGIS</strong> <strong>Engine</strong> Runtime and service pack 1.<br />

REM ############################<br />

REM Set variables<br />

SET MSI_PATH=\Arc<strong>Engine</strong>\Setup.msi<br />

SET MSP_PATH=\<strong>ArcGIS</strong><strong>Engine</strong>90sp1.msp<br />

REM ############################<br />

REM Launch MSI Silently - NO UI<br />

msiexec.exe /i "%MSI_PATH%" /qn<br />

msiexec.exe /p "%MSP_PATH%” /qn<br />

REM Launch MSI Silently - Reduced UI<br />

msiexec.exe /i "%MSI_PATH%" /qb<br />

msiexec.exe /p "%MSP_PATH%" /qb<br />

REM Launch MSI Silently - No UI except for a modal dialog box displayed at<br />

the end.<br />

msiexec.exe /i "%MSI_PATH%" /qn+<br />

msiexec.exe /p "%MSP_PATH%" /qn+<br />

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

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

Saved successfully!

Ooh no, something went wrong!