Windows安装程序的特定方案(Specific scenario for a windows installer)

编程入门 行业动态 更新时间:2024-10-21 11:36:49
Windows安装程序的特定方案(Specific scenario for a windows installer)

我有这个场景,我们开发了一个Windows应用程序,它有一个mysql的先决条件,所以我们需要:

1.安装MySql 2.创建用户和宏权限3.创建数据库4.安装多个exe文件5.运行3-4个sql脚本。

如果可能的话,我们想要进行单个安装,或者在我进行一些研究后看到InstallShield和NSIS,然后逐步安装所有内容,但我在mking安装程序方面有0个经验,

在这种情况下,任何人都有任何解决方案的建议吗?

I have this scenario, we developed a windows application and it have a prerequisite of mysql, so we need to:

1.Install MySql 2.Create Users and grand privileges 3.Create a database 4.Install Multiple exe files 5.Run 3-4 sql scripts.

We want to make a single installation if possible or a wizard to install everything 1 by 1, after some research I saw InstallShield and NSIS, but I have 0 experience in mking installers,

Anyone have any suggestion for a solution in this scenario?

最满意答案

InstallShield在技术上可以做所有这些事情,但我真的建议不要尝试在安装程序中执行此操作。 如果您查看Microsoft Team Foundation Server等大型数据库相关产品的安装程序,您会看到他们已将所有这些外包给安装后运行的配置向导。 该向导收集所有连接信息(数据库引擎可能甚至不在此计算机上),并具有使一切都满意的所有逻辑,包括安全性和维护计划。

InstallShield can technically do all of those things but I'd really suggest not trying to do it in the installer. If you look at installer for big database dependent products like Microsoft Team Foundation Server you'll see they have outsourced all of this to a configuration wizard that gets run post installation. The wizard gathers up all of the connection information ( the database engine might not even be on this machine ) and has all the logic to make everything happy including security and maintenance plans.

更多推荐

本文发布于:2023-07-24 00:25:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1239258.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:安装程序   方案   Windows   Specific   installer

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!