简体   繁体   English

检查存在的firebird数据库

[英]Check firebird databases present

Our software installer install firebird if it is not present on the system and, as we are pursuing Win certificate the uninstaller should remove it but, we want to make sure that even if it was the installer that put it there, if any new software is using it now with a new database, we would not remove it (Firebird). 我们的软件安装程序会在系统上不存在firebird的情况下进行安装,并且,当我们追求Win证书时,卸载程序应将其删除,但是,我们希望确保即使是安装它的安装程序,也要安装任何新软件。现在将其与新数据库一起使用,我们将不会将其删除(Firebird)。

The question is: Is it possible to query the server and ask what are the databases running on it? 问题是:是否可以查询服务器并询问在其上运行的数据库是什么? This is it so that we can decide, automatically if we can remove the database or not. 这样就可以自动决定是否可以删除数据库。

A few extra info: Our installer is Innosetup and it does a good job already - we just trying to make it smarter because of the "Developed by" or "Compatible with" windows logo. 一些额外的信息:我们的安装程序是Innosetup,它已经做得很好-我们只是由于Windows徽标的“开发者”或“兼容”而试图使其变得更智能。

You can query server for other databases being connected through MON$ tables. 您可以查询服务器以查找通过MON $表连接的其他数据库。 Alas, it will work only if connection is active at the time of uninstaller execution. las,只有在卸载程序执行时连接处于活动状态,它才会起作用。

I would recommend to install Firebird into custom directory and use custom port number. 我建议将Firebird安装到自定义目录中并使用自定义端口号。 This way you can safely uninstall server later. 这样,您以后就可以安全地卸载服务器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM