'
' This example shows how to set the path that appears by
' default during installation of the add-on.
'
' Create a toolbar to use in the add-on package
CreateToolbar "MyToolbarAddonTest"
' Create the add-on package object
set oAddOn = Application.CreateAddon
' Set the default installation folder to the workgroup path
oAddOn.DefaultInstallationPath = siWorkgroupAddonPath
' Add the toolbar to the add-on package
oAddOn.AddItem siToolbarAddonItemType, "MyToolbarAddonTest"
' You typically always specify a subdirectory
oAddon.SubDirectory = "MyToolbarAddon"
' Save the package in the Addons directory
oAddOn.Save XSIUtils.BuildPath( InstallationPath( siUserPath ), "Addons", "myAddOn.xsiaddon" ) |