Automatically deploy Arcgis Engine Runtime 10.0 using advanced Installer

Source: Internet
Author: User

Currently using Arcgis9.2 + C # (VS2008) as a program development platform, is a good match. (Although the standard collocation is 9.3+vs2008), there is a very serious problem, the ArcGIS Desktop license expires on November 11, 2011, although AE's license is indefinite, but will affect the ArcMap software editing processing graphics. Helpless, need to upgrade to arcgis10.0 as soon as possible, this version currently has indefinite permission.

At present, the number of users in Shaoguan hydrologic analysis system is not only several, but each of them should be upgraded to the AE run-time database. The problem is that the AE9.2 is already installed on each existing client and requires one by one uninstall, while the AE10 installation package is large, the size of the installation package is 451m, the patch SP2 size is 139m, plus the license installation package (22.3M) and license Patch SP2 (13.4M), a total of more than 620M, and some computers do not have the. Net framwork 3.5 SP1, the installation package size 231M (really Microsoft's big, such a man do not know how to get out), although there are 80M around the Internet Simplified installation package, However, the installation package cannot be installed automatically.

Use the National Day 4 days of duty time, after countless tests, finally use advanced installer completed the ArcGIS platform automatic deployment. Share my practice and experience below.

Prepared scripts:

1, uninstall the old version of ArcGIS License Manager

Write script file Script_delete_license92_new.cmd, content for @echo off REM stop service
net stop "ArcGIS License Manager" REM kills process ArcGIS
taskkill/f/im arcgis.exe rem removal service
SC delete "ArcGIS License Manager" Rem Purge registry key
Reg Import Deletelicense92.reg if exist "C:\Program files\esri\license\arcgis9x\" rd "C:\Program files\esri\license\ Arcgis9x "/s/q
If exist "C:\Documents and Settings\All users\" Start "menu \ Program \arcgis\license Manager (9.x)" Rd "C:\Documents and Settings\All Us ers\"Start menu \ Program \arcgis\license Manager (9.x)/s/q

2, uninstall the old version of ArcGIS Engine Runtime

Automatically uninstall using the MSIEXEC command line tool

Script:

@msiexec/x {9b139b36-f1ff-4db8-89f9-4da3d5c12be8}/qb

3, uninstall the 9.2 version of ArcGIS Desktop

Script: msiexec/x {1f34839e-4826-4b64-b1b3-42e5ae8dec5a}/qb

4, install the. Net Framework 3.5 SP1

Script: mainpack\dotnetfx35sp1-zhcn.exe/q

5, install ArcGIS License Manger 10.0

Script: @msiexec. exe/i "ArcGis License manager\setup.msi"/qb

6, upgrade ArcGIS License Manager 10.0 to SP2;

Script: @msiexec/update "Servicepacks\arcgislicensemanager10sp2.msp"/qb

7, install ArcGIS Engine Runtime 10.0;

Script: @msiexec/i "ArcGIS Engine runtime\setup.msi"/qb

8, upgrade ArcGIS Engine Runtime 10.0 to SP2;

Script: @msiexec/update "Servicepacks\arcgisengine10sp2.msp"/qb

9, installation license. REM "is stopping ArcGIS License Manager service ..."
net stop ArcGIS License Manager "REM" Replication ArcGIS License Manager license File ... "
Copy service.txt "C:\Program files\arcgis\license10.0\bin\service.txt"/y
REM "Replication succeeded. "REM" reboot ArcGIS License Manager Service
net start ArcGIS License Manager
REM "Buttoned up. "Pause

  

Advanced Installer configuration (7.01 Enterprise Edition license)

Run environment-> Launch condition, remove Windows 9x,windows NT from Windows XP Service Pack 3, Windows NT 64 bit from "Windows XP 64 bits" (with similar options below)

To run the environment-> the software environment, add the following items:

Detailed configuration:

First item: Uninstall ArcGIS License Manager

Properties: Location: File in package; file path: D:\ Package Test \script_delete_license92.cmd folder: script

Installation Condition: Search: Registry key with specified content, registry value: Hklm\software\flexlm License manager\arcgis License manager\lmgrd,

Value: C:\Program files\esri\license\arcgis9x\lmgrd.exe, Comparison: different from;

Options: not set;

Files: Adding script files

As shown in figure:

Second item: Uninstall ArcGIS Engine Runtime 9.2

Properties: Location: File in package; file path: D:\ Package Test \script_delete_arcengine92.cmd folder: script

Install Condition: Search: Registry key does not exist, registry value: Hklm\software\esri\arcgis Engine Runtime;

Options: not set;

Files: Adding script files

Item Three: Uninstall ArcGIS Desktop 9.2

Properties: Location: File in package; file path: D:\ Package Test \script_delete_arcgis92.cmd folder: script

Installation Condition: Search: Registry key with specified content, registry value: Hklm\software\esri\arcinfo\desktop\8.0\realversion,

Value: 9.2, Comparison: different from;

Options: not set;

Files: Adding script files

Fourth: Install the. NET Framework 3.5 SP1 Properties: Location: File in package; file path: D:\ package test \mainpack\dotnetfx35sp1-zhcn.exe; command line:/q; folder: Dotnet3.5sp1

Installation Condition: Search: Registry key with specified content, registry value: Hklm\software\microsoft\net Framework setup\ndp\v3.5\sp,

Value: 1, Comparison: exact match;

Options: not set;

Files: Adding Dotnetfx35sp1-zhcn.exe (official original)

Item Fifth: Install ArcGIS License Manager 10.0;

Properties: Location: File in package; file path: D:\ package test \arcgis License manager\setup.msi; command line:/qb;

Folder: ArcGIS License Manager 10.0

Install Condition: Search: Registry key exists, registry value: Hklm\software\esri\arcgis License Manager 10.0,

Options: not set;

Files: adding all files (including subfolders) under the installation folder

Item Sixth: Update ArcGIS License Manager10 to SP2

Properties: Location: File in package; file path: D:\ package test \servicepacks\arcgislicensemanager10sp2.msp; command line:/qb; folder: ServicePack

Installation Condition: Search: Registry key with specified content, registry value: Hklm\software\esri\arcgis License Manager 10.0\realversion,

Value: 10.0.3200, Comparison: Exact match;

Options: Parent Environment: Installing ArcGIS License Manager 10.0

File: Add Arcgislicensemanager10sp2.msp;

Item Seventh: Installing ArcGIS Engine Runtime 10.0

Properties: Location: File in package; file path: D:\ package test \arcgis Engine runtime\setup.msi; command line:/qb; folder: ArcGIS Engine Runtime 10.0

Installation condition: Search 1: Registry key exists, registry value: hklm\software\esri\engine10.0;

Search 2: Registry key exists, registry value: Hklm\software\esri\engine10.0\.net_support;

Options: not set;

Files: Adding files

Item Eighth: Update ArcGIS Engine Runtime 10 to SP2

Properties: Location: File in package; file path: D:\ package test \servicepacks\arcgisengine10sp2.msp; command line:/qb; folder: ServicePack

Installation condition: Search 1: Registry key exists, registry value: hklm\software\esri\engine10.0;

Search 2: Registry key with specified content; registry value: Hklm\software\esri\engine10.0\spnumber; value 1; comparison: greater than;

Options: Parent Environment: Installing ArcGIS Engine Runtime 10.0

Files: Adding Arcgisengine10sp2.msp

Place the script script_add_license10.cmd and license file for the installation license in files and folders, and create a shortcut to the script file in the Application Shortcuts folder.

The bootstrapper creates EXE installation files, which are included in the EXE file for easy distribution.

This creates a true ArcGIS platform for automated deployment software.

Experience: Advanced installer powerful, but more fool-like, part of the function should have insufficient, such as in the operation of environmental conditions to judge the absence of the existence of documents, judge conditions can only choose to fail, resulting in some logical judgement is more complex (when the right is not again, another failure, Plus when one or both meet a number of conditions, had to draw a pen, fortunately, the brain is still sufficient. Calling cmd on the command line lacks UNC support and may be faulted when running from the network.

Upgrading from the ArcGIS9.2 platform to 10.0, it took more than a day to change the program, but later found that there is no big problem, the basic code does not need to change, mainly with Office compatibility issues. If you have time, you can send that to share ^ ^.

Operation Effect:

Software operation effect Diagram

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.