InvisibleApp.AddonPaths property (Visio)

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

Syntax

expression.AddonPaths

expression A variable that represents an InvisibleApp object.

Return value

String

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 Locations dialog box (File tab > Options > Advanced > General > File Locations). This string is stored in the HKEY_CURRENT_USER\Software\Microsoft\Office\14.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, see Windows Installer.

Warning

Modifying the Windows registry in any manner, whether in 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.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.