2025-11-28 00:35:46 +09:00

52 lines
2.4 KiB
Plaintext

<!--
<copyright file="SubTabAddinConfig.addin" company="Microsoft">
Copyright (C) Microsoft. All rights reserved.
</copyright>
-->
<!-- Rename this xml file from "SubTabAddinConfig" and copy to %ProgramFiles%\Windows Server\Bin\Addins\<Target Tab> folder
where <Target Tab> is the name of the folder for the particular built-in tab-->
<!--
ATTRIBUTES:
name attribute: Corresponds to a friendly name for the add-in. This is for internal use and
will not be displayed to the user. It is mainly used in logging.
type attribute: Comma separated string where the first entry is the namespace path to the class that is derived
from the abstract PageProvider class and the second entry is the name of the dll containing this class.
basedir attribute: the path to the directory containing the user's addin binaries (dll)
Copy binaries there.
PROCEDURE:
Addin file: A name will be needed for this file, so the file should be renamed from the default "AddinConfig.addin"
to new unique name such as "MyNewDashboardAddin.addin". The only requirement is that this name be unique.
This file will be put into the "%ProgramFiles%\Windows Server\Bin\Addins\<Target Tab>" folder where <Target Tab>
is the name of the folder for the particular built-in tab, for instance "Home", or Users, or "Computers" (this is the
Computers and Backup tab).
Binary file: the location of the main binary is specified by the basedir attribute in the Addin file. If the binary is
named MyNewWSSDashboardAddin.dll in the folder C:\Program Files\MyWSSAddins, and the name of the class is
SubTabPage derived from the Page class, and the namespace is MyDashboardAddinNamespace,
then the addin element would be as follows:
<addin name="Test Add-in" basedir="%ProgramFiles%\MyWSSAddins"
type="MyDashboardAddinNamespace.SubTabPage, MyNewWSSDashboardAddin" />
Put the binaries in the folder specified by the Addin file, in this case: %ProgramFiles%\MyWSSAddins.
PROBLEMS:
If the subtab does not load, the Dashboard crashes, or there are other problems, the Dashboard log is located at
ProgramData\Microsoft\Windows Server\Logs\Dashboard.txt
-->
<addin name="WPF SubTab in Built-in-Tab Test Add-in" basedir="FULL_PATH_TO_YOUR_PAGE_PROVIDER_BINARY_DLL"
type="WSSSubTabWPFSample.SubTabPage, WSSSubTabWPFSample" />