部署autocad .net dll
Autocad 程序员知道程序的结果是一个 DLL
文件,应根据安装的 Autocad 版本在 Windows 注册表中注册,
任何人都知道如何使安装程序部署 DLL
代码> 到另一台机器 我们如何通过c#知道安装的是哪个Autocad版本以及安装目录在哪里?
An Autocad programmer knows that the result of a programme is a DLL
file that should be registered in windows registry according to which Autocad version installed
any one knows how to make installer to deploy the DLL
to another machine
and how can we know which Autocad version is installed and where the installation directory by c#?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
所有这些信息都存储在注册表中。例如,对于 AutoCAD 2010 法语:
R18.0-> AutoCAD 2010,R18.1 -> AutoCAD 2011...
8001 -> AutoCAD 2010, 8007 --> AutoCAD Electrical 2010...
40C ->法语...
如果我可以给您一个建议,请不要使用 Visual Studio 构建安装程序。
All these informations are stored in the registry. For example, for AutoCAD 2010 French :
R18.0 -> AutoCAD 2010, R18.1 -> AutoCAD 2011...
8001 -> AutoCAD 2010, 8007 -> AutoCAD Electrical 2010...
40C -> French...
And if I can give you an advice, don't build your installer with Visual Studio.
构建安装程序
上面的链接将解决问题
Building an Installer
the link above will solve the problem
对于这种简单的事情,Visual Studio 安装程序已经足够好了,甚至有点过分了。使用 .REG 文件可能听起来更容易。
如果您想检测每台计算机上可用的 AutoCAD 版本,并让用户有机会选择要注册的加载项,则自定义操作可以发挥作用。
For this kind of simple matters, the Visual Studio Setup is good and enough, or even a bit overkilled. Using a .REG file may sound easier.
If you'd like to detect what AutoCAD versions are available on each machine and give users a chance to choose against which the add-in will be registered, the Custom Action comes to rescue.