InstallAware,添加一个很大的SQL脚本问题
我正在尝试使用 InstallAware 创建安装程序。
我有一个大数据库,我应该在安装过程中创建它。
我生成了脚本,在尝试将脚本添加到 MS SQL Server 命令时,花费的时间太长,大约 15 分钟。
这个问题有什么解决办法吗?
感谢您的帮助。
I am trying to create an installer using InstallAware.
I have a big database that i should create during installation.
I generated the script and while trying to add the script to the MS SQL Server command, it is taking too long, about 15 min.
Is there any solution for this issue?
Thanks for your help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我最终使用了一个自定义程序来执行 SQL 操作,因为 MS SQL Server 命令没有为我提供所需的日志记录和其他故障排除可见性。我还想说,安装新数据库(特别是如果您正在安装新的 SQL Server 实例)需要很长时间,并且极易出错。这并不是InstallAware 的错;而是InstallAware 的错。但由于 SQL Server 的安装量很大。如果我再做其他事情,我肯定会使用类似 SQLite 的东西来处理任何“普通人”的应用程序(即不是 IT 专业人员)将进行安装。
I ended up shelling out to a custom program to do SQL actions, since the MS SQL Server command didn't give me the logging and other troubleshooting visibility I needed. I would also say that installing a new database (particularly if you're installing a new SQL Server instance) takes a LONG time, and is extremely error prone. This isn't really InstallAware's fault; but due to the fact that SQL Server is a HEAVY install. If I had it to do other again, I would definitely use something like SQLite for any application that "normal people" (i.e. not IT pros) will be installing.
InstallAware 以其问题而闻名(我个人没能让它为我的安装程序工作)。你确定是安装程序?手动执行脚本是否更快?如果是,您可以尝试通过自定义操作执行它,看看会发生什么。
InstallAware is known for its problems (personally I didn't manage to make it work for my installers). Are you sure it's the installer? Is the script faster when executed manually? If it is, you can try executing it through a custom action and see what happens.