You can deploy custom
tasks to computers that run the SAS Add-In for Microsoft Office in
two ways, using drop-in deployment or add-in deployment. Drop-in deployment
copies .NET assemblies into specific local directories that are recognized
by the SAS Add-In for Microsoft Office. Custom tasks in drop-in directories
are automatically registered (made available for execution) the next
time the user starts a Microsoft Office application.
Add-in deployment copies
.NET assemblies into any local directory. You then identify those
directories for use in the SAS Add-In for Microsoft Office using the
Add-In Manager in SAS Enterprise Guide. Deployment registration makes
the custom tasks available for execution from the SAS ribbon in Microsoft
Office applications.
When you deploy your
custom tasks, make sure that you include any dependent assemblies
that are referenced by those tasks. At the same time, make sure that
you do not include any dependent assemblies that are provided by the
SAS Add-In for Microsoft Office or by SAS Enterprise Guide.
Follow these steps to
use the Add-In Manager:
-
Copy the .NET assembly
into one of the following directories:
-
C:\ProgramFiles\SAS\Add-InForMicrosoftOffice\version\Custom
-
%appdata%\SAS\Add-InForMicrosoftOffice\version\Custom
%appdata%
is
the Microsoft Window environment variable that maps to a user account.
Repeat the copy in other user accounts if multiple users run the SAS
Add-In for Microsoft Office on the same host.
-
%appdata%\SAS\SharedSettings\version\Custom
Use this method to
deploy custom tasks to specified user accounts, using a shared directory
that is accessed by both the SAS Add-In for Microsoft Office and SAS
Enterprise Guide.
-
Start or restart a Microsoft
Office application to register the custom tasks and make them available
for testing.
Follow these steps to
use add-in deployment:
-
Copy the .NET assembly
into any local directory.
-
Start SAS Enterprise
Guide and open the Add-In Manager. Select
ToolsAdd-InAdd-In Manager.
-
In the Add-In Manager
dialog box, select
Browse .
-
Navigate to the directory
where you stored your .NET assembly.
-
Click
Open to
display the names of the custom tasks in the assembly.
-
Click
OK to
accept the custom tasks and register them in SAS Enterprise Guide.
-
Test the new custom
tasks in a Microsoft Office application.