问题描述
我想知道如何创建安装程序(.exe 或 .bat)来部署使用 C# 开发的 AutoCad 插件。安装程序将有 2 个任务:自动加载插件 DLL 和自动加载一个 .cui 文件,该文件将作为插件的用户界面创建。
提前致谢。
解决方法
您可以使用 InnoSetup 创建带有指定 cuix、dll 和 lisp 文件的 exe 安装程序,其中在 lisp 文件中您可以使用命令 select 1 as Partition,something,date_something
from my_table
where [conditions]
union
select 2 as Partition,date_something
from my_table
where [conditions]
union
select 3 as Partition,date_something
from my_table
where [conditions]
order by Partition
加载 C#,命令 netload
加载 cui 文件。
您应该使用 Autoloader 机制。只需创建一个包含 PackageContents.xml 文件和您的 .dll 和 .cuix 文件的 .bundle 文件夹。然后,只需使用任何安装程序将其解压缩到 ApplicationPlugins 文件夹中即可。