Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/postgresql/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wix,PostgreSQL安装,执行PostgreSQL脚本_Postgresql_Wix - Fatal编程技术网

Wix,PostgreSQL安装,执行PostgreSQL脚本

Wix,PostgreSQL安装,执行PostgreSQL脚本,postgresql,wix,Postgresql,Wix,我必须在我们的应用程序之前制作安装Postgresql的安装程序,制作数据库并对数据库执行一些sql脚本 现在我使用引导程序安装Postgresql,然后安装我们的应用程序,并使用Wix安装序列执行SQL脚本,该脚本负责其余部分 我在想,如果没有引导程序,是否有办法做到这一点?我已经读过Wix SqlExtension,但不知道它是独立于数据库的,还是可以用它安装database server…Wix SqlExtension是特定于SqlServer的。然而,在它下面的Postgresql层中

我必须在我们的应用程序之前制作安装Postgresql的安装程序,制作数据库并对数据库执行一些sql脚本

现在我使用引导程序安装Postgresql,然后安装我们的应用程序,并使用Wix安装序列执行SQL脚本,该脚本负责其余部分


我在想,如果没有引导程序,是否有办法做到这一点?我已经读过Wix SqlExtension,但不知道它是独立于数据库的,还是可以用它安装database server…

Wix SqlExtension是特定于SqlServer的。然而,在它下面的Postgresql层中进行垂直定位应该不会那么困难。IIRC,实际的数据库调用非常抽象

此外,引导程序也不是进行静态配置的正确位置。如果这是真正可配置的数据,那么在安装结束时启动一个完全独立的应用程序可能是有意义的。但如果只是创建数据库,我会把它放在MSI中