English

How To: Permanently disable Avenue and interface customization for all users

Summary

Steps to disable Avenue by modifying the Appl.Initialize system script.

Procedure

  1. Open a new project.
  2. Open a new script window.
    A. Activate the Project window.
    B. Click the Scripts icon.
    C. Click New.
  3. Click Script > Properties, and change the name to Appl.Initialize.
  4. Click Script > Load System Script and select Appl.Initialize from the script Manager window.
  5. Insert following line at top of script.
    Code:
    av.SetCustomizable(false)
  6. Compile and close the script.
  7. Open a new script window.
  8. If you want to disable Avenue for just one user, insert following code into script editor window.
    Code:
    av.GetProject.MakeUserDefault  
    If you want to disable Avenue for all users on the computer, insert this code into the script editor window.
    Code:
    {av.GetProject.MakeSysDefault("$AVHOME\etc\default.apr".AsFileName,false)
    Note:
    If you are choosing to disable Avenue for the entire system, you must navigate to the ..\esri\av_gis30\arcview\etc directory and rename the file default.apr to default.bak before continuing. For more information see Related Information.
  9. Compile and run this script.

Related Information