Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想我可以检查是否安装了一些 sql server,如果没有,我想安装一个。如何做到这一点?先决条件不是一个选项,因为用户可以选择安装类型而不需要 sql server。谢谢。
您可以在项目中包含 sql server installer exe,并且可以使用LaunchAppAndWait和启动 exe 以及所需的参数。
LaunchAppAndWait