单击按钮从 WinForms 安装 SQL Server Express
希望我的措辞/提问是正确的。
我有一个 Winforms、.Net 3.5 应用程序,我试图允许用户从 UNC 启动 SQL Server Express 安装(如果他们是笔记本电脑)。单击一次安装后首次运行时,我会向他们展示一个屏幕。此屏幕询问他们是否是“移动”用户。如果是,那么我的应用程序会在本地 SQL Server Express 和正确的发布者之间设置必要的合并复制集。最初我只是将 SQL Server Express 作为先决条件之一。
然而,这不必要地使安装变得臃肿,因为并非每个人都需要本地 SQL Server。如果他们在我的启动屏幕上选择“移动”,我希望能够从 UNC 路径开始安装 SQL Server,而不是进行两次单独的“单击一次”安装。
它不像Process.Start()
那么简单,是吗?哦,这只是一个内部应用程序。一切都在我们的网络上完成。
Hopefully I am wording/asking this right.
I have a Winforms, .Net 3.5, app that I am trying to allow the user to kick off a SQL Server Express install from a UNC if they are a laptop. I present them with a screen on first run after the Click Once install. This screen asks them if they are a "Mobile" user. If yes then my app sets up the necessary merge replication sets between there local SQL Server Express and the correct publisher. Initially I have just had SQL Server Express be one of the prerequisites.
However this is unnecessarily bloating the install since not everyone needs SQL Server locally. Instead of having two separate Click Once installs I would like to be able to kick off installing SQL Server from an UNC path if they choose Mobile on my start up screen.
It's not as simple as a Process.Start()
is it? Oh, this is an internal app only. Everything is done on our network.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它就像
Process.Start()
一样简单。但是,您可能需要检查安装程序文档并传递命令行选项以进行静默安装。
It is as simple as
Process.Start()
.However, you may want to check the installer documentation and pass command-line options for a silent install.