Going through an installshield project and am wondering what is the best route to go to check if SQL Server is installed as well as Crystal Reports Viewer? I was thinking of checking the registry but not sure if Local_Machine or Current_User is the better option? Or maybe an alternate option altogether?
通过一个installshield项目,我想知道检查SQL Server是否安装的最佳途径是什么以及Crystal Reports Viewer?我在考虑检查注册表但不确定Local_Machine或Current_User是否是更好的选择?或者可能是另一种选择?
1 个解决方案
#1
0
I tend to do a search based on what my actual physical dependency ie. For example, if I need Oracle Client I search for oci.dll. It's kind of a case by case basis:
我倾向于根据我的实际物理依赖性进行搜索,即。例如,如果我需要Oracle Client,我会搜索oci.dll。这是一种个案基础:
Registry typically costs less. Hard drive isn't too bad if you search one directory. Recursive searches are expensive.
注册表通常成本较低。如果您搜索一个目录,硬盘驱动器也不会太糟糕。递归搜索很昂贵。
SQL Server might not need a search per say. What exactly is your SQL dependency? Client Connectivity tools? A database instance? A certain version or any version? Same for instance name. A running database instance that you can actually connect to?
SQL Server可能不需要每次搜索。你的SQL依赖是什么?客户端连接工具?一个数据库实例?某个版本或任何版本?例如名称相同。您可以实际连接的正在运行的数据库实例?
If you are executing SQL scripts against a SQL server, the SqlLogin dialog can be used to establish connectivity.
如果要对SQL Server执行SQL脚本,则可以使用SqlLogin对话框建立连接。
#1
0
I tend to do a search based on what my actual physical dependency ie. For example, if I need Oracle Client I search for oci.dll. It's kind of a case by case basis:
我倾向于根据我的实际物理依赖性进行搜索,即。例如,如果我需要Oracle Client,我会搜索oci.dll。这是一种个案基础:
Registry typically costs less. Hard drive isn't too bad if you search one directory. Recursive searches are expensive.
注册表通常成本较低。如果您搜索一个目录,硬盘驱动器也不会太糟糕。递归搜索很昂贵。
SQL Server might not need a search per say. What exactly is your SQL dependency? Client Connectivity tools? A database instance? A certain version or any version? Same for instance name. A running database instance that you can actually connect to?
SQL Server可能不需要每次搜索。你的SQL依赖是什么?客户端连接工具?一个数据库实例?某个版本或任何版本?例如名称相同。您可以实际连接的正在运行的数据库实例?
If you are executing SQL scripts against a SQL server, the SqlLogin dialog can be used to establish connectivity.
如果要对SQL Server执行SQL脚本,则可以使用SqlLogin对话框建立连接。