带 delphi 自定义操作的 WIX 安装程序
我们正在使用 Delphi 编写自定义操作,并想知道以下内容是否存在任何问题,或者一种方法是否比另一种更好。
- 使用 WMI 确定是否安装了 SQL Server 并获取 SQL Server 实例名称。
- 如果 WMI 存在问题(引发异常),则使用 SQLDMO。
- 使用 WMI 获取网站正在运行的端口以及是否安装了 IIS。
- 使用 WMI 读取注册表值。
在 1) 和 2) 的情况下,我应该只使用 SQLDMO 而不是 WMI。
谢谢。 JD。
We are writing custom actions using Delphi and wanted to know if there would be any issues with the following or whether one way would be better than the other.
- Using WMI to determine if SQL server is installed and getting the SQL server instance names.
- If there is an issue with WMI (exception raised), then use SQLDMO.
- Using WMI to get the port a website is running on and if IIS is installed.
- Reading registry values using WMI.
In the case of 1) and 2), should I just use SQLDMO rather WMI.
Thanks.
JD.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
经过一天的搜索,我发现最好的是 http://www.magsys.co.uk /德尔福/ 。
有一个演示项目,允许您更改命名空间并测试各种 WQL 和实例查询。希望这对某人有帮助。
After a day of searching, the best I have found is http://www.magsys.co.uk/delphi/.
There is a demo project which allows you to change namespaces and test various WQL and instance queries. Hope this helps someone.