Excel DNA XLL 配置 - 设置注释、描述和公司

Excel DNA XLL Config - Setting Comments, Description and Company

我看到在 ExcelDna.dna(配置)文件中我可以设置 XLL 的 "Name",它在 Excel/Options/Addins 屏幕上转换为 TITLE。但我想知道是否有一种简单的方法来设置评论(描述)或公司名称。非常感谢。

当然没有 'easy' 方法。我记得看到 COM 加载项会写入一些(未记录的)注册表项,这些似乎也适用于 .xll 加载项。

例如,在我的机器上,我看到分析工具库在加载项对话框中显示了描述 - "Provides data analysis tools..."。在注册表中搜索这个字符串,我在这里找到了一堆条目:

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\REGISTRY\MACHINE\Software\Classes\Installer\Components\B65A737451FC40A46A0FA969443BD207

但是相关的值有点模糊:

zn=BVK(8A$!!!!!MKKSkExcelAddinATPFilesIntl_1033<Analysis ToolPak\Provides data analysis tools for statistical and engineering analysis

如果您在同一个键下添加一个额外的值,它会显示在加载项对话框中,但我无法将它与实际的加载项条目联系起来。 . .

提示: 在 VBA XLAM-Add-In-project 中,此信息位于“core.xml”(标签 )中,如下所示:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" 
    xmlns:dc="http://purl.org/dc/elements/1.1/" 
    xmlns:dcterms="http://purl.org/dc/terms/" 
    xmlns:dcmitype="http://purl.org/dc/dcmitype/" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>
    <dc:title>Name of AddIns</dc:title>
    <dc:creator>Mike Miller</dc:creator>
    <cp:keywords>Core XML example</cp:keywords>
    <dc:description>Description for demonstration</dc:description>
    <cp:lastModifiedBy>Miller, Mike</cp:lastModifiedBy>
    <dcterms:created xsi:type="dcterms:W3CDTF">2013-01-25T07:58:19Z</dcterms:created>
    <dcterms:modified xsi:type="dcterms:W3CDTF">2020-09-29T13:06:15Z</dcterms:modified>
</cp:coreProperties>

可以通过将 *.xlam 文件重命名为 *.zip 来访问 core.xml。此 zip 存档包含多个 xml 文件...