Problem: AML script tools do not run after running RegisterAMLasExecutable.reg


AML script tools are not working correctly after RegisterAMLasExecutable.reg is run.

To create script tools from AML, access to an ArcInfo Workstation license is required, and ArcInfo Workstation must be installed on your computer.


Windows XP Service Pack 2 or Windows Server 2003 Service Pack 1 may be installed on the computer. The RegisterAMLasExecutable.reg does not work correctly with these two products.

Solution or Workaround

Alter the RegisterAMLasExecutable.reg file so that it works correctly with Windows XP SP2. To do this, insert the full path to the arc.exe file in the .reg file.

WARNING: The instructions below include making changes to essential parts of your operating system. It is recommended that you backup your operating system and files, including the registry, before proceeding. Consult with a qualified computer systems professional, if necessary.

Esri cannot guarantee results from incorrect modifications while following these instructions; therefore, use caution and proceed at your own risk.

Follow the steps below.
  1. For ArcGIS 9.x, navigate to ...\\ArcGIS\ArcToolbox\Scripts.
  2. Locate the file named RegisterAmlAsExecutable.reg. Right-click it and select 'Edit'.
  3. At the line:
    @="arc.exe \"&run\" %0 %*"

    Replace arc.exe with the full path to arc.exe. For example, if the path to arc.exe is C:\arcgis\arcexe9x\bin\arc.exe, the new line appears as follows:
    @="\"C:\\arcgis\\arcexe9x\\bin\\arc.exe\" \"&run\" %0 %*"

    Notice that the \ is an escape character that must be inserted before all quotation marks and back-slashes.

    The file should appear as follows:
    [O-Image] FileContents
  4. Save the file.
  5. Double-click the file to run it. Click 'Yes' when prompted to add the information to the registry.

Related Information