Share via


AddonPaths Property [Visio 2003 SDK Documentation]

Gets or sets the paths where Microsoft Office Visio looks for third-party or user add-ons.

strRet = object**.AddonPaths**

object**.AddonPaths** = strPaths

strRet     String. A list of folders.

object     Required. An expression that returns an Application object.

strPaths     Required String. A text string containing a list of folders. Use semicolons to separate individual folders in the string.

Version added

4.0

Remarks

The AddonPaths property is set to an empty string ("") by default.

To indicate more than one folder in the path where you want Visio to look for third-party or user add-ons, use semicolons to separate individual items in the path string.

The string passed to and received from the AddonPaths property is the same string shown in the File Paths dialog box. (On the Tools menu, click Options, click the Advanced tab, and then click File Paths.) This string is stored in the HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Visio\Application\AddonsPath subkey.

When Visio looks for third-party and user add-ons, it looks in all paths named in the AddonPaths property, as well as at the paths of any add-ons installed at setup, and all the subfolders of those paths. If you pass the AddonPaths property to the EnumDirectories method, it returns a complete list of fully qualified paths in the folders passed in.

Starting with Microsoft Office Visio 2003, instead of specifying file paths to your Visio add-ons, you can publish your add-ons by using a Microsoft Windows Installer package. By doing so, you can take advantage of Microsoft Office features such as language switching, installation on demand, and repair. For more information about using a Windows Installer package to publish your add-ons, search for "Microsoft Windows Installer" on MSDN.

Note  Modifying the registry in any manner, whether through the Registry Editor or programmatically, always carries some degree of risk. Incorrect modification can cause serious problems that may require you to reinstall your operating system. It is a good practice to always back up a computer's registry first before modifying it. If you are running Microsoft Windows NT or Microsoft Windows 2000, you should also update your Emergency Repair Disk (ERD).

Applies to | Application object | InvisibleApp object

See Also | DrawingPaths property | EnumDirectories method | HelpPaths property | Path property | StartupPaths property | StencilPaths property | TemplatePaths property